/* =====================================================================
   TF Market — дизайн-система «Рельеф» (по языку хаба Nike ACG), прототип 24.11.2026
   Слой 1: шрифты, токены, база, раскладка (сцена / лист / хребет)
   ===================================================================== */

/* ---------- шрифты: свой хостинг, только кириллица и латиница ---------- */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/onest-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/onest-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- токены ---------- */
:root {
  /* сцена (тёмная, как ACG): фон, второй фон, текст, линии */
  /* три цвета (владелец 24.11 вечер: «система из чёрного, белого и оранжевого полностью», серых плоскостей нет) */
  --stage: #0D0D0D;
  --stage-2: #161616;
  --stage-3: #202020;
  --on-stage: #FFFFFF;
  --on-stage-2: rgba(255, 255, 255, .86);
  --on-stage-3: rgba(255, 255, 255, .64);
  --stage-line: rgba(255, 255, 255, .12);
  --stage-line-2: rgba(255, 255, 255, .40);

  /* лист (светлый): фон, карточка, текст, линии */
  --sheet: #FFFFFF;                         /* лист белый: серого фона нет */
  --card: #FFFFFF;
  --ink: #0D0D0D;
  --ink-2: #5C5C5C;                         /* только мелкий вторичный текст, не плоскости */
  --ink-3: #8D877C;                         /* НЕ для текста: рамки полей, значки, отключённое */
  --line: rgba(13, 13, 13, .14);
  --line-2: rgba(17, 17, 17, .45);
  --paper-2: rgba(13, 13, 13, .12);
  --soft: rgba(241, 90, 41, .10);           /* тинт выбранного на светлом — оранжевый, не серый */
  --accent-tint: rgba(241, 90, 41, .12);    /* тинт выбранного на сцене */

  /* бренд: один акцент, широкий */
  --accent: #F15A29;
  --accent-press: #D94C1F;                  /* наведение */
  --accent-dark: #BE3F18;                   /* мелкий оранжевый текст на светлом, нажатие */
  --on-accent: #FFFFFF;
  --accent-ink: #111111;

  --ok: #1F7A3A;
  --err: #B3261E;

  /* шрифты */
  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* отступы (шаг 4) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 28px; --s8: 32px;
  --s10: 40px; --s12: 48px; --s14: 56px; --s16: 64px; --s20: 80px; --s24: 96px;

  /* радиусы */
  --r1: 6px; --r2: 12px; --r3: 16px; --r4: 24px; --r5: 28px; --pill: 999px;

  /* поля и контейнер */
  --gut: 16px;
  --wrap: 1600px;                          /* 24.11: шире — меньше пустых полей на больших экранах; одна ширина на весь сайт */
  --hdr: 56px;          /* шапка телефона */
  --tabs: 44px;         /* строка вкладок Спорт/Город */

  /* движение: три скорости, одна кривая */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.45, 0, .2, 1);
  --t1: 160ms;   /* нажатие, наведение, цвет */
  --t2: 280ms;   /* смена вкладки, раскрытие, лист */
  --t3: 520ms;   /* смена сцены, въезд пары */

  /* кадр фото товара (как на живом сайте: квадрат, contain, одно поле) */
  --ph-pad: 2.4%;

  color-scheme: light;
}
@media (min-width: 768px) { :root { --gut: 24px; } }
@media (min-width: 1200px) { :root { --gut: 40px; --hdr: 64px; } }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + var(--tabs) + 12px); }
body {
  margin: 0; min-height: 100vh;
  font: 400 16px/1.55 var(--f-text);
  color: var(--ink); background: var(--sheet);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { flex: none; }

/* ---------- типографика ---------- */
.d-xl, .d-l, .h1, .h2, .h3, .num { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; }
.d-xl { font-size: clamp(64px, 27vw, 240px); line-height: .82; letter-spacing: -.05em; font-weight: 900; }  /* огромное слово сцены */
.d-l  { font-size: clamp(44px, 14vw, 132px); line-height: .9; letter-spacing: -.035em; }
.h1   { font-size: clamp(30px, 8.2vw, 56px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.h1--home { font-size: clamp(34px, 8.7vw, 72px); line-height: 1; letter-spacing: -.04em; }
.h2   { font-size: clamp(26px, 6.6vw, 44px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.h2--event { font-size: clamp(36px, 9.2vw, 88px); line-height: 1; letter-spacing: -.04em; }
.h3   { font-family: var(--f-text); font-weight: 800; font-size: clamp(19px, 4.9vw, 24px); line-height: 1.15; letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 4.4vw, 20px); line-height: 1.45; font-weight: 400; max-width: 52ch; text-wrap: pretty; }
.t-s  { font-size: 14px; line-height: 1.45; }
.t-xs { font-size: 12.5px; line-height: 1.4; }
.mute { color: var(--ink-2); }
.on-stage .mute, .stage .mute { color: var(--on-stage-2); }
.num  { font-variant-numeric: tabular-nums lining-nums; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--on-stage-3); }

/* ---------- раскладка: сцена (тёмная) -> хребет -> лист (светлый) ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.stage {
  position: relative; isolation: isolate;
  background: var(--stage); color: var(--on-stage);
}
.stage--2 { background: var(--stage-2); }
.stage .tex {                                   /* фактура мира: рельеф (спорт) или план улиц (город) */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/topo.svg") center / cover no-repeat;
  opacity: .17;                                 /* фактура мира: рельеф (спорт) / план улиц (город), серые линии на графите */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
[data-world="gorod"] .stage .tex { background-image: url("../img/city.svg"); opacity: .15; }
.sheet { position: relative; background: var(--sheet); color: var(--ink); }
.ridge {                                         /* край хребта между сценой и листом */
  display: block; width: 100%; height: clamp(40px, 9vw, 120px);
  margin-top: -1px; color: var(--sheet); background: var(--stage);
}
.stage--2 + .ridge, .ridge--2 { background: var(--stage-2); }
.ridge path { fill: currentColor; }
.ridge__gorod, [data-world="gorod"] .ridge__sport { display: none; }
[data-world="gorod"] .ridge__gorod { display: inline; }
/* лист -> сцена: прямой край (перевёрнутый хребет не ставим — мотив превращается в шаблон) */

.sec { padding: var(--s14) 0; }
.sec--tight { padding: var(--s6) 0; }
@media (min-width: 1200px) { .sec { padding: 104px 0; } .sec--tight { padding: 40px 0; } }   /* tight не перебивается на ПК */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.sec-head .more { font-weight: 700; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sec-head .more .i { width: 18px; height: 18px; transition: transform var(--t1) var(--ease); }
.sec-head .more:hover .i { transform: translateX(3px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 768px) { .grid-2 { gap: var(--s4); } }
