/* Стратегия 2027 — посадочная страница школы «Я начальник».
   Токены и компоненты — из портированной темы (navy / red, Akrobat + HelveticaNeueCyr, радиусы 10/15/30). */

@font-face { font-family: Akrobat; src: url(../fonts/akrobat-800.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: HelveticaNeueCyr; src: url(../fonts/hnc-300.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: HelveticaNeueCyr; src: url(../fonts/hnc-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: HelveticaNeueCyr; src: url(../fonts/hnc-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --hd-h: 68px;   /* высота сжатой шапки; на 769–1400 px её выставляет page.js */
  --navy: #254460;
  --steel: #3c6992;
  --steel-lt: #5584ae;
  --red: #fd0506;
  --red-hover: #d40405;
  --red-deep: #9d0405;
  --red-ink: #d40405;           /* красный для мелкого текста на светлом: 4.7:1 */
  --band: #f5efed;
  --ink: #222;
  --ink-2: #44566a;
  --line: #e6dedb;
  --r1: 10px;
  --r2: 15px;
  --r3: 30px;
  --ff-d: Akrobat, "Arial Narrow", Arial, sans-serif;
  --ff-b: HelveticaNeueCyr, "Helvetica Neue", Arial, sans-serif;
  --max: 1248px;
  --gut: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grad: linear-gradient(145deg, #254460 0%, #5584ae 100%);
  --grad-form: linear-gradient(145deg, #254460 0%, #3c6992 100%);   /* под белым мелким текстом: ≥5.8:1 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 24px); scrollbar-color: var(--steel) var(--band); }
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.55 var(--ff-b); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red-hover); color: #fff; }
input, textarea { caret-color: var(--red); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .program__band :focus-visible, .ft__bottom :focus-visible, .cookie :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--r1); background: var(--navy); color: #fff; }
.skip:focus { top: 12px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 14px 30px; border: 0; border-radius: var(--r1);
  font: 700 20px/1.1 var(--ff-b); letter-spacing: .02em; text-transform: uppercase; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--band); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--steel); }
.btn--sm { min-height: 50px; padding: 12px 24px; font-size: 15px; }
.btn--red.btn--sm { font-size: 20px; }   /* белый на красном 4:1 — только для крупного жирного текста (≥18,66px) */

/* ---------- заголовки секций ---------- */
section { padding-block: clamp(48px, 7vw, 96px); }
.sec-title { font: 800 clamp(2rem, 4.4vw, 3.4rem)/1.08 var(--ff-d); letter-spacing: .01em; text-transform: uppercase; text-align: center; color: var(--navy); text-wrap: balance; }
.accent { color: var(--red); }

/* ---------- шапка сайта ---------- */
/* шапка — как в concept2 (порт шапки действующего сайта): липкая, при прокрутке верхняя строка и логотип сворачиваются */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
  transition: box-shadow 0.25s ease;
}

.hd--scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
@media (min-width: 1401px) {
  .hd { transition: box-shadow 0.25s ease, margin-bottom 0.28s ease; }
  .hd--scrolled { margin-bottom: 73px; }   /* столько высоты шапка теряет при сжатии: контент под ней не едет, якорные переходы попадают точно */
}

.hd__wrap {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hd__utility {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.28s ease, opacity 0.2s ease;
}

.hd--scrolled .hd__utility {
  grid-template-rows: 0fr;
  opacity: 0;
}

.hd__utility-clip {
  min-height: 0;
  overflow: hidden;
}

.hd__utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eeec;
}

.hd__email {
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 550;
  color: #000000;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.hd__email:hover {
  color: var(--red);
}

.hd__socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hd__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--band);
  flex-shrink: 0;
  color: var(--navy);
  transition: color 0.15s ease, background 0.15s ease;
}

.hd__social:hover {
  color: #ffffff;
  background: var(--red);
}

.hd__social-icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.hd__main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  transition: padding 0.28s ease;
}

.hd--scrolled .hd__main {
  padding: 13px 0;
}

.hd__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.hd__logo-full {
  display: block;
  width: 228px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
  transition: width 0.28s ease, opacity 0.2s ease;
}

.hd__logo-compact {
  display: block;
  width: 0;
  height: 32px;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  transition: width 0.28s ease, opacity 0.2s ease;
}

.hd--scrolled .hd__logo-full {
  width: 0;
  opacity: 0;
}

.hd--scrolled .hd__logo-compact {
  width: 32px;
  opacity: 1;
}

.hd__nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.hd__nav-link {
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.hd__nav-link--active {
  color: var(--red);
  text-decoration: underline;
}

.hd__nav-link:hover {
  color: var(--red);
}

.hd__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hd__search-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--band);
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
  transition: color 0.15s ease, background 0.15s ease;
}

.hd__search-toggle:hover {
  color: #ffffff;
  background: var(--red);
}

.hd__search-icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.hd__cta {
  background: var(--red-hover);   /* #d40405: белый мелкий текст на #fd0506 даёт только 4:1 */
  border-radius: 10px;
  height: 46px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 550;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
  transition: height 0.28s ease, padding 0.28s ease, opacity 0.15s ease;
}

.hd--scrolled .hd__cta {
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.hd__cta:hover {
  color: #ffffff;
  opacity: 0.88;
}

.hd__burger {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 20;
}

.hd__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000000;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hd__burger--open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hd__burger--open span:nth-child(2) {
  opacity: 0;
}

.hd__burger--open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hd__mobile-menu {
  display: none;
}

.hd__nav-link:focus-visible,
.hd__email:focus-visible,
.hd__social:focus-visible,
.hd__search-toggle:focus-visible,
.hd__cta:focus-visible,
.hd__burger:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
}

/* Tablet: utility row (email + socials) stays static, no scroll-collapse —
   that behaviour is desktop-only. Main row wraps nav onto its own line.
   Threshold is 1400 (not 1024) because at 15px/comfortable gaps the full
   9-item nav genuinely doesn't fit in one row below that width. */
@media (max-width: 1400px) {
  .hd__wrap {
    width: 100%;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hd__utility {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
  .hd__utility-row {
    padding: 0;
    border-bottom: none;
  }
  .hd__main {
    padding: 0;
    flex-wrap: wrap;
    gap: 14px 16px;
  }
  .hd__logo-full,
  .hd--scrolled .hd__logo-full {
    width: 190px;
    opacity: 1;
  }
  .hd__logo-compact,
  .hd--scrolled .hd__logo-compact {
    width: 0;
    opacity: 0;
  }
  .hd__nav {
    order: 3;
    width: 100%;
    flex: none;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .hd__nav-link {
    font-size: 15px;
  }
  .hd__right {
    margin-left: auto;
  }
  .hd__email {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .hd__utility-row {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

@media (max-width: 768px) {
  .hd__wrap {
    padding: 0 16px;
    position: relative;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hd__utility,
  .hd__nav,
  .hd__right {
    display: none;
  }
  .hd__logo {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 14px 0;
  }
  .hd__logo-full,
  .hd--scrolled .hd__logo-full {
    width: 180px;
    height: auto;
    opacity: 1;
  }
  .hd__logo-compact,
  .hd--scrolled .hd__logo-compact {
    display: none;
  }
  .hd__burger {
    display: flex;
    right: 16px;
    top: 50%;
  }
  .hd__mobile-menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #dddddd;
    padding: 16px;
    gap: 16px;
  }
  .hd__mobile-menu--open {
    display: flex;
    max-height: calc(100vh - var(--hd-h));
    max-height: calc(100dvh - var(--hd-h));
    overflow-y: auto;
  }
  .hd__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .hd__mobile-nav .hd__nav-link {
    font-size: 18px;
    padding: 4px 0;
  }
  .hd__mobile-menu .hd__email {
    display: block;
    position: static;
    padding: 0;
    font-size: 15px;
  }
  .hd__mobile-menu .hd__social {
    width: 40px;
    height: 40px;
  }
  .hd__mobile-menu .hd__social-icon {
    width: 20px;
    height: 20px;
  }
  .hd__mobile-menu .hd__socials {
    display: flex;
    position: static;
    padding: 0;
  }
  .hd__mobile-menu .hd__cta {
    display: flex;
    position: static;
    width: 100%;
    justify-content: center;
    margin: 0;
  }
}


.soc { display: flex; gap: 10px; }
.soc a { display: block; border-radius: 50%; transition: transform .2s var(--ease); }
.soc a:hover { transform: translateY(-2px); }
.soc img { border-radius: 50%; }

/* ---------- hero ---------- */
.hero { max-width: 1440px; margin-inline: auto; padding: 24px var(--gut) 0; }
.hero__stage {
  position: relative; container-type: inline-size; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 57%) minmax(0, 43%); grid-template-rows: 1fr auto;
  border-radius: 16px; background: radial-gradient(75% 95% at 80% 42%, #2f567b 0%, var(--navy) 68%); color: #fff;
}
.hero__copy { grid-area: 1 / 1; position: relative; z-index: 5; padding: 7vw 0 2.5vw 4.2vw; padding: 7cqw 0 2.5cqw 4.2cqw; }
.hero h1 { font: 800 clamp(2.6rem, 6vw, 5.4rem)/.98 var(--ff-d); font-size: clamp(2.6rem, 5.8cqw, 5.4rem); letter-spacing: .01em; text-transform: uppercase; }
.hero__sub { max-width: 26ch; margin-top: 2.2cqw; font: 300 clamp(1.05rem, 1.55cqw, 1.5rem)/1.4 var(--ff-b); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.6cqw; }
.hero__meta { margin-top: 1.8cqw; font: 400 clamp(.92rem, 1.2cqw, 1.05rem)/1.45 var(--ff-b); color: rgba(255, 255, 255, .86); }
.hero__meta strong { color: #fff; font-weight: 700; }
.hero__figure { grid-area: 1 / 2 / 3 / 3; align-self: end; justify-self: end; position: relative; z-index: 3; width: min(40cqw, 560px); margin-right: 10cqw; }
.hero__photo { position: relative; z-index: 1; display: block; }
.hero__photo img { width: 100%; }
.hero__facts {
  grid-area: 2 / 1 / 3 / 3; position: relative; z-index: 6; margin: 0 4.2cqw 3.4cqw;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqw; padding: 1.8cqw 2.2cqw;
  border-radius: var(--r2); background: #fff; color: var(--navy); box-shadow: 0 18px 36px -12px rgba(8, 20, 34, .55);
}
.hero__facts li { display: flex; align-items: center; gap: 16px; font: 400 clamp(.95rem, 1.35cqw, 1.2rem)/1.35 var(--ff-b); }
.tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--red); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .1s; }
  .hero__copy > :nth-child(3) { animation-delay: .18s; }
  .hero__photo { animation: slide 1.1s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(22px); } }
@keyframes slide { from { transform: translateX(48px); } }

/* ---------- что получите ---------- */
.prof { background: var(--band); padding-block: clamp(40px, 6vw, 72px); }
.prof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prof__card {
  display: grid; place-items: center; min-height: 209px; padding: 24px 28px; border-radius: var(--r1); text-align: center; text-wrap: balance;
  background: linear-gradient(145deg, #254460, #4f7aa3); color: #fff; font: 700 clamp(1.1rem, 1.7vw, 1.4rem)/1.35 var(--ff-b);
  box-shadow: 0 22px 22px -18px rgba(8, 20, 34, .65);
}
.prof__card--red { background: linear-gradient(135deg, #e90405 0%, #9d0405 100%); box-shadow: 0 22px 22px -18px rgba(8, 20, 34, .5); }
.prof__quote { display: grid; align-content: center; gap: 10px; padding: 8px 8px 8px 20px; }
.prof__quote blockquote { font: 800 clamp(1.5rem, 2.5vw, 2.2rem)/1.32 var(--ff-d); letter-spacing: .01em; color: var(--navy); text-wrap: balance; }
.prof__quote figcaption { font: 700 1rem/1 var(--ff-b); letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); }

/* ---------- программа ---------- */
.program { padding-bottom: 0; background: var(--band); }
.program__band { margin-top: clamp(28px, 4vw, 48px); padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); background: var(--grad); }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.tags li { padding: 9px 16px; border-radius: var(--r1); background: #fff; color: var(--navy); font-size: 15px; line-height: 1.4; }
.acc { display: grid; gap: 12px; }
.acc details { overflow: clip; border-radius: var(--r1); background: #fff; color: var(--ink); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 20px 28px; cursor: pointer; list-style: none;
  font: 700 clamp(1.05rem, 1.6vw, 1.3rem)/1.4 var(--ff-b); color: var(--navy); transition: background-color .2s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: #faf7f6; }
.acc__i { position: relative; flex: none; width: 28px; height: 28px; transition: transform .4s var(--ease); }
.acc__i::before, .acc__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; border-radius: 2px; background: var(--navy); translate: -50% -50%; }
.acc__i::after { rotate: 90deg; }
.acc details[open] .acc__i { transform: rotate(45deg); }
.acc__list { display: grid; gap: 10px; max-width: 68ch; padding: 0 28px 26px; }
.acc__list li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.5; }
.acc__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 1px; background: var(--red); }
.acc details > p { max-width: 70ch; padding: 0 28px 26px; font-size: 17px; line-height: 1.6; }
.acc--light details { background: var(--band); }
.acc--light summary:hover { background: #efe8e5; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .acc details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .acc details[open]::details-content { block-size: auto; }
}
.program__cta { margin-top: 36px; text-align: center; }
.program__cta .btn { min-width: min(100%, 340px); }

/* ---------- для кого ---------- */
.audience { background: var(--band); }
.aud__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.aud__card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 320px; padding: 56px 28px 32px;
  border-radius: var(--r3); background: #fff; text-align: center; box-shadow: 0 22px 30px -24px rgba(8, 20, 34, .55);
}
.aud__ico { position: absolute; top: 20px; right: 22px; width: 28px; height: 28px; color: var(--steel); }
.aud__card h3 { font: 800 clamp(1.5rem, 2.3vw, 2.1rem)/1.08 var(--ff-d); letter-spacing: .01em; text-transform: uppercase; color: var(--navy); text-wrap: balance; }
.aud__card p { max-width: 30ch; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.aud__card--cta { justify-content: space-between; gap: 24px; padding: 32px 28px; background: var(--grad); }
.aud__card--cta img { width: min(60%, 170px); }
.aud__card--cta .btn { width: 100%; }

/* ---------- как проходит ---------- */
.process { background: #fff; }
.process__layout { display: grid; grid-template-columns: 1fr minmax(240px, 340px) 1fr; gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.process__col { display: grid; gap: 20px; grid-auto-rows: 1fr; }
.process__card { padding: 28px; border-radius: var(--r1); background: var(--band); }
.process__card h3 { margin-bottom: 10px; font: 800 clamp(1.4rem, 2vw, 1.9rem)/1.1 var(--ff-d); letter-spacing: .01em; text-transform: uppercase; color: var(--navy); }
.process__card p { font-weight: 300; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.5; }
.process__photo { position: relative; overflow: hidden; border-radius: var(--r3); background: var(--grad); min-height: 420px; }
.process__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }

/* ---------- форма-консультация ---------- */
.cform { background: var(--band); }
.cform__card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden; border-radius: var(--r2); background: var(--grad-form); color: #fff; }
.cform__photo { position: relative; min-height: 540px; overflow: hidden; }
.cform__img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: auto; max-width: none; height: 96%; }
.cform__body { padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px); }
.cform__body h2 { font: 800 clamp(1.75rem, 3.2vw, 2.8rem)/1.08 var(--ff-d); letter-spacing: .01em; text-wrap: balance; }
.cform__lead { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, .92); }
/* подпись к портрету нужна только в узкой раскладке (≤900); в широкой имя видно по фото и в блоке «Тренеры» */
.cform__who { display: none; }

/* ---------- формы ---------- */
.form { margin-top: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__fields--col { grid-template-columns: 1fr; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; line-height: 1.2; color: rgba(255, 255, 255, .92); }
.field label span { opacity: .78; }
.field input, .field textarea {
  display: block; width: 100%; height: 58px; padding: 0 18px; border: 2px solid transparent; border-radius: var(--r1); background: #fff; color: var(--ink);
  font-size: 18px; line-height: 1.2; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 104px; padding: 14px 18px; line-height: 1.4; resize: vertical; }
.field input::placeholder { color: #6b7886; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(253, 5, 6, .28); }
.field.is-bad input { border-color: #ff6b6d; }
.field__err { margin-top: 6px; font-size: 14px; line-height: 1.35; color: #ffd6d6; }
.field__err:empty { display: none; }
.consent { margin-top: 18px; }
.consent label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 300; line-height: 1.45; color: rgba(255, 255, 255, .94); cursor: pointer; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--red); cursor: pointer; }
.consent a { color: inherit; }
.consent .field__err { margin-left: 36px; }
.form__submit { width: 100%; margin-top: 22px; }
.form__submit[disabled] { opacity: .75; cursor: progress; }
.form__submit[disabled]::after { content: ""; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.form__status { margin-top: 14px; font-size: 16px; line-height: 1.45; }
.form__status:empty { display: none; }
.form__status a { color: inherit; font-weight: 700; }
.form__nojs { margin-top: 14px; font-size: 15px; }
.form__done h3 { font: 800 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--ff-d); text-transform: uppercase; }
.form__done p { margin-top: 10px; max-width: 44ch; font-size: 18px; }
.form[data-state="sent"] > :not(.form__done) { display: none; }
.form--light .field label, .form--light .consent label { color: var(--ink-2); }
.form--light .field input, .form--light .field textarea { border-color: #c9d2db; }
.form--light .field input:focus, .form--light .field textarea:focus { border-color: var(--red); }
.form--light .field__err, .form--light .form__status--bad { color: #b30304; }
.form--light .consent a { color: var(--navy); }

/* ---------- тренеры ---------- */
.trainers { background: #fff; }
.trainers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.trainer { overflow: hidden; border-radius: var(--r2); background: var(--band); }
.trainer__head { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: minmax(0, 1fr); height: clamp(280px, 26vw, 340px); overflow: hidden; background: var(--grad-form); color: #fff; }
.trainer__photo { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; padding-top: 22px; }
.trainer__photo img { width: auto; max-width: none; height: 100%; }
.trainer__who { position: relative; z-index: 1; align-self: center; padding: 24px 24px 24px 8px; }
.trainer__who h3 { font: 800 clamp(1.6rem, 2.4vw, 2.1rem)/1.05 var(--ff-d); letter-spacing: .01em; text-transform: uppercase; }
.trainer__who p { margin-top: 10px; font-weight: 300; font-size: 17px; line-height: 1.4; }
.trainer__bio { display: grid; gap: 10px; padding: 26px 28px 32px; }
.trainer__bio li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.5; }
.trainer__bio li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 1px; background: var(--red); }

/* ---------- стоимость ---------- */
.pricing { background: var(--band); }
.pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pricing__info { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r1); background: #fff; }
.pricing__info h2, .pricing__form h3 { font: 800 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--ff-d); letter-spacing: .01em; text-transform: uppercase; }
.pricing__info h2 { color: var(--navy); }
.ticks li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.35; }
.ticks .ico { flex: none; width: 26px; height: 26px; margin-top: 1px; color: var(--red-ink); stroke-width: 2.6; }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: auto; }
.price strong { font: 800 clamp(3.4rem, 6vw, 5.2rem)/1 var(--ff-d); letter-spacing: .01em; color: var(--navy); }
.price span { font-size: 1.5rem; color: var(--navy); }
.pricing__note { max-width: 42ch; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.pricing__hot { color: var(--red-hover); font-weight: 700; }   /* #d40405 на белом 5,6:1; чистый красный дал бы 4:1 */
.pricing__form { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r1); background: var(--grad-form); color: #fff; }
.pricing__call { margin-top: 18px; font-size: 16px; color: rgba(255, 255, 255, .9); }
.pricing__call a { color: #fff; font-weight: 700; }

/* ---------- вопросы ---------- */
.faq { background: #fff; }
.faq .acc { max-width: 960px; margin: clamp(28px, 4vw, 48px) auto 0; }

/* ---------- контакты ---------- */
.contacts { position: relative; overflow: hidden; background: var(--band); }
.contacts__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(0, 560px); align-items: center; gap: clamp(24px, 5vw, 80px); }
.contacts__info .sec-title { text-align: left; }
.contacts__list { display: grid; gap: 22px; margin-block: 32px; }
.contacts__list dt { display: flex; align-items: center; gap: 10px; font: 700 14px/1 var(--ff-b); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.contacts__list dt .ico { color: var(--red-ink); }
.contacts__list dd { margin-top: 6px; padding-left: 34px; font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.25 var(--ff-b); color: var(--navy); }
.contacts__list dd a { text-decoration: none; }
.contacts__list dd a:hover { color: var(--red-ink); }
.contacts__soc-h { margin-bottom: 14px; font: 700 14px/1 var(--ff-b); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.contacts__card { padding: clamp(24px, 4vw, 44px); border-radius: var(--r2); background: #fff; box-shadow: 0 30px 50px -30px rgba(8, 20, 34, .55); }
.contacts__card h3 { font: 800 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--ff-d); letter-spacing: .01em; text-transform: uppercase; color: var(--navy); }
.contacts__card .form { margin-top: 20px; }

/* ---------- подвал ---------- */
.ft { background: #fff; }
.ft__top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-block: 56px 44px; }
.ft__h { margin-bottom: 16px; font: 800 1.15rem/1 var(--ff-d); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.ft__nav { display: grid; grid-template-columns: repeat(2, max-content); align-content: start; gap: 10px 40px; }
.ft__nav .ft__h { grid-column: 1 / -1; margin-bottom: 6px; }
.ft__nav a, .ft__mail { width: fit-content; padding-block: 3px; font-size: 16px; text-decoration: none; }
.ft__nav a:hover, .ft__mail:hover, .ft__phone:hover { color: var(--red-ink); }
.ft__contacts { display: grid; align-content: start; justify-items: start; gap: 8px; }
.ft__contacts .ft__h { margin-bottom: 8px; }
.ft__phone { font: 800 clamp(1.7rem, 2.4vw, 2.1rem)/1.1 var(--ff-d); letter-spacing: .02em; text-decoration: none; color: var(--navy); }
.ft__hours { max-width: 32ch; margin-bottom: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.ft__brand { display: grid; align-content: start; justify-items: start; gap: 20px; }
.ft__license { max-width: 36ch; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ft__bottom { background: var(--navy); color: #dbe5ef; font-size: 14px; }
.ft__bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 20px; }
.ft__bottom a { padding-block: 3px; text-decoration: none; }
.ft__bottom a:hover { text-decoration: underline; }

/* ---------- плавающая кнопка и куки ---------- */
.cta-bar {
  position: fixed; inset: auto 0 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -12px 30px -14px rgba(8, 20, 34, .4); transform: translateY(110%); transition: transform .4s var(--ease);
}
.cta-bar.is-on { transform: none; }
.cta-bar p { display: grid; line-height: 1.15; }
.cta-bar strong { font: 800 1.5rem/1 var(--ff-d); letter-spacing: .02em; color: var(--navy); }
.cta-bar span { font-size: 13px; color: var(--ink-2); }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 16px; max-width: 460px; padding: 16px 18px; border-radius: var(--r2); background: var(--navy); color: #fff; font-size: 14px; font-weight: 300; line-height: 1.4; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .45); }
.cookie[hidden], .cta-bar[hidden] { display: none; }

/* ---------- ≤1024 ---------- */
@media (max-width: 1024px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .trainers__grid { grid-template-columns: 1fr; }
  .ft__top { grid-template-columns: 1fr 1fr; }
  .ft__brand { grid-column: 1 / -1; }
}
/* ---------- ≤900 ---------- */
@media (max-width: 900px) {
  .prof__grid { grid-template-columns: 1fr 1fr; }
  .prof__quote, .prof__card--red { grid-column: 1 / -1; }
  .prof__quote { padding: 12px 0; text-align: center; }
  .aud__grid { grid-template-columns: 1fr 1fr; }
  .process__layout { grid-template-columns: 1fr 1fr; }
  .process__col { display: contents; }
  .process__photo { grid-column: 1 / -1; order: -1; min-height: 360px; }
  /* карточка формы: портрет в красном круге и подпись, дальше заголовок и поля — форма видна сразу */
  .cform__card { grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; padding: 24px 20px 28px; }
  .cform__body { display: contents; }
  .cform__photo { grid-area: 1 / 1; width: 88px; height: 88px; min-height: 0; border-radius: 50%; background: var(--red); }
    .cform__img { top: 3px; bottom: auto; left: -34%; translate: none; width: 172%; height: auto; }
  .cform__who { display: block; grid-area: 1 / 2; align-self: center; }
  .cform__who strong { display: block; font: 800 1.5rem/1.3 var(--ff-d); letter-spacing: .01em; text-transform: uppercase; }
  .cform__who span { display: block; font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .86); }
  .cform__body h2 { grid-area: 2 / 1 / 3 / 3; margin-top: 22px; }
  .cform__lead { grid-area: 3 / 1 / 4 / 3; }
  .cform__body .form { grid-area: 4 / 1 / 5 / 3; margin-top: 20px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__info .sec-title { text-align: center; }
  .contacts__list { max-width: 420px; margin-inline: auto; }
  .contacts__soc-h, .contacts__info .soc { justify-content: center; text-align: center; }
}

/* ---------- ≤800: hero в колонку, плавающая кнопка ---------- */
@media (max-width: 800px) {
  :root { --gut: 16px; }
  html { scroll-padding-top: calc(var(--hd-h) + 16px); }
  .hero { padding-top: 12px; }
  /* заголовок слева, Татьяна справа от него; ниже на всю ширину: условия, факты и в самом низу кнопки */
  .hero__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 52%); grid-template-rows: auto auto auto auto; }
  .hero__copy { display: contents; }
  .hero__lead { grid-area: 1 / 1 / 2 / 3; position: relative; z-index: 5; padding: 28px 0 0 16px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 4.4rem); }
  .hero__sub { max-width: calc(48vw - 16px); max-width: calc(48cqw - 16px); margin-top: 12px; font-size: .95rem; line-height: 1.4; }
  .hero__figure { grid-area: 1 / 2 / 2 / 3; align-self: end; justify-self: end; width: min(100%, 340px); margin: 28px 0 0; }
  .hero__photo { -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }   /* нижний срез кадра уходит под кнопку, без жёсткой линии сбоку */
  .hero__btns { grid-area: 4 / 1 / 5 / 3; flex-direction: column; margin: 0 14px 20px; }
  .hero__btns .btn { width: 100%; }
  .hero__meta { grid-area: 2 / 1 / 3 / 3; max-width: none; margin: 10px 16px 0; font-size: .95rem; }
  .hero__facts { grid-area: 3 / 1 / 4 / 3; grid-template-columns: 1fr; gap: 14px; margin: 20px 14px 14px; padding: 20px; }
  .hero__facts li { font-size: 1rem; }
  .cta-bar { display: flex; }
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  body.cta-on .cookie { bottom: 76px; }
  body.cta-on { padding-bottom: 72px; }
}

/* ---------- 520–800: подзаголовок hero крупнее ---------- */
@media (min-width: 520px) and (max-width: 800px) { .hero__sub { font-size: 1.2rem; } }
@media (min-width: 700px) and (max-width: 800px) { .hero__sub { font-size: 1.3rem; } }

/* ---------- ≤400: кнопки hero в одну строку ---------- */
@media (max-width: 400px) { .hero__btns .btn { padding-inline: 10px; } }

/* ---------- ≤640 ---------- */
@media (max-width: 640px) {
  .btn, .btn--red.btn--sm { font-size: 19px; }
  .btn { padding: 14px 14px; letter-spacing: 0; }
  .prof__grid, .aud__grid, .process__layout { grid-template-columns: 1fr; }
  .prof__card { min-height: 150px; }
  .aud__card { min-height: 0; padding: 52px 22px 28px; }
  .aud__card--cta { flex-direction: row; justify-content: space-between; order: 1; }   /* в одну колонку — последним, после «Хотите управлять системно» */
  .aud__card--cta { gap: 18px; padding: 28px 22px; align-items: center; }
  .aud__card--cta img { width: 72px; }
  .aud__card--cta .btn { width: auto; flex: 1; padding-inline: 10px; font-size: 17px; text-wrap: balance; }
  .process__photo { min-height: 320px; }
  .acc summary { padding: 16px 18px; }
  .acc__list, .acc details > p { padding-inline: 18px; }
  .form__fields { grid-template-columns: 1fr; }
  .trainer__head { grid-template-columns: .9fr 1.1fr; height: 250px; }
  .trainer__who { padding: 16px 16px 16px 4px; }
  .trainer__who p { font-size: 15px; }
  .trainer__bio { padding: 22px 18px 26px; }
  .pricing__info, .pricing__form { padding: 24px 20px; }
  .ft__top { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 32px; }
  .ft__bottom .wrap { flex-direction: column; }
  }

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