/*
  DNA v2. Палитра и мир v1 сохранены (решение заказчика), исправления по Impeccable + Taste Skill.
  Скругления: кнопки, теги и чипы = pill; крупные блоки = 28px; карточки = 22px; мелкое = 14px.
*/
:root {
  --ink: #0F1E3D;
  --ink-2: #3A4766;
  --muted: #5A6480;          /* 5.5:1 на paper */
  --paper: #FBF8F3;
  --paper-2: #F3EEE6;
  --white: #FFFFFF;
  --blue: #1E4FD8;
  --blue-deep: #163DAE;
  --blue-soft: #E6EDFF;
  --on-blue-soft: #DCE5FF;   /* 5.3:1 на blue */
  --coral: #FF5A3C;          /* только декор: линии, точки */
  --coral-ink: #D63A1E;      /* кнопки и текст: 4.7:1 с белым */
  --coral-text: #C8361B;     /* коралловый текст на paper: 5:1 */
  --line: rgba(15, 30, 61, .12);

  --display: "Unbounded", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;

  --r-lg: 28px;
  --r: 22px;
  --r-sm: 14px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 48px -28px rgba(15, 30, 61, .38);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; scrollbar-color: #B9C2D6 var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; caret-color: var(--blue);
}
::selection { background: var(--blue); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: 20px; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: calc(var(--wrap) + 32px); padding-inline: 16px; margin-inline: auto; }
.accent-light { color: #A9BCFF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  padding: 18px 28px; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none;
  transition: transform .2s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--coral { background: var(--coral-ink); color: #fff; box-shadow: 0 12px 28px -14px rgba(214, 58, 30, .8); }
.btn--coral:hover { background: #BF3218; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--blue-deep); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--wide { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.nav--solid { background: rgba(251, 248, 243, .94); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; background: linear-gradient(var(--coral), var(--coral)) left 100% / 0 2px no-repeat; padding-bottom: 4px; transition: background-size .3s var(--ease); }
.nav__links a:not(.btn):hover { background-size: 100% 2px; }

.logo { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; column-gap: 6px; text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: .14em; color: var(--blue-deep); }
.logo small { grid-column: 1 / -1; font: 600 11px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-top: 5px; text-align: center; }
.logo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.logo__dot--blue { background: var(--blue); }
.logo--light { color: #fff; }
.logo--light small { color: #C9D5FF; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.nav--open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav--open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 128px 0 80px; position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 90%;
  background: radial-gradient(closest-side, var(--blue-soft), transparent 70%); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero__title { font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -.04em; margin-bottom: 28px; }
.hero__mark { position: relative; color: var(--blue); white-space: nowrap; }
.hero__mark::after {
  content: ""; position: absolute; left: 0; right: 4%; bottom: -.08em; height: .08em; background: var(--coral);
  border-radius: 99px; transform: scaleX(0) rotate(-2deg); transform-origin: left;
}
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 30ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; }
.hero__frame { border-radius: 40% 40% var(--r-lg) var(--r-lg) / 30% 30% var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(15, 30, 61, .45); aspect-ratio: 1 / 1.08; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.sticker { position: absolute; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.sticker--word { left: -48px; bottom: 56px; padding: 16px 20px; display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 4px 12px; }
.sticker__label { grid-column: 1 / -1; font: 600 12px/1 var(--text); color: var(--blue); margin-bottom: 6px; }
.sticker__ru { font-weight: 600; font-size: 15px; }
.sticker__go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--coral-text); }
.sticker__en { font: 600 15px/1.1 var(--text); background: var(--blue); color: #fff; padding: 9px 12px; border-radius: 10px; }
.sticker--note { right: -14px; top: 36px; padding: 14px 16px; max-width: 150px; font: 500 14px/1.3 var(--text); background: #FFF3C9; border-radius: 6px; rotate: 5deg; }

/* Одно авторское движение: появление героя при загрузке, остальное видимо по умолчанию */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .hero__cta { animation: rise .9s var(--ease) both; }
  .hero__lead { animation-delay: .12s; }
  .hero__cta { animation-delay: .2s; }
  .hero__frame { animation: frameIn 1.1s .1s var(--ease) both; }
  .sticker--word { animation: stickIn .7s .7s var(--ease) both; }
  .sticker--note { animation: stickIn .7s .85s var(--ease) both; }
  .hero__mark::after { animation: mark .7s .8s var(--ease) forwards; }
}
@media (prefers-reduced-motion: reduce) { .hero__mark::after { transform: scaleX(1) rotate(-2deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes frameIn { from { opacity: 0; transform: translateY(32px) scale(.96); filter: blur(6px); } }
@keyframes stickIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes mark { to { transform: scaleX(1) rotate(-2deg); } }

/* ---------- Greetings strip (static, every word is a link) ---------- */
.hellos { background: var(--ink); color: #fff; transform: rotate(-1.2deg); margin: 0 -2%; width: 104%; overflow: hidden; }
.hellos__track { display: flex; width: max-content; padding: 18px 0; }
.hellos__set { display: flex; align-items: center; flex: none; }
.hellos a, .hellos__ru { display: block; padding: 8px 18px; text-decoration: none; border-radius: 999px; transition: background-color .2s, color .2s; }
.hellos a span, .hellos__ru { font: 800 clamp(26px, 3.2vw, 42px)/1 var(--display); letter-spacing: -.02em; }
.hellos__set > :nth-child(4n+3) span { color: #A9BCFF; }
.hellos i { width: 10px; height: 10px; margin: 0 14px; flex: none; background: var(--coral); rotate: 45deg; border-radius: 2px; }
.hellos a:hover { background: rgba(255, 255, 255, .1); }
.hellos a:hover span { color: #FFB4A6; }
@media (prefers-reduced-motion: no-preference) {
  .hellos__track { animation: marquee 34s linear infinite; }
  .hellos:hover .hellos__track, .hellos:focus-within .hellos__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .hellos__track { width: auto; justify-content: center; flex-wrap: wrap; }
  .hellos__set + .hellos__set { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 128px 16px; }
.section > .wrap { padding-inline: 0; max-width: var(--wrap); }
.section--tight { padding-top: 32px; }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--blue { background: var(--blue); color: #fff; }
.head { margin-bottom: 56px; max-width: 820px; }
.head__lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; flex-wrap: wrap; }

/* ---------- Courses ---------- */
.langs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.langs button {
  text-align: left; padding: 20px 20px 18px; border-radius: var(--r-sm); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s, transform .2s var(--ease);
}
.langs button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.langs button:active { transform: scale(.98); }
.langs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.langs__hello { display: block; font: 800 22px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.langs__name { font-size: 14px; opacity: .78; }

.course-panel { position: relative; background: #fff; border-radius: var(--r-lg); padding: 12px 40px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); min-height: 360px; }
.course-panel__hello {
  position: absolute; right: -8px; bottom: -.2em; font: 800 clamp(120px, 20vw, 280px)/1 var(--display);
  letter-spacing: -.06em; color: var(--blue-soft); pointer-events: none; user-select: none; white-space: nowrap;
}
.course-list { position: relative; }
.course {
  display: grid; grid-template-columns: 260px minmax(0, 1.5fr) minmax(0, 1fr) 150px; gap: 16px 32px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.course:first-child { border-top: 0; }
.course__main h3 { font-size: 21px; margin-bottom: 10px; }
.course__level { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); }
.course__text { color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
.course__team { display: flex; flex-wrap: wrap; gap: 8px; }
.course__price { font: 800 19px/1.2 var(--display); white-space: nowrap; text-align: right; }
.course__price small { display: block; font: 400 13px/1.4 var(--text); color: var(--muted); }
.course--accent { background: var(--ink); color: #fff; margin: 4px -24px; padding: 28px 24px; border-radius: var(--r); border-top: 0; }
.course--accent + .course { border-top: 0; }
.course.course--accent .course__text { color: rgba(255, 255, 255, .78); }
.course.course--accent .course__level { background: var(--coral-ink); color: #fff; }
.course.course--accent .course__price small { color: rgba(255, 255, 255, .7); }
.course.course--accent .mini { background: rgba(255, 255, 255, .12); }
@media (prefers-reduced-motion: no-preference) {
  .course-list.swap .course { animation: rowIn .5s calc(var(--i) * 60ms) var(--ease) both; }
  .course-panel__hello.swap { animation: helloIn .8s var(--ease); }
}
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes helloIn { from { opacity: 0; transform: translateY(40px); } }

.mini { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(15, 30, 61, .06); transition: background-color .2s; }
.mini:hover { background: rgba(30, 79, 216, .16); }
.mini img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.mini span { font-size: 14px; font-weight: 600; }

/* ---------- Format ---------- */
.format { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.format__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.format__img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.format__text h2 { margin-bottom: 40px; font-size: clamp(28px, 3.4vw, 44px); }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 24px 0 24px 28px; border-top: 1px solid var(--line); position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 34px; width: 12px; height: 3px; border-radius: 3px; background: var(--coral); }
.points h3 { margin-bottom: 8px; font-size: 21px; }
.points p { color: var(--ink-2); max-width: 52ch; }

/* ---------- Team ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter button { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); background: #fff; transition: background-color .2s, color .2s; }
.filter button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.tcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); transition: box-shadow .3s; }
.tcard:hover { box-shadow: var(--shadow); }
.tcard[hidden] { display: none; }
.tcard__toggle { width: 100%; flex: 1; text-align: left; padding: 24px; display: flex; flex-direction: column; gap: 18px; border-radius: inherit; }
.ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; background: var(--blue-soft); }
.tcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tcard__name { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; }
.tcard__short { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.tcard__role { font-size: 13px; font-weight: 600; color: var(--coral-text); }
.tcard__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.tag--en { background: #E3F0E1; } .tag--es { background: #FFE9D6; } .tag--de { background: #E4EBEF; }
.tag--fr { background: #EAE3F5; } .tag--zh { background: #FBE0E0; } .tag--it { background: #DDE8FA; } .tag--ru { background: #F1ECE2; }
.tcard__price { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: auto; }
.tcard__more {
  position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); transition: background-color .25s, color .25s, rotate .35s var(--ease);
}
.tcard__toggle:hover .tcard__more { background: var(--coral-ink); color: #fff; }
.tcard.is-open .tcard__more { rotate: 45deg; background: var(--ink); color: #fff; }
.tcard.is-open { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); box-shadow: var(--shadow); }
.tcard.is-open .tcard__toggle { flex: none; }
.tcard__detail { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.tcard.is-open .tcard__detail { padding-top: 64px; }
.tcard__detail p { color: var(--ink-2); max-width: 62ch; }
.tcard__cases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.tcard__cases li { display: flex; gap: 10px; font-size: 15px; }
.tcard__cases .ic { color: var(--coral-text); margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .tcard.is-open .tcard__detail { animation: rise .45s var(--ease) both; }
}

.tcard--founder { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #fff; overflow: hidden; }
.tcard--founder .tcard__toggle { padding: 36px; justify-content: flex-end; }
.tcard--founder .ph { width: 160px; height: 160px; position: absolute; top: 36px; left: 36px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08); }
.tcard--founder .tcard__body { padding-top: 200px; }
.tcard--founder .tcard__name { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.tcard--founder .tcard__short { color: rgba(255, 255, 255, .8); font-size: 17px; flex: 0; max-width: 460px; }
.tcard--founder .tcard__role { color: #FFB4A6; }
.tcard--founder .tcard__price { color: rgba(255, 255, 255, .7); }
.tcard--founder .tcard__more { background: rgba(255, 255, 255, .12); }
.tcard--founder .tcard__detail p, .tcard--founder .tcard__cases li { color: rgba(255, 255, 255, .85); }
.tcard--founder .tcard__cases .ic { color: #FFB4A6; }
.tcard--founder.is-open { grid-row: auto; }
.tcard--founder.is-open .ph { position: static; }
.tcard--founder.is-open .tcard__body { padding-top: 0; }

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .16); }
.result { padding: 40px 36px 44px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.result:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .16); }
.result__num { display: flex; align-items: center; font: 800 clamp(52px, 6vw, 84px)/1 var(--display); letter-spacing: -.04em; margin-bottom: 20px; }
.ic--num { width: .6em; height: .6em; stroke-width: 2.6; margin: 0 .06em; color: #FFB4A6; }
.result--big .result__num { color: #FF8A73; }
.result p { color: rgba(255, 255, 255, .78); max-width: 32ch; }
.result b { color: #fff; font-weight: 600; }
.results__more { margin-top: 44px; font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 62ch; }

/* ---------- Reviews ---------- */
.reviews { columns: 3 320px; column-gap: 24px; }
.review { margin: 0 0 32px; display: flex; flex-direction: column; gap: 18px; break-inside: avoid; }
.review__bubble { position: relative; margin: 0; background: #fff; border-radius: var(--r) var(--r) var(--r) 6px; padding: 24px 26px; box-shadow: var(--shadow); }
.review__bubble::after { content: ""; position: absolute; left: 22px; bottom: -12px; width: 24px; height: 14px; background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%); }
.review__bubble p { font-size: 16.5px; color: var(--ink); }
.review__who { display: flex; align-items: center; gap: 14px; padding-left: 6px; }
.review__parrot { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 8px 18px -8px rgba(15, 30, 61, .4); }
.review__who > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.review__who b { display: block; font-weight: 600; font-size: 16px; }
.review__who small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- Word of the day ---------- */
.wod__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; transition: opacity .22s, transform .22s var(--ease); }
.wod__cards.out { opacity: 0; transform: translateY(8px); }
.wod__card { border-radius: var(--r-lg); padding: 56px; min-height: 320px; display: flex; flex-direction: column; }
.wod__tag { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 16px; }
.wod__card h3 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; min-height: 2.12em; }
.wod__card hr { width: 64px; height: 3px; border: 0; border-radius: 9px; margin: 28px 0 22px; }
.wod__card p { font-size: 18px; max-width: 34ch; }
.wod__card--ru { background: #fff; box-shadow: var(--shadow); }
.wod__card--ru hr { background: var(--coral); }
.wod__card--ru p { color: var(--muted); }
.wod__card--en { background: var(--blue); color: #fff; padding-top: 93px; }
.wod__card--en h3 { font-family: var(--text); font-weight: 700; letter-spacing: -.035em; }
.wod__card--en hr { background: #8FAAFF; }
.wod__card--en p { color: var(--on-blue-soft); }
.wod__go {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; color: var(--coral-text); box-shadow: 0 14px 30px -10px rgba(15, 30, 61, .35);
  display: grid; place-items: center; transition: transform .3s var(--ease); z-index: 2;
}
.wod__go .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.wod__go:hover { transform: scale(1.08); }
.wod__go:active { transform: scale(.95); }
.wod__dots { display: flex; gap: 8px; margin-top: 20px; }
.wod__dots button { width: 32px; height: 10px; border-radius: 99px; background: var(--line); transform: scaleX(.32); transition: transform .35s var(--ease), background-color .3s; }
.wod__dots button[aria-current="true"] { transform: none; background: var(--coral-ink); }

.ff { margin-top: 112px; display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.ff__intro { position: sticky; top: 110px; }
.ff__intro h3 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.ff__intro p { color: var(--ink-2); }
.ff__strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ff__strip img { border-radius: var(--r); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ff__strip img:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 34px 56px -30px rgba(15, 30, 61, .55); }
.ff__strip img:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg); }
.ff__strip img:nth-child(even) { margin-top: 56px; }

/* ---------- Signup ---------- */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.signup h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 16px; }
.signup__lead { font-size: 19px; color: var(--on-blue-soft); margin-bottom: 36px; max-width: 40ch; }
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; }
.steps b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font: 800 15px/1 var(--display); }
.signup__parrot { border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 40px; box-shadow: 0 40px 80px -40px rgba(8, 20, 60, .6); }
.form__body { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .form legend { font-size: 14px; font-weight: 600; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__err { display: none; font-size: 13.5px; font-weight: 500; color: var(--coral-text); }
.field.is-bad .field__err { display: block; }
.field.is-bad .field__hint { display: none; }
.form input:not([type=radio]), .form select {
  font: 400 17px/1.3 var(--text); color: var(--ink); padding: 16px 18px; border-radius: var(--r-sm); border: 1.5px solid rgba(15, 30, 61, .22);
  background: var(--paper); transition: border-color .2s, background-color .2s; width: 100%; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.form input[aria-invalid="true"] { border-color: var(--coral-ink); background: #FFF1EE; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px rgba(15, 30, 61, .22); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.chips span:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__fine { font-size: 13px; color: var(--muted); text-align: center; }
.form__done { text-align: center; padding: 48px 0; }
.form__done:focus { outline: none; }
.form__check { width: 80px; height: 80px; border-radius: 50%; background: var(--coral-ink); color: #fff; display: grid; place-items: center; margin: 0 auto 24px; }
.form__check .ic { width: 36px; height: 36px; stroke-width: 2.6; }
.form__done h3 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.form__done p { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .form__done:not([hidden]) { animation: rise .5s var(--ease); } }

/* ---------- Consent ---------- */
.consent__label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent__label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid rgba(15, 30, 61, .35); background: var(--paper); display: grid; place-items: center; color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.consent__box .ic { width: 15px; height: 15px; stroke-width: 3; }
.consent__label input:checked + .consent__box { background: var(--ink); border-color: var(--ink); color: #fff; }
.consent__label input:focus-visible + .consent__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent__label a { color: var(--blue-deep); }
.consent.is-bad .consent__box { border-color: var(--coral-ink); background: #FFF1EE; }
.consent.is-bad .field__err { display: block; margin: 6px 0 0 34px; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin-inline: auto; max-width: 760px;
  display: flex; align-items: center; gap: 20px; padding: 18px 20px 18px 24px; border-radius: var(--r);
  background: #fff; color: var(--ink); box-shadow: 0 24px 60px -20px rgba(15, 30, 61, .45), 0 0 0 1px var(--line);
}
.cookie p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.cookie a { color: var(--blue-deep); }
.cookie .btn { flex: none; }
@media (prefers-reduced-motion: no-preference) { .cookie:not([hidden]) { animation: rise .6s 1s var(--ease) both; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 56px 0; }
.footer__in { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer p { font-weight: 600; font-size: 18px; color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer__legal { width: 100%; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 16px 48px; font-size: 14px; }
.footer__contacts, .footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__docs { justify-content: flex-end; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; color: rgba(255, 255, 255, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .langs { grid-template-columns: repeat(3, 1fr); }
  .sticker--word { left: -16px; }
  .course { grid-template-columns: 220px minmax(0, 1.6fr) 140px; }
  .course__team { grid-column: 2; }
  .course__price { grid-column: 3; grid-row: 1; }
  .nav__links { gap: 20px; }
}
@media (max-width: 1000px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px;
    background: var(--paper); box-shadow: 0 20px 30px -20px rgba(15, 30, 61, .3);
    visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav__links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; background: none; }
  .nav__links .btn { margin-top: 16px; padding: 16px; }
  .nav--open { background: var(--paper); }
  .nav--open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero__grid, .format, .signup { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { max-width: 520px; margin-inline: auto; width: 100%; }
  .format__img { aspect-ratio: 16 / 11; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcard.is-open { grid-template-columns: 1fr; }
  .tcard.is-open .tcard__detail { padding-top: 0; }
  .results { grid-template-columns: 1fr 1fr; }
  .result, .result:not(:nth-child(3n+1)) { padding: 32px 24px 32px 0; border-left: 0; }
  .result:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
  .ff { grid-template-columns: 1fr; gap: 32px; }
  .wod__card { padding: 40px; }
  .wod__card--en { padding-top: 77px; }
  .ff__intro { position: static; }
  .section { padding: 96px 16px; }
}
@media (max-width: 700px) {
  .course { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .course__team, .course__price { grid-column: auto; grid-row: auto; }
  .course__price { text-align: left; }
  .course__price small { display: inline; margin-left: 6px; }
  .course--accent { margin: 4px -12px; padding: 24px 12px; }
  .course-panel { padding: 4px 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .sticker--word { left: 8px; bottom: 16px; padding: 14px 16px; }
  .sticker--note { right: 8px; top: 16px; max-width: 120px; font-size: 13px; }
  .hellos a, .hellos__ru { padding: 6px 12px; }
  .langs { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
  .tcard__toggle { flex-direction: row; align-items: flex-start; padding: 20px; gap: 16px; }
  .tcard .ph { width: 64px; height: 64px; }
  .tcard__more { top: 16px; right: 16px; width: 32px; height: 32px; }
  .tcard__name { padding-right: 36px; }
  .tcard__cases { grid-template-columns: 1fr; }
  .tcard--founder { grid-column: auto; grid-row: auto; }
  .tcard--founder .tcard__toggle { flex-direction: column; padding: 24px; }
  .tcard--founder .ph { position: static; width: 104px; height: 104px; }
  .tcard--founder .tcard__body { padding-top: 0; }
  .results { grid-template-columns: 1fr; }
  .result, .result:not(:nth-child(3n+1)), .result:nth-child(even) { padding: 28px 0; border-left: 0; }
  .wod__cards { grid-template-columns: 1fr; gap: 12px; }
  .wod__card { min-height: 0; }
  .wod__card h3 { min-height: 0; }
  .wod__card, .wod__card--en { padding: 28px; }
  .wod__go { position: relative; left: auto; top: auto; translate: none; justify-self: center; margin: -36px 0; width: 60px; height: 60px; }
  .ff__strip { gap: 10px; }
  .ff__strip img:nth-child(even) { margin-top: 28px; }
  .form { padding: 24px; }
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
  .footer__legal { grid-template-columns: 1fr; }
  .footer__docs { justify-content: flex-start; flex-direction: column; }
  .footer__contacts { flex-direction: column; }
  .head { margin-bottom: 36px; }
  .section { padding: 80px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Legal pages ---------- */
.legal-head { border-bottom: 1px solid var(--line); }
.legal-head__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.legal { max-width: calc(760px + 32px); padding-block: 64px 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-bottom: 40px; }
.legal h2 { font: 600 21px/1.3 var(--display); letter-spacing: -.01em; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--coral-text); }
.legal a { color: var(--blue-deep); }
.legal__other { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
