@font-face {
  font-family: "Dela Gothic One";
  src: url("../fonts/dela-gothic-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #080808;
  --ink-2: #111113;
  --ink-3: #19191c;
  --line: rgba(255, 255, 255, .09);
  --paper: #f3f2ef;
  --paper-2: #e7e5e0;
  --text: #f4f4f2;
  --muted: rgba(244, 244, 242, .62);
  --dark-text: #111113;
  --dark-muted: #6d6b67;
  --red: #d7262b;
  --red-hover: #ee3b40;
  --red-deep: #7a1418;
  --radius: 34px;
  --gutter: clamp(16px, 2.2vw, 28px);
  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", "IPAGothic", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

main > section, .foot { overflow-x: clip; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: 600 15px/1 var(--body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(215, 38, 43, .7); }
.btn--red:hover { background: var(--red-hover); }
.btn--light { background: var(--text); color: var(--dark-text); }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.btn--line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--red); color: #fff; background: rgba(215, 38, 43, .12); }

/* ===== HERO ===== */
.hero { position: relative; padding: var(--gutter) var(--gutter) 0; }
.hero__card {
  position: relative;
  min-height: clamp(640px, calc(100svh - 2 * var(--gutter)), 940px);
  border-radius: var(--radius);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__layer { position: absolute; inset: 0; }
.hero__media img {
  position: absolute; top: 0; right: -3%;
  height: 100%; width: auto; min-width: 100%;
  max-width: none;
  object-fit: cover; object-position: 60% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%);
  transform-origin: 60% 40%;
}
/* мазок: верхний слой с тушью открывается слева направо */
.hero__layer--ink {
  -webkit-mask-image: linear-gradient(100deg, #000 0 30%, rgba(0,0,0,.6) 34%, transparent 40%);
          mask-image: linear-gradient(100deg, #000 0 30%, rgba(0,0,0,.6) 34%, transparent 40%);
  -webkit-mask-size: 340% 100%; mask-size: 340% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0; mask-position: 0 0;
}
.js .hero__layer--ink { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.is-loaded .hero__layer--ink {
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: -webkit-mask-position 2.6s cubic-bezier(.55,.1,.25,1) .9s, mask-position 2.6s cubic-bezier(.55,.1,.25,1) .9s;
}
.hero__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(0deg, rgba(8, 8, 8, .85), transparent);
}

.head {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 3.4vw, 48px);
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo span { font: 400 21px/1 var(--display); letter-spacing: .02em; }
.head__right { display: flex; align-items: center; gap: 14px; }
.head__cta { min-height: 42px; padding: 0 20px; font-size: 14px; }
.burger {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 0 6px 0 14px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
}
.burger__icon { position: relative; width: 26px; height: 12px; }
.burger__icon i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger__icon i:first-child { top: 1px; }
.burger__icon i:last-child { top: 9px; }
.burger:hover .burger__icon i:last-child { transform: scaleX(.6); transform-origin: right; }
.menu-open .burger__icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .burger__icon i:last-child { top: 5px; transform: rotate(-45deg); }

.hero__body {
  position: relative; z-index: 2; flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  padding: clamp(8px, 2vw, 32px) clamp(20px, 3.4vw, 48px) clamp(28px, 3.4vw, 44px);
  column-gap: 32px;
}
.hero__title {
  grid-column: 1; grid-row: 1;
  font: 400 clamp(64px, 9.4vw, 152px)/.86 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .45);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: .9em; }
.line--red { color: var(--red); }
.hero__jp {
  grid-column: 1; grid-row: 2; align-self: start;
  margin-top: 22px; font: 500 15px/1.6 var(--jp); letter-spacing: .2em; color: var(--muted);
}
.hero__lead {
  grid-column: 1; grid-row: 3; align-self: end;
  max-width: 400px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.hero__lead > p:first-child { font-size: 16px; line-height: 1.55; color: rgba(244, 244, 242, .82); }
.hero__note { font-size: 13px; color: var(--muted); margin-top: -6px; }
.hero__vertical {
  position: absolute; z-index: 2; right: clamp(22px, 3.4vw, 48px); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font: 400 clamp(34px, 3.6vw, 56px)/1 var(--display); letter-spacing: .3em; color: var(--text);
}


/* ===== МЕНЮ ===== */
.menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 120px clamp(24px, 6vw, 96px) 60px;
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a {
  font: 400 clamp(36px, 6vw, 84px)/1.08 var(--display); text-transform: uppercase; text-decoration: none;
  color: var(--text); transition: color .2s, transform .3s var(--ease);
}
.menu__nav a:hover { color: var(--red); transform: translateX(10px); }
.menu__jp { font: 400 clamp(120px, 18vw, 300px)/1 var(--display); color: var(--red-deep); writing-mode: vertical-rl; }
.menu-open .head { position: fixed; top: var(--gutter); left: var(--gutter); right: var(--gutter); z-index: 60; }
.menu-open .head__cta { visibility: hidden; }
.menu-open { overflow: hidden; }

/* ===== ABOUT (светлая панель) ===== */
.about { position: relative; z-index: 2; padding: 0 var(--gutter); margin-top: calc(-1 * var(--radius)); }
.about__panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 5vw, 80px) clamp(20px, 4vw, 64px) clamp(40px, 5vw, 72px);
  background: var(--paper); color: var(--dark-text);
  border-radius: var(--radius);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .7);
}
.about__photo { position: relative; align-self: stretch; min-height: 420px; margin: clamp(-40px, -3vw, -20px) 0 clamp(-40px, -4vw, -24px) clamp(-40px, -3vw, -10px); }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 52%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 80% at 50% 52%, #000 62%, transparent 100%); }
.statement {
  font: 400 clamp(28px, 3.3vw, 48px)/1.14 var(--display); letter-spacing: -.01em;
}
.statement .fade { color: #b9b6b0; }
.jw {
  display: inline-block; vertical-align: .08em;
  margin: 0 .1em; padding: .16em .42em .2em;
  border-radius: 12px;
  background: var(--dark-text); color: #fff;
  font-size: .62em; line-height: 1; letter-spacing: .06em;
  transform: rotate(-3deg);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6);
}
.jw--red { background: var(--red); transform: rotate(2deg); box-shadow: 0 10px 20px -10px rgba(215, 38, 43, .8); }
.about__sub { margin-top: 22px; max-width: 460px; font-size: 15px; color: var(--dark-muted); }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; margin-top: clamp(36px, 4vw, 60px); }
.skill { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
.skill__glyph {
  grid-row: span 2;
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--red); color: #fff;
  font: 400 26px/1 var(--display);
  box-shadow: 0 12px 24px -12px rgba(215, 38, 43, .8);
  transition: transform .35s var(--ease);
}
.skill:hover .skill__glyph { transform: rotate(-6deg) scale(1.06); }
.skill h3 { font: 600 17px/1.3 var(--body); margin-bottom: 4px; }
.skill p { font-size: 14px; line-height: 1.5; color: var(--dark-muted); }

/* ===== Общие заголовки секций на тёмном ===== */
.sec-title { font: 400 clamp(34px, 4.4vw, 64px)/1.04 var(--display); margin-bottom: clamp(32px, 4vw, 56px); text-wrap: balance; }

/* по буквам (Splitting): буквы встают, когда секция появилась */
html.ap-js .split-title .char {
  display: inline-block;
  opacity: 0; transform: translate3d(0, .45em, 0) rotate(6deg); filter: blur(6px);
}
html.ap-js .ap-on .split-title .char {
  animation: char-in .9s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--char-index) * 26ms + 60ms);
}
@keyframes char-in { to { opacity: 1; transform: none; filter: none; } }
.split-title .word { white-space: nowrap; }

/* ===== PATH ===== */
.path {
  position: relative;
  padding: clamp(80px, 9vw, 140px) 0 clamp(60px, 7vw, 100px);
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(215, 38, 43, .10), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--ink);
}
.path::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0, transparent 22%, transparent 78%, var(--ink) 100%);
}
.path .wrap { position: relative; }
.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr .95fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 210px; padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #151517, #0d0d0f);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -36px rgba(0, 0, 0, .9);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.tile:hover { box-shadow: inset 0 0 0 1px rgba(215, 38, 43, .45), 0 30px 60px -30px rgba(215, 38, 43, .25); transform: translateY(-3px); }
.tile--chart { grid-column: 1; grid-row: span 2; }
.tile--tiers { grid-column: 2; grid-row: span 2; }
.tile__cap { font-size: 14px; color: var(--muted); max-width: 240px; }
.num { font: 400 clamp(48px, 5vw, 76px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.num--sm { font-size: clamp(36px, 3.6vw, 52px); }
.kana-row { font: 500 14px/1 var(--jp); letter-spacing: .22em; color: rgba(244, 244, 242, .4); }

.chart { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: rgba(255, 255, 255, .08); stroke-dasharray: 2 5; }
.chart__labels text { fill: rgba(244, 244, 242, .45); font: 600 11px var(--body); text-anchor: middle; }
.chart__line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.chart__line--ghost { stroke: rgba(255, 255, 255, .22); stroke-width: 2; stroke-dasharray: 4 6; }
.chart__dot { fill: var(--red); }
.chart__halo { fill: rgba(215, 38, 43, .2); }

.tiers { position: relative; height: 230px; margin-top: 6px; }
.tier {
  position: absolute; left: 50%; display: flex; align-items: center; gap: 12px;
  width: 86%; padding: 14px 16px;
  border-radius: 16px;
  background: #1b1b1e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 30px -18px rgba(0, 0, 0, .9);
  transform: translateX(-50%);
  transition: transform .5s var(--ease);
}
.tier b { font: 400 14px/1 var(--display); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.tier span { font-size: 14px; color: rgba(244, 244, 242, .8); }
.tier--1 { top: 0; width: 72%; opacity: .55; }
.tier--2 { top: 56px; width: 80%; opacity: .8; }
.tier--3 { top: 116px; width: 90%; padding: 20px 18px; background: #222226; }
.tier--3 b { background: var(--red); color: #fff; }
.tier--3 em { margin-left: auto; font: 600 13px/1 var(--jp); font-style: normal; color: var(--red); }
.tile--tiers:hover .tier--1 { transform: translate(-50%, -6px); }
.tile--tiers:hover .tier--3 { transform: translate(-50%, 6px); }

/* ===== FORMATS ===== */
.formats { padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 7vw, 110px); }
.formats__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.formats__head { position: sticky; top: 40px; }
.formats__note { color: var(--muted); max-width: 300px; margin-top: -18px; }
.fmt { border-radius: 28px; padding: 8px clamp(18px, 3vw, 36px); background: linear-gradient(180deg, #141416, #0d0d0f); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.fmt__item + .fmt__item { border-top: 1px solid var(--line); }
.fmt__sum {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 46px 26px 0; position: relative; cursor: pointer; list-style: none;
}
.fmt__sum::-webkit-details-marker { display: none; }
.fmt__sum::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat;
  color: var(--muted); transition: transform .35s var(--ease), color .2s;
}
.fmt__item[open] .fmt__sum::after { transform: rotate(45deg); color: var(--red); }
.fmt__sum:hover .fmt__name { color: #fff; }
.fmt__name { font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--display); color: rgba(244, 244, 242, .88); transition: color .2s; }
.fmt__from { font: 400 16px/1.2 var(--display); color: var(--red); white-space: nowrap; }
.fmt__body { padding: 0 0 30px; display: grid; gap: 14px; animation: fmt-open .45s var(--ease); }
@keyframes fmt-open { from { opacity: 0; transform: translateY(-8px); } }
.fmt__short { color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.fmt__cap { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(244, 244, 242, .4); margin-top: 6px; }
.fmt__pl { display: grid; gap: 10px; }
.fmt__pl li { display: flex; align-items: baseline; gap: 12px; }
.fmt__pl span { white-space: nowrap; }
.fmt__pl i { flex: 1; min-width: 24px; border-bottom: 1px dotted rgba(255, 255, 255, .22); transform: translateY(-4px); }
.fmt__pl b { font: 400 18px/1 var(--display); white-space: nowrap; }
.fmt__cta { justify-self: start; margin-top: 8px; }

/* ===== START ===== */
.start { padding: 0 0 clamp(60px, 7vw, 110px); }
.start__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.start__head { position: sticky; top: 40px; }
.start__jp { font: 500 clamp(64px, 8vw, 120px)/1 var(--jp); color: #141416; letter-spacing: .06em; margin-top: -10px; user-select: none; }
.road { position: relative; padding-left: 92px; }
.road__svg { position: absolute; left: 18px; top: 10px; bottom: 10px; width: 40px; height: calc(100% - 20px); overflow: visible; }
.road__track, .road__ink { fill: none; stroke-linecap: round; }
.road__track { stroke: rgba(255, 255, 255, .08); stroke-width: 2; }
.road__ink { stroke: var(--red); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--road, 0)); }
.road__list { display: grid; gap: clamp(56px, 7vw, 96px); padding: 6px 0; }
.road__step { position: relative; display: block; }
.road__n {
  position: absolute; left: -92px; top: -6px;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1);
  font: 400 26px/1 var(--display); color: rgba(244, 244, 242, .35);
  transition: color .4s, box-shadow .4s, background .4s, transform .5s var(--ease);
}
.road__step h3 { font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--display); margin-bottom: 8px; color: rgba(244, 244, 242, .4); transition: color .4s; }
.road__step p { color: var(--muted); max-width: 420px; opacity: .5; transition: opacity .4s; }
.road__step.is-lit .road__n { color: #fff; background: var(--red); box-shadow: 0 0 0 8px rgba(215, 38, 43, .14); transform: scale(1.04); }
.road__step.is-lit h3 { color: var(--text); }
.road__step.is-lit p { opacity: 1; }

/* ===== SIGNUP ===== */
.signup { padding: 0 var(--gutter) var(--gutter); }
.signup__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(320px, 460px);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 80px);
  border-radius: var(--radius);
  background: var(--paper); color: var(--dark-text);
}
.signup__title { font: 400 clamp(40px, 5.6vw, 88px)/.95 var(--display); text-transform: uppercase; }
.signup__title .hl { color: var(--red); font-style: normal; }
.signup__text { margin-top: 24px; max-width: 380px; color: var(--dark-muted); }
.signup__jp {
  position: absolute; left: clamp(20px, 5vw, 80px); bottom: -.18em;
  font: 400 clamp(64px, 9vw, 140px)/1 var(--display); color: rgba(17, 17, 19, .05);
  pointer-events: none; white-space: nowrap;
}
.form { position: relative; z-index: 1; display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--dark-muted); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: 16px;
  background: #fff; color: var(--dark-text);
  font: 500 16px var(--body);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .35);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--dark-text) 50%), linear-gradient(135deg, var(--dark-text) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 43, .14); }
.field.is-error input { border-color: var(--red); }
.consent { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--dark-text); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.consent__box { width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px #c9c6c0; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.consent__box::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent input:checked + .consent__box { background: var(--red); box-shadow: none; }
.consent input:checked + .consent__box::after { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--red); outline-offset: 3px; }
.consent.is-error .consent__box { box-shadow: inset 0 0 0 2px var(--red); }
.consent a { color: var(--red); }
.form__submit { min-height: 58px; font-size: 16px; margin-top: 8px; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--dark-muted); }
.form__status.is-error { color: var(--red); }
.form.is-sent .field, .form.is-sent .consent, .form.is-sent .form__submit { display: none; }
.form.is-sent .form__status {
  padding: 26px; border-radius: 20px; background: #fff; color: var(--dark-text); font-size: 16px; line-height: 1.5;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35);
}
.form.is-sent .form__status b { display: block; font: 400 22px/1.2 var(--display); margin-bottom: 8px; }

/* ===== FOOTER ===== */
.foot { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 80px) 0 0; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; position: relative; z-index: 1; }
.foot__brand p { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 240px; }
.foot__nav, .foot__contacts, .foot__legal { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.foot__nav a, .foot__legal a { text-decoration: none; color: var(--muted); transition: color .2s; }
.foot__nav a:hover, .foot__legal a:hover { color: var(--text); }
.foot__contacts p, .foot__contacts a { color: var(--text); text-decoration: none; }
.foot__contacts a:hover { color: var(--red); }
.foot__legal p { color: var(--muted); }
.foot__big {
  font: 400 clamp(120px, 26vw, 400px)/.8 var(--display);
  color: #141416; text-align: center; letter-spacing: .1em;
  margin-top: 40px; transform: translateY(12%);
  user-select: none;
}

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--red); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(215, 38, 43, .7);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.totop svg { width: 20px; height: 20px; fill: currentColor; }
.totop:hover { background: var(--red-hover); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ===== Появление ===== */
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.js .hero__media img { transform: scale(1.06); opacity: 0; transition: transform 2.2s var(--ease), opacity 1.2s ease; }
.js .hero__jp, .js .hero__lead, .js .hero__vertical, .js .head { opacity: 0; transition: opacity .9s ease .35s, transform .9s var(--ease) .35s; }
.js .hero__vertical { transition-delay: .5s; }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__media img { transform: scale(1); opacity: 1; }
.is-loaded .hero__jp, .is-loaded .hero__lead, .is-loaded .head { opacity: 1; transform: none; }
.is-loaded .hero__vertical { opacity: 1; }

.js .chart__line:not(.chart__line--ghost) { stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .chart__dot, .js .chart__halo { opacity: 0; transition: opacity .4s ease 1.5s; }
.js .ap-on .tile--chart .chart__line { stroke-dashoffset: 0; }
.js .ap-on .tile--chart .chart__dot, .js .ap-on .tile--chart .chart__halo { opacity: 1; }
.chart__halo { transform-origin: 160px 76px; }

/* ===== Планшет ===== */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--chart, .tile--tiers { grid-column: auto; grid-row: auto; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about__panel { grid-template-columns: 1fr; }
  .about__photo { min-height: 0; aspect-ratio: 1 / 1; margin: 0; }
  .signup__panel { grid-template-columns: minmax(0, 1fr); }
  .formats__grid, .start__grid { grid-template-columns: minmax(0, 1fr); }
  .formats__head, .start__head { position: static; }
  .start__jp { display: none; }
}

/* ===== Телефон ===== */
@media (max-width: 760px) {
  :root { --radius: 26px; }
  .hero { padding: 10px 10px 0; }
  .hero__card { min-height: 0; }
  .hero__media { position: relative; inset: auto; order: 0; height: 118vw; max-height: 560px; z-index: 0; }
  .hero__media img { right: 0; left: 0; width: 100%; height: 100%; min-width: 0; object-position: 50% 0; -webkit-mask-image: none; mask-image: none; }
  .hero__media::after { height: 45%; background: linear-gradient(0deg, var(--ink) 8%, transparent); }
  .head { position: absolute; top: 0; left: 0; right: 0; padding: 18px 18px; }
  .head__cta { display: none; }
  .logo span { font-size: 17px; }
  .logo img { width: 34px; height: 34px; }
  .hero__body { display: flex; flex-direction: column; padding: 0 18px 28px; margin-top: -30vw; }
  .hero__title { font-size: 19vw; }
  .hero__title .line:nth-child(2) { padding-left: .7em; }
  .hero__jp { margin-top: 14px; font-size: 13px; }
  .hero__lead { margin-top: 26px; max-width: none; }
  .hero__lead .btn { width: 100%; }
  .hero__vertical { top: 96px; transform: none; right: 16px; font-size: 26px; }
  .menu-open .head { top: 10px; left: 10px; right: 10px; }
  .menu { padding: 110px 24px 40px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 30px; }
  .menu__jp { writing-mode: horizontal-tb; font-size: 32vw; }

  .about { padding: 0 10px; }
  .skills { grid-template-columns: 1fr; gap: 22px; }
  .statement { font-size: 26px; }
  .bento { grid-template-columns: 1fr; }
  .fmt { padding: 4px 18px; border-radius: 22px; }
  .fmt__sum { flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 40px 22px 0; }
  .road { padding-left: 70px; }
  .road__svg { left: 6px; }
  .road__n { left: -70px; width: 52px; height: 52px; font-size: 21px; }
  .tile { min-height: 0; }
  .tiers { height: 210px; }
  .signup { padding: 0 10px 10px; }
  .signup__panel { padding: 40px 20px 48px; }
  .signup__title { font-size: 8.8vw; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
  .totop { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .hero__title .line > span, .js .hero__media img, .js .hero__jp, .js .hero__lead, .js .hero__vertical, .js .head { opacity: 1 !important; transform: none !important; }
  .hero__layer--ink { -webkit-mask: none !important; mask: none !important; }
  html.ap-js .split-title .char { opacity: 1 !important; transform: none !important; filter: none !important; }
  .road__ink { stroke-dashoffset: 0 !important; }
  .road__step h3, .road__step p { color: inherit; opacity: 1 !important; }
  .js .chart__line { stroke-dashoffset: 0 !important; }
  .js .chart__dot, .js .chart__halo { opacity: 1 !important; }
}
