/* К-247 — сайт. Палитра: графит #2E2D2B + бумага #F2F1EE + жёлтый акцент #FFF200.
   Жёлто-чёрная гамма — айдентика уличных павильонов, она и остаётся лицом сайта.
   Первый экран целиком жёлтый, снимок кабинета на нём — тоже.
   Синий начинается за входом в кабинет: там это базовый цвет системы.
   Шрифты: Wix Madefor Display 500 / Wix Madefor Text 400. Easing: cubic-bezier(.22,1,.36,1) */

:root {
  --ink: #2E2D2B;
  --graphite: #404040;
  --paper: #F2F1EE;
  --brand: #FFF200;
  --on-brand: #2E2D2B;
  /* снимок кабинета на первом экране: отдельным токеном, чтобы менять его
     независимо от остальной страницы */
  --shot-brand: #FFF200;
  --shot-on: #2E2D2B;
  --e: cubic-bezier(.22, 1, .36, 1);
  --s2: 8px; --s3: 12px; --s4: 20px; --s5: 32px; --s6: 56px; --s7: 96px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Wix Madefor Text", system-ui, sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .mark__k, .figures dt, .steps__idx, .role__idx, .cat__i, .numbers b, .extra__t {
  font-family: "Wix Madefor Display", system-ui, sans-serif;
  font-weight: 500;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 0.88; letter-spacing: -0.038em; text-wrap: balance; hyphens: none; }
h2 { font-size: clamp(1.9rem, 4vw, 3.8rem); line-height: 0.92; letter-spacing: -0.032em; text-wrap: balance; hyphens: none; }
h3 { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; max-width: 58ch; }

.lead { font-size: clamp(15px, 1.2vw, 18px); max-width: 46ch; opacity: 0.78; text-wrap: balance; }
.label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.8; opacity: 0.55; }
.assure { font-size: 12.5px; opacity: 0.55; }
.dim { opacity: 0.6; font-size: 13px; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- шапка ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--pad);
  background: var(--brand); color: var(--on-brand);
}
.mark { display: inline-flex; flex-direction: column; line-height: 1; }
.mark__k { font-size: 26px; font-style: italic; letter-spacing: -0.045em; }
.mark__s { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; margin-top: 3px; }

.nav { display: flex; gap: clamp(12px, 2vw, 30px); justify-content: center; font-size: 13.5px; }
.nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; opacity: 0.75; transition: opacity 320ms var(--e); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 520ms var(--e);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__enter { opacity: 1; }
/* кнопка меню разделов — только на телефоне, где пункты шапки не помещаются */
.burger {
  display: none; width: 44px; height: 44px; place-items: center; padding: 0;
  border: 1px solid currentColor; border-radius: 10px; background: none; color: inherit; cursor: pointer;
  transition: background 200ms var(--e), color 200ms var(--e);
}
.burger:hover, .burger[aria-expanded="true"] { background: var(--on-brand); color: var(--brand); }
.burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.phone { font-size: 14px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- hero: схема C, 58/42 ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 54fr 46fr; }
.hero__text {
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s4);
  padding: calc(var(--pad) + 40px) clamp(24px, 3vw, 56px) clamp(48px, 8vh, 96px) var(--pad);
  min-height: 100svh;
}
.hero__text h1 { max-width: 15ch; }
.hero__media {
  position: relative; overflow: hidden; background: var(--brand);
  display: grid; align-items: center; justify-items: start;
  padding: clamp(40px, 7vh, 90px) 0 clamp(40px, 7vh, 90px) clamp(20px, 3vw, 56px);
}

/* ---------- фрагмент рабочего кабинета на первом экране ----------
   Это не картинка, а та же вёрстка, что внутри системы: чёткая на любом экране,
   ничего не весит и не расходится с продуктом. Уходит за правый край окна. */
.shot {
  /* шире колонки: уходит за правый край окна, как настоящий снимок экрана у кромки */
  width: 132%; min-width: 520px;
  background: var(--paper); color: var(--ink);
  /* жёлтая полоса снимка на жёлтом фоне теряет край — держим рамкой,
     она же и есть приём самого классического интерфейса */
  outline: 2px solid var(--ink);
  box-shadow: -20px 30px 70px rgba(0, 0, 0, .34);
  font-size: clamp(13px, 1.15vw, 18px); line-height: 1.35;
  transform: translateY(var(--shot-y, 0));
}
.shot__bar {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  background: var(--shot-brand); color: var(--shot-on);
  padding: 10px clamp(12px, 1.4vw, 20px);
  border-bottom: 2px solid var(--ink);
}
.shot__logo {
  font-family: "Wix Madefor Display", system-ui, sans-serif; font-weight: 500;
  font-style: italic; font-size: 1.9em; letter-spacing: -0.03em; line-height: 1;
}
.shot__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.shot__tabs i {
  font-style: normal; font-size: 0.92em; padding: 5px 12px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(46, 45, 43, .35);
}
.shot__tabs i:first-child { background: var(--graphite); color: var(--paper); box-shadow: none; }

.shot__panel { padding: 0 0 12px; }
.shot__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: var(--graphite); color: var(--paper); padding: 7px clamp(12px, 1.4vw, 20px);
}
.shot__head b { font-weight: 400; }
.shot__head span { font-size: 0.85em; opacity: 0.75; }

/* карточка заявки: то, на что отвечают продавцы */
.shot__card { padding: 12px clamp(12px, 1.4vw, 20px) 14px; border-bottom: 1px solid rgba(46, 45, 43, .16); }
.shot__card b {
  display: block; font-family: "Wix Madefor Display", system-ui, sans-serif; font-weight: 500;
  font-size: 1.25em; letter-spacing: -0.02em;
}
.shot__card > span { display: block; font-size: 0.85em; opacity: 0.55; margin-top: 2px; }
.shot__card ol { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 3px; }
.shot__card li { font-size: 0.94em; }
.shot__card i { font-style: normal; opacity: 0.62; }

.shot__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.7fr);
  gap: clamp(10px, 1.6vw, 26px); align-items: baseline;
  padding: 9px clamp(12px, 1.4vw, 20px); border-bottom: 1px solid rgba(46, 45, 43, .16);
}
.shot__row .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shot__row--th { font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.5; }
.shot__row--best { background: var(--shot-brand); color: var(--shot-on); font-weight: 400; }
.shot__row--best .num { font-family: "Wix Madefor Display", system-ui, sans-serif; }

/* подписанная сигнатура страницы: КП приходят по одному, лучшее подсвечивается последним */
.shot__row[data-kp] { opacity: 0; transform: translateY(10px); }
.is-in .shot__row[data-kp] {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--e) var(--kd, 0ms), transform 620ms var(--e) var(--kd, 0ms),
              background 500ms var(--e) var(--kd, 0ms);
}
.shot__row[data-kp="1"] { --kd: 1500ms; }
.shot__row[data-kp="2"] { --kd: 1900ms; }
.shot__row[data-kp="3"] { --kd: 2300ms; }
.shot__row[data-kp="4"] { --kd: 2700ms; }

.shot__foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px clamp(12px, 1.4vw, 20px) 0; font-size: 0.85em; opacity: 0.6;
}

@media (max-width: 900px) {
  .hero__media { justify-items: stretch; padding: 0 0 var(--s5); }
  .shot {
    width: auto; min-width: 0; margin: 0 var(--pad);
    box-shadow: -12px 18px 44px rgba(0, 0, 0, .3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .shot__row[data-kp] { opacity: 1; transform: none; }
  .shot { transform: none; }
}
/* полоса цифр под первым экраном */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--brand); color: var(--on-brand);
}
.numbers div { padding: var(--s4) var(--pad) var(--s5); }
.numbers div + div { box-shadow: inset 1px 0 0 rgba(46, 45, 43, 0.18); }
.numbers b { display: block; font-family: "Wix Madefor Display", system-ui, sans-serif; font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; }
.numbers span { font-size: 12.5px; opacity: 0.72; display: block; margin-top: 6px; max-width: 22ch; }

.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: inherit; font-size: 14.5px; cursor: pointer; letter-spacing: -0.01em;
}
.btn__label { position: relative; z-index: 2; transition: color 320ms var(--e); }
.btn__fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--e); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid .btn__fill { background: var(--brand); }
.btn--solid:hover .btn__fill { transform: scaleX(1); }
.btn--solid:hover .btn__label { color: var(--on-brand); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(46, 45, 43, 0.3); }
.btn--line .btn__fill { background: var(--ink); }
.btn--line:hover .btn__fill { transform: scaleX(1); }
.btn--line:hover .btn__label { color: var(--paper); }
.btn--onDark { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(242, 241, 238, 0.4); }
.btn--onDark .btn__fill { background: var(--brand); }
.btn--onDark:hover .btn__label { color: var(--on-brand); }

/* ---------- поиск без входа (ответ 20.10, вопрос 103; guest.js, find.html) ---------- */
/* цели — не меньше 44 × 44, промежутки — 8 px и больше; на 400 px — поля столбцом во всю ширину, без прокрутки вбок */
.gfind { padding: clamp(40px, 7vh, 88px) var(--pad); }
.gfind[hidden] { display: none; }
.gfind__t { margin-bottom: var(--s3); }
.gfind__lead { opacity: .8; margin-bottom: var(--s4); max-width: 60ch; }
.gfind__form { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto; gap: var(--s3); align-items: end; max-width: 1100px; }
.gfind__f { display: grid; gap: 4px; min-width: 0; }
.gfind__l { font-size: 12.5px; opacity: .72; }
.gfind__f select, .gfind__f input {
  width: 100%; min-height: 52px; padding: 0 18px; border: 1.5px solid rgba(46, 45, 43, .45); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.gfind__f select:focus-visible, .gfind__f input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.gfind__msg { margin-top: var(--s3); max-width: 70ch; }
.gfind__msg[hidden] { display: none; }
.gfind__list { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s4); max-width: 1100px; }
.gfind__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: center; padding: var(--s3) var(--s4);
  background: #fff; border: 1.5px solid rgba(46, 45, 43, .25); border-radius: 14px; }
.gfind__name { font-weight: 600; overflow-wrap: anywhere; }
.gfind__sub { font-size: 13.5px; opacity: .78; overflow-wrap: anywhere; }
.gfind__have { font-size: 14px; font-weight: 600; }
.gfind__price { min-height: 44px; padding: 8px 20px; border-radius: 24px; line-height: 1.3; text-align: center; }
.gfind__note { margin-top: var(--s4); font-size: 13px; opacity: .72; max-width: 70ch; }
/* страница результатов: шапка сайта над блоком — отступ сверху, как у первого экрана главной */
.gfind--page { min-height: 60vh; padding-top: clamp(104px, 16vh, 150px); }
@media (max-width: 700px) {
  .gfind__form { grid-template-columns: minmax(0, 1fr); }
  .gfind__item { grid-template-columns: minmax(0, 1fr); }
  .gfind__price, .gfind__go { width: 100%; }
}

/* ---------- разделы ---------- */
.sections { padding: clamp(64px, 10vh, 130px) var(--pad); }
.sections h2 { margin-bottom: var(--s6); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.cat {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  background: var(--graphite); color: var(--paper); border: 0; border-radius: 0;
  padding: var(--s4) var(--s4) clamp(90px, 12vw, 150px);
  min-height: clamp(220px, 26vw, 340px);
  transition: background 420ms var(--e), transform 620ms var(--e);
}
.cat__i { font-size: 11.5px; letter-spacing: 0.2em; opacity: 0.6; display: block; margin-bottom: var(--s4); }
.cat__t { display: block; font-family: "Wix Madefor Display", system-ui, sans-serif; font-size: clamp(19px, 1.8vw, 30px); line-height: 1.05; letter-spacing: -0.025em; }
.cat__art {
  position: absolute; right: -6%; bottom: 6%; width: 84%;
  fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.35;
  transition: transform 700ms var(--e), opacity 420ms var(--e), stroke 420ms var(--e);
}
.cat:hover, .cat.is-active { background: var(--brand); color: var(--on-brand); transform: translateY(-4px); }
.cat:hover .cat__art, .cat.is-active .cat__art { stroke: var(--on-brand); opacity: 0.9; transform: translateX(-6%) scale(1.06); }

.extra { display: grid; grid-template-columns: 62fr 38fr; gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(12px, 1.6vw, 22px); }
.extra__big {
  display: grid; align-content: end; gap: var(--s2);
  background: var(--brand); color: var(--on-brand); padding: var(--s5) var(--s4);
  transition: transform 620ms var(--e);
}
.extra__big:hover { transform: translateY(-4px); }
.extra__t { font-size: clamp(20px, 2.4vw, 34px); line-height: 1.02; letter-spacing: -0.03em; }
.extra__list { list-style: none; display: grid; gap: 1px; background: rgba(46, 45, 43, 0.16); }
.extra__list li { background: var(--paper); }
.extra__list a {
  display: flex; align-items: center; min-height: 62px; padding: 0 var(--s4);
  font-size: 15px; transition: background 320ms var(--e), transform 520ms var(--e);
}
.extra__list a:hover { background: var(--brand); color: var(--on-brand); transform: translateX(8px); }

/* ---------- как устроено ---------- */
.work { padding: clamp(64px, 10vh, 130px) var(--pad); }
.work h2 { max-width: 14ch; margin-bottom: var(--s6); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 72px); }
.steps li { padding-top: var(--s4); border-top: 1px solid rgba(46, 45, 43, 0.22); }
.steps__idx { display: block; font-size: 12px; letter-spacing: 0.2em; margin-bottom: var(--s5); }
.steps h3 { margin-bottom: var(--s3); }
.steps p { opacity: 0.72; font-size: 15px; }

/* ---------- роли ---------- */
.roles { display: grid; grid-template-columns: 58fr 42fr; background: var(--graphite); color: var(--paper); }
.roles__list { padding: clamp(64px, 10vh, 130px) clamp(24px, 3vw, 56px) clamp(64px, 10vh, 130px) var(--pad); }
.roles__list h2 { margin-bottom: var(--s6); }
.roles ul { list-style: none; }
.role {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: baseline; gap: var(--s4);
  padding: var(--s4) 0; border-top: 1px solid rgba(242, 241, 238, 0.18);
  cursor: pointer; opacity: 0.55;
  transition: transform 620ms var(--e), opacity 320ms var(--e);
}
.role:last-child { border-bottom: 1px solid rgba(242, 241, 238, 0.18); }
.role__idx { font-size: 12px; letter-spacing: 0.2em; opacity: 0.65; }
.role__name { font-family: "Wix Madefor Display", system-ui, sans-serif; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.05; letter-spacing: -0.025em; }
.role__note { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 620ms var(--e), opacity 420ms var(--e); }
.role__note > span { overflow: hidden; min-height: 0; font-size: 14px; }
.role.is-active { opacity: 1; transform: translateX(14px); }
.role.is-active .role__note { grid-template-rows: 1fr; opacity: 0.72; margin-top: var(--s2); }

/* ---------- рублиКи ---------- */
.coins { padding: clamp(64px, 10vh, 130px) var(--pad); }
.coins__head { display: grid; grid-template-columns: 58fr 42fr; gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: var(--s7); }
.coins__head h2 { max-width: 26ch; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 48px); }
.figures div { border-top: 1px solid rgba(46, 45, 43, 0.22); padding-top: var(--s4); }
.figures dt { font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 0.9; letter-spacing: -0.038em; }
.figures dd { margin-top: var(--s3); font-size: 14.5px; opacity: 0.7; max-width: 24ch; }

/* ---------- два предложения ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); }
.offer { background: var(--brand); padding: clamp(48px, 7vw, 96px) var(--pad); display: grid; align-content: center; gap: var(--s3); }
.offer h3 { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.02; letter-spacing: -0.03em; }
.offer p { max-width: 44ch; font-size: 15px; opacity: 0.78; }
.offer--dark { background: var(--graphite); color: var(--paper); }
.offer--dark .btn--solid { background: var(--brand); color: var(--ink); }
.offer--dark .btn--solid .btn__fill { background: var(--paper); }

/* ---------- вход: блок «Кабинет К-247» с кнопками входа и регистрации (формы — на странице login.html) ---------- */
.enter { display: grid; grid-template-columns: 60fr 40fr; gap: clamp(24px, 4vw, 64px); padding: clamp(64px, 10vh, 130px) var(--pad); align-items: start; }
.enter__flow { background: #fff; padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 40px); min-height: 520px; }
/* переход к блоку с первого экрана: его начало не уходит под закреплённую шапку */
.enter__flow { scroll-margin-top: 96px; }
.step { display: none; }
.step.is-on { display: grid; gap: var(--s4); align-content: start; }
.step h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
.step .cta { margin-top: var(--s2); }
.step .lead { max-width: 44ch; }
.enter__demo h2 { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: var(--s3); }
.accounts { list-style: none; margin-top: var(--s4); }
.account {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4);
  padding: var(--s3) 0; border-top: 1px solid rgba(46, 45, 43, 0.22);
}
.accounts li:last-child .account { border-bottom: 1px solid rgba(46, 45, 43, 0.22); }
.account__role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.62; }
.account__name { font-family: "Wix Madefor Display", system-ui, sans-serif; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -0.02em; line-height: 1.1; }
.account__meta { font-size: 13px; opacity: 0.6; }

/* ---------- боевой режим: как начать работу (вместо демо-аккаунтов) ---------- */
/* атрибут hidden сильнее display у .btn: элементы другого режима не показываются */
[hidden] { display: none !important; }
.enter__side h2 { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: var(--s3); }
.guide { list-style: none; margin-top: var(--s4); }
.guide li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px var(--s3); align-items: baseline;
  padding: var(--s3) 0; border-top: 1px solid rgba(46, 45, 43, 0.22);
}
.guide li:last-child { border-bottom: 1px solid rgba(46, 45, 43, 0.22); }
.guide__i { grid-row: span 3; font-size: 12px; letter-spacing: 0.16em; opacity: 0.62; }
.guide b { font-family: "Wix Madefor Display", system-ui, sans-serif; font-weight: 500; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.guide span:not(.guide__i) { font-size: 14px; opacity: 0.72; text-wrap: pretty; }
.guide__link, .linkbtn {
  justify-self: start; display: inline-flex; align-items: center; min-height: 44px;
  border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-thickness 200ms var(--e);
}
.guide__link { font-size: 14px; }
.guide__link:hover, .linkbtn:hover { text-decoration-thickness: 2px; }
.guide__link:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* строка «Уже есть кабинет? Войти в кабинет» под кнопками первого экрана: ссылка читается полностью, не вполсилы */
.assure .linkbtn { font-size: 14px; opacity: 1; margin-left: 6px; }
.hero .assure { display: flex; flex-wrap: wrap; align-items: center; }
.hero .assure > span { opacity: 0.62; }

/* ---------- подвал ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) var(--pad); background: var(--graphite); color: var(--paper); font-size: 13.5px;
}
.mark--foot .mark__k { font-size: 20px; }
/* ссылка «Игры» в подвале главной (правки 06–07.11, И1): цель не меньше 44 × 44 */
.foot__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  text-decoration: underline; text-decoration-color: rgba(242, 241, 238, 0.45); text-underline-offset: 3px;
}
.foot__link:hover { text-decoration-color: currentColor; }
.foot__link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px; font-size: 14px;
  transition: opacity 300ms var(--e), transform 560ms var(--e);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--err { background: #C0392B; }

/* ---------- появление ---------- */
.rise { opacity: 0; transform: translateY(28px); filter: blur(14px); }
/* задержка появления — классом rise--d<мс>, а не атрибутом style: атрибуты style не пускает Content-Security-Policy (аудит 28.09, N40) */
.rise--d100 { --d: 100ms; }
.rise--d120 { --d: 120ms; }
.rise--d200 { --d: 200ms; }
.rise--d240 { --d: 240ms; }
.rise--d300 { --d: 300ms; }
.rise--d900 { --d: 900ms; }
.rise--d1040 { --d: 1040ms; }
.rise--d1100 { --d: 1100ms; }
.rise--d1200 { --d: 1200ms; }
.rise--d1320 { --d: 1320ms; }
.is-in .rise, .rise.is-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 900ms var(--e) var(--d, 0ms),
              transform 900ms var(--e) var(--d, 0ms),
              filter 900ms var(--e) var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .rise { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  /* minmax(0, 1fr): колонка не раздвигается под неразрывный заголовок — на 390 было +3px скролла */
  .hero, .roles, .coins__head, .enter { grid-template-columns: minmax(0, 1fr); }
  .hero__text { min-height: auto; padding-top: 110px; }
  .hero__media { height: 52svh; }
  .roles__media { padding: 0 var(--pad) var(--s5); }
  .cats, .steps, .figures { grid-template-columns: 1fr 1fr; }
  .extra { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: auto 1fr; }
  .phone { display: none; }
}

@media (max-width: 700px) {
  .cats, .steps, .figures { grid-template-columns: 1fr; }
  .nav a:not(.nav__enter) { display: none; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .burger { display: inline-grid; grid-column: 3; grid-row: 1; }
  .nav { justify-content: flex-end; }
  /* раскрытое меню: пункты столбцом под шапкой, каждый во всю ширину и не ниже 44px */
  .nav.is-open {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 8px; padding: var(--s3) var(--pad) var(--s4);
    background: var(--brand); box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
  }
  .nav.is-open a { display: flex; min-height: 44px; opacity: 1; }
  .cta { flex-direction: column; align-items: stretch; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers div + div { box-shadow: inset 0 1px 0 rgba(46, 45, 43, 0.18); }
}

/* ---------- витрина лояльности ---------- */
.coins__grid {
  display: grid; grid-template-columns: 44fr 28fr 28fr;
  gap: clamp(20px, 3vw, 56px); margin-top: clamp(40px, 6vh, 88px); align-items: start;
}
.scale__t { width: 100%; border-collapse: collapse; margin-top: var(--s3); }
.scale__t th, .scale__t td { text-align: left; padding: var(--s3) 0; border-top: 1px solid rgba(46, 45, 43, 0.22); vertical-align: baseline; }
.scale__t th {
  font-family: "Wix Madefor Display", system-ui, sans-serif; font-weight: 500;
  font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -0.02em; white-space: nowrap; padding-right: var(--s4);
}
.scale__t td { font-size: 14px; opacity: 0.68; }
.scale .assure { margin-top: var(--s3); }

.fuel__t { font-family: "Wix Madefor Display", system-ui, sans-serif; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -0.02em; margin-bottom: var(--s3); }
.fuel__card {
  display: grid; gap: 4px; align-content: space-between;
  aspect-ratio: 1.586; padding: var(--s4);
  background: #FEE600; color: var(--ink);
}
.fuel__brand { font-family: "Wix Madefor Display", system-ui, sans-serif; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 0.9; }
.fuel__sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.62; }
.fuel__no { font-variant-numeric: tabular-nums; font-size: clamp(13px, 1.2vw, 16px); letter-spacing: 0.06em; }
.fuel__disc { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; }
.fuel__nets { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s3) 0; }
.fuel__nets li { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; padding: 5px 9px; box-shadow: inset 0 0 0 1px rgba(46, 45, 43, 0.25); }

.perk { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px var(--s3); padding: var(--s3) 0; border-top: 1px solid rgba(46, 45, 43, 0.22); }
.perk:last-child { border-bottom: 1px solid rgba(46, 45, 43, 0.22); }
.perk__i { grid-row: span 2; font-size: 12px; letter-spacing: 0.16em; opacity: 0.62; }
.perk b { font-family: "Wix Madefor Display", system-ui, sans-serif; font-weight: 500; font-size: clamp(15px, 1.3vw, 19px); letter-spacing: -0.02em; }
.perk span:not(.perk__i) { font-size: 13px; opacity: 0.65; }

@media (max-width: 1100px) {
  .coins__grid { grid-template-columns: 1fr 1fr; }
  .perks { grid-column: span 2; }
}
@media (max-width: 720px) {
  .coins__grid { grid-template-columns: 1fr; }
  .perks { grid-column: auto; }
  .enter__flow { padding: var(--s4) var(--s3); min-height: 0; }
}

/* ---------- экран роли ---------- */
.roles__media { position: relative; display: grid; align-items: center; }
.shot--role {
  grid-area: 1 / 1; width: 100%; min-width: 0;
  box-shadow: 0 24px 60px rgba(46, 45, 43, .18);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity 420ms var(--e), transform 620ms var(--e), visibility 0s linear 420ms;
}
.shot--role.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.shot--role .shot__row i { font-style: normal; font-size: 0.82em; opacity: 0.5; }
.shot--role .shot__foot { padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .shot--role { transition: none; }
}

/* ---------- решение заказчика 17.09: без выдуманных цифр, неготовые разделы скрыты ----------
   Суммы на условных экранах — полосы вместо чисел: экран показывает, где будет цена, но не выдумывает её.
   Разная длина полос — по порядку строки, без инлайн-стилей. */
.shot__sum {
  display: inline-block; vertical-align: middle;
  width: 6.2em; height: 0.62em; border-radius: 2px;
  background: currentColor; opacity: 0.22;
}
.shot__row:nth-of-type(3n) .shot__sum { width: 5.1em; }
.shot__row:nth-of-type(3n+1) .shot__sum { width: 7.3em; }
.shot__row--best .shot__sum { opacity: 0.45; }

/* Блоки разделов площадки [data-section] прячутся атрибутом hidden (script.js). Сетки подстраиваются под оставшиеся блоки:
   без топливной карты и витрины подарков таблица рублиКов занимает строку целиком, без «Подработки» — предложение
   оптового отдела во всю ширину. */
.fuel .dim { margin-top: var(--s3); }
.coins__grid:has(> [hidden]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.coins__grid:has(> .fuel[hidden]):has(> .perks[hidden]) { grid-template-columns: minmax(0, 1fr); }
.coins__grid:has(> .fuel[hidden]):has(> .perks[hidden]) .scale { max-width: 760px; }
.coins__grid:has(> [hidden]) .fuel { max-width: 420px; }
.offers:has(> .offer[hidden]) { grid-template-columns: minmax(0, 1fr); }
/* одно предложение во всю ширину: заголовок слева, текст и кнопки справа — жёлтая полоса без пустой половины */
@media (min-width: 1101px) {
  .offers:has(> .offer[hidden]) .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 72px); align-items: end; }
  .offers:has(> .offer[hidden]) .offer > .label { grid-area: 1 / 1; }
  .offers:has(> .offer[hidden]) .offer > h3 { grid-area: 2 / 1; }
  .offers:has(> .offer[hidden]) .offer > p { grid-area: 1 / 2; }
  .offers:has(> .offer[hidden]) .offer > .cta { grid-area: 2 / 2; }
}
@media (max-width: 1100px) {
  .coins__grid:has(> [hidden]) .perks { grid-column: auto; }
}
@media (max-width: 720px) {
  .coins__grid:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
}
