/* =========================================================
   Palm Mute — landing
   ========================================================= */

:root {
  /* palette */
  --ink: #1c1b1a;
  --ink-2: #252422;
  --ink-3: #33312e;
  --paper: #faf8f5;
  --paper-2: #f1ede6;
  --accent: #f2c14e;
  --accent-hover: #f7d27a;
  --on-accent: #1c1b1a;

  --text: #1c1b1a;
  --text-muted: #5f5a53;          /* 6.6:1 on paper */
  --text-light: #faf8f5;
  --text-light-muted: #a39e96;    /* 6.5:1 on ink */
  --line: rgba(28, 27, 26, .14);
  --line-light: rgba(250, 248, 245, .16);
  --error: #b3261e;
  --error-light: #ff8a80;

  /* type */
  --font-display: "Geologica", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Unbounded", "Geologica", sans-serif;

  /* layout */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1320px;
  --section-y: clamp(80px, 11vw, 160px);
  --radius: 20px;
  --header-h: 88px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- icons ---------- */
.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--text-light-muted); }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
}

.section { padding-block: var(--section-y); }
.section--dark {
  background: var(--ink);
  color: var(--text-light);
}
.section--dark .lead { color: var(--text-light-muted); }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 88px);
  max-width: 900px;
}
.section-head--row {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--row { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.section-head__sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 46ch;
}
.section--dark .section-head__sub { color: var(--text-light-muted); }

/* ---------- buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: var(--btn-h);
  padding: 0 26px 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform var(--dur-fast) ease;
}
.btn .i { transition: transform var(--dur) var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(.98); }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }

.btn--dark { background: var(--ink); color: var(--text-light); }
.btn--dark:hover { background: var(--ink-3); }

.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--text-light); border-color: var(--ink); }

.btn--ghost-light { border-color: rgba(250, 248, 245, .7); color: var(--text-light); }
.btn--ghost-light:hover { background: var(--text-light); color: var(--ink); border-color: var(--text-light); }

.btn--block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding-inline: var(--gutter);
  color: var(--text-light);
  transition:
    background-color var(--dur) ease,
    color var(--dur) ease,
    height var(--dur) var(--ease-out),
    box-shadow var(--dur) ease;
}
.site-header.is-solid {
  --header-h: 72px;
  background: rgba(250, 248, 245, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
body.menu-open .site-header {
  background: transparent;
  box-shadow: none;
  color: var(--text-light);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.wordmark,
.footer__wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mark);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1;
}
.wordmark {
  min-height: 44px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}
.wordmark__pick {
  width: .55em;
  height: .55em;
  margin: -.55em .08em 0 .12em;
  fill: var(--accent);
  transform: rotate(-12deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-cta { --btn-h: 48px; padding: 0 24px; }
.site-header:not(.is-solid) .header-cta:hover,
body.menu-open .header-cta:hover { background: var(--text-light); color: var(--ink); border-color: var(--text-light); }

/* burger = six strings */
.burger {
  position: relative;
  width: 56px; height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease;
}
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 14.5px; }
.burger span:nth-child(3) { top: 19px; }
.burger span:nth-child(4) { top: 23.5px; }
.burger span:nth-child(5) { top: 28px; }
.burger span:nth-child(6) { top: 32.5px; }

body.menu-open .burger { border-color: transparent; }
body.menu-open .burger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(6.5px) translateX(-3px) rotate(45deg); }
body.menu-open .burger span:nth-child(3) { transform: translateY(2px) translateX(3px) rotate(45deg); }
body.menu-open .burger span:nth-child(4) { transform: translateY(-2.5px) translateX(-3px) rotate(-45deg); }
body.menu-open .burger span:nth-child(5) { transform: translateY(-7px) translateX(3px) rotate(-45deg); }
body.menu-open .burger span:nth-child(6) { transform: translateY(-11.5px) rotate(-45deg); }

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .site-header.is-solid { --header-h: 60px; }
  .header-cta { display: none; }
  .burger { width: 48px; height: 44px; border-color: transparent; margin-right: -9px; }
}

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 48px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  background: var(--ink);
  color: var(--text-light);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) ease, visibility 0s linear var(--dur);
}
body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) ease;
}
@media (min-width: 900px) {
  .menu {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding-inline: clamp(48px, 22vw, 460px) clamp(48px, 18vw, 420px);
  }
}

.menu__nav a {
  display: inline-block;
  padding-block: 2px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #8f8a83;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.menu__nav a:hover,
.menu__nav a:focus-visible { color: var(--text-light); }

.menu__nav li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) ease, transform 600ms var(--ease-out);
}
body.menu-open .menu__nav li { opacity: 1; transform: none; }
body.menu-open .menu__nav li:nth-child(2) { transition-delay: 40ms; }
body.menu-open .menu__nav li:nth-child(3) { transition-delay: 80ms; }
body.menu-open .menu__nav li:nth-child(4) { transition-delay: 120ms; }
body.menu-open .menu__nav li:nth-child(5) { transition-delay: 160ms; }
body.menu-open .menu__nav li:nth-child(6) { transition-delay: 200ms; }

.menu__label {
  margin-bottom: 12px;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.menu__social { display: grid; gap: 4px; }
.menu__social a {
  display: inline-block;
  padding-block: 6px;
  text-decoration: none;
  color: var(--text-light);
}
.menu__social a:hover { color: var(--accent); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) var(--gutter) 96px;
  background: var(--ink) url("../media/hero.jpg") center / cover no-repeat;
  color: var(--text-light);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__media,
.hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__shade {
  background:
    radial-gradient(ellipse at center, rgba(28, 27, 26, .35) 0%, rgba(28, 27, 26, .72) 75%),
    linear-gradient(180deg, rgba(28, 27, 26, .55) 0%, rgba(28, 27, 26, 0) 30%, rgba(28, 27, 26, .6) 100%);
}

.hero__content { max-width: 1100px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, min(8.2vw, 12.5vh), 7.75rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 80ms; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 160ms; }
.is-loaded .hero__title .line:nth-child(4) > span { transition-delay: 240ms; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero__toggle,
.hero__scroll {
  position: absolute;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(250, 248, 245, .4);
  border-radius: 50%;
  background: rgba(28, 27, 26, .25);
  color: var(--text-light);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.hero__toggle:hover,
.hero__scroll:hover { background: rgba(250, 248, 245, .15); border-color: var(--text-light); }
.hero__toggle { right: var(--gutter); }
.hero__toggle .i--play { display: none; }
.hero__toggle[aria-pressed="true"] .i--play { display: block; fill: currentColor; }
.hero__toggle[aria-pressed="true"] .i--pause { display: none; }
.hero__scroll { left: 50%; margin-left: -24px; }
.hero__scroll .i { animation: nudge 2.4s var(--ease-out) infinite; }
@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(4px); }
}

/* Вертикальные экраны: рука на грифе — в правой трети кадра, сдвигаем кадрирование к ней */
@media (orientation: portrait) {
  .hero__video { object-position: 92% 50%; }
}

@media (max-width: 640px) {
  .hero { text-align: left; place-items: end start; padding-bottom: 112px; background-image: none; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }

  /* Телефон: видео занимает верх экрана, текст — внизу на затемнении, пальцы не прячутся за заголовком */
  .hero__media { bottom: auto; height: 58%; }
  .hero__video { object-position: 100% 50%; transform: none; }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(28, 27, 26, 0), var(--ink));
  }
  .hero__shade {
    background: linear-gradient(180deg, rgba(28, 27, 26, .55) 0%, rgba(28, 27, 26, .1) 22%, rgba(28, 27, 26, .15) 45%, rgba(28, 27, 26, .85) 70%, var(--ink) 100%);
  }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  padding-block: 18px;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee i {
  width: 10px; height: 12px;
  background: currentColor;
  clip-path: path("M5 0C8 0 10 1.3 10 3.6 10 6.6 7.2 9.8 5 12 2.8 9.8 0 6.6 0 3.6 0 1.3 2 0 5 0Z");
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   INTRO
   ========================================================= */
.statement {
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.statement em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(transparent 62%, rgba(242, 193, 78, .55) 62%, rgba(242, 193, 78, .55) 92%, transparent 92%);
}
@media (min-width: 900px) { .statement { max-width: 26ch; } }

.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.fact {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--line);
}
/* 2×2 на планшетах, 4 в ряд на десктопе */
@media (min-width: 560px) and (max-width: 1099px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 32px; }
  .fact:nth-child(n+3) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; }
  .fact + .fact { border-left: 1px solid var(--line); padding-left: 32px; }
}
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.fact__num small {
  margin-left: 6px;
  font-size: .35em;
  letter-spacing: 0;
  color: var(--text-muted);
}
.fact__text { color: var(--text-muted); max-width: 32ch; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--paper-2); }
.about__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 900px) { .about__grid { grid-template-columns: 5fr 6fr; } }

.about__photo {
  position: relative;
  max-width: 560px;
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% center;
  border-radius: var(--radius);
}
.about__photo figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28, 27, 26, .72);
  color: var(--text-light);
  font-size: .8125rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.about__photo::after {
  content: "";
  position: absolute;
  top: -18px; right: -18px;
  width: 88px; height: 100px;
  background: var(--accent);
  clip-path: path("M44 0C70 0 88 11 88 30 88 55 63 82 44 100 25 82 0 55 0 30 0 11 18 0 44 0Z");
  z-index: -1;
}
.about__photo { isolation: isolate; }

.about__text .h2 { margin-bottom: 28px; }
.about__text .lead + .lead { margin-top: 16px; }
.checklist {
  display: grid;
  gap: 14px;
  margin: 36px 0 44px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.0625rem;
}
.checklist .i {
  margin-top: 2px;
  padding: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  stroke: var(--on-accent);
  stroke-width: 2;
}

/* =========================================================
   LEVELS
   ========================================================= */
.levels { padding-bottom: calc(var(--section-y) / 2); }
.levels__grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 960px) { .levels__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.level {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.level:hover { border-color: rgba(242, 193, 78, .6); transform: translateY(-4px); }
.level--featured { background: var(--ink-3); }

.level__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.level__num {
  order: 2;
  font-family: var(--font-display);
  font-size: .9375rem;
  color: var(--accent);
}
.level__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.level__for { color: var(--text-light-muted); }
.level__list { display: grid; gap: 10px; }
.level__list li {
  position: relative;
  padding-left: 22px;
}
.level__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 10px; height: 1.5px;
  background: var(--accent);
}
.level__result {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-weight: 500;
}
.level__result span {
  display: block;
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* =========================================================
   WORKS
   ========================================================= */
.works { padding-top: calc(var(--section-y) / 2); }
.works__grid {
  display: grid;
  gap: clamp(28px, 3vw, 40px) 20px;
}
@media (min-width: 760px) { .works__grid { grid-template-columns: repeat(2, 1fr); } }

.work__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}
.work__media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.work__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, rgba(28, 27, 26, 0) 40%, rgba(28, 27, 26, .45));
  cursor: pointer;
}
.work__play svg {
  width: 84px; height: 84px;
  padding: 26px 24px 26px 28px;
  border-radius: 50%;
  background: var(--accent);
  fill: var(--on-accent);
  transition: transform var(--dur) var(--ease-out);
}
.work__play:hover svg,
.work__play:focus-visible svg { transform: scale(1.08); }
.work.is-playing .work__play { display: none; }
.work:not(.is-playing) video::-webkit-media-controls { display: none !important; }

.work figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 16px;
}
.work__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.work__meta { color: var(--text-light-muted); font-size: .9375rem; }

/* =========================================================
   TRACKS (направления)
   ========================================================= */
.tracks { background: var(--paper-2); }
.nowrap { white-space: nowrap; }

.tracks__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.tracks__nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.tracks__nav a span { font-family: var(--font-display); font-size: .8125rem; color: var(--text-muted); }
.tracks__nav a:hover { background: var(--ink); border-color: var(--ink); color: var(--text-light); }
.tracks__nav a:hover span { color: var(--accent); }

.track {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--ink);
  scroll-margin-top: 72px;
}
.track:last-child { padding-bottom: 0; }
@media (min-width: 960px) {
  .track { grid-template-columns: 5fr 6fr; }
  .track--reverse .track__intro { order: 2; }
}

.track__num {
  margin-bottom: 20px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.track__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.track__lead {
  margin: 24px 0 32px;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
}
.track__list {
  display: grid;
  gap: 12px;
  margin: -8px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.track__list li { position: relative; padding-left: 22px; }
.track__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 10px; height: 1.5px;
  background: var(--ink);
}
.track__note {
  margin: -8px 0 32px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--paper);
  font-size: .9375rem;
}
.track__note span {
  display: block;
  margin-bottom: 2px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.track__videos { display: grid; gap: 28px; }

/* видео на светлом фоне */
.work--light .work__media { background: var(--ink); }
.work--light .work__meta { color: var(--text-muted); }
.work--light .work__title { font-size: 1.25rem; }

/* карточки техник */
.techniques {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}
@media (min-width: 640px) { .techniques { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .techniques { grid-template-columns: repeat(3, 1fr); } }
.technique {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.technique:hover { border-color: var(--accent); transform: translateY(-3px); }
.technique__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.technique__en {
  margin-bottom: 8px;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: #8a6a1c;            /* тёмная охра, 4.8:1 на paper */
}
.technique p:last-child { color: var(--text-muted); }

/* =========================================================
   PROCESS
   ========================================================= */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 0 32px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 32px 0 40px;
  border-top: 1px solid var(--ink);
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text-muted);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  letter-spacing: -.02em;
}
.step p { color: var(--text-muted); max-width: 34ch; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing { background: var(--paper-2); }
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(28, 27, 26, .35); }
.plan--featured {
  background: var(--ink);
  color: var(--text-light);
  border-color: var(--ink);
}
.plan--featured .plan__desc,
.plan--featured .plan__per { color: var(--text-light-muted); }

.plan__badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.plan__name {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.plan__price {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.plan__price span { font-size: .55em; }
.plan__per { font-size: .9375rem; color: var(--text-muted); }
.plan__per strong { display: block; font-weight: 600; color: var(--text); }
.plan--featured .plan__per strong { color: var(--accent); }
.plan__old {
  display: block;
  margin-top: 10px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--text-muted);
  text-decoration-thickness: 1.5px;
}
.plan--featured .plan__old { color: var(--text-light-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.plan__desc { margin: 16px 0 28px; color: var(--text-muted); }
.plan__btn { margin-top: auto; width: 100%; }

/* =========================================================
   TRIAL (reference: "something real special")
   ========================================================= */
.trial__inner { text-align: center; }
.trial__title {
  max-width: 16ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.6vw, 6.25rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.trial__sub {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text-muted);
}
.trial__media {
  position: relative;
  max-width: 1100px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}
.trial__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}
.trial__card {
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: 400px;
  margin: -64px 16px 0 auto;
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(28, 27, 26, .45);
  text-align: left;
}
.trial__card p { font-size: 1.0625rem; }
@media (min-width: 760px) {
  .trial__card {
    position: absolute;
    left: 32px; bottom: 32px;
    max-width: 360px;
    margin: 0;
  }
}
@media (max-width: 480px) {
  .trial__card { margin-inline: 12px; }
  .trial__card .btn { width: 100%; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-top: 0; }
.faq__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .faq__grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }

.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--text-muted); }
.qa__icon {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  margin: -.75px 0 0 -6px;
  background: var(--text);
}
.qa__icon::after { transform: rotate(90deg); transition: transform var(--dur) var(--ease-out); }
.qa[open] .qa__icon { background: var(--accent); border-color: var(--accent); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa p {
  padding: 0 56px 28px 0;
  color: var(--text-muted);
  max-width: 64ch;
}

/* =========================================================
   CONTACT / FORM
   ========================================================= */
.contact__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 96px; } }
.contact__intro .h2 { margin-bottom: 24px; }
.contact__direct { margin-top: 48px; }

.contact__list { display: grid; gap: 8px; }
.contact__link,
.contact__city {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  letter-spacing: -.01em;
}
.contact__city { font-size: 1.0625rem; font-family: var(--font-body); }
.contact__link .i,
.contact__city .i {
  width: 48px; height: 48px;
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.contact__link span,
.contact__city span { display: grid; line-height: 1.25; }
.contact__link small,
.contact__city small {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.contact__link:hover .i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.contact__link:hover { color: var(--accent); }

.menu__social--contacts { margin-bottom: 28px; }

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label,
.field legend {
  padding: 0;
  font-size: .9375rem;
  font-weight: 500;
}
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--text-light-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(250, 248, 245, .22);
  border-radius: 12px;
  background: var(--ink);
  color: var(--text-light);
  font-size: 1rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39e96' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: #7d786f; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(250, 248, 245, .4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, .25);
}
.field [aria-invalid="true"] { border-color: var(--error-light); }
.field__hint { font-size: .875rem; color: var(--text-light-muted); }
.field__error { font-size: .875rem; color: var(--error-light); }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(250, 248, 245, .22);
  border-radius: 14px;
  background: var(--ink);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.segmented span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--text-light-muted);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.segmented input:checked + span { background: var(--text-light); color: var(--ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .875rem;
  color: var(--text-light-muted);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent a { color: var(--text-light); }

.btn .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status:empty { display: none; }
.form__status {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(242, 193, 78, .12);
  border: 1px solid rgba(242, 193, 78, .4);
}
.form__status.is-error { background: rgba(255, 138, 128, .1); border-color: rgba(255, 138, 128, .45); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  padding: 72px var(--gutter) 40px;
  background: #292826;
  color: var(--text-light);
  text-align: center;
  font-size: .9375rem;
}
@media (min-width: 1200px) {
  .footer {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 88px;
  }
  .footer__social { justify-self: start; }
  .footer__links { justify-self: end; }
  .footer__copy { grid-column: 2; }
}
.footer__wordmark {
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.footer li { white-space: nowrap; }
.footer__social,
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}
.footer__links li + li::before { display: none;
  content: "·";
  margin-right: 20px;
  color: var(--text-light-muted);
}
.footer a { text-decoration: none; }
.footer ul a { display: inline-block; padding-block: 8px; }
.footer ul a:hover { color: var(--accent); }
.footer__copy { color: var(--text-light-muted); font-size: .875rem; }
@media (max-width: 1199px) { .footer__wordmark { order: -1; } }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .marquee__track { animation: none; }
}
.menu__nav:focus { outline: none; }
