/* CASUALS — сайт магазина. Шрифт Archivo (OFL), свой хостинг, без Google Fonts. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/s/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/s/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #000000;
  --raise: #191917;
  --line: #2d2c29;
  --bone: #ecebe6;
  --ash: #918e86;
  --khaki: #c6b68b;
  --amber: #dba746;
  --pad: clamp(14px, 3.2vw, 40px);
  --max: 1520px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.5 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--khaki); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--bone); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* ---------- Полоска и шапка ---------- */
.bar { margin: 0; padding: 8px var(--pad); text-align: center; font-size: 13px; color: var(--ink); background: var(--khaki); font-stretch: 108%; }
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, 0.92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .hdr { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(14px) saturate(1.2); } }
.hdr-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 60px; display: flex; align-items: center; gap: 14px; }
.mark { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.mark img { height: 40px; width: auto; }
.nav { display: none; gap: 26px; margin-left: 34px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ash); }
.nav a:hover { color: var(--bone); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--bone); text-decoration: none; }
.menu-btn { margin-left: -10px; }
.search { display: none; margin-left: auto; align-items: center; border-bottom: 1px solid var(--line); }
.search input { width: 220px; background: none; border: 0; padding: 8px 2px; font-size: 14px; color: var(--bone); }
.search input::placeholder, .menu-search input::placeholder { color: var(--ash); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--bone); }
.ig { margin-left: auto; }
.cats { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; height: 42px; align-items: center; font-size: 14px; font-stretch: 112%; white-space: nowrap; }
.cats::-webkit-scrollbar { display: none; }
.cats a { text-decoration: none; color: var(--ash); padding: 10px 0; }
.cats a:hover, .cats a[aria-current] { color: var(--bone); }
.cats a[aria-current] { box-shadow: inset 0 -2px 0 var(--bone); }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex; }
  .search { display: flex; }
  .ig { margin-left: 6px; }
  .mark img { height: 46px; }
}

/* ---------- Мобильное меню ---------- */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--ink); overflow-y: auto; padding: 0 var(--pad) 40px; }
.menu[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.menu-search input { width: 100%; height: 48px; background: var(--raise); border: 1px solid var(--line); padding: 0 14px; color: var(--bone); margin: 6px 0 22px; font-size: 16px; }
.menu nav { display: flex; flex-direction: column; }
.menu-big { font-size: 34px; font-weight: 750; font-stretch: 125%; line-height: 1.15; text-decoration: none; padding: 4px 0; letter-spacing: -0.01em; }
.menu-big sup, .cat-list sup { font-size: 0.38em; font-weight: 500; font-stretch: 100%; color: var(--ash); margin-left: 6px; vertical-align: 1.2em; }
.menu-small { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--ash); font-size: 15px; }
.menu-small a { text-decoration: none; }

/* ---------- Главный экран ---------- */
.hero { position: relative; min-height: max(420px, calc(100svh - 160px)); max-height: 940px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-plain { min-height: 0; padding-top: 10vh; }
.hero-img, .hero-strip { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; }
.hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%), linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.88) 100%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--pad); }
.hero-title { font-size: clamp(22px, 3.4vw, 40px); font-weight: 650; font-stretch: 112%; line-height: 1.05; margin: 0 0 6px; max-width: 16ch; }
.hero-sub { color: var(--bone); opacity: 0.78; margin: 0 0 18px; font-size: 15px; }
.hero-mark { position: relative; z-index: 1; margin: 14px 0 10px; padding: 0 var(--pad); display: flex; justify-content: center; line-height: 0; }
.hero-mark img { width: min(92vw, 860px); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); animation: mark-in 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--bone); color: var(--ink); border: 1px solid var(--bone); font-weight: 650; font-stretch: 110%; font-size: 15px; text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn:hover { background: #fff; }
.btn-ghost { background: none; color: var(--bone); border-color: var(--line); }
.btn-ghost:hover { background: var(--raise); }

/* ---------- Разделы ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--pad) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 34px); }
.more { color: var(--ash); font-size: 14px; white-space: nowrap; }
.more:hover { color: var(--bone); }

/* ---------- Сетка товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 14px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; min-width: 0; }
.ph { position: relative; aspect-ratio: 4 / 5; background: var(--raise); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .alt { opacity: 0; transition: opacity 0.35s ease; }
@media (hover: hover) { .card:hover .ph .alt { opacity: 1; } }
.tag { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; font-size: 12px; font-weight: 600; background: var(--ink); color: var(--bone); }
.is-reserved .tag { color: var(--amber); }
.is-sold .ph img { filter: grayscale(1) brightness(0.6); }
.meta { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding-top: 10px; font-size: 14px; line-height: 1.35; }
.c-brand { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-price { font-weight: 600; text-align: right; }
.c-title { grid-column: 1 / -1; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-size { grid-column: 1 / -1; justify-self: start; margin-top: 6px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); padding: 1px 6px; }
.is-sold .meta { opacity: 0.55; }

/* ---------- Категории, бренды, доверие ---------- */
.cat-list { display: flex; flex-wrap: wrap; gap: 2px 28px; }
.cat-list a { text-decoration: none; font-size: clamp(30px, 5.4vw, 72px); font-weight: 760; font-stretch: 125%; line-height: 1.08; letter-spacing: -0.02em; color: var(--bone); }
.cat-list a span { transition: color 0.2s; }
.cat-list a:hover span { color: var(--khaki); }
.brand-cloud { font-size: clamp(17px, 2vw, 22px); line-height: 1.7; max-width: 70ch; color: var(--ash); }
.brand-cloud a { text-decoration: none; margin-right: 0.7em; }
.brand-cloud a:hover { color: var(--bone); }
.trust { display: grid; gap: 22px; }
@media (min-width: 800px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust > div { border-top: 1px solid var(--line); padding-top: 16px; }
.trust h3 { font-size: 18px; margin-bottom: 6px; }
.trust p { color: var(--ash); margin: 0; max-width: 36ch; }
.about > * { max-width: 64ch; }
.about h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 16px; }
.about p { color: #c9c7c0; font-size: 17px; line-height: 1.6; }
.empty-home { text-align: left; }
.empty-home p { color: var(--ash); max-width: 46ch; }
.empty-home h2 { font-size: clamp(26px, 4vw, 44px); margin-bottom: 12px; }

/* ---------- Каталог ---------- */
.catalog { max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 0; display: grid; gap: 18px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cat-head h1 { font-size: clamp(30px, 5vw, 56px); font-stretch: 120%; font-weight: 780; letter-spacing: -0.02em; }
.count { color: var(--ash); margin: 0; }
.filters-btn { margin-left: auto; min-height: 40px; padding: 0 16px; background: none; border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.filters { display: grid; gap: 14px; align-content: start; }
.js .filters:not(.open) { display: none; }
.f-field { display: grid; gap: 6px; font-size: 13px; color: var(--ash); border: 0; padding: 0; margin: 0; min-width: 0; }
.f-field select, .f-field input { height: 44px; width: 100%; background: var(--raise); border: 1px solid var(--line); border-radius: 2px; padding: 0 10px; color: var(--bone); font-size: 15px; }
.f-price { grid-template-columns: 1fr 1fr; column-gap: 8px; }
.f-price legend { padding: 0; margin-bottom: 6px; }
.f-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.f-check input { width: 20px; height: 20px; accent-color: var(--khaki); }
.f-actions { display: flex; align-items: center; gap: 18px; }
.f-actions a { color: var(--ash); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chips a { text-decoration: none; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 2px; }
.chips a:hover { border-color: var(--bone); }
.empty { padding: 40px 0; color: var(--ash); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 40px; font-size: 14px; color: var(--ash); }
.pager a { color: var(--bone); }
.pager a[rel=next] { justify-self: end; }
@media (min-width: 900px) {
  .catalog { grid-template-columns: 230px minmax(0, 1fr); column-gap: 36px; }
  .cat-head { grid-column: 1 / -1; }
  .filters-btn { display: none; }
  .js .filters:not(.open), .filters { display: grid; position: sticky; top: 124px; }
}

/* ---------- Страница вещи ---------- */
.crumbs { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad) 12px; font-size: 13px; color: var(--ash); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.pdp { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; gap: 24px; }
.gallery { min-width: 0; margin: 0 calc(var(--pad) * -1); }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 2px; }
.g-track::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--raise); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs { display: flex; gap: 6px; padding: 8px var(--pad) 0; overflow-x: auto; scrollbar-width: none; }
.g-thumbs a { flex: 0 0 54px; aspect-ratio: 4 / 5; opacity: 0.5; border: 1px solid transparent; }
.g-thumbs a[aria-current] { opacity: 1; border-color: var(--bone); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { min-width: 0; }
.p-brand { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--khaki); }
.p-brand a { text-decoration: none; }
.info h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 720; margin-bottom: 14px; }
.p-price { font-size: 24px; font-weight: 650; margin: 0 0 6px; }
.state { font-size: 14px; margin: 0 0 22px; }
.state.ok { color: var(--khaki); }
.state.wait { color: var(--amber); }
.state.gone { color: var(--ash); }
.specs { margin: 0 0 22px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--ash); }
.specs dd { margin: 0; }
.desc { color: #c9c7c0; max-width: 60ch; margin-bottom: 22px; }
.btn-buy { width: 100%; }
.hint { font-size: 14px; color: var(--ash); margin: 10px 0 22px; }
.hint strong { color: var(--bone); font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ash); }
.facts li { padding: 4px 0 4px 16px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: 0.95em; width: 6px; height: 1px; background: var(--ash); }
.pdp.is-sold .g-item img { filter: grayscale(1) brightness(0.7); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 48px; align-items: start; }
  .gallery { margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .g-track { display: grid; overflow: visible; gap: 6px; order: 2; scroll-snap-type: none; }
  .g-thumbs { flex-direction: column; padding: 0; position: sticky; top: 124px; align-self: start; order: 1; overflow: visible; }
  .g-thumbs a { flex: none; width: 64px; }
  .info { position: sticky; top: 124px; }
  .btn-buy { width: auto; min-width: 260px; }
}

/* ---------- Бренды и тексты ---------- */
.brands-page, .text-page { max-width: var(--max); margin: 0 auto; padding: 32px var(--pad) 0; }
.brands-page h1, .text-page h1 { font-size: clamp(30px, 5vw, 56px); font-stretch: 120%; font-weight: 780; letter-spacing: -0.02em; margin-bottom: 26px; }
.brand-groups { columns: 2 180px; column-gap: 36px; }
.brand-groups section { break-inside: avoid; margin-bottom: 26px; }
.brand-groups h2 { font-size: 15px; color: var(--ash); font-stretch: 100%; font-weight: 600; margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.brand-groups ul { list-style: none; margin: 0; padding: 0; }
.brand-groups li { padding: 3px 0; font-size: 17px; }
.brand-groups li a { text-decoration: none; }
.brand-groups li a:hover { text-decoration: underline; }
.brand-groups li span { color: var(--ash); font-size: 13px; margin-left: 4px; }
.text-page > p, .text-page .specs { max-width: 64ch; }
.text-page > p { color: #c9c7c0; font-size: 17px; line-height: 1.6; }
.text-page .pending { color: var(--bone); }
.nf { min-height: 50vh; }

/* ---------- Подвал ---------- */
.ft { margin-top: clamp(64px, 10vw, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.ft-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--pad) 22px; }
.ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px; }
.ft-cols h2 { font-size: 13px; font-stretch: 100%; font-weight: 600; color: var(--ash); margin-bottom: 10px; }
.ft-cols a { display: block; text-decoration: none; padding: 3px 0; font-size: 15px; }
.ft-cols a:hover { text-decoration: underline; }
.ft-mark { margin: 48px 0 4px; font-size: 12.4vw; font-weight: 820; font-stretch: 125%; line-height: 0.8; letter-spacing: -0.035em; color: var(--raise); white-space: nowrap; text-align: center; user-select: none; }
@media (min-width: 1520px) { .ft-mark { font-size: 188px; } }
.ft-note { font-size: 12px; color: var(--ash); margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Оформление заказа ---------- */
.checkout { max-width: 1100px; margin: 0 auto; padding: 28px var(--pad) 0; }
.checkout h1 { font-size: clamp(30px, 5vw, 52px); font-stretch: 120%; font-weight: 780; letter-spacing: -0.02em; margin-bottom: 22px; }
.o-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .o-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; } .o-sum { order: 2; position: sticky; top: 124px; } }
.o-sum { border: 1px solid var(--line); padding: 16px; }
.o-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; text-decoration: none; font-size: 15px; line-height: 1.4; }
.o-item img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--raise); }
.o-item small { color: var(--ash); }
.o-tot { margin: 16px 0 12px; border-top: 1px solid var(--line); }
.o-tot > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.o-tot dt { color: var(--ash); }
.o-tot dd { margin: 0; white-space: nowrap; }
.o-total dt, .o-total dd { color: var(--bone); font-weight: 650; }
.o-note { font-size: 14px; color: var(--ash); margin: 0; }
.o-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.o-form legend { font-size: 18px; font-weight: 650; font-stretch: 110%; margin-bottom: 14px; padding: 0; }
.o-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .o-row { grid-template-columns: 1fr 1fr; } .o-row-pc { grid-template-columns: 150px 1fr; } }
.o-field { margin-bottom: 14px; }
.o-field label { display: block; font-size: 14px; color: var(--ash); margin-bottom: 6px; }
.o-field label span { color: var(--ash); opacity: 0.7; }
.o-field input:not([type=checkbox]), .o-field textarea { width: 100%; min-height: 48px; background: var(--raise); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; color: var(--bone); font-size: 16px; }
.o-field textarea { resize: vertical; }
.o-field input:focus, .o-field textarea:focus { outline: none; border-color: var(--bone); }
.has-err input:not([type=checkbox]), .has-err textarea { border-color: #e0715a; }
.o-err { color: #f09079; font-size: 13px; margin: 6px 0 0; }
.o-alert { background: rgba(224, 113, 90, 0.14); border: 1px solid #e0715a; padding: 10px 12px; font-size: 14px; margin: 0 0 18px; }
.o-consent .f-check { align-items: flex-start; font-size: 14px; color: var(--bone); }
.o-consent .f-check input { margin-top: 2px; flex: none; }
.o-form .btn-buy { width: 100%; margin-top: 6px; }
.o-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks .specs { margin-top: 18px; }
.thanks small { color: var(--ash); }
