/* ==========================================================
   Логопед — лендинг. Вёрстка по макету Figma (1440 / 375)
   Брейкпоинты: ≥1200 десктоп · 768–1199 планшет · <768 мобильный
   ========================================================== */

:root {
  /* цвета из макета */
  --bg: #fdf6f0;
  --bg-modal: #fbf5ee;
  --ink: #010205;
  --ink-2: #09101d;
  --grey: #878c91;
  --grey-2: #9b9b9c;
  --blue: #5688c4;
  --blue-dark: #3668a5;
  --tag: #dfe7f0;
  --yellow: #fce4b7;
  --yellow-2: #fbe1a4;
  --pill: #f8efe5;
  --line: #d5d8dc;
  --error: #d92d20;

  --grad-blue: radial-gradient(120% 140% at 15% 35%, #5688c4 0%, #3668a5 100%);
  --shadow-card: 0 4px 100px rgba(0, 0, 0, .06);

  --ff-head: "Comfortaa", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;

  /* 1 «пиксель макета»: 1px на ширине 1440, меньше — пропорционально */
  --k: min(1px, 0.0694444vw);
  --gutter: max(16px, calc(80 * var(--k)));
  --section-pt: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  overflow-x: clip;
}
/* Защита от горизонтальной прокрутки: декоративные картинки могут выходить
   за край секции, но экран при этом не должен уезжать вбок. */
html { background: var(--bg); overflow-x: hidden; }
main, footer, main > section { overflow-x: clip; }
@supports not (overflow: clip) {
  /* старый Safari: clip не поддерживается */
  body { overflow-x: hidden; }
  main, footer { overflow-x: hidden; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
body.is-locked { overflow: hidden; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }

/* ---------- типографика ---------- */
.h1, .h2, .h3 { font-family: var(--ff-head); font-weight: 400; line-height: 1.1; }
.h1 { font-size: 64px; letter-spacing: -0.03em; }
.h2 { font-size: 48px; letter-spacing: -0.03em; }
.h3 { font-size: 24px; letter-spacing: -0.03em; }
.text { font-size: 16px; line-height: 1.3; color: var(--grey); }
.text p + p { margin-top: 1.3em; }
.text--dark { color: var(--ink); }

.tag {
  display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 70px;
  background: var(--tag); color: var(--blue);
  font-weight: 600; font-size: 14px; line-height: 1.37;
}

/* подчёркивания-«мазки» под словами */
.h1, .h2 { position: relative; isolation: isolate; }
.u-wrap { position: relative; display: inline-block; }
.u-line { position: absolute; z-index: -1; pointer-events: none; max-width: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 16px 0 24px; border-radius: 70px;
  font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap; transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn img { flex: none; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:hover img { transform: translateX(3px); }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 24px rgba(54, 104, 165, .18); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(54, 104, 165, .28); }
.btn--wide { width: 100%; }
.btn--msg { width: 160px; justify-content: space-between; color: #fff; }
.btn--tg { background: radial-gradient(120% 200% at 15% 35%, #028abd 0%, #009fdb 100%); }
.btn--wa { background: radial-gradient(120% 200% at 4% 40%, #00d151 0%, #00ae66 50%, #008b7a 100%); }

.link-btn {
  display: inline-flex; align-items: center; height: 56px;
  font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
  color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--blue-dark); }

.round-btn {
  width: 56px; height: 56px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.round-btn:hover { background: #fbd88f; transform: translateX(2px); }

.icon-close { width: 56px; height: 56px; transition: transform .2s; }
.icon-close:hover { transform: rotate(90deg); }

/* ---------- заголовки секций ---------- */
.section { padding-top: var(--section-pt); }
.sec-head { display: flex; align-items: flex-end; gap: 32px 120px; margin-bottom: 32px; }
.sec-head__title { flex: 0 0 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sec-head__aside { flex: 1; }
.sec-head__aside--end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sec-head--between { justify-content: space-between; }

/* ---------- точки слайдера ---------- */
.dots { display: flex; align-items: center; gap: 8px; }
.dots button {
  width: 16px; height: 16px; background: url(../img/dot.svg) center / contain no-repeat;
  transition: width .25s, height .25s;
}
.dots button[aria-current="true"] { width: 32px; height: 32px; background-image: url(../img/dot-active.svg); }

/* ---------- горизонтальные ленты (слайдеры) ---------- */
.track {
  display: flex; gap: 45px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; flex: none; }

/* ==========================================================
   HEADER
   ========================================================== */
.header { position: absolute; inset: 0 0 auto; z-index: 20; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 30px; }
.header__left { display: flex; align-items: center; gap: 74px; }
.header__logo img { width: 64px; height: 64px; }
.header__nav { display: flex; gap: 33px; }
.header__nav a { font-weight: 600; font-size: 14px; transition: color .2s; }
.header__nav a:hover { color: var(--blue); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--grad-blue); place-items: center; }

/* мобильное меню */
.mmenu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; gap: 32px; padding: 16px 16px 32px; overflow-y: auto;
}
.mmenu[hidden] { display: none; }
.mmenu__top { display: flex; justify-content: space-between; align-items: center; }
.mmenu__logo { width: 48px; height: 48px; }
.mmenu__top .icon-close { width: 48px; height: 48px; }
.mmenu__nav { display: flex; flex-direction: column; gap: 8px; }
.mmenu__nav a {
  font-family: var(--ff-head); font-size: 24px; letter-spacing: -0.03em;
  padding: 16px 20px; border-radius: 24px; background: var(--pill);
}
.mmenu__socials { justify-content: center; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; overflow: hidden; }
.hero__noise {
  position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background: url(../img/noise.webp) 0 0 / 512px repeat;
}
.hero__stage { position: relative; max-width: 1440px; margin-inline: auto; min-height: calc(806 * var(--k)); }
.hero__art { position: absolute; inset: 0; pointer-events: none; }
.hero__blue {
  position: absolute; left: calc(1156 * var(--k)); top: calc(-131 * var(--k));
  width: calc(571 * var(--k)); height: calc(482 * var(--k));
  display: grid; place-items: center;
}
.hero__blue img { width: calc(487.2 * var(--k)); height: calc(349.5 * var(--k)); max-width: none; transform: rotate(-17.89deg); }
.hero__ellipse { position: absolute; left: calc(675 * var(--k)); top: calc(149 * var(--k)); width: calc(742 * var(--k)); height: calc(621 * var(--k)); max-width: none; }
.hero__img { position: absolute; left: calc(691 * var(--k)); top: calc(73 * var(--k)); width: calc(733 * var(--k)); height: calc(733 * var(--k)); max-width: none; object-fit: cover; }
.hero__bottom {
  position: absolute; left: 50%; bottom: calc(-460 * var(--k)); transform: translateX(-50%);
  width: calc(2528 * var(--k)); height: calc(514 * var(--k)); max-width: none; pointer-events: none;
}

.hero__content {
  position: relative; z-index: 2;
  padding-top: max(150px, calc(200 * var(--k))); padding-bottom: 92px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
.hero__text { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hero__line { position: absolute; left: 10px; top: 38px; width: 409px; height: 76px; max-width: none; z-index: -1; }
.hero__lead { max-width: 557px; }
.hero__actions { display: flex; align-items: center; gap: 24px; }
.hero__actions .link-btn { padding-inline: 32px; }
.hero__info { display: flex; gap: 15px; margin-top: 16px; }
.hero__info > div { width: 274px; display: flex; flex-direction: column; gap: 16px; }
.hero__info dt { font-weight: 600; font-size: 14px; }
.hero__info dd { color: var(--grey); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about { position: relative; min-height: calc(682 * var(--k)); }
.about__media {
  position: absolute; top: 0; left: max(calc(50% - 720px - 167 * var(--k)), calc(-167 * var(--k)));
  width: calc(1607 * var(--k)); height: calc(682 * var(--k)); pointer-events: none;
}
.about__media img { width: 100%; height: 100.06%; max-width: none; object-fit: cover; object-position: left top; }
.about__inner { display: flex; justify-content: flex-end; }
.about__content {
  position: relative; width: calc(556 * var(--k) + 80px); max-width: 636px;
  padding: calc(139 * var(--k)) 0 calc(80 * var(--k)) 80px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.about__title { position: relative; z-index: 0; }
.about__line { position: absolute; left: 146px; top: 32px; width: 294px; max-width: none; z-index: -1; transform: scaleX(-1); }
.about__text { display: flex; flex-direction: column; gap: 24px; }
.about__text p + p { margin: 0; }
mark { background: var(--yellow); color: inherit; border-radius: 64px; padding: 0 4px; }

/* ==========================================================
   DIRECTIONS
   ========================================================== */
.dir-line { left: 0; top: 34px; width: 242px; transform: rotate(.17deg); }
.dir { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.dir__col { width: 326px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.pill {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 24px 8px 8px; border-radius: 100px; background: var(--pill);
}
.pill__ico {
  flex: none; width: 108px; height: 108px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(191deg, #fce4b7 12%, #fedf93 92%);
  display: grid; place-items: center;
}
.pill__ico img { width: var(--s, 100%); height: var(--s, 100%); object-fit: cover; }

.dir__art { position: relative; flex: none; width: 607px; height: 585px; }
.dir__bg { position: absolute; left: -.5px; top: -4px; width: 565px; height: 589px; max-width: none; }
.dir__conn { position: absolute; max-width: none; }
.dir__conn--l { left: -10px; top: 6.6px; width: 180px; height: 514px; }
.dir__conn--r { left: 439px; top: 32.6px; width: 169px; height: 489.6px; transform: scaleX(-1); }
.dir__circle { position: absolute; left: -3.5px; top: 20px; width: 565px; height: 565px; border-radius: 50%; overflow: hidden; }
.dir__circle img { width: 100%; height: 100%; object-fit: cover; }
.dir__head { position: absolute; left: -34.5px; top: 20px; width: 627px; height: 259px; overflow: hidden; }
.dir__head img { position: absolute; left: 0; top: -.17%; width: 100%; height: 220.56%; max-width: none; }

/* ==========================================================
   STEPS
   ========================================================== */
.steps-line { left: -8px; top: 42px; width: 314px; }
.steps .sec-head__aside { max-width: 560px; margin-left: auto; }
.steps__sub { margin-bottom: 32px; }
.steps .track { margin-bottom: 32px; }
.step { position: relative; width: 351px; height: 422px; overflow: hidden; }
.step__blob { position: absolute; left: 0; top: 0; width: 351px; max-width: none; }
.step__photo { position: absolute; max-width: none; }
.step__splash { position: absolute; max-width: none; }
.flip { transform: scale(-1, -1) rotate(180deg); }
.step__cap { position: absolute; left: 0; bottom: 30px; width: 217px; height: 125px; display: flex; flex-direction: column; gap: 12px; }
.step__cap p { font-size: 16px; line-height: 1.3; }
.num {
  width: 80px; height: 80px; border-radius: 40px; flex: none;
  display: grid; place-items: center; padding-top: 10px;
  font-family: var(--ff-head); font-weight: 300; font-size: 48px; letter-spacing: -0.03em; line-height: 1;
}
.num--y { background: var(--yellow); }
.num--b { background: #d7e8f5; }
.num--p { background: #fddedb; }
.step--final .step__blob:first-child { height: 397px; }
.step__final-img { position: absolute; left: 73.7px; top: 211px; width: 199px; height: 181.3px; border-radius: 0 0 80px 76px; overflow: hidden; }
.step__final-img img { position: absolute; left: -5.29%; top: 9.49%; width: 100.06%; height: 100.21%; max-width: none; }
.step__final-text { position: absolute; left: 55px; top: 85px; width: 250px; text-align: center; font-size: 16px; line-height: 1.3; }

/* ==========================================================
   SERVICES
   ========================================================== */
.svc-line { left: -4px; top: 36px; width: 231px; }
.services .sec-head { margin-bottom: 32px; }
.services__lead { max-width: 457px; margin-top: 16px; }
.track--cards { gap: 24px; padding-block: 70px 90px; margin-block: -70px -90px; } /* место для тени */
.card {
  width: 351px; min-height: 574px; background: #fff; border-radius: 32px; box-shadow: var(--shadow-card);
  padding: 24px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.card__media { position: relative; height: 290px; flex: none; }
.card__blob { position: absolute; inset: 0; width: 100%; height: 290px; max-width: none; }
.card__photo { position: absolute; max-width: none; height: auto; }
.card__splash { position: absolute; max-width: none; }
.card__splash--rot { transform: rotate(45deg); }
.card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__time { display: flex; align-items: center; gap: 8px; color: var(--blue); }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.price {
  height: 56px; padding: 0 24px; border-radius: 70px; background: var(--yellow);
  display: inline-flex; align-items: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
}

/* ==========================================================
   PARENTS
   ========================================================== */
.parents { position: relative; }
.parents__inner { min-height: calc(771 * var(--k)); }
.parents__text {
  position: relative; z-index: 3; width: 491px; padding-top: var(--section-pt);
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
.parents__text .tag { margin-bottom: -16px; }
.parents__title { display: flex; align-items: flex-end; gap: 16px; }
.parents__title .h2 { white-space: nowrap; }
.parents__heart { width: 91px; height: 82px; object-fit: cover; }
.parents__ask { position: relative; display: flex; align-items: center; margin-top: 16px; }
.parents__bulb { width: 169px; height: 141px; margin-left: 50px; object-fit: cover; }

/* композиция справа: координаты в % от рамки 823×796 */
.parents__art {
  position: absolute; z-index: 1;
  left: calc(573.6 * var(--k)); top: calc(-25 * var(--k));
  width: calc(823.4 * var(--k)); aspect-ratio: 823.4 / 795.6;
  pointer-events: none;
}
.pa { position: absolute; max-width: none; }
.pa > img { position: absolute; max-width: none; }
.pa--blob { left: 0; top: 25.3%; width: 87.18%; height: 67.82%; }
.pa--giraffe { left: 42.68%; top: 0; width: 57.32%; height: 59.83%; z-index: 3; }
.pa--giraffe img { left: 0; top: 1.74%; width: 100%; height: 94.39%; object-fit: cover; }
.pa--dash1, .pa--dash2, .pa--splash { display: grid; place-items: center; }
.pa--dash1 img, .pa--dash2 img, .pa--splash img { position: static; }
.pa--dash1 { left: 22.71%; top: 13.19%; width: 42.63%; height: 24.62%; }
.pa--dash1 img { width: 94.37%; height: 67.16%; transform: rotate(11.68deg); }
.pa--dash2 { left: -35.05%; top: 56.31%; width: 51.4%; height: 27.77%; }
.pa--dash2 img { width: 95.16%; height: 64.44%; transform: rotate(-168.32deg); }
.pa--photo { left: 4.6%; top: 28.97%; width: 74.66%; height: 59.94%; z-index: 2; }
.pa--certs { left: 48.26%; top: 64.1%; width: 44.39%; height: 35.9%; z-index: 3; }
.pa--splash { left: 38.18%; top: 84.09%; width: 11.63%; height: 9.44%; z-index: 4; }
.pa--splash img { width: 61.04%; height: 113.67%; transform: rotate(-77.85deg); }

/* ==========================================================
   SUPPORT
   ========================================================== */
.support { position: relative; overflow: hidden; padding: 64px 0 0; }
.support__wave {
  position: absolute; left: calc(50% - 720px - 225 * var(--k)); top: -226px;
  width: 1980px; height: 1269px; display: grid; place-items: center; pointer-events: none;
}
.support__wave img { width: 1842px; height: 739px; max-width: none; transform: scaleY(-1) rotate(-162.11deg); }
.support__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 24px; }
.support__head { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.support__head .text { margin-top: 16px; }
.sup-line { left: 56px; top: 43px; width: 318px; height: 48px; transform: scaleY(-1) rotate(-10.78deg); }
.support__giraffe { position: absolute; left: 451px; top: 45px; width: 370px; height: 216px; object-fit: cover; z-index: 0; }
.sup-cards { position: relative; z-index: 1; width: 100%; display: flex; gap: 12px; }
.sup-card {
  flex: 1 1 0; min-width: 0; padding: 24px 22px; border-radius: 32px; background: var(--bg, #fff); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.sup-card { background: var(--bg); }
.sup-card[style*="--bg"] { background: var(--bg); }
.sup-card p { color: var(--grey); font-size: 16px; line-height: 1.3; }
.sup-card b { display: block; font-family: var(--ff-head); font-weight: 400; font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.sprite { position: relative; width: 144px; height: 144px; flex: none; }
.sprite > div { position: absolute; overflow: hidden; }
.sprite img { position: absolute; max-width: none; }

/* ==========================================================
   CONTACTS + FAQ
   ========================================================== */
.contacts__row { display: flex; align-items: flex-start; gap: 132px; margin-top: 32px; }
.contacts__info { position: relative; flex: 0 0 581px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.contacts__info > * { position: relative; z-index: 1; }
.contacts__info .link-btn { margin-top: -8px; }
.contacts__giraffe { position: absolute !important; z-index: 0 !important; left: 348px; top: -212px; width: 571px; height: 401px; max-width: none; object-fit: cover; pointer-events: none; }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; }

.faq { position: relative; z-index: 2; flex: 1; min-width: 0; background: var(--yellow-2); border-radius: 32px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border-radius: 32px; padding: 26px 24px; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--ff-head); font-size: 24px; letter-spacing: -0.03em; line-height: 1.1;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { max-width: 448px; }
.faq__ico { flex: none; width: 52px; height: 52px; background: url(../img/faq-plus.svg) center / contain no-repeat; transition: transform .25s; }
.faq__item[open] .faq__ico { background-image: url(../img/faq-minus.svg); }
.faq__item summary:hover .faq__ico { transform: rotate(8deg) scale(1.05); }
.faq__item .text { margin-top: 32px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { padding: var(--section-pt) 0 24px; }
.footer__row { display: flex; gap: 132px; align-items: flex-start; }
.footer__about { flex: 0 0 581px; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.footer__logo { width: 101px; height: 101px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: #ffe9b8; display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--yellow-2); }
.socials img { width: 18px; height: 18px; }
.footer__cols { display: flex; gap: 120px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; font-weight: 600; font-size: 14px; color: var(--grey-2); }
.footer__col a:hover { color: var(--blue); }
.footer__h { font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: #192031; margin-bottom: 18px; }
.footer__ci { display: flex; align-items: flex-start; gap: 8px; max-width: 240px; line-height: 24px; }
.footer__ci img { flex: none; }
.footer__pin { margin: 3px 5px 0; }
.footer__bottom { display: flex; gap: 32px 132px; margin-top: 24px; font-weight: 600; font-size: 14px; }
.footer__bottom > p { flex: 0 0 581px; color: var(--grey-2); }
.footer__legal { flex: 1; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--blue); }
@media (min-width: 1200px) { .footer__legal { flex-wrap: nowrap; gap: 24px; white-space: nowrap; } }
.footer__legal a:hover { text-decoration: underline; }

/* ==========================================================
   MODALS
   ========================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__overlay { position: fixed; inset: 0; background: rgba(93, 79, 54, .46); animation: fade .25s ease; }
.modal__box {
  position: relative; width: 100%; max-width: 1184px; background: var(--bg-modal); border-radius: 48px; overflow: hidden;
  padding: 48px; animation: pop .3s cubic-bezier(.2, .9, .3, 1.2);
  isolation: isolate;
}
.modal__close { position: absolute; top: 20px; right: 20px; z-index: 5; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* форма */
.modal__box--form { display: flex; gap: 56px; min-height: 781px; }
.mf__blob { position: absolute; left: -93px; top: 550px; width: 551px; height: 570px; max-width: none; pointer-events: none; }
.mf__giraffe { position: absolute; left: 1px; bottom: 0; width: 503px; height: 459px; object-fit: cover; pointer-events: none; }
.mf__aside { position: relative; flex: 0 0 410px; display: flex; flex-direction: column; gap: 12px; }
.mf__aside .text { max-width: 374px; }
.form-line { left: -4px; top: 30px; width: 314px; }
.mf__form { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-right: 32px; }
.field { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.field__label { padding: 0 16px; margin-bottom: 4px; font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--ink-2); opacity: .8; }
.field__box {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-modal);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field__box img { flex: none; opacity: .55; }
.field__box--area { align-items: flex-start; height: 132px; }
.field input, .field textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0;
  font: 500 16px/1.3 var(--ff-body); color: var(--ink-2); resize: none; height: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: .5; }
.field__box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(86, 136, 196, .15); }
.field__msg { display: none; padding: 4px 12px; border-radius: 8px; background: #fdeeee; color: var(--error); font-size: 13px; }
.field.is-invalid .field__box { border-color: var(--error); background: #fdeeee; }
.field.is-invalid .field__msg { display: block; }
.chips { display: flex; gap: 12px; }
.chip {
  position: relative; flex: 1 1 0; min-width: 0; height: 56px; padding: 0 16px 0 24px; border: 1px solid var(--line); border-radius: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
  font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
  transition: border-color .2s, background .2s;
}
.chip--narrow { flex: 0 0 115px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip--tg { color: var(--blue); }
.chip--wa { color: #018e79; }
.chip--ph { color: var(--grey); justify-content: center; gap: 12px; }
.chip:hover { background: #fff; }
.chip:has(input:checked) { background: #fff; border-color: currentColor; }
.chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.flip-h { transform: scaleX(-1); }
.mf__legal a { color: var(--blue); }
.mf__legal a:hover { text-decoration: underline; }

/* спасибо */
.modal__box--thanks { display: flex; align-items: center; justify-content: flex-end; min-height: 781px; }
.mt__blob { position: absolute; left: -209px; top: 390px; width: 551px; height: 570px; max-width: none; pointer-events: none; }
.mt__giraffe { position: absolute; left: 0; bottom: -1px; width: 777px; height: 709px; object-fit: cover; pointer-events: none; }
.mt__content { position: relative; width: 410px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-right: 16px; }
.mt__line { position: absolute; left: 10px; top: 38px; width: 409px; height: 76px; max-width: none; transform: scaleY(-1); z-index: -1; }
.mt__heart { width: 58px; height: 52px; object-fit: cover; }
.mt__content .btn { margin-top: 36px; padding: 0 24px; }

/* ==========================================================
   ДЕСКТОП 1200–1439: чуть ужимаем фиксированные колонки
   ========================================================== */
@media (max-width: 1439px) {
  .sec-head__title { flex-basis: auto; }
  .dir__col { width: auto; flex: 1 1 0; }
  .contacts__row, .footer__row { gap: 64px; }
  .contacts__info, .footer__about { flex-basis: 520px; }
  .footer__bottom { gap: 32px 64px; }
  .footer__bottom > p { flex-basis: 520px; }
  .footer__cols { gap: 64px; }
}

/* ==========================================================
   ПЛАНШЕТ < 1200
   ========================================================== */
@media (max-width: 1199px) {
  :root { --gutter: 32px; --section-pt: 96px; }
  .h1 { font-size: 52px; }
  .h2 { font-size: 40px; }

  /* header */
  .header__nav, .header__cta { display: none; }
  .burger { display: grid; }
  .header__inner { padding-block: 16px; }
  .header__logo img { width: 56px; height: 56px; }

  /* hero: текст, затем картинка */
  .hero__stage { min-height: 0; }
  .hero__content { padding-top: 120px; padding-bottom: 40px; }
  .hero__art {
    position: relative; inset: auto; margin: 0 auto;
    width: min(100% - 32px, 560px); aspect-ratio: 1; order: 3;
  }
  .hero__stage { display: flex; flex-direction: column; }
  .hero__content { display: contents; }
  .hero__text, .hero__actions, .hero__info { position: relative; z-index: 2; padding-inline: var(--gutter); max-width: 1440px; width: 100%; margin-inline: auto; }
  .hero__text { padding-top: 112px; order: 1; }
  .hero__actions { order: 2; margin-top: 32px; }
  .hero__info { order: 4; margin-top: 0; padding-bottom: 64px; position: relative; z-index: 3; }
  .hero__line { left: calc(var(--gutter) + 8px); top: 145px; width: 330px; height: auto; }
  .hero__blue { left: 70%; top: 2%; width: 45%; height: 40%; }
  .hero__blue img { width: 90%; height: auto; }
  .hero__ellipse { left: -2%; top: 10%; width: 104%; height: auto; }
  .hero__img { left: 0; top: 0; width: 100%; height: 100%; }
  .hero__bottom { width: 300%; height: auto; bottom: auto; top: calc(100% - 200px); }
  .hero__info { margin-top: -20px; }

  /* about */
  .about { display: flex; flex-direction: column-reverse; min-height: 0; }
  .about__media { position: relative; left: auto; transform: none; width: calc(100% - var(--gutter)); max-width: 680px; height: auto; aspect-ratio: 820 / 682; margin-top: 16px; overflow: hidden; }
  .about__media img { width: 196%; height: 100%; }
  .about__inner { justify-content: flex-start; }
  .about__content { width: 100%; max-width: 640px; padding: var(--section-pt) 0 0; }
  .about__line { left: 118px; top: 22px; width: 230px; }

  /* section heads */
  .sec-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .sec-head__aside { max-width: 640px; }
  .sec-head__aside--end { align-items: flex-start; }
  .steps .sec-head__aside { margin-left: 0; }

  /* directions */
  .dir { flex-direction: column; align-items: center; gap: 12px; }
  .dir__art { order: -1; width: 420px; height: 420px; margin-bottom: 24px; }
  .dir__bg, .dir__conn { display: none; }
  .dir__circle { left: 0; top: 0; width: 100%; height: 100%; }
  .dir__head { left: -5.5%; top: 0; width: 111%; height: 45.8%; }
  .dir__col { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .pill__ico { width: 88px; height: 88px; }

  /* parents */
  .parents__inner { min-height: 0; display: flex; flex-direction: column; }
  .parents__text { width: 100%; max-width: 560px; }
  .parents__art { position: relative; left: auto; top: auto; width: min(100%, 680px); margin: 24px auto 0 auto; }
  .pa--dash2 { display: none; }

  /* support */
  .support { padding-top: var(--section-pt); }
  .support__giraffe { left: auto; right: 0; top: 40px; width: 300px; height: auto; }
  .sup-line { left: 47px; top: 36px; width: 265px; height: 40px; }
  .sup-cards { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 60px var(--gutter) 80px; margin-block: -60px -80px; width: calc(100% + 2 * var(--gutter)); }
  .sup-cards::-webkit-scrollbar { display: none; }
  .sup-card { flex: 0 0 220px; scroll-snap-align: start; }

  /* contacts */
  .contacts__row { flex-direction: column; gap: 48px; }
  .contacts__info { flex-basis: auto; width: 100%; }
  .contacts__giraffe { left: auto; right: 0; top: -180px; width: 380px; height: auto; }
  .faq { width: 100%; }

  /* footer */
  .footer__row { flex-direction: column; gap: 48px; }
  .footer__about { flex-basis: auto; max-width: 560px; }
  .footer__bottom { flex-direction: column; }
  .footer__bottom > p { flex-basis: auto; order: 2; }

  /* modals */
  .modal { padding: 16px; place-items: start center; }
  .modal__box { padding: 40px 32px; border-radius: 32px; }
  .modal__box--form { flex-direction: column; gap: 32px; min-height: 0; }
  .mf__aside { flex-basis: auto; max-width: 520px; }
  .mf__giraffe, .mf__blob { display: none; }
  .mf__form { padding-right: 0; }
  .chips { flex-wrap: wrap; }
  .chip, .chip--narrow { flex: 1 1 calc(50% - 6px); }
  .modal__box--thanks { flex-direction: column; justify-content: flex-start; min-height: 0; padding-bottom: 0; }
  .mt__content { width: 100%; max-width: 420px; margin: 24px auto 0; }
  .mt__giraffe { position: relative; left: auto; bottom: auto; width: 100%; max-width: 480px; height: auto; margin: 24px auto 0; }
  .mt__blob { top: auto; bottom: -200px; }
}

/* ==========================================================
   МОБИЛЬНЫЙ < 768 (макет 375)
   ========================================================== */
@media (max-width: 767px) {
  :root { --gutter: 16px; --section-pt: 72px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 22px; }
  .text { font-size: 15px; }

  .header__logo img { width: 48px; height: 48px; }

  .hero__text { padding-top: 96px; }
  .hero__line { left: 12px; top: 102px; width: 220px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-btn { justify-content: center; }
  .hero__art { width: calc(100% - 32px); margin-top: 8px; }
  .hero__info { gap: 16px; padding-bottom: 48px; margin-top: 0; }
  .hero__info > div { width: auto; flex: 1; gap: 8px; }
  .hero__bottom { top: calc(100% - 150px); }

  .about__title { font-size: 32px; }
  .about__line { left: 92px; top: 14px; width: 180px; }

  .dir-line { top: 24px; width: 165px; }
  .dir__art { width: min(100%, 340px); height: auto; aspect-ratio: 1; }
  .dir__col { grid-template-columns: 1fr; gap: 8px; }
  .dir { gap: 8px; }
  .pill { padding: 6px 16px 6px 6px; gap: 12px; }
  .pill__ico { width: 64px; height: 64px; }
  .pill { font-size: 15px; }

  .steps-line { top: 28px; width: 220px; }
  .steps__sub { margin-bottom: 20px; }
  .track { gap: 16px; }
  .step { zoom: .8; }

  .svc-line { top: 26px; width: 165px; }
  .card { width: 300px; min-height: 0; }
  .card__media { height: 248px; }
  .card__blob { height: 248px; }

  .parents__title .h2 { white-space: normal; }
  .parents__heart { width: 64px; height: auto; }
  .parents__bulb { width: 110px; height: auto; margin-left: 24px; }

  .support__giraffe { width: 140px; top: -24px; right: 0; }
  .sup-line { left: 37px; top: 29px; width: 212px; height: 32px; }
  .sup-card { flex-basis: 200px; }

  .contacts__giraffe { width: 130px; right: 0; top: -184px; }
  .messengers { flex-direction: column; width: 100%; }
  .btn--msg { width: 100%; }
  .faq__item { padding: 20px; border-radius: 24px; }
  .faq__item summary { font-size: 20px; }
  .faq__ico { width: 44px; height: 44px; }
  .faq__item .text { margin-top: 16px; }

  .footer__logo { width: 72px; height: 72px; }
  .footer__cols { flex-direction: column-reverse; gap: 40px; }
  .footer__legal { flex-direction: column; gap: 12px; }

  .modal { padding: 0; }
  .modal__box { border-radius: 0; min-height: 100dvh; padding: 72px 16px 32px; }
  .modal__close { top: 12px; right: 12px; }
  .chip, .chip--narrow { flex-basis: 100%; }
  .form-line { width: 220px; top: 20px; }
  .mt__line { width: 300px; left: 50%; margin-left: -150px; top: 46px; }
}

/* ==========================================================
   АНИМАЦИИ — мягкие, короткие, не мешают чтению
   ========================================================== */
/* появление при прокрутке (включается из JS, без JS всё видно сразу) */
.js-reveal [data-reveal] {
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js-reveal [data-reveal="up"] { transform: translateY(24px); }
.js-reveal [data-reveal="zoom"] { transform: scale(.96); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* жирафы слегка «дышат» */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes float-soft { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -5px; rotate: -1deg; } }
.hero__img { animation: float 7s ease-in-out infinite; }
.support__giraffe, .contacts__giraffe { animation: float-soft 6s ease-in-out infinite; }
.pa--giraffe { animation: float-soft 6.5s ease-in-out infinite; }
.mf__giraffe, .mt__giraffe { animation: float 6s ease-in-out infinite; }
.parents__bulb { animation: float 4.5s ease-in-out infinite; }

/* лёгкий отклик карточек */
.card, .sup-card, .pill { transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 12px 60px rgba(0, 0, 0, .1); }
  .sup-card:hover { transform: translateY(-4px); }
  .pill:hover { transform: translateX(4px); }
  .step__photo { transition: transform .4s ease; }
  .step:hover .step__photo { transform: scale(1.03); }
}
.js-reveal .card.is-in:hover { transform: translateY(-6px); }

/* плавное раскрытие FAQ */
.faq__item[open] .text { animation: faq-in .35s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* мобильное меню выезжает мягко */
.mmenu:not([hidden]) { animation: fade .25s ease; }
.mmenu:not([hidden]) .mmenu__nav a { animation: pop .4s cubic-bezier(.2, .9, .3, 1) backwards; }
.mmenu__nav a:nth-child(2) { animation-delay: .04s !important; }
.mmenu__nav a:nth-child(3) { animation-delay: .08s !important; }
.mmenu__nav a:nth-child(4) { animation-delay: .12s !important; }
.mmenu__nav a:nth-child(5) { animation-delay: .16s !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   ДОБАВЛЕНО: отзывы, согласие в форме, соцсети, мелкие экраны
   ========================================================== */
.btn--ig { background: radial-gradient(130% 220% at 0% 100%, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%); }
.footer__note { margin-top: 16px; font-size: 12px; line-height: 1.4; color: var(--grey-2); }

/* галочка согласия */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.check__box::after {
  content: ""; width: 12px; height: 7px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s;
}
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check .mf__legal { font-size: 14px; }
.mf__form .check__msg { margin-top: -12px; }
.mf__form.no-consent .check__msg { display: block; }
.mf__form.no-consent .check__box { border-color: var(--error); background: #fdeeee; }

/* отзывы */
.rev-line { left: -6px; top: 34px; width: 250px; }
.reviews__lead { max-width: 457px; margin-top: 16px; }
.reviews__nav { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.reviews__arrows { display: flex; gap: 12px; }
.round-btn--prev img { transform: scaleX(-1); }
.track--reviews { gap: 24px; }
.review {
  width: 420px; min-height: 340px; background: #fff; border-radius: 32px; box-shadow: var(--shadow-card);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.review__top { display: flex; justify-content: space-between; align-items: center; }
.review__quote {
  width: 56px; height: 56px; display: grid; place-items: center; padding-top: 18px;
  background: var(--yellow);
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  font-family: var(--ff-head); font-weight: 700; font-size: 56px; line-height: 1; color: #c38f13;
}
.review__stars { color: #f5b100; letter-spacing: 3px; font-size: 18px; }
.review__text { flex: 1; color: var(--ink); font-size: 16px; line-height: 1.45; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__ava {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: var(--c);
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  font-family: var(--ff-head); font-size: 22px;
}
.review__author b { display: block; font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.review__author span { color: var(--grey); font-size: 14px; }
@media (hover: hover) { .review { transition: transform .3s ease, box-shadow .3s ease; } .review:hover { transform: translateY(-6px); box-shadow: 0 12px 60px rgba(0, 0, 0, .1); } }

@media (max-width: 1199px) {
  .reviews__nav { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .rev-line { top: 30px; width: 210px; }
}
@media (max-width: 767px) {
  .review { width: 300px; min-height: 0; padding: 24px; }
  .rev-line { top: 24px; width: 170px; }
  .reviews__arrows .round-btn { width: 48px; height: 48px; }
}

/* очень узкие телефоны (320–374) */
@media (max-width: 374px) {
  .btn { padding: 0 14px 0 18px; gap: 8px; font-size: 15px; }
  .h1 { font-size: 29px; }
  .h2 { font-size: 28px; }
  .hero__info { flex-direction: column; }
  .card, .review { width: 270px; }
}

/* ==========================================================
   ДОКУМЕНТЫ: политика и согласие
   ========================================================== */
.doc-header { padding: 24px 0; }
.doc-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-header img { width: 56px; height: 56px; }
.doc-back { height: 48px; padding: 0 20px 0 14px; background: var(--yellow); color: var(--ink); box-shadow: none; }
.doc-back img { width: 24px; height: 24px; transform: scaleX(-1); }
.doc-back:hover img { transform: scaleX(-1) translateX(3px); }
.doc { padding: 24px 0 96px; }
.doc__card { max-width: 880px; margin: 0 auto; background: #fff; border-radius: 40px; box-shadow: var(--shadow-card); padding: 56px 64px; }
.doc__card .tag { margin-bottom: 16px; }
.doc__card h1 { font-family: var(--ff-head); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 12px; }
.doc__date { color: var(--grey); margin-bottom: 32px; }
.doc__toc { background: var(--pill); border-radius: 24px; padding: 24px 28px; margin-bottom: 40px; }
.doc__toc p { font-family: var(--ff-head); font-weight: 700; margin-bottom: 12px; }
.doc__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; color: var(--blue); }
.doc__toc li { margin-bottom: 6px; break-inside: avoid; }
.doc__toc a:hover { text-decoration: underline; }
.doc h2 { font-family: var(--ff-head); font-weight: 400; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; margin: 40px 0 16px; scroll-margin-top: 24px; }
.doc p, .doc li { color: #3c4046; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol.doc__list { padding-left: 22px; margin: 12px 0; }
.doc ul { list-style: disc; }
.doc ul li::marker { color: #f5b100; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--blue); }
.doc .fill { background: var(--yellow); border-radius: 6px; padding: 0 4px; }
.doc__note { margin-top: 40px; padding: 20px 24px; border-radius: 20px; background: var(--tag); color: var(--ink); }
.doc-footer { padding: 0 0 40px; text-align: center; color: var(--grey-2); font-size: 14px; font-weight: 600; }
.doc-footer a { color: var(--blue); margin: 0 12px; }
@media (max-width: 767px) {
  .doc__card { padding: 32px 20px; border-radius: 28px; }
  .doc__card h1 { font-size: 28px; }
  .doc h2 { font-size: 21px; margin-top: 32px; }
  .doc__toc ol { columns: 1; }
  .doc-back { padding: 0 14px 0 10px; font-size: 14px; }
}
