/* SORA — городская одежда, вдохновлённая горами.
   Шрифты по UI UX Pro Max (пара «широкий гротеск + моно», адаптирована под кириллицу):
   Unbounded — заголовки, Geologica — текст, Martian Mono — подписи; Inter Tight 800 — только огромное SORA.
   Палитра ледника + зерно плёнки + линии рельефа. Анимации — CSS, JS только ставит классы. */

:root {
  --snow: #f3f4f2;
  --ice: #dce3e5;
  --ice-2: #c9d4d8;
  --stone: #7c858a;
  --graphite: #2a2f33;
  --ink: #0e1012;
  --muted: #5d666b;
  --line: rgba(14, 16, 18, .14);
  --error: #b42318;

  --f-display: "Unbounded", "Geologica", system-ui, sans-serif;
  --f-sans: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);       /* expo.out */
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --bar-h: 42px;
  --header-h: 58px;
  --top: calc(var(--bar-h) + var(--header-h));

  /* контуры горных хребтов — тонкие линии на фоне (бесшовный узор) */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='340' viewBox='0 0 640 340'%3E%3Cg fill='none' stroke='%230e1012' stroke-opacity='.09' stroke-linejoin='round'%3E%3Cpath d='M0 120 L60 100 L95 112 L150 60 L185 85 L240 40 L300 95 L350 80 L410 30 L470 90 L520 70 L580 105 L640 120'/%3E%3Cpath d='M0 129 L60 109 L95 121 L150 69 L185 94 L240 49 L300 104 L350 89 L410 39 L470 99 L520 79 L580 114 L640 129' stroke-opacity='.045'/%3E%3Cpath d='M0 230 L50 212 L110 172 L150 194 L210 150 L260 188 L330 138 L390 182 L440 160 L500 198 L560 166 L640 230'/%3E%3Cpath d='M0 239 L50 221 L110 181 L150 203 L210 159 L260 197 L330 147 L390 191 L440 169 L500 207 L560 175 L640 239' stroke-opacity='.045'/%3E%3Cpath d='M0 320 L70 298 L120 262 L170 288 L230 248 L290 282 L350 236 L420 276 L480 252 L540 292 L600 270 L640 320'/%3E%3Cpath d='M0 329 L70 307 L120 271 L170 297 L230 257 L290 291 L350 245 L420 285 L480 261 L540 301 L600 279 L640 329' stroke-opacity='.045'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 15px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
/* зерно плёнки поверх всего сайта */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--ink); color: var(--snow); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--snow); }
.skip:focus { left: 8px; }
.topo { background-image: var(--topo); background-size: 640px 340px; }

/* Все фото — в одном холодном монохроме */
.hero__bg, .summit__media img, .glacier img, .heights__bg, .card__media img, .story__bg, .tile img, .pdp img, .lines img { filter: grayscale(1) contrast(1.05); }

.label { font: 400 10px/1.5 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font: 500 11px var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background-color .3s, color .3s, border-color .3s;
}
.btn--dark { background: var(--ink); color: var(--snow); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--snow); }
.btn--light { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.btn--light:hover { background: transparent; color: var(--snow); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: progress; }
.text-btn { font: 400 11px var(--f-mono); text-transform: uppercase; }
.text-btn:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link { text-decoration: underline; text-underline-offset: 3px; }
.link-line { position: relative; display: inline-block; padding-bottom: 5px; font: 500 11px var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-line:hover::after { transform: scaleX(0); }

/* Строки, которые выезжают снизу; запас снизу — под хвосты Д, Щ, У */
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: block; }
.js .split .line > span { transform: translateY(110%); transition: transform 1s var(--ease); }
.js .split.is-in .line > span { transform: none; }
.js .split.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.js .split.is-in .line:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Интро ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--ink); color: var(--snow);
  animation: curtain 1s var(--ease-io) 2s forwards;
}
.intro__ridge { position: absolute; left: 0; right: 0; bottom: 20%; width: 100%; height: 30vh; }
.intro__ridge path { fill: none; stroke: var(--ice); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.6s var(--ease) .1s forwards; }
.intro__word { display: flex; gap: .2em; font: 400 clamp(56px, 11vw, 150px)/1 var(--f-display); letter-spacing: .02em; }
.intro__word span { opacity: 0; transform: translateY(30%); animation: rise .9s var(--ease) forwards; }
.intro__word span:nth-child(1) { animation-delay: .45s; }
.intro__word span:nth-child(2) { animation-delay: .53s; }
.intro__word span:nth-child(3) { animation-delay: .61s; }
.intro__word span:nth-child(4) { animation-delay: .69s; }
.intro__sub { opacity: 0; font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ice-2); animation: rise .8s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes curtain { to { clip-path: inset(0 0 100% 0); } }

/* ---------- Демо-плашка, водяной знак, значок ---------- */
.demobar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 var(--pad);
  background: linear-gradient(90deg, var(--ink) 0%, var(--graphite) 55%, #3a4247 100%);
  color: var(--ice); font: 400 13px var(--f-sans); border-bottom: 1px solid rgba(220, 227, 229, .12);
}
.demobar__text { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(220, 227, 229, .85); }
.demobar__text b { font-weight: 500; color: #fff; }
.demobar__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #bcd3dc; box-shadow: 0 0 0 0 rgba(188, 211, 220, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(188, 211, 220, 0); } }
.demobar__links { display: flex; gap: 8px; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px;
  border: 1px solid rgba(220, 227, 229, .22); border-radius: 999px; background: rgba(220, 227, 229, .04);
  font: 500 12px var(--f-sans); color: var(--snow); transition: background-color .25s, color .25s, border-color .25s;
}
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.lang { display: flex; padding: 2px; border: 1px solid rgba(220, 227, 229, .22); border-radius: 999px; }
.lang button { height: 22px; padding: 0 10px; border-radius: 999px; font: 500 11px var(--f-sans); letter-spacing: .04em; color: rgba(220, 227, 229, .75); transition: background-color .25s, color .25s; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--ice); color: var(--ink); }
.watermark {
  position: fixed; inset: 0; z-index: 44; pointer-events: none; opacity: .06; mix-blend-mode: difference;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220'%3E%3Ctext x='20' y='130' transform='rotate(-22 180 110)' fill='white' font-family='monospace' font-size='15' letter-spacing='2'%3E@sorators · DEMO%3C/text%3E%3C/svg%3E");
}
.demo-badge { position: fixed; left: 12px; bottom: 12px; z-index: 46; padding: 5px 9px; background: var(--ink); color: var(--ice); font: 400 10px var(--f-mono); text-transform: uppercase; pointer-events: none; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 49;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding: 0 var(--pad);
  color: var(--snow); transition: background-color .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.header.is-solid { color: var(--ink); background: rgba(243, 244, 242, .9); backdrop-filter: blur(12px); border-color: var(--line); }
.header__nav { display: flex; gap: 24px; font: 400 10px var(--f-mono); text-transform: uppercase; }
.header__nav a, .bag-btn { position: relative; }
.header__nav a::after, .bag-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.header__nav a:hover::after, .bag-btn:hover::after { transform: scaleX(1); }
.logo { font: 500 18px var(--f-display); letter-spacing: .3em; margin-right: -.3em; }
.bag-btn { justify-self: end; font: 400 10px var(--f-mono); text-transform: uppercase; }

/* ---------- Первый экран (без изменений по смыслу — огромное SORA с вершиной в буквах) ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); color: var(--snow); display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--top) + 20px) var(--pad) 0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero > *:not(.hero__bg) { position: relative; }
.hero__top { display: flex; justify-content: space-between; }
.hero .label { color: rgba(220, 227, 229, .75); }
.hero__mid { align-self: center; display: grid; gap: 22px; justify-items: start; max-width: 640px; }
.hero__title { font: 400 clamp(30px, 4vw, 60px)/1.02 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
.hero__sub { max-width: 420px; color: rgba(243, 244, 242, .78); font-size: 15px; font-weight: 300; }
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1.1s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .hero__title .line > span { transform: none; }
.js .hero__sub, .js .hero__cta { opacity: 0; transition: opacity .9s .45s; }
.is-ready .hero__sub, .is-ready .hero__cta { opacity: 1; }
.hero__word {
  display: flex; justify-content: space-between; margin: 0 -.03em -.07em;
  font: 800 29vw/.8 "Inter Tight", var(--f-sans); letter-spacing: -.06em; text-transform: uppercase;
  background: url("img/peak.webp") center 10% / cover no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: grayscale(1) contrast(1.15) brightness(1.15);
  animation: climb 16s ease-in-out infinite alternate;
}
.hero__word span { display: block; }
.js .hero__word span { transform: translateY(110%); transition: transform 1.3s var(--ease); }
.js .hero__word span:nth-child(2) { transition-delay: .07s; }
.js .hero__word span:nth-child(3) { transition-delay: .14s; }
.js .hero__word span:nth-child(4) { transition-delay: .21s; }
.is-ready .hero__word span { transform: none; }
@keyframes climb { from { background-position: center 0%; } to { background-position: center 55%; } }

/* ---------- Бегущая строка ---------- */
.ticker { overflow: hidden; background: var(--graphite); color: var(--ice); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 13px 26px; font: 300 11px var(--f-mono); text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: "▲"; margin-left: 52px; font-size: 8px; opacity: .45; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Проявления при прокрутке ---------- */
.js .reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.js .reveal img { transform: scale(1.16); transition: transform 1.6s var(--ease); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }
.js .reveal.is-in img { transform: none; }
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }

/* ---------- Главный товар + ледник справа ---------- */
.summit { display: grid; grid-template-columns: auto minmax(300px, 1fr) minmax(220px, .7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(56px, 7vw, 100px) var(--pad); background-color: var(--ice); }
.summit__media { position: relative; height: min(72vh, 760px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--ice-2); }
.summit__media img { width: 100%; height: 100%; object-fit: cover; }
.summit__media.is-in:hover img { transform: scale(1.04); transition: transform 1.2s var(--ease); }
.summit__text { display: grid; gap: 22px; }
.summit__title { font: 400 clamp(44px, 5.4vw, 92px)/.92 var(--f-display); letter-spacing: -.04em; text-transform: uppercase; }
.summit__lead { color: var(--muted); font-size: 15px; font-weight: 300; max-width: 380px; }
.summit__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.summit__price { font: 400 15px var(--f-mono); }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 34px; padding: 16px 0; border-block: 1px solid var(--line); }
.specs dt { font: 400 10px var(--f-mono); text-transform: uppercase; color: var(--muted); }
.specs dd { font: 500 14px var(--f-sans); }
.glacier { position: relative; align-self: stretch; min-height: 420px; overflow: hidden; background: var(--graphite); }
.glacier img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glacier__card { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 12px; padding: 16px; background: rgba(243, 244, 242, .88); backdrop-filter: blur(8px); }
.swatches { display: grid; gap: 6px; }
.swatches li { display: flex; align-items: center; gap: 10px; font: 400 12px var(--f-sans); }
.swatches i { width: 22px; height: 22px; border: 1px solid var(--line); background: var(--c); }
.glacier__note { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---------- Каталог: практичная сетка, каждая вещь целиком в экране ---------- */
.catalog { padding: clamp(56px, 7vw, 100px) var(--pad) clamp(72px, 8vw, 120px); background-color: var(--snow); }
.catalog__head { display: grid; gap: 22px; margin-bottom: 36px; }
.section-title { font: 400 clamp(40px, 5.4vw, 88px)/.95 var(--f-display); letter-spacing: -.04em; text-transform: uppercase; }
.catalog__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { height: 34px; padding: 0 14px; border: 1px solid var(--line); font: 400 10px var(--f-mono); text-transform: uppercase; color: var(--muted); transition: color .25s, border-color .25s, background-color .25s; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort select { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--line); background: var(--snow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230e1012'/%3E%3C/svg%3E") right 11px center no-repeat; font: 400 12px var(--f-sans); appearance: none; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 18px; }
.card { position: relative; display: grid; gap: 10px; align-content: start; }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; overflow: hidden; background: var(--ice); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__num { position: absolute; left: 10px; top: 10px; z-index: 1; font: 400 10px var(--f-mono); background: rgba(243, 244, 242, .9); padding: 2px 6px; }
.card__badge { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 3px 7px; background: var(--ink); color: var(--snow); font: 400 9px var(--f-mono); text-transform: uppercase; }
/* быстрый выбор размера при наведении (на телефоне — открываем карточку) */
.card__pic { position: relative; }
.card__quick {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: grid; gap: 8px; padding: 10px;
  background: rgba(243, 244, 242, .94); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none;
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; pointer-events: auto; }
.card__quick .label { color: var(--ink); }
.card__quick div { display: flex; flex-wrap: wrap; gap: 4px; }
.card__quick button { min-width: 36px; height: 30px; padding: 0 8px; border: 1px solid var(--line); font: 500 11px var(--f-sans); transition: background-color .2s, color .2s, border-color .2s; }
.card__quick button:hover { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__name { font: 500 12px var(--f-display); letter-spacing: .02em; text-transform: uppercase; text-align: left; }
.card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__price { font: 400 12px var(--f-mono); white-space: nowrap; }
.card__type { color: var(--muted); font-size: 13px; font-weight: 300; margin-top: -6px; }

.tile { grid-column: span 2; position: relative; overflow: hidden; background: var(--graphite); color: var(--snow); align-self: start; aspect-ratio: 3 / 2; max-height: 62vh; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.tile__text { position: absolute; left: 22px; bottom: 22px; right: 22px; display: grid; gap: 10px; }
.tile__text .label { color: var(--ice); }
.tile__title { font: 400 clamp(22px, 2.6vw, 40px)/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }

/* ---------- Высоты ---------- */
.heights { position: relative; overflow: hidden; background: var(--graphite); color: var(--snow); }
.heights__bg { position: absolute; left: 0; right: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .35; will-change: transform; }
.heights__row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(52px, 7vw, 88px) var(--pad); }
.heights__row div { display: grid; gap: 8px; padding: 0 20px; border-left: 1px solid rgba(220, 227, 229, .3); }
.heights__row b { font: 300 clamp(40px, 5.6vw, 92px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.heights__row span { max-width: 260px; font: 300 10px/1.5 var(--f-mono); text-transform: uppercase; color: rgba(220, 227, 229, .8); }

/* ---------- Эльбрус ---------- */
.story { position: relative; height: 70vh; min-height: 440px; overflow: hidden; background: var(--ink); color: var(--snow); }
.story__bg { position: absolute; left: 0; right: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; opacity: .85; will-change: transform; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 18, .78), rgba(14, 16, 18, 0) 62%); }
.story__text { position: absolute; z-index: 1; left: var(--pad); bottom: 8vh; display: grid; gap: 16px; }
.story .label { color: var(--ice); }
.story__title { font: 400 clamp(34px, 4.6vw, 76px)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.story__small { font-size: .42em; letter-spacing: .02em; margin-top: .5em; color: var(--ice); }

/* ---------- Подвал: честно про демо + кнопка ---------- */
.footer { background: var(--ink); color: var(--snow); overflow: hidden; }
.order { display: grid; gap: 18px; justify-items: start; padding: clamp(64px, 8vw, 110px) var(--pad); background: var(--graphite) var(--topo); background-size: 640px 340px; border-bottom: 1px solid rgba(220, 227, 229, .15); }
.order .label { color: var(--ice); }
.order__title { font: 400 clamp(36px, 5vw, 80px)/.95 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.order__text { max-width: 560px; color: rgba(243, 244, 242, .8); font-weight: 300; }
.order__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.order__link { font: 400 11px var(--f-mono); text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--ice); }
.order__link:hover { color: #fff; }
.footer__logo {
  padding: 48px var(--pad) 0; margin-bottom: 36px; font: 300 27vw/.8 var(--f-display); letter-spacing: -.04em;
  background: linear-gradient(180deg, #eef3f5 0%, #bcd0d8 45%, #5f7782 100%); -webkit-background-clip: text; background-clip: text; color: transparent; /* лёд сверху, камень снизу */
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 var(--pad); padding: 26px 0; border-top: 1px solid rgba(220, 227, 229, .2); }
.footer__cols p:not(.label) { margin-top: 6px; color: rgba(243, 244, 242, .82); font-weight: 300; }
.footer .label { color: rgba(220, 227, 229, .6); }
.footer__cols a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 var(--pad); padding: 20px 0 56px; border-top: 1px solid rgba(220, 227, 229, .2); font: 400 10px var(--f-mono); text-transform: uppercase; color: rgba(243, 244, 242, .55); }
.footer__bottom a:hover { color: var(--snow); }

/* ---------- Карточка товара ---------- */
.pdp { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--snow); color: var(--ink); overflow: hidden; }
.pdp::backdrop { background: rgba(14, 16, 18, .5); }
.pdp[open] { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.pdp__mountain { position: absolute; inset: 0; display: none; background: var(--ink); }
.pdp__mountain img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pdp__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; height: 100%; overflow-y: auto; }
.pdp__close { position: absolute; right: var(--pad); top: 20px; z-index: 2; font: 400 11px var(--f-mono); text-transform: uppercase; }
.pdp__close:hover { text-decoration: underline; text-underline-offset: 5px; }
.pdp__media { background: var(--ice); min-height: 100%; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { align-self: center; display: grid; gap: 16px; padding: 72px clamp(24px, 5vw, 72px); }
.pdp__title { font: 400 clamp(36px, 4.2vw, 68px)/.95 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.pdp__type { color: var(--muted); font-weight: 300; }
.pdp__price { font: 400 15px var(--f-mono); }
.pdp__desc { max-width: 440px; color: var(--muted); font-weight: 300; }
.specs--list { grid-template-columns: max-content 1fr; gap: 6px 24px; }
.specs--list dd { font-weight: 400; }
.sizes legend { margin-bottom: 10px; }
.sizes__row { display: flex; flex-wrap: wrap; gap: 6px; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--line); font: 500 13px var(--f-sans); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.size:hover span { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.size input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.pdp__error { color: var(--error); font-size: 13px; }
.pdp__error:empty { display: none; }
.pdp__note { color: var(--muted); font-size: 13px; font-weight: 300; }

/* Главный товар: фон — Эверест */
.pdp--peak { background: var(--ink); color: var(--snow); }
.pdp--peak .pdp__mountain { display: block; animation: summit-in 2.2s var(--ease) both; }
.pdp--peak .pdp__media { background: transparent; display: grid; place-items: center; padding: 96px 4vw 40px; }
.pdp--peak .pdp__media img { width: auto; max-width: 100%; height: auto; max-height: 76vh; object-fit: contain; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); animation: rise-up 1.2s var(--ease) .3s both; }
.pdp--peak .pdp__info { margin: 64px var(--pad) 24px 0; padding: 44px clamp(24px, 4vw, 52px); background: rgba(14, 16, 18, .55); backdrop-filter: blur(14px); border: 1px solid rgba(220, 227, 229, .18); animation: rise-up 1s var(--ease) .5s both; }
.pdp--peak .label, .pdp--peak .pdp__type, .pdp--peak .pdp__desc, .pdp--peak .pdp__note { color: rgba(220, 227, 229, .78); }
.pdp--peak .specs dt { color: rgba(220, 227, 229, .6); }
.pdp--peak .specs--list { border-color: rgba(220, 227, 229, .2); }
.pdp--peak .size span { border-color: rgba(220, 227, 229, .3); }
.pdp--peak .size:hover span { border-color: var(--snow); }
.pdp--peak .size input:checked + span { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.pdp--peak .btn--dark { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.pdp--peak .btn--dark:hover { background: transparent; color: var(--snow); }
.pdp--peak .pdp__close { color: var(--snow); }
.pdp--peak .pdp__error { color: #ff9b8f; }
@keyframes summit-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes rise-up { from { opacity: 0; transform: translateY(30px); } }

/* ---------- Корзина ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(14, 16, 18, .45); }
.bag { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(440px, 100%); background: var(--snow); transform: translateX(100%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
.bag.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease); }
.bag__head { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.bag__head h2 { margin-right: auto; font: 500 12px var(--f-display); text-transform: uppercase; }
.bag__step { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.bag__empty { padding: 48px 24px; color: var(--muted); line-height: 1.8; }
.bag__empty .text-link { color: var(--ink); }
.lines { padding: 0 24px; }
.line-item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 76px; aspect-ratio: 3 / 4; object-fit: cover; }
.line-item__name { font: 500 12px var(--f-display); text-transform: uppercase; }
.line-item__meta { color: var(--muted); font-size: 13px; font-weight: 300; }
.line-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font: 400 12px var(--f-mono); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 34px; height: 34px; }
.qty button:hover { background: var(--ice); }
.qty output { min-width: 24px; text-align: center; font-size: 13px; }
.line-item__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag__foot { margin-top: auto; padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--snow); position: sticky; bottom: 0; }
.sum { display: grid; gap: 6px; margin-bottom: 18px; }
.sum div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.sum dd { color: var(--ink); font-family: var(--f-mono); font-size: 12px; }
.sum .sum__total { padding-top: 10px; border-top: 1px solid var(--line); font: 500 12px var(--f-display); text-transform: uppercase; color: var(--ink); }
.bag__note { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 300; }

.form { gap: 16px; padding: 24px 24px 0; }
.form .bag__foot { margin: auto -24px 0; }
.field { display: grid; gap: 6px; }
.field > label, .field legend { font: 400 10px var(--f-mono); text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 6px; }
.field input:not([type="radio"]) { width: 100%; height: 46px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: 400 16px var(--f-sans); color: var(--ink); border-radius: 0; transition: border-color .2s; }
.field input:focus { outline: none; border-color: var(--ink); }
.field.is-invalid input { border-color: var(--error); }
.err { color: var(--error); font-size: 12px; }
.err:empty { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; height: 46px; border: 1px solid var(--line); font: 400 10px var(--f-mono); text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.done { gap: 16px; padding: 48px 24px; }
.done__num { font: 400 38px/1 var(--f-display); letter-spacing: -.03em; }
.done p:not(.label) { color: var(--muted); font-weight: 300; }
.done .btn { margin-top: 12px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; padding: 14px 22px; background: var(--ink); color: var(--snow); font: 400 11px var(--f-mono); text-transform: uppercase; white-space: nowrap; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .4s var(--ease), opacity .4s, visibility 0s .4s; }
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .4s var(--ease), opacity .4s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .summit { grid-template-columns: auto 1fr; }
  .glacier { grid-column: 1 / -1; min-height: 320px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .summit { grid-template-columns: 1fr; }
  .summit__media { height: auto; width: 100%; max-height: 72vh; }
  .grid { grid-template-columns: 1fr 1fr; gap: 32px 10px; }
  .tile { grid-column: span 2; }
  .card__quick { display: none; }
  .sort { margin-left: 0; }
  .pdp__inner { grid-template-columns: 1fr; align-content: start; }
  .pdp__media { min-height: auto; aspect-ratio: 4 / 5; } /* auto: строка с фото не сжимается под текст */
  .pdp__info { padding: 32px var(--pad) 48px; }
  .pdp--peak .pdp__media { aspect-ratio: auto; padding: 72px var(--pad) 8px; }
  .pdp--peak .pdp__media img { max-height: 52vh; }
  .pdp--peak .pdp__info { margin: 16px var(--pad) 32px; padding: 26px 20px; }
  .heights__row { grid-template-columns: 1fr; gap: 30px; }
  .footer__cols { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  :root { --bar-h: 44px; }
  .demobar { gap: 8px; }
  .demobar__text { display: none; }
  .demobar__links { margin-right: auto; gap: 6px; }
  .pill { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* иконки на телефоне, подпись — для читалок */
  .lang button { height: 28px; }
  .header__nav a + a { display: none; }
  .hero__coords { display: none; }
  .hero__word { font-size: 33vw; }
  .hero__sub { font-size: 14px; }
  .specs { gap: 4px 20px; }
  .card__row { flex-direction: column; gap: 2px; }
  .card__type { margin-top: -4px; }
  .demo-badge { bottom: 8px; left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .intro { display: none; }
}
