/* Verzió: 20261015 */
/* ==========================================================================
   Enci tánc / Ballare Táncstúdió – stíluslap
   Töréspontok (az eredeti Muse-oldal töréspontjaival egyezően):
     alap        ≤ 640 px   mobil
     ≥ 641 px               tablet (függőleges lista)
     ≥ 931 px               asztali (960 px-es tartalom, karusszel)
   ========================================================================== */

/* --- Betűtípus (saját tárhelyről, Lora – SIL Open Font License) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff2") format("woff2"), url("../fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff2") format("woff2"), url("../fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* --- Változók ------------------------------------------------------------ */
:root {
  --brown: #594949;
  --brown-dark: #3c3232;
  --brown-btn: #635454;
  --purple: #844085;
  --purple-alt: #844398;
  --grey: #827777;
  --grey-link: #857878;
  --white: #fff;
  --header-h: 57px;
  --container: 960px;
}

/* --- Alapok -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.2;
  color: var(--brown);
  background: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, address, figure { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
img { display: block; border: 0; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

.accent { color: var(--purple); }

/* horgonyok: a rögzített fejléc alá ne csússzon a cím */
#kezdolap { scroll-margin-top: 200px; }   /* a kezdőlap mindig a lap legtetejére ugrik (a nagyobb érték 0-ra korlátozódik) */
#tancok { scroll-margin-top: 186px; }
#rolam { scroll-margin-top: 87px; }
#aktualis { scroll-margin-top: 103px; }
#kapcsolat { scroll-margin-top: 57px; }

/* --- Gombok -------------------------------------------------------------- */
.btn {
  display: inline-block;
  min-width: 170px;
  height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--brown);
  color: var(--white);
  font-size: 24px;
  line-height: 50px;
  text-align: center;
  transition: background-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--purple); }

.btn--outline { background: var(--white); border: 2px solid var(--brown); color: var(--brown); line-height: 46px; }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--purple); border-color: var(--purple); color: var(--white); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.btn--small { min-width: 257px; height: 44px; font-size: 20px; line-height: 44px; }

.btn--studio {
  min-width: 264px;
  height: 78px;
  padding: 0 20px;
  border: 1px solid var(--brown-dark);
  background: var(--brown-btn);
  font-size: 25px;
  line-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Közösségi ikonok ---------------------------------------------------- */
.social { display: flex; gap: 10px; }
.social__btn {
  width: 42px;
  height: 42px;
  border: 2px solid #9b9b9b;
  border-radius: 50%;
  background: transparent url("../images/social_fb_sprite-u435-fr.png") center top / cover no-repeat;
}
.social__btn--mail { background-image: url("../images/social_e-mail_sprite-u434-fr.png"); }
.social__btn:hover, .social__btn:focus-visible { border-color: var(--white); background-position: center bottom; }

/* --- Fejléc -------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--brown);
}
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: min(var(--container), 100%);
  margin: 0 auto;
}
.site-header .brand { margin-left: auto; }
.site-header .brand img { width: 137px; height: 47px; }
.site-header .social { margin: 0 29px 0 6px; }

/* --- Mobilmenü (≤ 930 px) ------------------------------------------------
   A fejléc-sáv megnyitáskor a képernyő aljáig lenyílik, a hamburger X-szé alakul,
   a menüpontok egymás után, 60 ms-onként beúsznak. Asztali nézetben (≥ 931 px)
   a hamburger nem látszik, a menü a sávban marad (lásd lent az ASZTALI részt). */
:root {
  --mm-ido: .4s;                              /* lenyílás ideje */
  --mm-gorbe: cubic-bezier(.37, 0, .63, 1);   /* lágy gyorsulás-lassulás */
  --mm-elvalaszto: rgba(255, 255, 255, .14);  /* vonal a menüpontok között */
  --mm-kiemelt: #d9c7d9;                      /* menüpont rámutatáskor (a régi menü színe) */
}

/* hamburger: 4 vonal, nyitva X */
.nav-toggle {
  flex: none;
  position: relative;
  width: 62px;
  height: var(--header-h);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible { outline: 2px solid var(--mm-kiemelt); outline-offset: -6px; }
.nav-toggle__bar {
  position: absolute;
  left: 17px;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}
.nav-toggle__bar:nth-child(1) { top: 18px; }
.nav-toggle__bar:nth-child(2), .nav-toggle__bar:nth-child(3) { top: 27px; }
.nav-toggle__bar:nth-child(4) { top: 36px; }
.site-header.is-open .nav-toggle__bar:nth-child(1) { top: 27px; left: 33px; width: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(2) { transform: rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(4) { top: 27px; left: 33px; width: 0; }

.site-nav a { color: var(--white); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--mm-kiemelt); }

@media (max-width: 930px) {
  .site-header {
    overflow: hidden;
    transition: height var(--mm-ido) var(--mm-gorbe);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-header.is-open { overflow-x: hidden; overflow-y: auto; }   /* ha nem fér ki: görgethető */
  .site-header__bar { height: var(--header-h); }

  /* a menüpontok a sáv alatt, a lenyíló fejlécen belül */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 6px 0 30px;
  }
  .site-nav a {
    display: block;
    max-width: 520px;
    margin: 0 46px;
    height: 48px;
    line-height: 48px;
    border-bottom: 1px solid var(--mm-elvalaszto);
    font-size: 19px;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* zárt állapot: áttetsző, kissé balra-feljebb (minél lejjebb van, annál feljebbről indul) */
    opacity: 0;
    transform: translate(-20px, calc(-20px - 10px * (var(--mm-i, 0) + 1)));
    visibility: hidden;
    pointer-events: none;
    /* bezáráskor a pontok a sávval együtt csúsznak fel, és csak utána állnak vissza kezdőhelyzetbe */
    transition: opacity 0s linear var(--mm-ido), transform 0s linear var(--mm-ido), visibility 0s linear var(--mm-ido);
  }
  .site-header.is-open .site-nav a {
    opacity: 1;
    transform: translate(0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity .4s var(--mm-gorbe), transform .4s var(--mm-gorbe), visibility 0s;
    transition-delay: calc(var(--mm-i, 0) * 60ms);
  }

  /* nyitott menünél az oldal mögötte nem görög */
  html.mm-zarolt, html.mm-zarolt body { overflow: hidden; }
}

@media (max-width: 930px) and (max-height: 500px) {
  .site-nav a { height: 40px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav-toggle__bar, .site-header.is-open .site-nav a { transition: none !important; }
}


/* ==========================================================================
   Közös, töréspont-független darabok
   ========================================================================== */
.hero__title span:first-child { color: var(--grey); }
.hero__lead, .hero__tagline { color: var(--grey); }
.hero__title { font-weight: 400; }

.carousel__controls { display: none; }

.card { position: relative; text-align: center; }
.card__bubble { display: contents; }
.card__photo { z-index: 0; }
.card::before { z-index: 1; }
.card__title, .card__text, .card .btn { z-index: 2; }
.card__title { position: relative; font-size: 35px; font-weight: 400; color: var(--purple); }
.card__text { position: relative; font-size: 20px; }
.card .btn { position: relative; }
.carousel__slide:last-child .card__text { font-size: 21px; }
@media (min-width: 931px) { .carousel__slide:last-child .card__text { line-height: 25px; } }

.about { background: var(--brown) url("../images/flower-2.webp") 50% 50% / cover no-repeat; color: var(--white); text-align: center; }
.about__title { font-weight: 400; }
.about__facts li { position: relative; font-size: 19px; }
.about__facts li::after { content: ""; position: absolute; left: 50%; width: 269px; height: 2px; margin-left: -134px; background: var(--white); }

.current { text-align: center; }
.current__title { font-weight: 400; color: var(--purple-alt); }
.current__note { font-size: 23px; font-weight: 700; }
.current__link { font-size: 23px; font-weight: 700; overflow-wrap: anywhere; }
.current__link a { color: var(--grey-link); text-decoration: underline; }
.current__link a:hover { color: var(--purple); }

.contact { position: relative; background: var(--brown); color: var(--white); text-align: center; }

/* jelentkezhető kurzusok (a data/kurzusok.json-ból töltődnek be) */
.current__inner, .contact__inner { position: relative; z-index: 1; }
.courses { margin-top: 34px; padding: 0; list-style: none; }
.course + .course { margin-top: 26px; }
/* Nyitott órák (bármikor csatlakozhatsz) a kurzusok után, saját fejléccel */
.course.course--head { margin-top: 48px; }
.course.course--head + .course--open { margin-top: 18px; }
.course.course--open + .course--open { margin-top: 16px; }
.course__name--open { font-size: 22px; }
.course__name { font-size: 26px; font-weight: 400; line-height: 1.2; color: var(--purple-alt); }
.course__date { margin-top: 4px; font-size: 20px; color: var(--grey); }
.course .btn { min-width: 200px; margin-top: 10px; }
.courses:not([hidden]) + .current__note { margin-top: 44px; }
.contact__title { font-size: 35px; font-weight: 400; }
.contact__name strong { font-weight: 400; }
.contact a:hover { color: #d9c7d9; }
/* útvonaltervezés gomb a kapcsolat részben (a barna háttéren fehér körvonalas) */
.contact__route { margin-top: 28px; }
.btn--route { min-width: 230px; height: 48px; border: 2px solid var(--white); background: transparent; color: var(--white); font-size: 21px; line-height: 44px; }
.contact .btn--route:hover, .contact .btn--route:focus-visible { background: var(--white); border-color: var(--white); color: var(--brown); }
.visit { position: relative; }

.site-footer { background: var(--brown-dark); color: var(--white); }
.site-footer__brand img { width: 100px; height: 34px; }
.site-footer__copy { font-size: 13px; color: var(--grey-link); }
.site-footer__copy a { color: var(--grey-link); text-decoration: underline; }
.site-footer__nav a { font-size: 15px; line-height: 18px; text-transform: uppercase; color: var(--grey-link); }
.site-footer__nav a:hover { color: var(--white); }

/* ==========================================================================
   KIS FEJLÉC (≤ 930 px): hamburger + logó + ikonok
   ========================================================================== */
@media (max-width: 930px) {
  .site-header .brand { margin-left: auto; }
  .site-header .brand img { width: 137px; height: 47px; }
  .site-header .social { margin: 0 29px 0 6px; }
}

/* ==========================================================================
   MOBIL (≤ 640 px)
   ========================================================================== */
@media (max-width: 640px) {

  .hero {
    margin-top: 56px;
    padding-top: 231px;
    background: url("../images/fokep-mobil-2.jpg") 50% 0 / 480px 231px no-repeat;
    text-align: center;
  }
  .hero__copy { padding-top: 16px; }
  .hero__title { font-size: 22px; }
  .hero__lead { width: 262px; margin: 20px auto 0; font-size: 18px; }
  .hero__tagline { margin-top: 10px; font-size: 20px; }
  .hero__actions { justify-content: center; margin-top: 20px; }
  .hero__actions .btn { min-width: 0; flex: 0 1 150px; height: 46px; font-size: 18px; line-height: 42px; padding: 0 14px; }

  .styles { padding-top: 28px; }
  .carousel__slide { display: contents; }

  .card { padding: 166px 0 19px; }
  .card::before {
    content: "";
    position: absolute;
    top: 103px;
    left: calc(50% - 158px);
    width: 306px;
    height: 141px;
    background: url("../images/pic-alap.png") no-repeat;
  }
  .card__photo { position: absolute; top: 0; left: 50%; width: 245px; height: 245px; margin-left: -122px; }
  .card__title { width: 229px; margin: 0 auto; }
  .card__text { width: min(315px, 100%); margin: 37px auto 0; }
  .card .btn { margin-top: 19px; }

  .about { padding: 21px 0 15px; }
  .about__title { font-size: 30px; }
  .about__grid { display: flex; flex-direction: column; align-items: center; }
  .about__photo { width: 300px; height: 300px; margin-top: 21px; }
  .about__facts { display: contents; }
  .about__facts li { width: 285px; margin-top: 18px; padding-bottom: 42px; }
  .about__facts li::after { bottom: 0; }
  .about__facts li:last-child { padding-bottom: 0; }
  .about__facts li:last-child::after { display: none; }
  .about__quote, .visit__photo { display: none; }
  .btn--studio { margin-top: 33px; min-width: 216px; height: 80px; }

  .current { padding: 25px 20px 0; }
  .current__title { font-size: 30px; }
  .current .btn--small { margin-top: 26px; height: 47px; line-height: 45px; border: 1px solid var(--brown-dark); }
  .current__note { width: 288px; margin: 87px auto 0; }
  .current__link { margin-top: 24px; }

  .contact { margin-top: 40px; padding: 60px 20px; }
  .contact__details { width: 280px; margin: 35px auto 0; font-size: 20px; }
  .contact__name { font-size: 20px; }
  .contact__address { margin-top: 24px; }
  .contact__lines { margin-top: 0; }

  .site-footer__inner { display: flex; flex-direction: column-reverse; align-items: center; padding: 26px 20px 20px; }
  .site-footer__brand { display: flex; align-items: center; gap: 27px; margin-top: 20px; }
  .site-footer__copy { line-height: 1.4; text-align: center; }
  .site-footer__nav { display: none; }
}

/* ==========================================================================
   TABLET (641 – 930 px)
   ========================================================================== */
@media (min-width: 641px) and (max-width: 930px) {

  .hero {
    height: 550px;
    background: url("../images/fokep-mobil.jpg") 50% 0 / 1142px 550px no-repeat;
    text-align: center;
  }
  .hero__inner { position: relative; height: 100%; }
  .hero__copy { position: absolute; top: 96px; left: calc(23.33vw - 69px); width: 355px; }
  .hero__title { width: 415px; margin-left: -30px; font-size: 30px; }
  .hero__lead { margin-top: 20px; font-size: 20px; }
  .hero__tagline { margin-top: 20px; font-size: 25px; }
  .hero__actions { justify-content: center; margin-top: 24px; }
  .hero__actions .btn { min-width: 0; flex: 0 1 160px; height: 48px; font-size: 19px; line-height: 44px; padding: 0 14px; }

  .styles { padding-top: 20px; }
  .carousel__slide { display: contents; }

  .card {
    display: grid;
    grid-template-columns: 219px 1fr;
    column-gap: 27px;
    align-content: start;
    width: 612px;
    margin: 0 auto;
    padding-bottom: 20px;
  }
  .card__photo { grid-column: 1; grid-row: 1 / 4; width: 219px; height: 219px; margin-top: 36px; }
  .card__title { grid-column: 2; grid-row: 1; }
  .card__text { grid-column: 2; grid-row: 2; margin-top: 11px; }
  .card .btn { grid-column: 2; grid-row: 3; justify-self: center; margin-top: 46px; }

  .about { padding: 26px 0 56px; }
  .about__title { font-size: 35px; }
  .about__grid { display: grid; grid-template-columns: 1fr 1fr; width: min(708px, 100%); margin: 0 auto; align-items: start; }
  .about__photo { grid-column: 1 / 3; grid-row: 1; justify-self: center; width: 300px; height: 300px; margin: 42px 0 23px; }
  .about__facts { display: contents; }
  .about__facts li { width: 285px; height: 140px; margin: 0 auto; }
  .about__facts li::after { top: 109px; }
  .about__facts li:nth-child(1) { grid-column: 1; grid-row: 2; }
  .about__facts li:nth-child(2) { grid-column: 1; grid-row: 3; }
  .about__facts li:nth-child(4) { grid-column: 1; grid-row: 4; height: 70px; }
  .about__facts li:nth-child(3) { grid-column: 2; grid-row: 2; }
  .about__facts li:nth-child(5) { grid-column: 2; grid-row: 3; }
  .about__facts li:nth-child(6) { grid-column: 2; grid-row: 4; height: 70px; }
  .about__facts li:nth-child(4)::after, .about__facts li:nth-child(6)::after { display: none; }
  .about__quote { display: block; width: 646px; max-width: 100%; height: auto; margin: 36px auto 0; }
  .btn--studio { margin-top: 31px; }

  /* a fotó keskeny, bal oldalt ül, a szövegek a körvonalától jobbra kezdődnek */
  .visit { --pw: 300px; }   /* tartalék, ha a böngésző nem ismeri a clamp()-et */
  @supports (width: clamp(1px, 1vw, 2px)) { .visit { --pw: clamp(260px, 44vw, 380px); } }
  .visit__photo { position: absolute; z-index: 0; top: calc(var(--pw) * -1.055); left: 16px; width: var(--pw); height: auto; pointer-events: none; }
  .current { min-height: 529px; padding: 105px 24px 40px calc(16px + var(--pw) * .581 + 20px); }
  .current__title { width: auto; max-width: 393px; margin: 0 auto; font-size: 35px; }
  .current .btn--small { margin-top: 29px; }
  .current__note, .current__link { margin-left: 0; padding-right: 0; }
  .current__note { margin-top: 83px; }
  .current__link { margin-top: 24px; }

  .contact { min-height: calc(var(--pw) * 1.204 + 20px); padding: 60px 24px 60px calc(16px + var(--pw) * .958 + 20px); }
  .contact__title, .contact__details { width: auto; max-width: 320px; margin-left: auto; margin-right: auto; }
  .contact__details { margin-top: 35px; font-size: 20px; }
  .contact__name { font-size: 20px; }
  .contact__address { margin-top: 24px; }
  .contact__lines { margin-top: 0; }

  .site-footer__inner { display: flex; justify-content: center; align-items: flex-start; gap: 24px; padding: 18px 20px 22px; }
  .site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; }
  .site-footer__copy { margin-top: 12px; line-height: 1.4; text-align: left; }
  .site-footer__nav { display: none; }
}

/* ==========================================================================
   ASZTALI (≥ 931 px) – 960 px-es tartalom
   ========================================================================== */
@media (min-width: 931px) {

  .site-header .brand { position: absolute; left: 4px; top: 5px; }
  .site-header .social { position: absolute; right: 29px; top: 7px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: absolute;
    inset: 0 auto auto 50%;
    z-index: auto;
    width: 637px;
    height: var(--header-h);
    margin-left: -318px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .site-nav a { height: var(--header-h); padding: 16px 0 0; font-size: 20px; letter-spacing: 0; line-height: 24px; text-align: center; }

  /* hero */
  .hero {
    height: 920px;
    background: url("../images/hero-931.webp") 50% 0 no-repeat, url("../images/alap.jpg") 50% 0 / cover no-repeat;
    text-align: center;
  }
  .hero__inner { position: relative; width: min(var(--container), 100%); margin: 0 auto; }
  .hero__copy { position: absolute; top: 129px; left: 14px; width: 611px; }
  .hero__title { font-size: 45px; }
  .hero__lead { margin-top: 20px; font-size: 25px; }
  .hero__tagline { margin-top: 19px; font-size: 33px; }
  .hero__actions { justify-content: center; margin-top: 34px; }

  /* karusszel */
  .styles { position: relative; margin-top: -87px; }
  .carousel { position: relative; width: min(var(--container), 100%); margin: 0 auto; padding-bottom: 54px; }
  /* a lapok egymásra kerülnek, és 1,7 s alatt átúsznak egymásba (mint az eredetiben) */
  .carousel__slides { display: grid; }
  .carousel__slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    padding: 0 5px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.7s linear, visibility 0s linear 1.7s;
  }
  .carousel__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 1.7s linear; }
  .carousel__slide:last-child { grid-template-columns: repeat(2, 315px); justify-content: center; }

  /* a „buborékok” a hullám mögül bújnak elő */
  .card__bubble { display: block; position: absolute; z-index: 0; top: -40px; left: 0; width: 306px; height: 286px; overflow: hidden; }   /* a hullám aljától 4 px-szel följebb ér véget */
  .card:nth-child(1) { --i: 0; }
  .card:nth-child(2) { --i: 1; }
  .card:nth-child(3) { --i: 2; }
  @keyframes bubble-rise { from { transform: translateY(300px); } to { transform: none; } }
  .js .carousel:not(.is-revealed) .card__photo { transform: translateY(300px); }
  .carousel__slide.is-entering .card__photo { animation: bubble-rise 1s ease-in-out backwards; animation-delay: calc(var(--i, 0) * .17s + .3s); }

  .card { width: 306px; margin: 0 auto; padding-top: 160px; }
  .card::before {
    content: "";
    position: absolute;
    top: 109px;
    left: 0;
    width: 306px;
    height: 141px;
    background: url("../images/pic-alap.png") no-repeat;
  }
  .card__photo { position: absolute; top: 40px; left: 33px; width: 245px; height: 245px; }
  .card__text { width: 295px; min-height: 236px; margin: 27px auto 0; font-size: 22px; line-height: 26px; }
  .card .btn { margin-top: 23px; }
  .carousel__slide:not(:last-child) > .card:nth-child(2)::before { top: 84px; }
  .carousel__slide:not(:last-child) > .card:nth-child(2) .card__bubble { height: 261px; }
  .carousel__slide:not(:last-child) > .card:nth-child(2) .card__photo { top: 4px; }
  .carousel__slide:not(:last-child) > .card:nth-child(2) .card__title { top: -11px; }

  .carousel__controls { display: block; position: absolute; inset: 0; pointer-events: none; }
  .carousel__controls > * { pointer-events: auto; }
  .carousel__arrow {
    position: absolute;
    bottom: 3px;
    width: 52px; height: 51px;
    padding: 0; border: 0;
    background: transparent no-repeat 0 0;
    cursor: pointer;
    opacity: .9;
  }
  .carousel__arrow--prev { left: calc(50% - 109px); background-image: url("../images/balra-nyil-3-1.png"); }
  .carousel__arrow--next { left: calc(50% + 54px); background-image: url("../images/jobbra-nyil-3-1.png"); }
  .carousel__arrow:hover, .carousel__arrow:focus-visible { opacity: 1; filter: drop-shadow(0 0 2px #999); }
  .carousel__dots { position: absolute; left: 50%; bottom: 20px; display: flex; gap: 11px; transform: translateX(-50%); }
  .carousel__dots button { width: 11px; height: 11px; padding: 0; border: 1px solid #464646; border-radius: 50%; background: var(--white); cursor: pointer; }
  .carousel__dots button.is-active { background: #464646; }

  /* rólam */
  .about { padding: 36px 0 35px; }
  .about__inner { width: min(var(--container), 100%); margin: 0 auto; }
  .about__title { font-size: 35px; }
  .about__grid { display: grid; grid-template-columns: 1fr 326px 1fr; grid-template-rows: 140px 140px 70px; justify-content: center; margin-top: 56px; }
  .about__photo { grid-column: 2; grid-row: 1 / 4; width: 326px; height: 326px; }
  .about__facts { display: contents; }
  .about__facts li { width: 295px; height: 140px; margin: 0 auto; }
  .about__facts li::after { top: 109px; }
  .about__facts li:nth-child(1) { grid-column: 1; grid-row: 1; }
  .about__facts li:nth-child(2) { grid-column: 1; grid-row: 2; }
  .about__facts li:nth-child(4) { grid-column: 1; grid-row: 3; height: 70px; }
  .about__facts li:nth-child(3) { grid-column: 3; grid-row: 1; }
  .about__facts li:nth-child(5) { grid-column: 3; grid-row: 2; }
  .about__facts li:nth-child(6) { grid-column: 3; grid-row: 3; height: 70px; }
  .about__facts li:nth-child(4)::after, .about__facts li:nth-child(6)::after { display: none; }
  .about__quote { display: block; width: 646px; height: 97px; margin: 47px auto 0; }
  .btn--studio { margin-top: 42px; }

  /* aktuális + kapcsolat */
  .visit { --pw: 618px; }
  .visit__photo { position: absolute; z-index: 0; top: calc(var(--pw) * -1.055); left: max(10px, calc(50% - 470px)); width: var(--pw); height: auto; pointer-events: none; }
  .current { position: relative; min-height: 654px; padding: 105px 0 40px; }
  .current__inner { width: min(var(--container), 100%); margin: 0 auto; }
  .current__title { width: 393px; margin: 0 auto; font-size: 35px; }
  .current .btn--small { margin-top: 29px; }
  .current__note { margin: 83px 0 0 172px; }
  .current__link { margin: 24px 0 0 172px; }
  /* ha van kurzuslista, a lista és az alatta lévő szövegek a fotó körvonala mellett, jobbra kezdődnek */
  .courses { margin-left: 383px; }
  .courses:not([hidden]) ~ .current__note, .courses:not([hidden]) ~ .current__link { margin-left: 383px; }
  .courses:not([hidden]) + .current__note { margin-top: 44px; }

  .contact { height: 754px; padding-top: 306px; }
  .contact__inner { width: min(var(--container), 100%); margin: 0 auto; }
  .contact__title, .contact__details { width: 420px; margin-left: 442px; }
  .contact__details { margin-top: 20px; font-size: 24px; }
  .contact__name { font-size: 26px; }
  .contact__address { margin-top: 31px; font-size: 26px; }

  /* lábléc */
  /* lábléc: három oszlop (logó + ikonok | jogi szöveg | menü), rögzített magasság és abszolút pozíciók nélkül,
     így nagyobb betűméretnél / nagyításnál sem lóg ki és nem tördelődik csúnyán */
  .site-footer__inner { display: grid; grid-template-columns: auto auto 1fr; column-gap: 34px; align-items: start; width: min(var(--container), 100%); margin: 0 auto; padding: 20px 16px 24px; }
  .site-footer__brand { display: block; }
  .site-footer__brand .social { margin-top: 19px; }
  .site-footer__copy { margin-top: 4px; line-height: 1.5; text-align: left; white-space: nowrap; }
  .site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 26px; row-gap: 12px; margin-top: 2px; white-space: nowrap; }
}

/* 931–960 px: a tartalom a nézetablakhoz igazodik, a „Rólam” blokk szövege 11 px-szel lejjebb kezdődik */
@media (min-width: 931px) and (max-width: 1000px) {
  /* keskenyebb asztali szélességen szorosabb lábléc, hogy a menü egy sorban maradjon */
  .site-footer__inner { column-gap: 24px; }
  .site-footer__nav { column-gap: 18px; }
}
@media (min-width: 931px) and (max-width: 960px) {
  .about { padding: 47px 0 24px; }
}

/* 931–979 px: a fotó itt a bal szélhez simul, ezért a szöveg kicsit jobbra kerül */
@media (min-width: 931px) and (max-width: 979px) {
  .current__note, .current__link { margin-left: 182px; }
  .current__title { position: relative; left: 14px; }
}

/* Széles képernyő: a nyilak a tartalmon kívül, oldalt ülnek */
@media (min-width: 1100px) {
  .carousel__arrow { top: 284px; bottom: auto; }
  .carousel__arrow--prev { left: -65px; }
  .carousel__arrow--next { left: 964px; }
}

/* 961 px felett nagyobb főkép */
@media (min-width: 961px) {
  .hero { background-image: url("../images/hero-wide.webp"), url("../images/alap.jpg"); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .carousel:not(.is-revealed) .card__photo { transform: none; }
  .carousel .card__photo, .carousel__slide.is-entering .card__photo { animation: none !important; }
  .carousel__slide { transition: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   TARTALMI OLDALAK (táncstílusok, órarend, stúdió …)
   ========================================================================== */
body.subpage { display: flex; flex-direction: column; min-height: 100vh; }
.subpage main { flex: 1 0 auto; padding-top: var(--header-h); }
.subpage .site-footer { flex: none; }

.page { font-size: 21px; line-height: 1.2; }
.wrap { width: min(960px, 100%); margin: 0 auto; padding: 0 10px; }

.page-title {
  padding-top: 33px;
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  color: var(--purple);
  text-align: center;
  max-width: 474px;
  margin-left: auto;
  margin-right: auto;
}

.section--light { color: var(--brown); }
.section--panel { padding: 20px 0 27px; background: var(--brown); color: var(--white); }
.section--light:first-child { padding-bottom: 18px; }
.section--band { padding: 12px 0; background: var(--brown-dark); color: var(--grey-link); }
.section--band + .section--light { padding-top: 12px; }
.section--panel + .section--light { padding-top: 12px; }
.section--panel .btn { background: var(--brown-dark); }
.section--panel .btn:hover { background: var(--purple); }
.section--light:last-child { padding-bottom: 19px; }

.label { margin-bottom: 25px; }
.gap-1 { margin-top: 25px; }
.gap-2 { margin-top: 50px; }
.gap-3 { margin-top: 75px; }
.gap-4 { margin-top: 100px; }
.center { text-align: center; }
.subhead { font-size: 26px; font-weight: 700; line-height: 31px; text-transform: uppercase; }
.grey { color: var(--grey); }
.fs-20 { font-size: 20px; }
.fs-23 { font-size: 23px; }
.fs-26 { font-size: 26px; }

.dash-list li::before { content: "- "; }

.actions { margin-top: 30px; text-align: center; }
.back { margin-top: 19px; font-size: 26px; line-height: 31px; text-align: center; }
.back a { text-decoration: underline; }
.back a:hover { color: var(--purple); }
.section--panel .back a:hover { color: #d9c7d9; }

/* kép + szöveg */
.media { display: flex; align-items: flex-start; gap: 42px; margin-top: 50px; }
.media--flip { flex-direction: row-reverse; }
.media__img { flex: none; max-width: 100%; height: auto; }
.media__text { flex: 1; min-width: 0; }
.section--panel .media { margin-top: 0; }
.section--panel .media + .media, .section--light .media + .media { margin-top: 30px; }

.figure { display: flex; justify-content: center; margin-top: 22px; }
.figure__img { max-width: 100%; height: auto; }

/* képsorok */
.gallery { margin: 22px 0; }
.gallery__img { max-width: 100%; height: auto; }
.gallery--round { display: flex; justify-content: space-between; margin: 46px 10px 21px; }
.gallery--ring { display: flex; justify-content: center; gap: 22px; margin: 46px 0 21px; }
.gallery--ring .gallery__img { width: 244px; height: 253px; border: 6px solid var(--white); border-radius: 50%; object-fit: cover; }
.gallery--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 465px)); gap: 10px 7px; justify-content: center; }
.gallery--grid .gallery__img { width: 100%; height: auto; }

/* órarend */
.schedule { width: min(502px, 100%); margin: 0 auto; padding: 44px 0 0; text-align: center; }
.schedule__day { margin: 50px 0 25px; font-size: 21px; font-weight: 700; line-height: 25px; }
.schedule__day:first-child { margin-top: 0; }

/* --- mobil ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .wrap { width: min(318px, calc(100% - 40px)); padding: 0; }
  .page-title { padding-top: 31px; }
  .media, .media--flip { display: block; margin-top: 14px; }
  .media__img { display: block; width: min(317px, 100%); margin: 0 auto 14px; }
  .section--panel .media__img { margin-top: 0; }
  .gallery--round { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 26px 0 19px; }
  .gallery--round .gallery__img { width: 265px; }
  .gallery--ring { flex-direction: column; align-items: center; gap: 20px; margin: 26px 0 19px; }
  .gallery--ring .gallery__img { width: 259px; height: 263px; }
  .gallery--grid { grid-template-columns: 1fr; gap: 10px; }
  .gallery--grid .gallery__img { width: 100%; }
  .section--panel { padding-bottom: 20px; }
}

/* --- tablet --------------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 930px) {
  .wrap { width: min(620px, 100%); padding: 0; }
  .page-title { padding-top: 31px; }
  .media, .media--flip { display: block; margin-top: 14px; }
  .media__img { display: block; margin: 0 auto 14px; }
  .section--panel .media__img { margin-top: 0; }
  .gallery--round { justify-content: center; gap: 24px; margin: 15px 0 25px; }
  .gallery--round .gallery__img { width: 191px; }
  .gallery--ring { gap: 24px; margin: 15px 0 25px; }
  .gallery--ring .gallery__img { width: 191px; height: 198px; }
  .gallery--grid { grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
  .gallery--grid .gallery__img { width: 100%; }
}

/* ==========================================================================
   Süti-hozzájárulási sáv (Google Analytics méréshez)
   ========================================================================== */
.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--brown-dark);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.consent p { margin: 0; flex: 1 1 260px; font-size: 15px; line-height: 1.5; }
.consent a { color: var(--white); text-decoration: underline; }
.consent a:hover { color: var(--purple-alt); }
.consent__actions { display: flex; flex: none; gap: 10px; }
.consent__btn {
  min-width: 0;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: 10px;
  background: var(--white);
  color: var(--brown-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.consent__btn:hover, .consent__btn:focus-visible { background: var(--purple-alt); border-color: var(--purple-alt); color: var(--white); }
.consent__btn--ghost { background: transparent; color: var(--white); }
.consent__btn--ghost:hover, .consent__btn--ghost:focus-visible { background: rgba(255, 255, 255, .12); border-color: var(--white); color: var(--white); }

@media (max-width: 480px) {
  .consent { flex-direction: column; align-items: stretch; text-align: center; }
  .consent p { flex: 0 1 auto; }
  .consent__actions { justify-content: center; }
}


/* ==========================================================================
   Jelentkezési űrlap (jelentkezes.php)
   ========================================================================== */
.form-wrap { width: min(700px, 100% - 32px); margin: 0 auto; padding: 24px 0 30px; text-align: left; }
.form-hero { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; margin: 0 0 22px; border-radius: 14px; background: #ece6e6; }
.form-hero--square { width: min(100%, 460px); aspect-ratio: 1 / 1; margin-left: auto; margin-right: auto; }
.form-title { max-width: none; margin: 0 0 8px; font-size: 30px; line-height: 1.22; text-align: left; }
.form-meta { margin: 0 0 14px; font-size: 19px; color: var(--grey); }
.form-info { margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid #e3dcdc; font-size: 18px; line-height: 1.5; color: var(--brown); }
.form-info p { margin: 0 0 .15em; min-height: 1.5em; }
.form-info ul, .form-info ol { margin: 0 0 .5em; padding-left: 1.4em; }
.form-info ul { list-style: disc; }
.form-info ol { list-style: decimal; }
.form-info li { margin: 0 0 .2em; }
.form-info a, .apply a { color: var(--purple); text-decoration: underline; }
.form-note { margin: 0 0 20px; font-size: 19px; }
.notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; font-size: 17px; line-height: 1.45; }
.notice--warn { color: #6b4500; background: #fff4dc; border: 1px solid #ecd3a3; }
.notice--error { color: #8c1f24; background: #fdeeee; border: 1px solid #eec0c2; }

.apply .field { margin: 0 0 20px; }
.apply label { display: block; margin: 0 0 6px; font-size: 19px; }
.apply .req { color: #a1262b; }
.apply .opt { font-size: 15px; color: var(--grey); }
.apply input[type="text"], .apply input[type="email"], .apply input[type="tel"] {
  display: block; width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #b9acac; border-radius: 10px;
  background: var(--white); color: var(--brown); font: inherit; font-size: 19px;
}
.apply input:focus-visible { outline: 3px solid #b48bb5; outline-offset: 1px; border-color: var(--purple); }
.apply input[aria-invalid="true"] { border-color: #a1262b; background: #fffafa; }
.field-hint { margin: 6px 0 0; font-size: 15px; color: var(--grey); }
.field-error { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: #a1262b; }
.apply .check { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 16px; line-height: 1.45; cursor: pointer; }
.apply .check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brown); }
.apply__submit { width: 100%; min-width: 0; font-family: inherit; height: 56px; margin-top: 6px; font-size: 22px; line-height: 52px; cursor: pointer; }
.apply__submit:disabled { opacity: .6; cursor: default; }
/* a lemondási oldal gombja: a gomb is az oldal betűtípusát használja, mint a hivatkozás-gombok */
.cancel__submit { font-family: inherit; cursor: pointer; }
/* a lemondási oldal két gombja: egymás mellett vagy egymás alatt is szellősen, rendes távolsággal */
.cancel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 26px 0 10px; text-align: center; }
.form-success .form-title { text-align: center; }
.form-success__icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--purple); color: var(--white); font-size: 44px; line-height: 76px; }
.form-success p { font-size: 19px; }
.form-success .notice { text-align: left; }
.course__full { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: #8a5a00; }

@media (max-width: 640px) {
  .form-title { font-size: 25px; }
  .form-info { font-size: 16px; }
  .form-meta, .form-note { font-size: 17px; }
  .apply label { font-size: 17px; }
  .apply input[type="text"], .apply input[type="email"], .apply input[type="tel"] { font-size: 17px; }
}


/* --- Jelentkezési űrlap: részvételi díj és fizetési mód (2026-10-15) --- */
.apply .pay { padding: 16px 18px; border: 1px solid #e6d9df; border-radius: 10px; background: #faf7f5; }
.pay__fee { margin: 0 0 12px; font-size: 18px; line-height: 1.45; }
.pay__choice { margin: 0; padding: 0; border: 0; }
.pay__choice legend { margin-bottom: 8px; font-size: 17px; }
.apply .pay__opt { padding: 10px 12px; border: 1px solid #e6d9df; border-radius: 8px; background: var(--white); }
.apply .pay__opt + .pay__opt { margin-top: 8px; }
.apply .pay__opt:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.pay .field-hint { margin: 0; }
.pay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.pay-actions form { margin: 0; }
.pay-actions .btn { font-family: inherit; cursor: pointer; }
.form-success__icon--warn { background: #b07a2a; }
