/* =========================================================
   OneMova — онлайн-школа англійської для дітей
   Фірмові кольори: чорний + синій #0078D8 + малиновий #FF1860
   Шрифти: Montserrat (заголовки), Nunito (текст), Caveat (акценти)
   ========================================================= */

/* ---------- Токени ---------- */
:root{
  /* Бренд */
  --blue:       #0078D8;
  --blue-dark:  #0057A8;
  --blue-deep:  #063C74;
  --blue-soft:  #E7F2FD;
  --pink:       #FF1860;
  --pink-dark:  #DB0049;
  --pink-soft:  #FFE7EE;

  --ink:        #141414;
  --ink-2:      #1E1E1E;
  --ink-soft:   #575757;
  --ink-mute:   #8C8C8C;
  --line:       #E5E5E5;
  --gray:       #F1F1F1;
  --white:      #FFFFFF;

  /* Типографіка */
  --f-head: "Montserrat", "Segoe UI", sans-serif;
  --f-body: "Nunito", "Segoe UI", sans-serif;
  --f-hand: "Caveat", cursive;

  /* Форма */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 100px;

  --shadow-sm: 0 6px 18px rgba(20,20,20,.06);
  --shadow-md: 0 14px 40px rgba(20,20,20,.10);
  --shadow-lg: 0 24px 60px rgba(0,87,168,.20);

  --container: 1200px;
  --gap: 24px;
  --section-y: 104px;
  --header-h: 96px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:var(--header-h); overflow-x:clip; }
body{
  margin:0;
  font-family:var(--f-body);
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:clip; /* clip, а не hidden — щоб не ламався sticky-хедер */
}
/* старі браузери без overflow:clip */
@supports not (overflow-x: clip){
  html,body{ overflow-x:hidden; }
}
/* службовий атрибут hidden має перемагати будь-який display у класах */
[hidden]{ display:none !important; }

img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol,dl,dd{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--f-head); margin:0; line-height:1.15; letter-spacing:-.02em; }
p{ margin:0; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; border:0; background:none; }
:focus-visible{ outline:3px solid var(--pink); outline-offset:3px; border-radius:6px; }

/* ---------- Каркас ---------- */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
.container--narrow{ max-width:880px; }

.section{ padding:var(--section-y) 0; position:relative; }
.section--gray{ background:var(--gray); }
.section--ink{ background:var(--ink); color:#fff; }
.section--pink{ background:var(--pink); color:#fff; }

.section__head{ max-width:760px; margin:0 auto 56px; text-align:center; }
.section__title{ font-size:clamp(28px,4vw,46px); font-weight:800; }
.section__lead{ margin-top:18px; font-size:18px; color:var(--ink-soft); }
.section--ink .section__title,
.section--ink .section__lead,
.section--pink .section__title,
.section--pink .section__lead{ color:#fff; }

/* Рукописний акцент (Caveat) */
.hand{
  font-family:var(--f-hand);
  font-size:clamp(24px,3vw,32px);
  font-weight:600;
  color:var(--pink);
  transform:rotate(-1.5deg);
  margin-bottom:6px;
}
.section--ink .hand{ color:var(--pink); }
.section--pink .hand{ color:#fff; }
.section__head > .hand,
.cta__hand{ font-size:calc(clamp(24px,3vw,32px) + 2px); }
.apply__info > .hand{ font-size:calc(clamp(24px,3vw,32px) + 3px); }
#vykladachi .section__head > .hand,
#yak-pochaty .section__head > .hand,
#formaty .section__head > .hand{ font-size:36px; }

/* Підкреслення-каракуля */
.underlined{ position:relative; display:inline-block; white-space:nowrap; }
.underlined svg{ position:absolute; left:0; bottom:-.18em; width:100%; height:.36em; overflow:visible; }
.underlined path{
  fill:none; stroke:var(--pink); stroke-width:7; stroke-linecap:round;
  stroke-dasharray:230; stroke-dashoffset:230;
  animation:draw 1.1s .5s var(--ease) forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

/* ---------- Логотип ---------- */
.logo{ display:inline-flex; flex-direction:column; gap:5px; flex-shrink:0; color:var(--ink); }
.logo__stack{
  font-family:var(--f-head); font-weight:800; font-size:19px; line-height:.95;
  letter-spacing:.07em; text-transform:uppercase;
}
.logo__line{ display:block; }
.logo__line--2{ position:relative; display:inline-block; }
.logo__swoosh{ position:absolute; left:0; right:0; bottom:-5px; width:100%; height:6px; overflow:visible; }
.logo__swoosh path{ fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; }
.logo__sub{
  font-size:8px; letter-spacing:.3em; text-transform:uppercase;
  color:var(--ink-mute); line-height:1;
}
.logo:hover .logo__swoosh path{ stroke:var(--pink); }
.logo__swoosh path{ transition:stroke .25s; }
.logo--light{ color:#fff; }
.logo--light .logo__sub{ color:rgba(255,255,255,.5); }
.logo__image{
  display:block; width:220px; height:auto;
  transition:width .3s var(--ease), transform .25s var(--ease);
}
.footer .logo__image--footer{ width:150px; }
.logo:hover .logo__image{ transform:scale(1.03); }
.header.is-stuck .logo__image{ width:200px; }

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--f-body); font-weight:700; font-size:16px;
  padding:14px 28px; border-radius:var(--r-pill);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space:nowrap;
}
.btn--lg{ font-size:18px; padding:17px 36px; }
.btn--primary{
  color:#fff; background:var(--pink);
  box-shadow:0 10px 24px rgba(255,24,96,.32);
}
.btn--primary:hover{ background:var(--pink-dark); transform:translateY(-3px); box-shadow:0 16px 32px rgba(255,24,96,.42); }
.btn--primary:active{ transform:translateY(-1px); }
.btn--blue{ color:#fff; background:var(--blue); box-shadow:0 10px 24px rgba(0,120,216,.3); }
.btn--blue:hover{ background:var(--blue-dark); transform:translateY(-3px); }
.btn--ghost{ color:#fff; border:2px solid rgba(255,255,255,.55); }
.btn--ghost:hover{ background:#fff; color:var(--blue-dark); border-color:#fff; transform:translateY(-3px); }
.btn--outline{ color:var(--blue); border:2px solid var(--blue); }
.btn--outline:hover{ background:var(--blue); color:#fff; transform:translateY(-3px); box-shadow:0 12px 26px rgba(0,120,216,.28); }
.section--pink .btn--primary{ background:#fff; color:var(--pink); box-shadow:0 10px 24px rgba(0,0,0,.16); }
.section--pink .btn--primary:hover{ background:var(--ink); color:#fff; }

/* ---------- Промо-смужка ---------- */
.promo-strip{ background:var(--ink); color:#fff; font-size:15px; position:relative; z-index:60; }
.promo-strip__inner{ display:flex; align-items:center; gap:16px; padding-top:10px; padding-bottom:10px; }
.promo-strip__text{ flex:1; }
.promo-strip__text b{ color:#fff; }
.promo-strip__link{ font-weight:700; color:var(--pink); border-bottom:2px solid transparent; transition:border-color .2s; }
.promo-strip__link:hover{ border-color:var(--pink); }
.promo-strip__close{ color:rgba(255,255,255,.6); font-size:16px; padding:2px 8px; transition:color .2s; }
.promo-strip__close:hover{ color:#fff; }

/* ---------- Шапка ---------- */
.header{ position:sticky; top:0; z-index:50; background:#fff; transition:box-shadow .3s, padding .3s; }
.header.is-stuck{ box-shadow:0 6px 24px rgba(20,20,20,.09); }
.header .container{ max-width:1340px; }
.header__inner{ display:flex; align-items:center; gap:28px; padding-top:14px; padding-bottom:14px; transition:padding .3s; }
.header.is-stuck .header__inner{ padding-top:9px; padding-bottom:9px; }

.nav{ display:flex; align-items:center; gap:20px; margin-left:auto; }
.nav__list{ display:flex; align-items:center; gap:16px; }
.nav__link{ font-weight:600; font-size:15px; position:relative; padding:6px 0; color:var(--ink); white-space:nowrap; transition:color .2s; }
.nav__link::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--pink); border-radius:2px; transition:right .3s var(--ease);
}
.nav__link:hover{ color:var(--blue); }
.nav__link:hover::after,
.nav__link.is-active::after{ right:0; }
.nav__link.is-active{ color:var(--blue); }
.nav__cta{ padding:12px 18px; font-size:15px; }

.burger{ display:none; width:44px; height:44px; margin-left:auto; flex-direction:column; justify-content:center; gap:5px; }
.burger span{ display:block; height:3px; border-radius:3px; background:var(--ink); transition:transform .3s var(--ease), opacity .2s; }
.burger.is-open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

.nav-overlay{ position:fixed; inset:0; background:rgba(20,20,20,.45); z-index:40; backdrop-filter:blur(2px); }

/* ---------- HERO ---------- */
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 45%, var(--blue) 100%);
  padding:88px 0 150px;
}
.hero__bg{ position:absolute; inset:0; pointer-events:none; }
.blob{ position:absolute; border-radius:50%; filter:blur(64px); opacity:.5; }
.blob--1{ width:380px; height:380px; background:var(--pink); top:-190px; right:-140px; opacity:.32; animation:float 14s ease-in-out infinite; }
.blob--2{ width:360px; height:360px; background:#35C0FF; bottom:-130px; left:-70px; opacity:.55; animation:float 18s ease-in-out infinite reverse; }
.blob--3{ width:300px; height:300px; background:#0090FF; top:34%; right:28%; opacity:.35; animation:float 22s ease-in-out infinite; }
@keyframes float{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%{ transform:translate(24px,-28px) scale(1.08); }
}
.float-emoji{ position:absolute; font-size:30px; opacity:.85; animation:bob 6s ease-in-out infinite; }
.float-emoji--1{ top:16%; left:46%; animation-delay:.2s; }
.float-emoji--2{ top:62%; left:8%;  animation-delay:1.4s; }
.float-emoji--3{ top:26%; right:6%; animation-delay:.8s; }
.float-emoji--4{ bottom:22%; right:38%; animation-delay:2s; }
@keyframes bob{
  0%,100%{ transform:translateY(0) rotate(-4deg); }
  50%{ transform:translateY(-16px) rotate(6deg); }
}

.hero__inner{ position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,640px); justify-content:start; align-items:center; }
.hero__hand{ color:#fff; }
.hero__title{ font-size:clamp(32px,5.4vw,64px); font-weight:800; }
.hero__text{ margin-top:22px; font-size:19px; max-width:540px; color:rgba(255,255,255,.9); }
.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.hero__marks{ display:flex; flex-wrap:wrap; gap:10px 26px; margin-top:32px; font-size:15px; color:rgba(255,255,255,.88); }
.hero__marks li{ display:flex; align-items:center; gap:8px; }
.hero__marks li::before{ content:"✓"; color:#fff; font-weight:800; }

.hero__cards{ display:flex; flex-direction:column; gap:14px; }
.tile{
  display:flex; align-items:center; gap:14px;
  background:#fff; color:var(--ink); border-radius:var(--r-md);
  padding:18px 22px; font-family:var(--f-head); font-weight:700; font-size:18px;
  box-shadow:var(--shadow-md);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover{ transform:translateY(-5px) translateX(4px); box-shadow:0 20px 44px rgba(0,0,0,.25); }
.tile__emoji{ font-size:26px; }
.tile__text{ flex:1; }
.tile__arrow{ width:22px; height:22px; fill:none; stroke:var(--blue); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; transition:transform .3s var(--ease); }
.tile:hover .tile__arrow{ transform:translateX(5px); }

.hero__wave{ position:absolute; left:0; right:0; bottom:-1px; width:100%; height:110px; z-index:1; }
.hero__wave path{ fill:#fff; }

/* ---------- Статистика ---------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:72px; }
.stat{
  text-align:center; padding:30px 18px; border-radius:var(--r-md);
  background:var(--gray); border:1px solid var(--line);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.stat__num{ display:block; font-family:var(--f-head); font-weight:800; font-size:44px; color:var(--blue); line-height:1; }
.stat__label{ display:block; margin-top:10px; font-size:15px; color:var(--ink-soft); }

/* ---------- Переваги ---------- */
.benefits{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.benefits__more{ display:none; }
.benefit{
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; column-gap:14px;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md); padding:22px 22px;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.benefit:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.benefit__ico{
  display:grid; place-items:center; width:48px; height:48px; border-radius:14px;
  background:var(--ico,var(--blue-soft)); font-size:23px;
  transition:transform .35s var(--ease);
}
.benefit:hover .benefit__ico{ transform:rotate(-8deg) scale(1.06); }
.benefit__title{ font-size:19px; font-weight:700; margin:0; }
.benefit__text{ grid-column:1/-1; margin-top:8px; color:var(--ink-soft); font-size:15px; }

/* Компактний ритм блоку про школу */
#pro-shkolu{ padding-top:64px; padding-bottom:64px; }
#pro-shkolu .section__head{ margin-bottom:30px; }
#pro-shkolu .section__lead{ line-height:1.38; }
#pro-shkolu .stats{ gap:16px; margin-bottom:36px; }
#pro-shkolu .stat{ padding:24px 16px; }
#pro-shkolu .benefits{ gap:14px; }
#pro-shkolu .benefit{ padding:18px; }
#pro-shkolu .benefit__ico{ width:44px; height:44px; margin-bottom:10px; }

@media (min-width:769px){
  .hero__marks{ display:grid; grid-template-columns:max-content max-content; justify-content:start; }
}

/* ---------- Формати ---------- */
.formats{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
#formaty{ padding-top:76px; padding-bottom:76px; }
#formaty .section__head{ margin-bottom:32px; }
.format{
  position:relative; background:#fff; color:var(--ink);
  border-radius:var(--r-lg); padding:34px 28px 28px;
  display:flex; flex-direction:column;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.format:hover{ transform:translateY(-8px); box-shadow:0 24px 60px rgba(0,0,0,.35); }
.format__badge{
  position:absolute; top:-14px; left:30px;
  background:var(--pink); color:#fff; font-weight:700; font-size:13px;
  padding:6px 16px; border-radius:var(--r-pill);
  box-shadow:0 8px 18px rgba(255,24,96,.4);
}
.format__emoji{ font-size:40px; }
.format__title{ font-size:26px; font-weight:800; margin:14px 0 6px; }
.format__price{ font-size:16px; color:var(--ink-soft); margin-bottom:18px; }
.format__price b{ font-family:var(--f-head); font-size:26px; color:var(--blue); }
.format__list{ display:grid; gap:12px; margin-bottom:22px; }
.format__list li{ position:relative; padding-left:30px; font-size:16px; line-height:1.35; color:var(--ink-soft); }
.format__list li::before{
  content:""; position:absolute; left:0; top:.12em; width:18px; height:18px; border-radius:50%;
  background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/11px no-repeat;
}
.format__btn{ margin-top:auto; align-self:flex-start; }
.formats__note{ text-align:center; margin-top:40px; font-family:var(--f-hand); font-size:26px; color:rgba(255,255,255,.9); }

.carousel--formats .carousel__viewport{ padding:20px 4px 16px; }
.carousel--formats .slide{ display:flex; }
.carousel--formats .format{
  width:100%; height:100%;
}
.carousel--formats .format__emoji{ display:block; line-height:1; }
.carousel--formats .format__title{ min-height:2.2em; }
.carousel--formats .format__price{ min-height:2em; }
.carousel--formats .carousel__arrow{ background:transparent; border-color:rgba(255,255,255,.55); }
.carousel--formats .carousel__arrow svg{ stroke:#fff; }
.carousel--formats .carousel__arrow:hover{ background:#fff; border-color:#fff; }
.carousel--formats .carousel__arrow:hover svg{ stroke:var(--pink); }
.carousel--formats .carousel__dot{ background:rgba(255,255,255,.38); }
.carousel--formats .carousel__dot.is-active{ background:#fff; }

/* ---------- Карусель ---------- */
.carousel{ position:relative; }
.carousel__viewport{ overflow:hidden; padding:8px 4px 16px; }
.carousel__track{ display:flex; gap:var(--gap); transition:transform .55s var(--ease); will-change:transform; }
.carousel.is-dragging .carousel__track{ transition:none; }
.slide{ flex:0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); min-width:0; }
.carousel__nav{ display:flex; align-items:center; justify-content:center; gap:20px; margin-top:26px; }
.carousel__arrow{
  width:52px; height:52px; border-radius:50%; display:grid; place-items:center;
  background:#fff; border:2px solid var(--line);
  transition:transform .25s var(--ease), border-color .25s, background-color .25s, opacity .25s;
}
.carousel__arrow svg{ width:22px; height:22px; fill:none; stroke:var(--blue); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.carousel__arrow:hover{ border-color:var(--blue); transform:scale(1.08); }
.carousel__arrow[disabled]{ opacity:.35; cursor:default; transform:none; }
.carousel__dots{ display:flex; gap:9px; }
.carousel__dot{ width:10px; height:10px; border-radius:50%; background:var(--line); transition:width .3s var(--ease), background-color .3s; }
.carousel__dot.is-active{ width:28px; border-radius:5px; background:var(--blue); }
.carousel--reviews .carousel__arrow{ background:transparent; border-color:rgba(255,255,255,.7); }
.carousel--reviews .carousel__arrow svg{ stroke:#fff; }
.carousel--reviews .carousel__arrow:hover{ background:#fff; }
.carousel--reviews .carousel__arrow:hover svg{ stroke:var(--pink); }
.carousel--reviews .carousel__dot{ background:rgba(255,255,255,.5); }
.carousel--reviews .carousel__dot.is-active{ background:#fff; }

/* ---------- Картка викладача ---------- */
.teacher{
  height:100%; display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:22px 22px 26px; text-align:center;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.teacher:hover{ transform:translateY(-8px); box-shadow:var(--shadow-md); border-color:transparent; }
.teacher__photo{ position:relative; border-radius:var(--r-md); overflow:hidden; aspect-ratio:1/1; background:var(--gray); }
.teacher__photo img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.teacher__photo .teacher__photo-img--bottom{ object-position:center bottom; }
.teacher:hover .teacher__photo img{ transform:scale(1.05); }
.teacher__photo--placeholder{
  display:grid; place-items:center; color:var(--ink-mute);
  background:linear-gradient(145deg,#EAF3FB,#F7EAF2);
  font-family:var(--f-head); font-weight:700; font-size:14px;
}
.teacher__name{ font-size:24px; font-weight:800; margin:18px 0 4px; }
.teacher__spec{ font-size:15px; line-height:1.4; color:var(--ink-soft); min-height:0; }
.teacher__rows{ margin:16px 0 22px; text-align:left; display:grid; gap:0; }
.teacher__row{ display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px dashed var(--line); font-size:15px; }
.teacher__row:first-child{ border-top:1px dashed var(--line); }
.teacher__row dt{ color:var(--ink-mute); }
.teacher__row dd{ max-width:76%; font-weight:700; text-align:right; }
.teacher__row:nth-child(2){ min-height:68px; align-items:flex-start; }
.teacher__education-detail{ display:block; margin-top:3px; font-size:11px; line-height:1.25; font-weight:600; }
.teacher__row--certificate{ align-items:flex-start; }
.teacher__qualification-detail{
  display:block; margin-top:3px; color:var(--ink-soft);
  font-size:10px; line-height:1.25; font-weight:600;
}
#vykladachi .section__lead{ line-height:1.35; }
.teacher__btn{ margin-top:auto; width:100%; }

/* Компактніший ритм секції викладачів */
#vykladachi{ padding-top:72px; padding-bottom:72px; }
#vykladachi .section__head{ margin-bottom:36px; }

/* ---------- Програми ---------- */
.programs{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.program{
  background:#fff; border-radius:var(--r-md); padding:30px 28px;
  border:1px solid var(--line); position:relative; overflow:hidden;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.program::after{
  content:""; position:absolute; right:-40px; top:-40px; width:120px; height:120px; border-radius:50%;
  background:linear-gradient(135deg, rgba(0,120,216,.16), rgba(255,24,96,.14));
  transition:transform .4s var(--ease);
}
.program:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.program:hover::after{ transform:scale(1.5); }
.program__age{
  position:relative; z-index:1; display:inline-block; font-size:15px; font-weight:700;
  color:var(--blue); background:var(--blue-soft); padding:5px 14px; border-radius:var(--r-pill);
}
.program__visual{
  position:absolute; z-index:2; top:14px; right:18px; width:58px; height:58px;
  display:grid; place-items:center; font-size:30px; line-height:1;
  border-radius:18px; background:rgba(255,255,255,.72); box-shadow:0 8px 20px rgba(20,58,96,.08);
  transform:rotate(4deg); transition:transform .3s var(--ease);
}
.program:hover .program__visual{ transform:rotate(0) scale(1.08); }
.program__title{ position:relative; z-index:1; font-size:22px; font-weight:700; margin:14px 0 8px; }
.program__text{ position:relative; z-index:1; color:var(--ink-soft); font-size:16px; }

/* ---------- Кроки ---------- */
.steps{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.step{ position:relative; text-align:center; padding:0 8px; }
.step::before{
  content:""; position:absolute; top:27px; left:calc(50% + 34px); right:calc(-50% + 34px); height:3px;
  background-image:linear-gradient(90deg, var(--line) 60%, transparent 0);
  background-size:12px 3px; background-repeat:repeat-x;
}
.step:last-child::before{ display:none; }
.step__num{
  display:grid; place-items:center; width:56px; height:56px; margin:0 auto 18px;
  border-radius:50%; background:var(--pink); color:#fff;
  font-family:var(--f-head); font-weight:800; font-size:22px;
  box-shadow:0 10px 22px rgba(255,24,96,.32);
  transition:transform .3s var(--ease);
}
.step:hover .step__num{ transform:translateY(-5px) scale(1.06); }
.step__title{ font-size:18px; font-weight:700; margin-bottom:6px; }
.step__text{ font-size:16px; color:var(--ink-soft); }

/* ---------- Відгуки ---------- */
#vidhuky{ padding:18px 0 10px; }
#vidhuky .section__head{ margin-bottom:4px; }
.carousel--reviews{ max-width:1180px; margin-inline:auto; }
.carousel--reviews .carousel__viewport{ padding:0 4px; }
.carousel--reviews .carousel__track{ align-items:center; }
.carousel--reviews .slide{ display:flex; align-items:flex-start; }
.carousel--reviews .carousel__nav{ margin-top:0; }
.review-shot{
  width:100%; margin:0; display:flex; justify-content:center;
}
.review-shot img{
  display:block; width:94%; height:auto; object-fit:contain;
  filter:drop-shadow(0 10px 12px rgba(76,0,29,.25));
}

/* ---------- Форма заявки ---------- */
.apply{ background:linear-gradient(180deg,#fff 0%, var(--gray) 100%); }
.apply__inner{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.apply__lead{ margin-top:18px; color:var(--ink-soft); font-size:18px; line-height:1.38; }
.apply__list{ display:grid; gap:10px; margin:24px 0; }
.apply__list li{ display:flex; align-items:center; gap:12px; font-size:16px; line-height:1.3; }
.apply__list span{
  flex-shrink:0; display:grid; place-items:center; width:34px; height:34px; border-radius:50%;
  background:var(--blue); color:#fff; font-family:var(--f-head); font-weight:700; font-size:16px;
}
.apply__contacts{ display:grid; gap:14px; margin-top:28px; }
.apply__contacts--mobile{ display:none; }
.apply__contact-group{ display:grid; gap:8px; }
.apply__contact-group-title{
  color:var(--ink-mute); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
}
.apply__contact-list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.apply__contact{
  min-width:0; display:flex; align-items:center; gap:10px; font-weight:600;
  background:rgba(255,255,255,.82); border:1px solid rgba(20,58,96,.12); border-radius:15px;
  padding:10px 12px; box-shadow:0 6px 18px rgba(20,58,96,.05);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .25s;
}
.apply__contact--wide{ grid-column:1 / -1; }
.apply__contact:hover{ transform:translateY(-3px); box-shadow:0 12px 24px rgba(20,58,96,.12); border-color:rgba(0,123,224,.42); background:#fff; }
.apply__contact-ico{
  flex:0 0 auto; width:32px; height:32px; border-radius:10px; display:grid; place-items:center;
  color:var(--blue); background:var(--blue-soft); border:1px solid rgba(0,123,224,.1);
}
.apply__contact-ico--instagram{
  color:#D62976; background:#FFF0F6; border-color:rgba(214,41,118,.12);
}
.apply__contact-ico--instagram svg{
  width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8;
}
.apply__contact-ico--phone{
  color:#fff; background:var(--blue); border-color:var(--blue);
}
.apply__contact-ico--telegram{ color:#229ED9; background:#EDF8FF; border-color:rgba(34,158,217,.12); }
.apply__contact-ico--viber{
  color:#fff; background:#7360F2; border-color:#7360F2;
}
.apply__contact-ico--phone img,
.apply__contact-ico--viber img{ width:17px; height:17px; filter:brightness(0) invert(1); }
.apply__contact-ico--telegram img{ width:20px; height:20px; }
.apply__contact-ico--telegram svg,
.apply__contact-ico--viber svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.apply__contact-ico--telegram svg{ fill:currentColor; stroke:none; }
.apply__contact-copy{ min-width:0; display:grid; gap:2px; line-height:1.08; }
.apply__contact-copy small{ font-size:11px; color:var(--ink-mute); font-weight:700; }
.apply__contact-copy strong{ font-size:13px; color:var(--ink); font-weight:800; overflow-wrap:anywhere; }

.form{
  position:relative; background:#fff; border-radius:var(--r-lg);
  padding:28px 30px; box-shadow:var(--shadow-md); display:grid; gap:13px;
}
.form__trap{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form__field{ display:grid; gap:6px; }
.form__label{ font-size:13px; font-weight:700; color:var(--ink-soft); }
.form__label i{ color:var(--pink); font-style:normal; }
.form__input{
  width:100%; padding:11px 15px; border:2px solid var(--line); border-radius:var(--r-sm);
  background:#fff; font-size:15px; transition:border-color .25s, box-shadow .25s;
}
.form__input:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 4px rgba(0,120,216,.14); }
.form__input--area{ resize:none; min-height:52px; overflow-y:hidden; line-height:1.45; }
select.form__input{ appearance:none; cursor:pointer;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center/18px no-repeat; padding-right:44px; }
.form__input.is-error{ border-color:var(--pink); }
.form__error{ font-size:13px; color:var(--pink-dark); }
.form__error:empty{ display:none; }

.form__chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ cursor:pointer; }
.chip input{ position:absolute; opacity:0; pointer-events:none; }
.chip span{
  display:inline-block; padding:8px 16px; border-radius:var(--r-pill);
  border:2px solid var(--line); font-size:14px; font-weight:600;
  transition:border-color .2s, background-color .2s, color .2s, transform .2s;
}
.chip input:checked + span{ border-color:var(--blue); background:var(--blue); color:#fff; }
.chip--mode span{ border-color:rgba(255,24,96,.28); }
.chip--mode input:checked + span{ border-color:var(--pink); background:var(--pink); color:#fff; box-shadow:0 8px 18px rgba(255,24,96,.18); }
.chip:hover span{ transform:translateY(-2px); }
.chip input:focus-visible + span{ outline:3px solid var(--pink); outline-offset:2px; }

.form__consent{ display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--ink-soft); cursor:pointer; }
.form__consent input{ width:18px; height:18px; margin-top:1px; accent-color:var(--blue); flex-shrink:0; }
.form__consent a{ color:var(--blue); text-decoration:underline; }
.form__submit{ width:100%; margin-top:4px; }
.form__note{ font-size:12px; color:var(--ink-mute); text-align:center; }

.form__success{
  position:absolute; inset:0; background:#fff; border-radius:var(--r-lg);
  display:grid; place-content:center; text-align:center; gap:10px; padding:40px;
  animation:pop .45s var(--ease);
}
.form__success-ico{ font-size:54px; }
.form__success h3{ font-size:26px; }
.form__success p{ color:var(--ink-soft); }
@keyframes pop{ from{ opacity:0; transform:scale(.96); } to{ opacity:1; transform:scale(1); } }

/* ---------- FAQ ---------- */
.faq{ display:grid; gap:14px; }
.faq__item{ background:#fff; border:1px solid var(--line); border-radius:var(--r-md); padding:4px 26px; transition:box-shadow .3s, border-color .3s; }
.faq__item[open]{ box-shadow:var(--shadow-sm); border-color:transparent; }
.faq__q{ display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; gap:14px; list-style:none; cursor:pointer; padding:14px 40px 14px 0; position:relative; font-family:var(--f-head); font-weight:100; font-size:18px; line-height:1.35; }
.faq__q::-webkit-details-marker{ display:none; }
.faq__ico{ display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:var(--blue-soft); font-family:var(--f-body); font-size:21px; line-height:1; }
.faq__item:nth-child(2n) .faq__ico{ background:var(--pink-soft); }
.faq__item:nth-child(3n) .faq__ico{ background:#FFF3D6; }
.faq__q::after{
  content:""; position:absolute; right:0; top:50%; width:22px; height:22px; margin-top:-11px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230078D8' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .3s var(--ease);
}
.faq__item[open] .faq__q::after{ transform:rotate(180deg); }
.faq__a{ overflow:hidden; }
.faq__a p{ padding:0 0 22px 56px; color:var(--ink-soft); }
.faq__item[open] .faq__a{ animation:slide .35s var(--ease); }
@keyframes slide{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:translateY(0); } }

/* ---------- Як проходять заняття ---------- */
.lesson-path{
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(0,120,216,.12), transparent 24%),
    radial-gradient(circle at 92% 88%, rgba(255,22,101,.1), transparent 25%),
    linear-gradient(180deg,#fff 0%,#F3F8FD 100%);
}
.lesson-path .container{ max-width:1540px; }
.lesson-path__head{ margin-bottom:44px; }
.carousel--lesson-path{ max-width:1380px; margin:0 auto; }
.carousel--lesson-path .carousel__viewport{ padding:14px 5px 20px; }
.lesson-path__steps{ gap:24px; counter-reset:lesson-path; }
.carousel--lesson-path .slide{ display:flex; }
.lesson-path__card{
  position:relative; width:100%; min-height:320px; padding:28px 30px 30px; overflow:hidden;
  background:rgba(255,255,255,.92); border:1px solid rgba(0,120,216,.14); border-radius:var(--r-md);
  box-shadow:0 18px 45px rgba(11,45,78,.08);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.lesson-path__card:hover{ transform:translateY(-7px); border-color:rgba(0,120,216,.35); box-shadow:0 24px 55px rgba(11,45,78,.14); }
.lesson-path__top{ position:relative; z-index:3; display:flex; align-items:center; justify-content:flex-start; gap:16px; margin-bottom:20px; }
.lesson-path__number{
  display:inline-flex; align-items:center; justify-content:center; min-width:64px; height:36px; padding:0 15px;
  border-radius:999px; background:linear-gradient(120deg,var(--blue-deep),var(--blue)); color:#fff;
  font-family:var(--f-head); font-size:16px; font-weight:800; letter-spacing:.08em;
  box-shadow:0 8px 22px rgba(0,120,216,.22);
}
.lesson-path__title{ position:relative; z-index:2; max-width:76%; font-size:25px; line-height:1.2; font-weight:800; margin-bottom:12px; }
.lesson-path__text{ position:relative; z-index:2; max-width:76%; color:var(--ink-soft); font-size:18px; line-height:1.5; }
.lesson-path__art{
  position:absolute; z-index:1; right:-18px; bottom:-30px; width:min(72%,280px); height:auto;
  opacity:.31; pointer-events:none; user-select:none;
  -webkit-mask-image:radial-gradient(circle at 70% 72%,#000 0 38%,rgba(0,0,0,.64) 58%,transparent 84%);
  mask-image:radial-gradient(circle at 70% 72%,#000 0 38%,rgba(0,0,0,.64) 58%,transparent 84%);
}
.lesson-path__nav{ margin-top:18px; }

/* ---------- Фінальний CTA ---------- */
.cta{ padding:0 0 var(--section-y); }
.cta__inner{
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  background:linear-gradient(120deg, var(--blue-deep), var(--blue-dark) 55%, var(--blue));
  color:#fff; border-radius:var(--r-lg); padding:48px 56px;
  box-shadow:var(--shadow-lg);
}
.cta__hand{ color:#fff; }
.cta__title{ font-size:clamp(24px,3.2vw,36px); font-weight:800; }

/* ---------- Підвал ---------- */
.footer{ background:var(--ink); color:rgba(255,255,255,.7); padding:48px 0 22px; font-size:15px; }
.footer__inner{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:28px; }
.footer__col--brand{ display:grid; grid-template-columns:132px minmax(0,1fr); gap:18px; align-items:start; }
.footer .logo--footer{ display:block; margin:0; }
.footer .logo__image--footer{ width:132px; }
.footer__about{ margin:0; max-width:none; line-height:1.45; }
.footer__title{ font-size:17px; font-weight:700; color:#fff; margin-bottom:16px; }
.footer__list{ display:grid; gap:10px; }
.footer__list a{ transition:color .2s, transform .2s; display:inline-block; }
.footer__list a:hover{ color:var(--pink); transform:translateX(3px); }
.footer__socials{ display:flex; gap:12px; margin-top:20px; }
.footer__socials a{
  width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.2); transition:background-color .25s, transform .25s, border-color .25s;
}
.footer__socials svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.footer__socials img{ width:20px; height:20px; }
.footer__social-icon--telegram{ filter:grayscale(1) brightness(0) invert(1); }
.footer__social-icon--viber{ filter:brightness(0) invert(1); }
.footer__socials a:hover{ background:var(--pink); border-color:var(--pink); color:#fff; transform:translateY(-3px); }
.footer__bottom{
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-top:34px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); font-size:14px;
}
.footer__legal{ display:flex; gap:22px; }
.footer__legal a:hover{ color:var(--pink); }

/* ---------- Нагору + cookies ---------- */
.to-top{
  position:fixed; right:24px; bottom:24px; z-index:45;
  width:52px; height:52px; border-radius:50%; display:grid; place-items:center;
  background:var(--blue); box-shadow:var(--shadow-md);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .3s, visibility .3s, transform .3s var(--ease), background-color .25s;
}
.to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
/* поки видно смужку cookies — піднімаємо кнопку над нею */
body.has-cookiebar .to-top{ bottom:104px; }
.to-top:hover{ background:var(--blue-dark); transform:translateY(-4px); }
.to-top svg{ width:22px; height:22px; fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }

/* смужка внизу екрана — не перекриває кнопки в контенті */
.cookies{
  position:fixed; left:0; right:0; bottom:0; z-index:46;
  background:#fff; border-top:1px solid var(--line);
  box-shadow:0 -10px 30px rgba(20,20,20,.10);
  display:flex; align-items:center; justify-content:center; gap:24px;
  padding:14px 24px;
  animation:slideUp .4s var(--ease);
}
@keyframes slideUp{ from{ transform:translateY(100%); } to{ transform:translateY(0); } }
.cookies__text{ font-size:14px; color:var(--ink-soft); }
.cookies__btn{ flex-shrink:0; padding:11px 24px; font-size:15px; }

/* ---------- Поява при скролі ---------- */
.js [data-reveal]{
  opacity:0;
  transition:opacity .7s var(--ease) var(--delay,0s), transform .7s var(--ease) var(--delay,0s);
}
.js [data-reveal="up"]{ transform:translateY(28px); }
.js [data-reveal="left"]{ transform:translateX(-32px); }
.js [data-reveal="right"]{ transform:translateX(32px); }
.js [data-reveal].is-visible{ opacity:1; transform:none; }

/* ---------- Адаптив ---------- */
@media (max-width:1100px){
  :root{ --section-y:80px; }
  .logo__image{ width:180px; }
  .header.is-stuck .logo__image{ width:170px; }
  .nav__list{ gap:16px; }
  .nav__link{ font-size:15px; }
  .hero__inner{ grid-template-columns:1fr; gap:44px; }
  .hero__cards{ flex-direction:row; flex-wrap:wrap; }
  .hero__cards li{ flex:1 1 220px; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .benefits,.formats,.programs{ grid-template-columns:repeat(2,1fr); }
  .lesson-path__card{ min-height:300px; }
  .steps{ grid-template-columns:repeat(3,1fr); gap:32px 18px; }
  .step::before{ display:none; }
  .footer__inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:1280px){
  .burger{ display:flex; }
  .nav{
    position:fixed; top:0; right:0; bottom:0; width:min(340px,86vw); z-index:55;
    flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0;
    background:#fff; padding:88px 24px 32px; margin:0;
    transform:translateX(100%); transition:transform .38s var(--ease);
    box-shadow:-10px 0 40px rgba(0,0,0,.18); overflow-y:auto;
  }
  .nav.is-open{ transform:translateX(0); }
  .nav__list{ flex-direction:column; align-items:stretch; gap:2px; }
  .nav__link{ display:block; padding:12px 0; font-size:17px; border-bottom:1px solid var(--line); }
  .nav__link::after{ display:none; }
  .nav__cta{ margin-top:20px; width:100%; padding:15px 22px; font-size:16px; }
}

@media (min-width:1281px){
  .nav__item--compact-only{ display:none; }
}

@media (min-width:769px) and (max-width:1280px){
  .teacher__spec-tablet-break{ display:block; }
  .format__tablet-break{ display:block; }
  .formats__note-tablet-break{ display:block; }

  #vykladachi .carousel--teachers{
    --gap:24px;
    width:100%;
    max-width:1040px;
    margin-inline:auto;
  }
  #vykladachi .carousel--teachers .slide{
    flex-basis:calc((100% - 32px) / 2.35);
  }

  #formaty .carousel--formats{
    --gap:24px;
    width:100%;
    max-width:1040px;
    margin-inline:auto;
  }
  #formaty .carousel--formats .slide{
    flex-basis:calc((100% - 32px) / 2.14);
  }
  #formaty .formats__note{ margin-top:26px; line-height:1.2; }

  #programy{ padding-top:52px; padding-bottom:52px; }
  #programy .section__head{ margin-bottom:26px; }
  #programy .programs{ gap:16px; }
  #programy .program{ padding:24px 22px; }

  #yak-prohodyat-zanyattya{ padding-top:52px; padding-bottom:52px; }
  #yak-prohodyat-zanyattya .lesson-path__head{ margin-bottom:28px; }
  #yak-prohodyat-zanyattya .carousel__viewport{ padding:8px 4px 12px; }
  #yak-prohodyat-zanyattya .lesson-path__steps{ gap:18px; }
  #yak-prohodyat-zanyattya .lesson-path__card{ min-height:260px; padding:22px 24px; }
  #yak-prohodyat-zanyattya .lesson-path__top{ margin-bottom:14px; }
  #yak-prohodyat-zanyattya .lesson-path__number{ min-width:56px; height:32px; font-size:14px; }
  #yak-prohodyat-zanyattya .lesson-path__title{ font-size:22px; margin-bottom:8px; }
  #yak-prohodyat-zanyattya .lesson-path__text{ font-size:16px; line-height:1.4; }
  #yak-prohodyat-zanyattya .lesson-path__nav{ margin-top:12px; }

  .carousel--reviews{
    --gap:16px;
    width:100%;
    max-width:820px;
  }
  .carousel--reviews .carousel__viewport{ overflow:hidden; padding:0; }
  .carousel--reviews .carousel__nav{ margin-top:0; }

  .apply__inner{
    grid-template-columns:1fr;
    gap:34px;
    max-width:900px;
  }
  .apply__info .apply__contacts{ display:none; }
  .apply__contacts--mobile{ display:grid; width:100%; margin-top:0; }

  .footer__inner{
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:28px;
    row-gap:12px;
  }
  .footer__inner > .footer__col--brand{ grid-column:1; grid-row:1; }
  .footer__inner > :nth-child(2){ grid-column:2; grid-row:1 / span 2; }
  .footer__inner > :nth-child(3){
    grid-column:1;
    grid-row:2;
    margin-top:-12px;
    margin-left:150px;
  }
  .footer__inner > :nth-child(4){ grid-column:2; grid-row:3; margin-top:-12px; }
}

@media (max-width:1023px){
  #vidhuky{ padding:16px 0 9px; }
  #vidhuky .section__head{ margin-bottom:3px; }
}

@media (max-width:860px){
  .apply__inner{ grid-template-columns:1fr; gap:36px; }
  .cta__inner{ padding:36px 30px; }
}

@media (max-width:768px){
  body{ font-size:16px; }
  :root{ --section-y:60px; --gap:16px; --header-h:84px; }

  .nav{ width:min(320px,86vw); }
  .nav__link{ padding:11px 0; font-size:17px; }

  .header__inner{ gap:12px; padding-top:10px; padding-bottom:10px; }
  .logo__image{ width:170px; }
  .header.is-stuck .logo__image{ width:160px; }
  .logo__stack{ font-size:17px; }
  .logo__sub{ font-size:7px; letter-spacing:.26em; }

  .promo-strip{ font-size:13px; }
  .promo-strip__inner{ gap:10px; padding-top:8px; padding-bottom:8px; }
  .promo-strip__long{ display:none; }
  .promo-strip__link{ display:none; }

  .hero{ padding:48px 0 96px; }
  .hero__text{ font-size:17px; }
  .hero__actions{ margin-top:26px; }
  .hero__actions .btn{ flex:1 1 100%; }
  .hero__marks{ gap:8px 18px; font-size:14px; margin-top:24px; }
  .hero__wave{ height:56px; }
  .float-emoji{ font-size:22px; }
  .blob{ filter:blur(48px); }

  .section__head{ margin-bottom:36px; }

  #pro-shkolu{ padding-top:44px; padding-bottom:44px; }
  #pro-shkolu .section__head{ margin-bottom:24px; }
  #pro-shkolu .stats{ margin-bottom:28px; }
  #pro-shkolu .benefits{ gap:10px; }
  #pro-shkolu .benefit{ padding:14px 15px; }
  #pro-shkolu .benefits--expandable{ overflow:hidden; transition:max-height .45s ease; }
  #pro-shkolu .benefits--expandable:not(.is-expanded){
    -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 82%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0,#000 82%,transparent 100%);
  }
  .benefits__more{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
    width:max-content;
    margin:16px auto 0;
    padding:8px 14px;
    border:2px solid var(--blue);
    border-radius:var(--r-pill);
    background:transparent;
    color:var(--blue);
    font-family:var(--f-body);
    font-size:14px;
    font-weight:800;
    line-height:1.2;
    box-shadow:none;
    cursor:pointer;
  }
  .benefits,.formats,.programs,.steps{ grid-template-columns:1fr; }
  .lesson-path__head{ margin-bottom:30px; }
  .carousel--lesson-path .carousel__viewport{ padding:8px 2px 12px; }
  .lesson-path__steps{ gap:16px; }
  .lesson-path__card{ min-height:310px; padding:20px; }
  .lesson-path__top{ margin-bottom:18px; }
  .lesson-path__title{ max-width:72%; font-size:21px; }
  .lesson-path__text{ max-width:72%; font-size:17px; }
  .lesson-path__art{ right:-22px; bottom:-26px; width:min(68%,250px); opacity:.24; }
  .stats{ grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:44px; }
  .stat{ padding:22px 12px; }
  .stat__num{ font-size:32px; }
  .stat__label{ font-size:13px; }
  .benefit{ padding:20px 18px; }
  #programy{ padding-top:44px; padding-bottom:44px; }
  #programy .section__head{ margin-bottom:24px; }
  #programy .programs{ gap:12px; }
  #programy .program{ padding:20px 18px; }
  #programy .program__title{ margin:10px 0 6px; }
  .format{ padding:26px 20px 22px; }
  #formaty{ padding-top:44px; padding-bottom:44px; }
  #formaty .section__head{ margin-bottom:22px; }
  .format__title{ margin-top:10px; }
  .format__price{ margin-bottom:17px; }
  .format__list{ gap:10px; margin-bottom:22px; }
  .format__btn{ align-self:stretch; }
  #yak-pochaty{ padding-top:44px; padding-bottom:44px; }
  #yak-pochaty .section__head{ margin-bottom:24px; }
  #yak-pochaty .steps{ gap:20px; }

  #vykladachi .section__head > .hand,
  #yak-pochaty .section__head > .hand,
  #formaty .section__head > .hand{ font-size:30px; }
  #vykladachi{ padding-top:44px; padding-bottom:44px; }
  #vykladachi .section__head{ margin-bottom:26px; }
  #vykladachi .carousel__viewport{ padding:8px clamp(28px,9vw,38px) 12px; }
  .teacher{ padding:10px 12px 10px; }
  #vykladachi .teacher__photo{ aspect-ratio:1/1; }
  #vykladachi .teacher__photo img{ object-position:center top; }
  #vykladachi .teacher__photo .teacher__photo-img--bottom{ object-position:center bottom; }
  .teacher__name{ font-size:21px; margin:10px 0 2px; }
  .teacher__spec{ min-height:0; font-size:14px; line-height:1.32; }
  .teacher__spec-mobile-break{ display:block; }
  .format__mobile-break{ display:block; }
  .teacher__rows{ margin:9px 0 4px; }
  .teacher__row{ padding:6px 0; font-size:14px; }
  .carousel__viewport{ padding:8px 2px 12px; }
  .carousel__nav{ gap:14px; margin-top:18px; }
  .carousel__arrow{ width:46px; height:46px; }

  .carousel--formats .carousel__viewport{ padding:14px 2px 10px; }
  .carousel--formats .slide{ flex-basis:calc(100% - 54px); }
  .carousel--formats .format__btn{ align-self:stretch; width:100%; }
  .formats__note{ margin-top:30px; line-height:1.15; }

  .apply__info .apply__contacts{ display:none; }
  .apply__info > .hand{ display:block; width:100%; text-align:left; }
  .apply__title-break{ display:block; }
  .apply__contacts--mobile{ display:grid; width:100%; margin-top:4px; }
  .apply__contacts--mobile .apply__contact-list{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .apply__contacts--mobile .apply__contact--wide{ grid-column:1 / -1; }

  #vidhuky{ padding:14px 0 8px; }
  #vidhuky .section__head{ margin-bottom:2px; }
  .carousel--reviews{ max-width:min(350px,calc(100vw - 24px)); }
  .carousel--reviews .carousel__viewport{ padding-inline:0; }
  .carousel--reviews .review-shot{ display:flex; justify-content:center; }
  .carousel--reviews .review-shot img{
    width:auto; max-width:94%; height:auto !important; aspect-ratio:auto;
    object-fit:contain; filter:none;
  }
  .carousel--reviews .carousel__arrow{
    width:46px; min-width:46px; height:46px; min-height:46px;
    flex:0 0 46px; padding:0; border-radius:50%; aspect-ratio:1;
  }
  .carousel--reviews .carousel__dots{ gap:6px; }
  .carousel--reviews .carousel__dot{ width:8px; height:8px; }
  .carousel--reviews .carousel__dot.is-active{ width:24px; }
  .faq{ gap:10px; }
  .faq__item{ padding:2px 14px; }
  .faq__q{ grid-template-columns:36px minmax(0,1fr); gap:10px; padding:12px 34px 12px 0; font-size:16px; line-height:1.22; }
  .faq__ico{ width:36px; height:36px; font-size:18px; }
  .faq__q::after{ width:19px; height:19px; margin-top:-9.5px; }
  .faq__a p{ padding:0 0 15px 46px; font-size:14.5px; line-height:1.45; }
  .form{ padding:22px 16px; gap:12px; }
  .form__row{ grid-template-columns:1fr; }
  .cta__inner{ padding:30px 22px; text-align:center; justify-content:center; }
  .cta__inner .btn{ width:100%; }

  .footer{ padding:38px 0 20px; }
  .footer__inner{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px 18px; }
  .footer__col--brand{ grid-template-columns:104px minmax(0,1fr); gap:14px; align-items:center; justify-items:stretch; text-align:left; }
  .footer__inner > .footer__col--brand{ grid-column:1 / -1; }
  .footer__inner > :nth-child(2){ grid-column:1; grid-row:2; }
  .footer__inner > :nth-child(3){ grid-column:2; grid-row:2; }
  .footer__inner > :nth-child(4){ grid-column:2; grid-row:3; }
  .footer .logo__image--footer{ width:104px; }
  .footer__about{ margin:0; max-width:none; line-height:1.4; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; margin-top:26px; }

  /* Нижні плаваючі елементи не мають перекривати контент */
  .cookies{ gap:12px; padding:12px 16px; }
  .cookies__text{ font-size:12.5px; line-height:1.4; }
  .cookies__btn{ padding:10px 16px; font-size:14px; }
  .to-top{ right:14px; bottom:16px; width:46px; height:46px; }
  .header__legal-cta{ width:auto; margin-top:0; margin-left:auto; padding:11px 16px; font-size:14px; }

  /* на вузьких екранах анімуємо лише по вертикалі — інакше з'являється зайвий скрол */
  .js [data-reveal="left"],
  .js [data-reveal="right"]{ transform:translateY(24px); }
}

@media (max-width:400px){
  .hero__title{ font-size:30px; }
  .section__title{ font-size:26px; }
  .hand{ font-size:22px; }
  .section__head > .hand,
  .cta__hand{ font-size:24px; }
  .apply__info > .hand{ font-size:25px; }
  #vykladachi .section__head > .hand,
  #yak-pochaty .section__head > .hand,
  #formaty .section__head > .hand{ font-size:26px; }
  #vykladachi .carousel__viewport{ padding-inline:28px; }
  .footer__col--brand{ grid-template-columns:92px minmax(0,1fr); gap:12px; }
  .footer .logo__image--footer{ width:92px; }
  .container{ padding:0 16px; }
}

/* ---------- Менше руху ---------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .js [data-reveal]{ opacity:1 !important; transform:none !important; }
  .underlined path{ stroke-dashoffset:0; }
}

/* ---------- Прості сторінки (оферта/політика) ---------- */
.logo__image--legal{ width:57.6px; height:auto; object-fit:contain; }
.header__legal-cta{ width:auto; margin-top:0; margin-left:auto; }
.page{ padding:64px 0 96px; }
.page h1{ font-size:clamp(28px,4vw,42px); font-weight:800; margin-bottom:10px; }
.page__date{ color:var(--ink-mute); font-size:15px; margin-bottom:36px; }
.page h2{ font-size:22px; font-weight:700; margin:36px 0 12px; }
.page p, .page li{ color:var(--ink-soft); }
.page ul{ list-style:disc; padding-left:22px; display:grid; gap:8px; margin-top:10px; }
.page a{ color:var(--blue); text-decoration:underline; }
.page__back{ display:inline-flex; align-items:center; gap:8px; margin-bottom:28px; font-weight:700; color:var(--blue); }
.page__note{ margin-top:40px; padding:18px 22px; border-radius:var(--r-md); background:var(--pink-soft); color:var(--ink); font-size:15px; }
