:root{
  --bg:#000000;
  --bg-warm:#1A1A1A;
  --ink:#FFFFFF;
  --ink-soft:rgba(232,222,199,0.66);
  --paper:#2D2D2D;
  --copper:#C08D51;
  --copper-deep:#86562B;
  --gold:#D7AC77;
  --dark:#000000;
  --line: rgba(232,222,199,0.14);
  --line-strong: rgba(232,222,199,0.26);

  /* ---- Люкс-палітра: графіт + рідке золото ---- */
  --bg-main:#000000;
  --bg-card: rgba(24,25,30,0.72);          /* напівпрозоре скло карток */
  --bg-card-hover: rgba(30,31,37,0.85);
  --text-main:#FFFFFF;
  --text-muted:#C9BFA4;

  --gold-light:#D7AC77;   /* 0% зі скріншота */
  --gold-mid:#C08D51;     /* 70% зі скріншота */
  --gold-deep:#86562B;    /* 100% зі скріншота */

  /* Metallic gold sweep — used on buttons and gradient text so gold reads
     as polished metal (light catching an edge) rather than a flat swatch. */
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-mid) 70%, var(--gold-deep) 100%);
  --gold-gradient-hover: linear-gradient(135deg, #E4C093 0%, #C08D51 70%, #86562B 100%);
  /* розтягнутий варіант для hover-переливу металу (background-size:220%) */
  --gold-gradient-sheen: linear-gradient(115deg, var(--gold-deep) 0%, var(--gold-mid) 35%, var(--gold-light) 60%, var(--gold-mid) 82%, var(--gold-deep) 100%);
  /* ледь помітна золото-платинова рамка-хайлайн для скляних карток */
  --gold-hairline: linear-gradient(135deg, rgba(215,172,119,0.55) 0%, rgba(166,166,166,0.15) 35%, rgba(192,141,81,0.4) 65%, rgba(215,172,119,0.5) 100%);

  --glass-blur: 18px;
  --shadow-card: 0 30px 60px -20px rgba(0,0,0,0.65), 0 2px 6px rgba(0,0,0,0.35);
  --shadow-card-hover: 0 40px 80px -18px rgba(0,0,0,0.75), 0 4px 10px rgba(0,0,0,0.4);
  --glow-gold-soft: 0 0 40px rgba(192,141,81,0.18);

  /* Deep surface gradients — every "flat" dark tone gets a subtle diagonal
     falloff plus a faint gold glow so panels feel lit rather than inert. */
  --surface-black: #000000;
  --surface-charcoal: #000000;
  --surface-graphite: #000000;

  /* ---- Світлі секції — чисто білий, чергуються з чорними ---- */
  --surface-ivory: #FFFFFF;
  --ink-dark:#17150F;
  --ink-dark-soft:rgba(23,21,15,0.62);
  --line-dark: rgba(23,21,15,0.14);
  --line-dark-strong: rgba(23,21,15,0.26);
  --bg-card-lt: rgba(255,255,255,0.55);
  --bg-card-lt-hover: rgba(255,255,255,0.75);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background-color:var(--bg-main);
  color:var(--ink);
  font-family:'Times New Roman', Times, serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--copper);color:#fff;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
:focus-visible{outline:2px solid var(--gold-light);outline-offset:3px;}

.eyebrow{
  font-family:'Times New Roman', Times, serif;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--copper-deep);
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(192,141,81,0.08);
  border:1px solid rgba(192,141,81,0.25);
  padding:6px 14px;
  border-radius:100px;
}
.eyebrow::before{
  content:'';
  width:6px;height:6px;border-radius:50%;
  background:var(--copper);
  display:inline-block;
}

h1,h2,h3{
  font-family:'Times New Roman', Times, serif;
  font-weight:700;
  line-height:1.04;
  letter-spacing:-0.01em;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 40px;
}
@media (max-width:640px){ .wrap{ padding:0 22px; } }
@media (max-width:380px){ .wrap{ padding:0 16px; } }

/* ---------- top bar ---------- */
header.topbar{
  position:fixed;
  top:0;left:0;right:0;
  z-index:200;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:26px 40px;
}
@media (max-width:900px){
  header.topbar{ padding:18px 22px; }
}
@media (max-width:380px){
  header.topbar{ padding:16px; }
  .logo-img{ height:36px; }
  .book-btn{ padding:9px 16px; font-size:12px; }
}
.logo{
  display:flex;
  align-items:center;
}
.logo-img{
  height:44px;
  width:auto;
  display:block;
}
.topbar-links{
  display:flex;
  gap:10px;
  font-size:13.5px;
  font-weight:600;
}
.topbar-links a{
  opacity:.9;
  padding:9px 18px;
  border-radius:100px;
  color:var(--ink-soft);
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid transparent;
  background-image:linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.55)), var(--gold-hairline);
  background-origin:border-box;
  background-clip:padding-box, border-box;
  transition:opacity .25s ease, background .25s ease, transform .25s ease, color .25s ease;
}
.topbar-links a:hover{
  opacity:1;
  color:var(--ink);
  background-image:linear-gradient(rgba(192,141,81,0.14),rgba(192,141,81,0.14)), var(--gold-hairline);
  transform:translateY(-1px);
}
.book-btn{
  background-image:var(--gold-gradient-sheen);
  background-size:220% 220%;
  background-position:0% 50%;
  color:var(--dark);
  padding:11px 22px;
  border-radius:100px;
  font-size:13px;
  font-weight:700;
  box-shadow:0 10px 22px -8px rgba(192,141,81,0.5);
  transition:background-position .6s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.book-btn:hover{background-position:100% 50%; box-shadow:0 14px 30px -8px rgba(192,141,81,0.65);}
@media (max-width:900px){
  .topbar-links{display:none;}
}

/* ---------- hero ---------- */
.hero{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:120px;
  padding-bottom:170px;
  position:relative;
  background:var(--surface-black);
}
.hero .wrap{ display:grid; grid-template-columns:1fr; gap:40px; }
@media (max-width:640px){
  .hero{ padding-top:110px; padding-bottom:70px; min-height:auto; }
}
.hero-eyebrow-row{ display:flex; justify-content:center; margin-bottom:26px; }
.hero h1{
  text-align:center;
  font-size:clamp(40px,7.2vw,92px);
  max-width:1000px;
  margin:0 auto;
}
.hero h1 .accent-word{
  background:var(--gold-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 30px rgba(192,141,81,0.3));
}
.hero-underline{ display:block; margin:26px auto 0; width:min(90%,560px); }
.hero-sub{
  text-align:center;
  font-family:'Times New Roman', Times, serif;
  font-size:14px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-top:30px;
}
.hero-lede{
  text-align:center;
  max-width:560px;
  margin:22px auto 0;
  font-size:17px;
  line-height:1.6;
  color:var(--ink-soft);
}
.hero-ctas{
  display:flex; justify-content:center; gap:14px;
  margin-top:38px; flex-wrap:wrap;
}
.btn-primary,.btn-ghost{
  padding:16px 30px;
  border-radius:100px;
  font-weight:700;
  font-size:14.5px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  cursor:pointer;
  transition:transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}
.btn-primary{
  color:var(--dark);
  background-image:var(--gold-gradient-sheen);
  background-size:220% 220%;
  background-position:0% 50%;
  box-shadow:0 14px 30px -10px rgba(192,141,81,0.55);
  transition:background-position .6s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1);
}
.btn-primary:hover{transform:translateY(-2px); background-position:100% 50%; box-shadow:0 20px 40px -10px rgba(192,141,81,0.7);}
.btn-ghost{
  background:transparent;
  border:1.5px solid rgba(192,141,81,0.5);
  color:var(--ink);
}
.btn-ghost::before{
  content:'';
  position:absolute; inset:0; z-index:-1;
  background:radial-gradient(circle at 50% 50%, rgba(192,141,81,0.35), rgba(192,141,81,0) 70%);
  opacity:0; transform:scale(.6);
  transition:opacity .5s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.btn-ghost:hover{border-color:rgba(215,172,119,0.9);}
.btn-ghost:hover::before{opacity:1; transform:scale(1.4);}

/* floating photo cards in hero */
.hero-float{
  position:absolute;
  border-radius:18px;
  box-shadow:0 20px 45px -14px rgba(0,0,0,0.6), 0 46px 80px -24px rgba(0,0,0,0.75), 0 0 0 1px rgba(192,141,81,0.14);
  overflow:hidden;
  opacity:0;
  animation:floatIn 1s ease forwards;
}
.hero-float img{width:100%;height:100%;object-fit:cover;filter:saturate(0.85) contrast(1.05);}
@keyframes floatIn{
  from{opacity:0;transform:translateY(28px) rotate(var(--rot,0deg));}
  to{opacity:1;transform:translateY(0) rotate(var(--rot,0deg));}
}
.f1{ width:290px;height:360px; left:max(4%, calc(50% - 920px)); top:18%; --rot:-7deg; animation-delay:.15s;}
.f2{ width:245px;height:310px; right:max(5%, calc(50% - 920px)); top:10%; --rot:6deg; animation-delay:.35s;}
.f3{ width:235px;height:300px; right:max(1%, calc(50% - 860px)); bottom:5%; --rot:-4deg; animation-delay:.55s;}
.f4{ width:235px;height:290px; left:max(2%, calc(50% - 860px)); bottom:7%; --rot:5deg; animation-delay:.75s;}
.hero-float .label{
  position:absolute;bottom:12px;left:14px;right:14px;
  font-family:'Times New Roman', Times, serif;
  font-size:10.5px;
  letter-spacing:.06em;
  color:#fff;
  text-shadow:0 1px 6px rgba(0,0,0,0.5);
}
@media (max-width:1000px){ .hero-float{display:none;} }

.scroll-hint{
  position:absolute;
  bottom:110px; left:40px;
  display:flex; align-items:center; gap:10px;
  font-family:'Times New Roman', Times, serif;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-soft);
}
.scroll-hint .dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--ink);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:.3}50%{opacity:1}}
@media (max-width:700px){ .scroll-hint{display:none;} }

/* ---------- section shell ---------- */
section{ padding:130px 0; position:relative; }
@media (max-width:640px){ section{ padding:70px 0; } }
.section-head{ max-width:760px; margin-bottom:70px; }
.section-head .eyebrow{margin-bottom:22px;}
.section-head h2{ font-size:clamp(30px,4.4vw,52px); }
.section-head p{
  margin-top:20px; font-size:16px; line-height:1.65;
  color:var(--ink-soft); max-width:620px;
}
.reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{opacity:1;transform:translateY(0);}

/* ---------- about ---------- */
.about{
  background:var(--surface-ivory);
  color:var(--ink-dark);
  --ink:var(--ink-dark);
  --ink-soft:var(--ink-dark-soft);
  --line:var(--line-dark);
  --line-strong:var(--line-dark-strong);
  --bg-card:var(--bg-card-lt);
  --bg-card-hover:var(--bg-card-lt-hover);
}
.about-grid{
  display:grid; grid-template-columns:0.85fr 1.15fr; gap:70px; align-items:center;
}
.about-photo{ border-radius:22px; overflow:hidden; aspect-ratio:0.8/1; box-shadow:0 20px 40px -14px rgba(0,0,0,0.6), 0 55px 90px -24px rgba(0,0,0,0.75), 0 0 0 1px rgba(192,141,81,0.14); }
.about-photo img{width:100%;height:100%;object-fit:cover;}
.about-copy .eyebrow{margin-bottom:22px;}
.about-copy h2{ font-size:clamp(28px,3.6vw,44px); margin-bottom:22px; }
.about-copy p{ font-size:17px; line-height:1.75; color:var(--ink-soft); margin-bottom:16px; }
.values-list{ list-style:none; display:flex; flex-direction:column; border-top:1px solid var(--line); margin-top:28px; }
.values-list li{
  padding:18px 0; border-bottom:1px solid var(--line);
  display:flex; align-items:baseline; gap:18px;
  font-family:'Times New Roman', Times, serif; font-weight:500; font-size:15.5px;
}
.values-list li span.n{
  font-family:'Times New Roman', Times, serif; font-size:12px; color:var(--copper); min-width:22px;
}
@media (max-width:900px){ .about-grid{grid-template-columns:1fr;} }

/* ---------- big scroll numbers ---------- */
.numbers{ background:var(--surface-charcoal); }
.numbers > .wrap > .eyebrow{margin-bottom:50px;}
.number-block{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  align-items:center;
  gap:40px;
  padding:46px 0;
  border-top:1px solid var(--line);
}
.number-block:last-child{border-bottom:1px solid var(--line);}
@media (max-width:640px){
  .number-block{ grid-template-columns:1fr; gap:10px; padding:32px 0; text-align:left; }
  .big-num{ font-size:clamp(52px,22vw,88px); }
}
.big-num{
  font-family:'Times New Roman', Times, serif;
  font-weight:800;
  font-size:clamp(64px,10vw,148px);
  line-height:0.9;
  letter-spacing:-0.02em;
  background:var(--gold-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 26px rgba(192,141,81,0.25));
}
.num-caption h3{
  font-family:'Times New Roman', Times, serif;
  font-weight:800;
  font-size:20px;
  margin-bottom:10px;
}
.num-caption p{
  font-size:15px; line-height:1.6; color:var(--ink-soft); max-width:380px;
}
@media (max-width:800px){
  .number-block{grid-template-columns:1fr;gap:14px;}
}

/* ---------- advantages ---------- */
.advantages{
  background:var(--surface-ivory);
  color:var(--ink-dark);
  --ink:var(--ink-dark);
  --ink-soft:var(--ink-dark-soft);
  --line:var(--line-dark);
  --line-strong:var(--line-dark-strong);
  --bg-card:var(--bg-card-lt);
  --bg-card-hover:var(--bg-card-lt-hover);
}
.adv-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.adv-card{
  position:relative;
  background:#000000;
  border-radius:20px;
  padding:40px 34px; min-height:220px;
  display:flex; flex-direction:column; justify-content:space-between;
  box-shadow:var(--shadow-card);
  border:1px solid transparent;
  background-image:linear-gradient(#000000,#000000), var(--gold-hairline);
  background-origin:border-box;
  background-clip:padding-box, border-box;
  color:#FFFFFF;
  transition:transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1);
}
.adv-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-card-hover), var(--glow-gold-soft);
}
.adv-card .num{ font-family:'Times New Roman', Times, serif; font-size:12px; color:#FFFFFF; }
.adv-card h3{ color:#FFFFFF; font-size:19px; margin:26px 0 10px; font-weight:600; }
.adv-card p{ color:#FFFFFF; font-size:14.5px; line-height:1.55; }
@media (max-width:900px){ .adv-grid{grid-template-columns:1fr;} }
@media (max-width:420px){ .adv-card{ padding:30px 24px; min-height:auto; } }

/* ---------- courses (pinned scroll image reveal) ---------- */
.courses{
  background:var(--bg);
  overflow:hidden;
}
.courses .section-head{ margin-bottom:10px; }

.ca-arch{
  display:flex;
  gap:60px;
  justify-content:space-between;
  max-width:1100px;
  margin:0 auto;
  padding:0 40px;
}
.ca-arch__left{
  display:flex;
  flex-direction:column;
  min-width:300px;
}
.ca-arch__info{
  max-width:420px;
  height:100vh;
  display:grid;
  place-items:center;
}
.ca-header{
  font-family:'Times New Roman', Times, serif;
  font-weight:700;
  font-size:clamp(28px,3.4vw,40px);
  letter-spacing:-0.01em;
  line-height:1.08;
}
.ca-desc{
  color:var(--ink-soft);
  font-size:16.5px;
  line-height:1.6;
  margin-block:14px 26px;
}
.ca-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.ca-link{
  text-decoration:none;
  padding:14px 20px;
  color:#121212;
  border-radius:100px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  width:fit-content;
  cursor:pointer;
  border:none;
  font-family:'Times New Roman', Times, serif;
  font-weight:700;
  font-size:13.5px;
  background-image:var(--gold-gradient-sheen) !important;
  background-size:220% 220%;
  background-position:0% 50%;
  box-shadow:0 10px 22px -9px rgba(192,141,81,0.5);
  transition:transform .25s ease, background-position .6s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, background .25s ease;
}
.ca-link:hover{ transform:translateY(-2px); background-position:100% 50%; box-shadow:0 16px 30px -9px rgba(192,141,81,0.65); }
.ca-link--ghost{
  color:var(--ink);
  background-image:none !important;
  background:transparent !important;
  border:1.5px solid rgba(192,141,81,0.5) !important;
  box-shadow:none;
}
.ca-link--ghost:hover{
  background:rgba(192,141,81,0.08) !important;
  border-color:rgba(215,172,119,0.8) !important;
  box-shadow:none;
}

.ca-arch__right{
  flex-shrink:1;
  height:100vh;
  width:100%;
  max-width:520px;
  position:relative;
  display:flex;
  flex-direction:column;
}
.ca-img-wrapper{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  height:600px;
  width:400px;
  max-width:100%;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 40px -14px rgba(0,0,0,0.6), 0 55px 90px -24px rgba(0,0,0,0.8), 0 0 0 1px rgba(192,141,81,0.14);
}
.ca-img-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 25%;
  filter:saturate(0.92);
}

@media (max-width:900px){
  .ca-arch{ gap:30px; padding:0 20px; }
}
@media (max-width:768px){
  .ca-arch{
    display:flex;
    flex-direction:column;
    gap:0;
    padding:110px 20px 0;
  }
  /* Картинка йде першою у вікні перегляду, хоч у розмітці текст (ca-arch__left)
     стоїть раніше за фото (ca-arch__right) — просто змінюємо візуальний порядок. */
  .ca-arch__right{ order:-1; }

  .ca-arch__left,
  .ca-arch__right{
    display:block;
    position:relative;
  }
  .ca-arch__right{
    height:auto;
    aspect-ratio:853/1280;
    width:100%;
    max-width:320px;
    margin:0 auto 28px;
  }
  .ca-arch__right .ca-img-wrapper{
    position:absolute; inset:0;
    top:0; left:0;
    transform:none;
    height:100%; width:100%;
    max-width:none;
    opacity:0;
  }
  .ca-arch__right .ca-img-wrapper:first-child{ opacity:1; }
  .ca-arch__left{
    min-height:280px;
  }
  .ca-arch__left .ca-arch__info{
    position:absolute; inset:0;
    height:auto;
    max-width:100%;
    padding:0;
    display:block;
    opacity:0;
  }
  .ca-arch__left .ca-arch__info:first-child{ opacity:1; }
}
@media (max-width:560px){
  .ca-arch{ padding:100px 16px 0; }
  .ca-arch__right{ max-width:270px; }
  .ca-arch__right .ca-img-wrapper{ border-radius:14px; }
}


/* ---------- teacher ---------- */
.teacher{
  background:var(--surface-ivory);
  color:var(--ink-dark);
  --ink:var(--ink-dark);
  --ink-soft:var(--ink-dark-soft);
  --line:var(--line-dark);
  --line-strong:var(--line-dark-strong);
  --bg-card:var(--bg-card-lt);
  --bg-card-hover:var(--bg-card-lt-hover);
}
.teacher-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:70px; align-items:center; }
.teacher-portrait{ border-radius:22px; overflow:hidden; aspect-ratio:4/5; position:relative; box-shadow:0 20px 40px -14px rgba(0,0,0,0.6), 0 55px 90px -24px rgba(0,0,0,0.75), 0 0 0 1px rgba(192,141,81,0.14); }
.teacher-portrait img{width:100%;height:100%;object-fit:cover;}
.teacher-portrait::after{
  content:'FH'; position:absolute; right:22px; bottom:22px;
  font-family:'Times New Roman', Times, serif; font-weight:800; font-size:15px;
  color:var(--gold-light);
  background:rgba(17,18,21,0.55);
  backdrop-filter:blur(10px);
  border:1px solid rgba(192,141,81,0.5);
  padding:6px 12px; border-radius:100px;
}
.teacher-copy .role{ font-family:'Times New Roman', Times, serif; font-size:13px; letter-spacing:.05em; color:var(--copper-deep); margin-bottom:14px; }
.teacher-copy h2{ font-size:clamp(28px,3.6vw,42px); margin-bottom:20px; }
.teacher-copy p{ font-size:16.5px; line-height:1.75; color:var(--ink-soft); margin-bottom:16px; }
.teacher-stats{ display:flex; gap:40px; margin-top:30px; padding-top:30px; border-top:1px solid var(--line); }
.teacher-stats div b{ font-family:'Times New Roman', Times, serif; font-size:30px; display:block; }
.teacher-stats div span{ font-size:13px; color:var(--ink-soft); }
.teacher-award{
  display:flex; align-items:center; gap:18px;
  margin-top:26px; padding:16px 20px 16px 16px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(192,141,81,0.08), rgba(192,141,81,0.02));
  border:1px solid rgba(192,141,81,0.28);
  box-shadow:0 12px 30px -16px rgba(0,0,0,0.35);
}
.teacher-award__photo{
  flex:0 0 auto; width:64px; height:64px; border-radius:12px; overflow:hidden;
  border:1px solid rgba(192,141,81,0.4);
  box-shadow:0 8px 18px -8px rgba(0,0,0,0.5);
}
.teacher-award__photo img{ width:100%; height:100%; object-fit:cover; }
.teacher-award__text{ display:flex; flex-direction:column; gap:4px; }
.teacher-award__label{
  font-family:'Times New Roman', Times, serif; font-weight:700; font-size:15px;
  letter-spacing:.03em; color:var(--copper-deep);
}
.teacher-award__text p{ margin:0; font-size:13.5px; line-height:1.4; color:var(--ink-soft); }
@media (max-width:560px){
  .teacher-award{ justify-content:center; text-align:left; }
}
@media (max-width:900px){ .teacher-grid{grid-template-columns:1fr; gap:36px;} }
@media (max-width:560px){
  .teacher{ padding-top:70px; padding-bottom:70px; }
  .teacher-portrait{ aspect-ratio:3/4; max-width:320px; margin:0 auto; }
  .teacher-copy{ text-align:center; }
  .teacher-copy .role{ justify-content:center; }
  .teacher-copy h2{ font-size:clamp(24px,7vw,32px); }
  .teacher-copy p{ font-size:15px; }
  .teacher-stats{ justify-content:center; flex-wrap:wrap; gap:26px 34px; text-align:center; }
  .teacher-stats div b{ font-size:24px; }
  .teacher-stats div span{ font-size:12px; }
}

/* ---------- gallery ---------- */
.gallery{background:var(--surface-black);}
/* На десктопі (>768px) блок повністю прихований — показуємо його лише на
   мобільних пристроях, як просив клієнт. */
@media (min-width:769px){
  .gallery{ display:none; }
}
.gal-marquee-wrap{
  overflow:hidden; margin-top:10px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.gal-track{ display:flex; gap:20px; width:max-content; animation:scrollX 34s linear infinite; }
.gal-track:hover{animation-play-state:paused;}
@keyframes scrollX{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
.gal-card{
  width:240px;height:300px; border-radius:16px; flex-shrink:0;
  position:relative; overflow:hidden; display:flex; align-items:flex-end; padding:16px;
  box-shadow:0 16px 32px -12px rgba(0,0,0,0.6), 0 40px 70px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(192,141,81,0.14);
}
.gal-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(0.9); }
.gal-card span{
  position:relative; font-family:'Times New Roman', Times, serif; font-size:11px; color:#fff;
  background:rgba(17,18,21,0.5); padding:4px 10px; border-radius:100px; backdrop-filter:blur(8px);
  border:1px solid rgba(192,141,81,0.3);
}

/* ---------- testimonials ---------- */
.testimonials{
  background:var(--surface-ivory);
  color:var(--ink-dark);
  --ink:var(--ink-dark);
  --ink-soft:var(--ink-dark-soft);
  --line:var(--line-dark);
  --line-strong:var(--line-dark-strong);
  --bg-card:var(--bg-card-lt);
  --bg-card-hover:var(--bg-card-lt-hover);
}
.test-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.test-card{
  position:relative;
  background:#000000;
  border-radius:20px; padding:32px;
  border:1px solid transparent;
  background-image:linear-gradient(#000000,#000000), var(--gold-hairline);
  background-origin:border-box;
  background-clip:padding-box, border-box;
  box-shadow:var(--shadow-card);
  color:#FFFFFF;
  transition:transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1);
}
.test-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-card-hover), var(--glow-gold-soft); }
.test-card .quote{ font-size:16px; line-height:1.65; margin-bottom:24px; color:#FFFFFF; }
.test-card .who{ display:flex; align-items:center; gap:12px; }
.test-card .avatar{ width:38px;height:38px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1px solid rgba(192,141,81,0.35); }
.test-card .who b{font-size:14px;display:block;color:#FFFFFF;}
.test-card .who small{font-size:12.5px;color:#FFFFFF;opacity:.7;}
@media (max-width:900px){ .test-grid{grid-template-columns:1fr;} }
@media (max-width:420px){ .test-card{ padding:24px; } }

/* ---------- final CTA ---------- */
.final-cta{ background:var(--surface-black); color:var(--ink); text-align:center; padding:150px 0 170px; }
@media (max-width:640px){ .final-cta{ padding:70px 0 90px; } }
.final-cta h2{ font-size:clamp(34px,6vw,68px); max-width:820px; margin:0 auto; }
.final-cta .accent-word{
  background:var(--gold-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 30px rgba(192,141,81,0.3));
}
.final-cta p{ margin:26px auto 40px; max-width:460px; color:rgba(245,242,236,0.65); font-size:16px; }

footer{
  background:var(--surface-ivory); color:var(--ink-dark-soft);
  padding:34px 0 130px; font-size:13px;
}
.footer-inner{ display:flex; justify-content:space-between; }
footer .flogo{
  color:var(--ink-dark); font-family:'Times New Roman', Times, serif; font-weight:700; font-size:15px;
  display:flex; align-items:center; gap:8px;
  margin-bottom:10px;
}
.flogo-mark{ height:44px; width:auto; object-fit:contain; display:block; }
@media (max-width:700px){
  .footer-inner{flex-direction:column;gap:14px;}
  footer{ padding:28px 0 50px; }
}

/* ---------- sticky bottom nav ---------- */
.dock{
  position:fixed; bottom:22px; left:50%; transform:translateX(-50%); z-index:300;
  display:flex; align-items:center; gap:4px;
  background:var(--bg-card); backdrop-filter:blur(var(--glass-blur)) saturate(140%); -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(140%);
  border:1px solid transparent;
  background-image:linear-gradient(var(--bg-card),var(--bg-card)), var(--gold-hairline);
  background-origin:border-box;
  background-clip:padding-box, border-box;
  border-radius:100px; padding:8px;
  box-shadow:var(--shadow-card);
}
.dock a{ padding:11px 16px; font-size:13px; font-weight:600; border-radius:100px; white-space:nowrap; transition:background .2s ease; }
.dock a:hover{background:rgba(255,255,255,0.08);}
.dock .dock-cta{
  background-image:var(--gold-gradient-sheen);
  background-size:220% 220%;
  background-position:0% 50%;
  color:var(--dark);
  display:flex; align-items:center; gap:8px;
  transition:background-position .6s cubic-bezier(.22,1,.36,1);
}
.dock .dock-cta:hover{background-position:100% 50%;}
.dock .mark{ width:34px;height:34px; border-radius:50%; background:var(--dark); border:1px solid rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.dock .mark-img{ width:20px; height:20px; object-fit:contain; }
@media (max-width:760px){
  .dock{ width:calc(100% - 24px); left:12px; right:12px; transform:none; overflow-x:auto; justify-content:flex-start; }
  .dock a{font-size:12px;padding:10px 12px;}
}

/* ==========================================================================
   COURSE DETAIL MODAL — "Детальніше" по кожному курсу
   ========================================================================== */
.course-modal{
  position:fixed; inset:0; z-index:1000;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  visibility:hidden;
  opacity:0;
  transition:opacity .35s ease, visibility 0s linear .35s;
}
.course-modal.is-open{
  visibility:visible;
  opacity:1;
  transition:opacity .35s ease, visibility 0s linear 0s;
}
.course-modal__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,0.72);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.course-modal__panel{
  position:relative;
  width:100%;
  max-width:560px;
  max-height:86vh;
  overflow-y:auto;
  padding:44px 40px;
  border-radius:24px;
  background:#0A0A0A;
  border:1px solid transparent;
  background-image:linear-gradient(#0A0A0A,#0A0A0A), var(--gold-hairline);
  background-origin:border-box;
  background-clip:padding-box, border-box;
  box-shadow:0 40px 100px -20px rgba(0,0,0,0.85), var(--glow-gold-soft);
  transform:translateY(24px) scale(0.97);
  transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.course-modal.is-open .course-modal__panel{ transform:translateY(0) scale(1); }

.course-modal__close{
  position:absolute; top:20px; right:20px;
  width:38px; height:38px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line);
  color:var(--ink);
  cursor:pointer;
  transition:border-color .25s ease, background .25s ease, transform .25s ease;
}
.course-modal__close:hover{
  border-color:rgba(192,141,81,0.6);
  background:rgba(192,141,81,0.1);
  transform:rotate(90deg);
}

.course-modal__panel .eyebrow{ margin-bottom:18px; }
.course-modal__panel h3{
  font-size:clamp(24px,3vw,32px);
  margin-bottom:14px;
  padding-right:30px;
}
.course-modal__desc{
  color:var(--ink-soft);
  font-size:15.5px;
  line-height:1.7;
  margin-bottom:26px;
}
.course-modal__meta{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-bottom:26px;
}
.course-modal__meta span{
  font-family:'Times New Roman', Times, serif;
  font-size:11.5px;
  letter-spacing:.05em;
  color:var(--gold-light);
  border:1px solid rgba(192,141,81,0.35);
  background:rgba(192,141,81,0.06);
  padding:7px 14px;
  border-radius:100px;
}
.course-modal__list{
  list-style:none;
  display:flex; flex-direction:column; gap:12px;
  margin-bottom:32px;
}
.course-modal__list li{
  display:flex; align-items:flex-start; gap:12px;
  font-size:14.5px; line-height:1.55; color:var(--ink);
}
.course-modal__list li::before{
  content:'';
  flex-shrink:0;
  width:6px; height:6px; margin-top:7px;
  border-radius:50%;
  background:var(--gold-gradient);
}
.course-modal__panel .btn-primary{ width:100%; justify-content:center; border:none; cursor:pointer; }

@media (max-width:560px){
  .course-modal__panel{ padding:32px 24px; border-radius:20px; }
}

/* ==========================================================================
   MOBILE NAV — бургер + бокова шухляда (замінює зниклу навігацію на мобільних)
   ========================================================================== */
.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:44px; height:44px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  cursor:pointer;
  flex-shrink:0;
  transition:border-color .25s ease, background .25s ease;
}
.menu-toggle:hover{ border-color:rgba(192,141,81,0.55); background:rgba(192,141,81,0.1); }
.menu-toggle span{
  display:block;
  width:18px; height:2px;
  background:var(--ink);
  border-radius:2px;
  transition:transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Кластер із трьох діагональних "золотих" панелей, що розкриваються
   віялом і відкривають меню — засновано на UI8/Dribbble-шоті, але
   перебудовано під люкс-палітру FormaHouse (графіт + рідке золото)
   і під чистий GSAP-таймлайн без jQuery/TimelineMax (див. script.js). */
.mobile-nav{
  position:fixed; inset:0; z-index:400;
  visibility:hidden;
  overflow:hidden;
}
.mobile-nav.is-open{ visibility:visible; }

.mn-bg{
  position:absolute;
  left:-65%;
  width:230%;
  height:44%;
  transform:rotate(-9deg);
  will-change:transform;
}
.mn-bg--top{
  top:-8%;
  background:linear-gradient(135deg,#151414 0%,#0A0A0A 100%);
  box-shadow:inset 0 -1px 0 rgba(192,141,81,0.3);
}
.mn-bg--middle{
  top:28%;
  background:linear-gradient(135deg,#1D1B16 0%,#0A0A0A 100%);
  box-shadow:inset 0 1px 0 rgba(215,172,119,0.35), inset 0 -1px 0 rgba(215,172,119,0.35);
}
.mn-bg--bottom{
  top:64%;
  background:linear-gradient(135deg,#151414 0%,#0A0A0A 100%);
  box-shadow:inset 0 1px 0 rgba(192,141,81,0.3);
}

.mobile-nav__menu{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.mobile-nav__menu a{
  font-size:22px;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--ink);
  padding:11px 4px;
  opacity:0;
}
.mobile-nav__menu a:not(.mobile-nav__cta):hover{
  background:var(--gold-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.mobile-nav__cta{
  margin-top:20px;
  justify-content:center;
  text-align:center;
}

.mobile-nav__close{
  position:absolute; top:24px; right:24px; z-index:3;
  width:40px; height:40px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line);
  color:var(--ink);
  cursor:pointer;
  opacity:0;
  transition:border-color .25s ease, background .25s ease;
}
.mobile-nav__close:hover{ border-color:rgba(192,141,81,0.6); background:rgba(192,141,81,0.1); }

@media (max-width:900px){
  .menu-toggle{ display:flex; }
}