/* ============================================================
   EMBLEMA — интернет-магазин шевронов
   Тема: тактика / город / дорога. Палитра: чёрный + золото + красный акцент.
   ============================================================ */

:root{
  --ink:#141414;         /* глубокий чёрный, как фон логотипа */
  --ink-2:#1f1f1f;
  --paper:#f5f2e9;       /* тёплая бумага/брезент */
  --white:#ffffff;
  --muted:#8a8578;
  --muted2:#5f5b50;
  --line:rgba(20,20,20,.12);
  --line-soft:rgba(20,20,20,.07);
  --shadow:0 18px 40px rgba(20,20,20,.14);
  --shadow-sm:0 6px 18px rgba(20,20,20,.1);

  --acid:#f0b429;        /* золото — основной акцент CTA (цвет логотипа) */
  --acid-ink:#1c1508;
  --orange:#d81e27;      /* красный акцент из логотипа "хит" */
  --blue:#4f79ff;        /* для движения */

  --cat-tactical:#2b2b2b;
  --cat-tactical-soft:#ece8dc;
  --cat-city:#a9502c;
  --cat-city-soft:#f3e2d3;
  --cat-road:#3454b4;
  --cat-road-soft:#e1e7fb;

  --serif:'Space Grotesk',ui-serif,Georgia,serif;
  --sans:'Manrope',system-ui,sans-serif;
  --mono:'Space Grotesk',ui-monospace,monospace;

  --r-sm:8px; --r-md:14px; --r-lg:22px; --r-full:999px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:5rem; }
body{ margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans); font-size:16px; line-height:1.4; }
body.locked{ overflow:hidden; }
button,input,textarea,select{ font:inherit; }
button,a{ -webkit-tap-highlight-color:transparent; }
button{ color:inherit; }
a{ color:inherit; text-decoration:none; }
svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.sprite{ position:absolute; width:0; height:0; overflow:hidden; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible{ outline:3px solid var(--blue); outline-offset:3px; }

/* ---------- topline / header ---------- */
.topline{ min-height:32px; display:flex; gap:12px; align-items:center; justify-content:center; padding:7px 24px; background:var(--ink); color:#f2f5ec; font-family:var(--mono); font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.topline a{ color:var(--acid); text-decoration:underline; text-underline-offset:2px; display:inline-flex; align-items:center; gap:2px; }
.topline a svg{ width:12px; height:12px; }
.topline-dot{ width:3px; height:3px; background:var(--acid); border-radius:50%; }

.site-header{ height:76px; padding:0 clamp(18px,4vw,56px); display:flex; align-items:center; gap:22px; border-bottom:1px solid var(--line); background:rgba(244,241,231,.9); backdrop-filter:blur(12px); position:sticky; top:0; z-index:40; }
.logo{ display:inline-flex; align-items:center; gap:10px; font-family:var(--serif); font-size:19px; font-weight:700; letter-spacing:.01em; flex:0 0 auto; }
.logo-mark{ width:34px; height:34px; display:block; object-fit:contain; border-radius:8px; }
.main-nav{ display:flex; gap:26px; flex:0 0 auto; }
.main-nav a{ font-weight:700; font-size:13px; position:relative; white-space:nowrap; }
.main-nav a::after{ content:""; position:absolute; width:0; height:2px; background:var(--acid); left:0; bottom:-7px; transition:width .2s ease; }
.main-nav a:hover::after{ width:100%; }
.main-nav a[aria-current="page"]::after{ width:100%; }

.header-search{ flex:1 1 auto; min-width:0; max-width:440px; margin-left:auto; position:relative; display:flex; align-items:center; gap:8px; height:42px; padding:0 14px; border:1px solid var(--line); border-radius:var(--r-full); background:var(--white); }
.header-search svg{ width:17px; color:var(--muted); flex:0 0 auto; }
.header-search input{ flex:1; min-width:0; border:0; background:transparent; outline:none; font-size:13px; color:var(--ink); }
.header-search input::placeholder{ color:var(--muted); }
.header-search-clear{ border:0; background:transparent; cursor:pointer; padding:2px; display:grid; place-items:center; color:var(--muted); }
.header-search-clear svg{ width:14px; }
.search-suggest{ position:absolute; top:calc(100% + 10px); left:0; right:0; z-index:45; background:var(--white); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow); padding:8px; max-height:60vh; overflow:auto; }
.search-suggest .search-result{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.icon-button{ width:42px; height:42px; border:0; border-radius:50%; display:grid; place-items:center; background:transparent; cursor:pointer; transition:background .2s ease; position:relative; }
.icon-button:hover{ background:rgba(20,24,15,.07); }
.fav-button b{ position:absolute; top:2px; right:2px; min-width:16px; height:16px; padding:0 3px; border-radius:50%; background:var(--orange); color:#fff; font-size:9px; font-weight:800; display:grid; place-items:center; font-family:var(--mono); }
.cart-button{ min-height:42px; border:0; padding:0 14px 0 12px; border-radius:var(--r-full); background:var(--ink); color:#fff; display:flex; align-items:center; gap:8px; cursor:pointer; font-size:12px; font-weight:800; transition:background .2s ease; }
.cart-button:hover{ background:var(--ink-2); }
.cart-button svg{ width:17px; }
.cart-count{ min-width:19px; height:19px; display:grid; place-items:center; border-radius:50%; background:var(--acid); color:var(--acid-ink); font-family:var(--mono); font-size:10px; font-weight:800; }
.menu-button{ display:none; }
.search-open{ display:none; }

/* ---------- hero ---------- */
.hero{ min-height:600px; overflow:hidden; position:relative; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(400px,.95fr); align-items:center; padding:clamp(48px,7vw,108px) clamp(20px,7vw,90px) clamp(64px,7vw,96px); background:var(--ink); color:#eef2e8; isolation:isolate; }
.hero-grid{ position:absolute; inset:0; opacity:.22; background-image:linear-gradient(#333333 1px,transparent 1px),linear-gradient(90deg,#333333 1px,transparent 1px); background-size:40px 40px; mask-image:linear-gradient(90deg,black,transparent 66%); z-index:-1; }
.hero::after{ content:""; position:absolute; height:42vw; width:42vw; max-height:560px; max-width:560px; right:-12vw; top:-12vw; border-radius:50%; border:1px solid rgba(240,180,41,.45); box-shadow:0 0 0 34px rgba(240,180,41,.05),0 0 0 68px rgba(240,180,41,.03); z-index:-1; }
.eyebrow{ display:flex; align-items:center; gap:8px; margin:0 0 14px; font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.eyebrow span{ display:inline-block; width:18px; height:2px; background:var(--orange); }
.hero .eyebrow{ color:#a8a8a8; }
.hero h1,.section h2,.newsletter h2,.custom h2{ margin:0; font-family:var(--serif); font-weight:700; letter-spacing:-.02em; line-height:1.02; }
.hero h1{ font-size:clamp(44px,5.6vw,84px); }
.hero h1 em,.section h2 em,.newsletter h2 em,.custom h2 em{ color:var(--acid); font-style:normal; }
.hero-description{ max-width:430px; margin:22px 0 28px; color:#c9c9c9; font-size:15px; line-height:1.65; }
.hero-actions{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.button{ min-height:48px; border:1px solid transparent; padding:0 20px; display:inline-flex; align-items:center; justify-content:center; gap:10px; border-radius:var(--r-full); cursor:pointer; font-weight:800; font-size:12.5px; transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease; }
.button svg{ width:17px; }
.button-accent{ background:var(--acid); color:var(--acid-ink); }
.button-accent:hover{ background:#ffc94d; transform:translateY(-1px); }
.button-outline{ background:transparent; border-color:var(--line); color:var(--ink); }
.button-outline:hover{ border-color:var(--ink); }
.button-light{ background:#fff; color:var(--ink); }
.button-light:hover{ background:var(--acid); }
.button-dark{ background:var(--ink); color:#fff; }
.button-dark:hover{ background:var(--ink-2); }
.button-full{ width:100%; }
.text-link{ display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:12.5px; border-bottom:2px solid transparent; padding-bottom:2px; transition:border-color .2s ease; }
.text-link:hover{ border-color:currentColor; }
.text-link svg{ width:16px; }
.hero-facts{ display:flex; gap:30px; margin-top:44px; }
.hero-facts strong{ display:block; font-family:var(--serif); font-size:22px; font-weight:700; color:var(--acid); }
.hero-facts span{ display:block; margin-top:4px; font-size:10px; color:#a8a8a8; line-height:1.4; }

.hero-visual{ height:440px; position:relative; overflow:hidden; }
.orbit{ position:absolute; border:1px solid rgba(240,180,41,.25); border-radius:50%; }
.orbit-one{ width:370px; height:370px; top:12px; left:8%; }
.orbit-two{ width:255px; height:255px; top:66px; left:23%; border-style:dashed; }
.hero-product{ position:absolute; width:210px; height:210px; object-fit:contain; border-radius:22px; background:rgba(255,255,255,.06); box-shadow:0 18px 40px rgba(0,0,0,.4); filter:drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.hero-product-a{ left:2%; top:22px; transform:rotate(-8deg); }
.hero-product-b{ left:calc(50% - 105px); top:60px; transform:rotate(4deg); }
.hero-product-c{ right:0; top:120px; transform:rotate(-4deg); }
.patch-label{ position:absolute; padding:7px 12px; background:rgba(20,20,20,.75); border:1px solid rgba(240,180,41,.4); color:var(--acid); font-family:var(--mono); font-size:9px; letter-spacing:.05em; text-transform:uppercase; border-radius:var(--r-full); backdrop-filter:blur(6px); }
.label-a{ left:6%; bottom:22px; }
.label-b{ right:4%; bottom:64px; }
.scroll-prompt{ position:absolute; left:50%; bottom:18px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:6px; color:#a8a8a8; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.scroll-prompt i{ width:1px; height:20px; background:linear-gradient(#a8a8a8,transparent); }

/* ---------- trust bar ---------- */
.trust-bar{ min-height:64px; padding:15px max(20px,7vw); display:grid; grid-template-columns:repeat(3,1fr); align-items:center; gap:20px; border-bottom:1px solid var(--line); background:#eae6d6; }
.trust-bar div{ display:flex; align-items:center; justify-content:center; gap:9px; font-size:11.5px; font-weight:800; text-align:center; }
.trust-bar svg{ color:var(--orange); width:17px; }

/* ---------- generic section ---------- */
.section{ padding:clamp(64px,8vw,116px) clamp(20px,7vw,90px); }
.section-heading{ display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:36px; }
.section h2,.newsletter h2{ font-size:clamp(32px,3.6vw,54px); }
.section h2 em{ color:var(--orange); }
.desktop-link{ flex:0 0 auto; }

/* ---------- collections ---------- */
.collections{ background:var(--paper); }
.collection-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.collection-card{ height:320px; position:relative; padding:19px; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; color:#fff; background:var(--ink); border-radius:var(--r-lg); transition:transform .22s ease,box-shadow .22s ease; }
.collection-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.collection-card>svg{ position:absolute; z-index:2; right:18px; bottom:20px; }
.collection-card h3{ position:relative; z-index:2; margin:0 0 4px; font-family:var(--serif); font-size:24px; line-height:1; font-weight:700; }
.collection-card p{ position:relative; z-index:2; margin:0; color:rgba(255,255,255,.78); font-size:11.5px; }
.collection-card>div:not(.collection-photo){ position:relative; z-index:2; }
.collection-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.collection-card::after{ content:""; position:absolute; z-index:1; inset:0; background:linear-gradient(180deg,rgba(20,20,20,0) 30%,rgba(15,15,15,.92) 92%); }
.collection-card:hover .collection-photo{ transform:scale(1.06); }

/* ---------- catalog layout ---------- */
.catalog{ background:var(--white); }
.catalog-count{ margin:0 0 3px; color:var(--muted); font-family:var(--mono); font-size:11.5px; }
.catalog-layout{ display:grid; grid-template-columns:250px minmax(0,1fr); gap:32px; align-items:start; }

.catalog-filters{ position:sticky; top:96px; display:flex; flex-direction:column; gap:22px; padding:20px; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--paper); max-height:calc(100vh - 116px); overflow:auto; }
.filters-head{ display:flex; align-items:center; gap:10px; }
.filters-head b{ font-size:14px; font-weight:800; }
.filters-reset{ margin-left:auto; border:0; background:none; color:var(--blue); font-size:11.5px; font-weight:800; cursor:pointer; }
.filters-close{ display:none; }
.filter-block h3{ margin:0 0 10px; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--muted2); }
.check-row{ display:flex; align-items:center; gap:9px; padding:7px 0; font-size:13px; font-weight:600; cursor:pointer; }
.check-row input{ width:17px; height:17px; accent-color:var(--ink); cursor:pointer; }
.check-row i{ margin-left:auto; font-style:normal; color:var(--muted); font-family:var(--mono); font-size:10.5px; }
.check-row-fav{ padding-top:12px; border-top:1px solid var(--line); }
.check-row-fav svg{ width:15px; color:var(--orange); }

.price-inputs{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.price-inputs label{ flex:1; display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); }
.price-inputs input{ width:100%; min-width:0; height:34px; padding:0 8px; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff; font-size:12px; font-family:var(--mono); }
.range-dual{ position:relative; height:22px; }
.range-track{ position:absolute; top:9px; left:0; right:0; height:4px; border-radius:var(--r-full); background:var(--line); }
.range-fill{ position:absolute; top:0; height:4px; border-radius:var(--r-full); background:var(--acid); }
.range-dual input[type=range]{ position:absolute; top:0; left:0; width:100%; height:22px; margin:0; background:transparent; -webkit-appearance:none; appearance:none; pointer-events:none; }
.range-dual input[type=range]::-webkit-slider-thumb{ pointer-events:auto; -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--ink); border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.35); cursor:pointer; margin-top:0; }
.range-dual input[type=range]::-moz-range-thumb{ pointer-events:auto; width:18px; height:18px; border-radius:50%; background:var(--ink); border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.35); cursor:pointer; }
.range-dual input[type=range]::-webkit-slider-runnable-track{ background:transparent; }

.chip-row{ display:flex; flex-wrap:wrap; gap:7px; }
.chip{ min-height:32px; padding:0 12px; border:1px solid var(--line); border-radius:var(--r-full); background:#fff; cursor:pointer; font-size:11.5px; font-weight:700; transition:background .18s ease,color .18s ease,border-color .18s ease; }
.chip:hover{ border-color:var(--ink); }
.chip.active{ background:var(--ink); border-color:var(--ink); color:#fff; }

.catalog-content{ min-width:0; }
.catalog-toolbar{ display:flex; align-items:center; gap:12px; margin-bottom:22px; flex-wrap:wrap; }
.filters-open{ display:none; flex:0 0 auto; }
.filters-badge{ min-width:18px; height:18px; padding:0 4px; border-radius:50%; background:var(--orange); color:#fff; font-size:10px; font-family:var(--mono); display:grid; place-items:center; }
.active-chips{ display:flex; flex-wrap:wrap; gap:7px; flex:1 1 auto; min-width:0; }
.active-chip{ display:inline-flex; align-items:center; gap:6px; padding:6px 6px 6px 12px; border-radius:var(--r-full); background:var(--paper); border:1px solid var(--line); font-size:11.5px; font-weight:700; }
.active-chip button{ border:0; background:rgba(20,24,15,.08); border-radius:50%; width:18px; height:18px; display:grid; place-items:center; cursor:pointer; }
.active-chip button svg{ width:10px; }
.sort-select-wrap{ position:relative; display:flex; align-items:center; margin-left:auto; flex:0 0 auto; }
.sort-select{ appearance:none; -webkit-appearance:none; min-height:40px; padding:0 34px 0 14px; border:1px solid var(--line); border-radius:var(--r-full); background:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.sort-select-wrap svg{ position:absolute; right:12px; width:15px; pointer-events:none; color:var(--muted); }

.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px 16px; }
.product-card{ min-width:0; position:relative; display:flex; flex-direction:column; }
.product-card.hidden{ display:none; }
.product-art{ aspect-ratio:1; position:relative; overflow:hidden; display:grid; place-items:center; padding:12px; background:var(--product-bg,#e8ede7); border-radius:var(--r-lg); }
.product-badge{ position:absolute; z-index:2; top:10px; left:10px; padding:5px 10px; border-radius:var(--r-full); background:var(--ink); color:#fff; font-family:var(--mono); font-size:9px; letter-spacing:.04em; text-transform:uppercase; }
.product-heart{ position:absolute; z-index:3; right:8px; top:8px; width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:50%; background:rgba(255,255,255,.9); cursor:pointer; transition:background .18s ease,color .18s ease,transform .18s ease; }
.product-heart:hover{ transform:scale(1.08); }
.product-heart svg{ width:17px; color:var(--ink); }
.product-heart.selected svg{ fill:var(--orange); stroke:var(--orange); }
.product-photo-btn{ width:100%; height:100%; min-width:0; min-height:0; padding:0; border:0; display:grid; place-items:center; background:none; cursor:pointer; }
.product-photo{ display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; pointer-events:none; -webkit-user-drag:none; }
.product-info{ padding:12px 2px 0; display:flex; flex-direction:column; gap:6px; flex:1; }
.product-info h3{ margin:0; font-size:15px; font-weight:800; line-height:1.3; }
.product-info>p{ margin:0; color:var(--muted); font-size:11.5px; font-weight:600; }
.product-size{ color:var(--muted); font-size:11px; font-family:var(--mono); }
.product-buy{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:4px; }
.product-price{ font-family:var(--mono); font-size:14px; font-weight:800; white-space:nowrap; }
.product-add{ min-height:44px; padding:0 15px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--ink); border-radius:var(--r-full); background:var(--ink); color:#fff; cursor:pointer; font-size:12px; font-weight:800; white-space:nowrap; transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease; }
.product-add svg{ width:16px; }
.product-add:hover{ border-color:var(--acid); background:var(--acid); color:var(--acid-ink); transform:translateY(-1px); }

.catalog-empty{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:70px 20px; text-align:center; color:var(--muted); }
.catalog-empty[hidden]{ display:none; }
.catalog-empty svg{ width:34px; height:34px; }
.catalog-empty h3{ margin:0; font-family:var(--serif); font-size:22px; color:var(--ink); }
.catalog-empty p{ margin:0; max-width:320px; font-size:13px; }

/* ---------- custom section ---------- */
.custom{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,7vw,110px); align-items:center; background:var(--ink); color:#fff; padding-top:clamp(60px,8vw,104px); padding-bottom:clamp(60px,8vw,104px); overflow:hidden; }
.custom-copy{ max-width:540px; }
.eyebrow-light{ color:#a8a8a8; }
.custom h2{ font-size:clamp(36px,4vw,58px); }
.custom-copy>p:not(.eyebrow){ max-width:470px; color:#c9c9c9; margin:24px 0; font-size:14px; line-height:1.7; }
.custom ul{ padding:0; margin:0 0 26px; display:flex; flex-wrap:wrap; gap:12px 22px; list-style:none; }
.custom li{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:800; }
.custom li svg{ width:16px; color:var(--acid); }
.custom-illustration{ height:370px; position:relative; background:#0f0f0f; color:var(--ink); overflow:hidden; border-radius:var(--r-lg); }
.custom-illustration-photo{ display:block; width:100%; height:100%; object-fit:cover; }

/* ---------- reviews ---------- */
.reviews{ background:var(--paper); }
.rating-badge{ text-align:right; }
.rating-badge strong{ display:block; font-family:var(--serif); font-size:30px; line-height:.9; font-weight:700; }
.rating-badge span{ display:flex; gap:2px; justify-content:flex-end; color:var(--orange); margin-top:4px; }
.rating-badge svg{ width:13px; fill:var(--orange); }
.rating-badge small{ display:block; color:var(--muted); font-size:9px; margin-top:2px; }
.review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.review-grid figure{ min-height:230px; display:flex; flex-direction:column; justify-content:space-between; margin:0; padding:24px; background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); }
.review-grid blockquote{ margin:0; font-family:var(--serif); font-size:17px; font-weight:600; line-height:1.32; }
.review-grid figcaption{ display:flex; align-items:center; gap:10px; }
.avatar{ width:33px; height:33px; display:grid; place-items:center; border-radius:50%; font-family:var(--mono); font-size:10px; font-weight:800; }
.avatar-a{ background:var(--acid); }
.avatar-b{ background:var(--orange); color:#fff; }
.avatar-c{ background:var(--blue); color:#fff; }
.review-grid b,.review-grid small{ display:block; }
.review-grid b{ font-size:11px; }
.review-grid small{ margin-top:2px; color:var(--muted); font-size:9.5px; }

/* ---------- newsletter ---------- */
.newsletter{ padding:clamp(56px,7vw,96px) clamp(20px,7vw,90px); display:grid; grid-template-columns:1fr 1fr; gap:46px; background:var(--blue); color:#fff; }
.newsletter .eyebrow{ color:#dae2ff; }
.newsletter .eyebrow span{ background:var(--acid); }
.newsletter h2 em{ color:var(--acid); }
.subscribe-form{ max-width:440px; align-self:center; display:grid; grid-template-columns:1fr auto; gap:10px; }
.subscribe-form input{ min-width:0; height:48px; padding:0 16px; border:1px solid rgba(255,255,255,.7); border-radius:var(--r-full); background:transparent; color:#fff; outline:none; }
.subscribe-form input::placeholder{ color:#d9e0ff; }
.subscribe-form input:focus{ border-color:var(--acid); box-shadow:0 0 0 3px rgba(240,180,41,.25); }
.form-note{ grid-column:1/-1; margin:0; color:#dae2ff; font-size:9.5px; line-height:1.5; }

/* ---------- footer ---------- */
.footer{ padding:52px clamp(20px,7vw,90px) 25px; background:var(--ink); color:#fff; }
.footer>.logo{ margin-bottom:40px; }
.footer-links{ display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:24px; padding-bottom:46px; }
.footer-links div{ display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.footer-links p{ margin:0 0 6px; color:#9a9a9a; font-family:var(--mono); text-transform:uppercase; font-size:9.5px; letter-spacing:.06em; }
.footer-links a,.footer-links button,.footer-links span{ border:0; padding:0; background:none; color:#f3f6f3; text-align:left; font-size:12.5px; }
.footer-links a:hover,.footer-links button:hover{ color:var(--acid); }
.footer-links button{ cursor:pointer; }
.footer-links span{ color:#adadad; font-size:11.5px; }
.footer-bottom{ padding-top:18px; border-top:1px solid #333333; color:#a3a3a3; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-family:var(--mono); font-size:9.5px; }
.footer-bottom button{ border:0; padding:0; background:none; color:#a3a3a3; cursor:pointer; font:inherit; }
.footer-bottom button:hover{ color:var(--acid); }

/* ---------- overlay / drawers ---------- */
.overlay{ position:fixed; z-index:49; inset:0; visibility:hidden; opacity:0; background:rgba(10,10,10,.55); backdrop-filter:blur(2px); transition:opacity .25s ease,visibility .25s ease; }
.overlay.show{ visibility:visible; opacity:1; }
.cart-drawer,.fav-drawer{ z-index:50; position:fixed; top:0; right:0; width:min(100%,420px); height:100dvh; display:flex; flex-direction:column; padding:22px; background:var(--white); transform:translateX(100%); transition:transform .3s cubic-bezier(.2,.8,.2,1); }
.cart-drawer.open,.fav-drawer.open{ transform:none; }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; padding-bottom:16px; border-bottom:1px solid var(--line); }
.drawer-head h2{ margin:0; font-family:var(--serif); font-weight:700; font-size:23px; }
.drawer-head h2 .cart-count,.drawer-head h2 .fav-count{ display:inline-grid; vertical-align:middle; background:var(--acid); font-family:var(--mono); color:var(--acid-ink); }
.cart-items,.fav-items{ display:flex; flex-direction:column; gap:14px; overflow:auto; flex:1; padding:16px 0; }
.cart-item,.fav-item{ display:grid; grid-template-columns:66px 1fr auto; gap:11px; align-items:start; }
.cart-item-art,.fav-item-art{ width:66px; height:66px; overflow:hidden; border-radius:var(--r-md); display:grid; place-items:center; background:#e8ede7; }
.cart-item h3,.fav-item h3{ margin:0 0 4px; font-size:12.5px; font-weight:800; }
.cart-item p,.fav-item p{ margin:0 0 8px; color:var(--muted); font-size:9.5px; }
.cart-item strong,.fav-item strong{ font-family:var(--mono); font-size:11px; }
.quantity{ display:flex; align-items:center; border:1px solid var(--line); border-radius:var(--r-full); width:max-content; }
.quantity button{ width:24px; height:24px; display:grid; place-items:center; border:0; background:transparent; cursor:pointer; }
.quantity button svg{ width:13px; }
.quantity span{ min-width:21px; text-align:center; font-family:var(--mono); font-size:10px; }
.cart-remove,.fav-remove{ padding:6px; border:0; background:transparent; cursor:pointer; color:var(--muted); border-radius:50%; }
.cart-remove:hover,.fav-remove:hover{ background:var(--line-soft); color:var(--ink); }
.fav-item-add{ grid-column:1/-1; margin-top:6px; min-height:34px; padding:0 12px; border:1px solid var(--line); border-radius:var(--r-full); background:transparent; font-size:11px; font-weight:800; cursor:pointer; }
.fav-item-add:hover{ border-color:var(--ink); background:var(--ink); color:#fff; }
.cart-empty,.fav-empty{ display:none; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; color:var(--muted); }
.cart-empty.visible,.fav-empty.visible{ display:flex; }
.cart-empty svg,.fav-empty svg{ width:34px; height:34px; }
.cart-empty h3,.fav-empty h3{ margin:0; font-family:var(--serif); font-size:20px; color:var(--ink); }
.cart-empty p,.fav-empty p{ margin:0; max-width:240px; font-size:12.5px; }
.cart-footer{ padding-top:16px; border-top:1px solid var(--line); }
.cart-footer.hidden{ display:none; }
.delivery-progress > div:first-child{ display:flex; justify-content:space-between; font-size:11px; margin-bottom:8px; }
.progress{ height:5px; border-radius:var(--r-full); background:var(--line-soft); overflow:hidden; }
.progress i{ display:block; height:100%; background:var(--acid); transition:width .3s ease; }
.total{ display:flex; justify-content:space-between; align-items:baseline; margin:16px 0; }
.total span{ font-size:12px; font-weight:800; }
.total strong{ font-family:var(--serif); font-size:24px; font-weight:700; }
.cart-footer small{ display:block; margin-top:10px; text-align:center; color:var(--muted); font-size:9.5px; }

/* ---------- search panel ---------- */
.search-panel{ z-index:51; position:fixed; inset:0; display:flex; align-items:flex-start; justify-content:center; padding:clamp(64px,9vw,120px) 20px; background:var(--ink); color:#fff; transform:translateY(-100%); visibility:hidden; transition:transform .35s cubic-bezier(.2,.8,.2,1),visibility .35s; }
.search-panel.open{ transform:none; visibility:visible; }
.search-panel>div{ width:min(850px,100%); }
.search-panel .search-close{ position:absolute; top:20px; right:clamp(20px,5vw,60px); color:#fff; }
.search-panel input{ width:100%; border:0; border-bottom:2px solid #3d3d3d; padding:12px 0; background:transparent; color:#fff; outline:none; font-family:var(--serif); font-size:clamp(28px,4.6vw,58px); font-weight:700; }
.search-panel input:focus{ border-color:var(--acid); }
.search-panel input::placeholder{ color:#555555; }
.search-results{ display:grid; grid-template-columns:repeat(3,1fr); gap:11px; margin-top:26px; }
.search-result{ padding:13px; border:1px solid #333333; border-radius:var(--r-md); cursor:pointer; text-align:left; background:transparent; color:#fff; transition:border-color .2s ease,background .2s ease; display:flex; flex-direction:column; gap:2px; }
.search-result:hover{ border-color:var(--acid); background:#242424; }
.search-result b{ display:block; font-size:12.5px; }
.search-result span{ color:#b0b0b0; font-size:10px; }

/* ---------- modals ---------- */
.modal{ position:fixed; z-index:60; inset:0; display:grid; place-items:center; padding:20px; visibility:hidden; opacity:0; background:rgba(10,10,10,.6); backdrop-filter:blur(3px); overflow:auto; transition:opacity .2s ease,visibility .2s ease; }
.modal.open{ visibility:visible; opacity:1; }
.modal-card{ position:relative; max-width:900px; width:100%; background:var(--white); border-radius:var(--r-lg); transform:translateY(14px); transition:transform .25s ease; box-shadow:var(--shadow); }
.modal.open .modal-card{ transform:none; }
.modal-close{ position:absolute; z-index:3; right:12px; top:12px; background:rgba(255,255,255,.85); }
.product-modal-card{ display:grid; grid-template-columns:1fr 1fr; overflow:hidden; }
.modal-product-art{ min-height:440px; display:grid; place-items:center; background:#e8ede7; overflow:hidden; }
.modal-product-art .product-photo{ width:100%; height:100%; object-fit:contain; }
.modal-product-data{ padding:52px 44px 40px; }
.modal-product-data h2,.checkout-card h2,.mini-modal h2,.success-card h2{ margin:0; font-family:var(--serif); font-weight:700; font-size:36px; line-height:1; }
.modal-price{ margin:16px 0; font-family:var(--mono); font-size:17px; font-weight:700; }
.modal-description{ margin:0 0 20px; color:var(--muted); font-size:12.5px; line-height:1.65; }
.choice-group>span{ display:block; margin-bottom:8px; font-size:11.5px; font-weight:800; }
.choice-buttons{ display:flex; gap:7px; }
.choice{ min-height:36px; padding:0 13px; border:1px solid var(--line); border-radius:var(--r-full); background:transparent; cursor:pointer; font-size:11px; font-weight:800; }
.choice.active{ border-color:var(--ink); background:var(--ink); color:#fff; }
.modal-meta{ display:flex; flex-wrap:wrap; gap:14px; margin:20px 0; font-size:11px; font-weight:700; }
.modal-meta span{ display:flex; align-items:center; gap:5px; }
.modal-meta svg{ width:17px; color:var(--orange); }
.modal-actions{ display:flex; gap:10px; align-items:center; }
.modal-heart{ flex:0 0 auto; border:1px solid var(--line); }
.modal-heart svg{ width:18px; }
.modal-heart.selected svg{ fill:var(--orange); stroke:var(--orange); }

.checkout-card{ max-width:940px; display:grid; grid-template-columns:.85fr 1.15fr; overflow:hidden; }
.checkout-summary{ padding:48px 34px; background:#e8ede7; }
.checkout-summary h2{ margin-bottom:28px; }
.checkout-product{ display:flex; gap:10px; align-items:center; padding:10px 0; border-top:1px solid rgba(20,20,20,.12); }
.checkout-product-art{ width:46px; height:46px; border-radius:var(--r-sm); display:grid; place-items:center; background:#fbfaf5; overflow:hidden; }
.checkout-product-art .product-photo{ width:100%; height:100%; object-fit:contain; }
.checkout-product span{ flex:1; font-size:10.5px; font-weight:700; }
.checkout-product strong{ font-family:var(--mono); font-size:10.5px; }
.checkout-total{ display:flex; justify-content:space-between; align-items:baseline; margin-top:24px; padding-top:16px; border-top:1px solid rgba(20,20,20,.2); }
.checkout-total span{ font-size:11.5px; font-weight:800; }
.checkout-total strong{ font-family:var(--serif); font-size:24px; font-weight:700; }
.checkout-summary>p:last-child{ display:flex; align-items:center; gap:6px; margin:20px 0 0; font-size:9.5px; color:var(--muted); }
.checkout-summary>p svg{ width:16px; }
.checkout-form{ padding:44px 40px 36px; }
.form-section{ margin-bottom:18px; }
.form-section h3{ margin:0 0 11px; font-size:13px; font-weight:800; }
.checkout-form label,.mini-modal label{ display:block; margin-bottom:9px; font-size:10.5px; font-weight:800; }
.checkout-form input,.mini-modal input,.mini-modal textarea{ display:block; width:100%; margin-top:5px; height:40px; padding:0 12px; border:1px solid var(--line); border-radius:var(--r-sm); background:transparent; outline:none; font-size:12.5px; font-weight:500; transition:border .2s,box-shadow .2s; }
.mini-modal textarea{ height:auto; padding:10px 12px; resize:vertical; }
.checkout-form input:focus,.mini-modal input:focus,.mini-modal textarea:focus{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(79,121,255,.15); }
.checkout-form input.invalid,.mini-modal input.invalid{ border-color:#d9453b; }
.form-error{ margin-bottom:16px; padding:12px 14px; border-radius:var(--r-md); background:#fcecea; color:#a12318; display:flex; flex-direction:column; gap:2px; font-size:12px; }
.form-error b{ font-size:12.5px; }
.payment-options{ display:flex; flex-direction:column; gap:8px; }
.payment{ display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--r-md); cursor:pointer; }
.payment input{ accent-color:var(--ink); }
.payment span{ flex:1; display:flex; flex-direction:column; gap:1px; }
.payment b{ font-size:12px; font-weight:800; }
.payment small{ color:var(--muted); font-size:10px; }
.payment i{ font-style:normal; font-size:9px; font-weight:800; color:var(--muted); }
.payment.active{ border-color:var(--ink); background:#f4f4ee; }
.secure-note{ display:block; margin-top:12px; text-align:center; color:var(--muted); font-size:9.5px; }

.mini-modal{ max-width:480px; padding:44px 40px 36px; }
.success-card{ max-width:440px; padding:48px 40px; text-align:center; }
.success-icon{ width:56px; height:56px; margin:0 auto 18px; border-radius:50%; background:var(--acid); display:grid; place-items:center; }
.success-icon svg{ color:var(--acid-ink); width:26px; }
.success-card p{ color:var(--muted); font-size:13px; margin:14px 0 24px; }

/* ---------- toast ---------- */
.toast{ position:fixed; z-index:100; left:50%; bottom:25px; max-width:calc(100% - 32px); padding:12px 18px; border-radius:var(--r-full); background:var(--ink); color:#fff; box-shadow:var(--shadow); font-size:12px; font-weight:700; transform:translate(-50%,80px); opacity:0; transition:transform .25s ease,opacity .25s ease; }
.toast.show{ transform:translate(-50%,0); opacity:1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1180px){
  .catalog-layout{ grid-template-columns:220px minmax(0,1fr); gap:24px; }
  .product-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:1000px){
  .hero{ grid-template-columns:1fr .8fr; padding-left:5vw; padding-right:5vw; }
  .section,.newsletter,.footer{ padding-left:5vw; padding-right:5vw; }
  .hero-visual{ transform:scale(.85); transform-origin:center; }
  .collection-grid{ grid-template-columns:repeat(2,1fr); }
  .collection-card{ height:270px; }
  .main-nav{ gap:16px; }
  .header-search{ display:none; }
  .search-open{ display:grid; }
  .custom{ padding-left:5vw; padding-right:5vw; }
  .review-grid{ grid-template-columns:1fr 1fr; }
  .review-grid figure:last-child{ display:none; }
  .catalog-layout{ grid-template-columns:1fr; }
  .catalog-filters{ position:fixed; top:0; right:0; height:100dvh; width:min(340px,90%); z-index:70; border-radius:0; max-height:none; transform:translateX(100%); transition:transform .3s ease; box-shadow:var(--shadow); }
  .catalog-filters.open{ transform:none; }
  .filters-close{ display:grid; margin-left:0; }
  .filters-open{ display:inline-flex; }
}
@media (max-width:720px){
  .topline{ min-height:26px; justify-content:flex-start; overflow:hidden; white-space:nowrap; font-size:8px; }
  .topline-dot,.topline a{ display:none; }
  .site-header{ height:64px; padding:0 16px; gap:10px; }
  .main-nav{ display:none; }
  .menu-button{ display:grid; }
  .header-actions{ gap:0; }
  .cart-button{ width:42px; padding:0; justify-content:center; border-radius:50%; }
  .cart-button>span{ display:none; }
  .cart-count{ position:absolute; margin:0 0 25px 25px; }
  .hero{ min-height:auto; display:block; padding:48px 18px 64px; }
  .hero-grid{ mask-image:none; opacity:.12; }
  .hero h1{ font-size:clamp(42px,13vw,64px); }
  .hero-description{ max-width:340px; margin:18px 0 22px; font-size:13px; }
  .hero-facts{ margin-top:34px; gap:16px; flex-wrap:wrap; }
  .hero-facts strong{ font-size:18px; }
  .hero-facts span{ font-size:9px; }
  .hero-visual{ height:auto; margin:22px 0 0; overflow:visible; display:flex; justify-content:center; align-items:flex-end; gap:10px; }
  .orbit{ display:none; }
  .hero-product{ position:relative; width:31%; height:auto; aspect-ratio:1/1; border-radius:14px; }
  .hero-product-a{ left:auto; top:auto; transform:rotate(-6deg); }
  .hero-product-b{ left:auto; top:auto; transform:rotate(0deg) translateY(-10px); }
  .hero-product-c{ right:auto; top:auto; transform:rotate(6deg); }
  .patch-label{ display:none; }
  .scroll-prompt{ display:none; }
  .trust-bar{ grid-template-columns:1fr; gap:10px; padding:15px 18px; }
  .trust-bar div{ justify-content:flex-start; font-size:10.5px; }
  .section{ padding:56px 18px; }
  .section-heading{ margin-bottom:22px; }
  .section h2,.newsletter h2{ font-size:clamp(30px,10vw,44px); }
  .desktop-link{ display:none; }
  .collection-grid{ gap:9px; }
  .collection-card{ height:190px; padding:14px; }
  .collection-card h3{ font-size:17px; }
  .collection-card p{ font-size:9.5px; }
  .catalog{ padding:56px 0; }
  .catalog-heading{ padding:0 18px; }
  .catalog-content{ padding:0 18px; }
  .catalog-toolbar{ flex-direction:column; align-items:stretch; }
  .sort-select-wrap{ margin-left:0; width:100%; }
  .sort-select{ width:100%; }
  .product-grid{ grid-template-columns:repeat(2,1fr); gap:14px 10px; }
  .product-info h3{ font-size:13px; }
  .custom{ grid-template-columns:1fr; padding-left:18px; padding-right:18px; }
  .custom-illustration{ height:220px; order:-1; }
  .review-grid{ grid-template-columns:1fr; }
  .review-grid figure:last-child{ display:flex; }
  .newsletter{ grid-template-columns:1fr; padding:48px 18px; gap:22px; }
  .subscribe-form{ grid-template-columns:1fr; }
  .footer{ padding:44px 18px 20px; }
  .footer-links{ grid-template-columns:1fr 1fr; gap:22px 12px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .product-modal-card,.checkout-card{ grid-template-columns:1fr; }
  .modal-product-art{ min-height:260px; }
  .modal-product-data,.checkout-form,.checkout-summary{ padding:28px 20px; }
  .mini-modal{ padding:32px 20px; width:calc(100% - 20px); }
}
@media (max-width:480px){
  .product-grid{ grid-template-columns:1fr 1fr; gap:12px 8px; }
  .product-art{ height:150px; }
  .product-buy{ align-items:stretch; flex-direction:column; gap:7px; }
  .product-add{ width:100%; padding:0 10px; }
  .hero-actions{ gap:14px; }
  .hero-facts{ gap:10px; }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; }
}

/* ============================================================
   Тёмная тема
   ============================================================ */
body.dark{ --paper:#181818; --white:#202020; --ink:#f2efe6; --line:rgba(242,239,230,.16); --line-soft:rgba(242,239,230,.08); --muted:#a6a196; --muted2:#c2beb2; --shadow:0 18px 45px rgba(0,0,0,.4); color-scheme:dark; }
body.dark .site-header{ background:rgba(20,20,20,.9); }
body.dark .header-search,.dark .price-inputs input,.dark .chip,.dark .search-result{ background:#202020; }
body.dark .icon-button:hover{ background:#2c2c2c; }
body.dark .collection-card,.dark .review-grid figure,.dark .cart-drawer,.dark .fav-drawer,.dark .modal-card,.dark .catalog-filters{ background:#202020; }
body.dark .trust-bar{ background:#1f1f1f; }
body.dark .product-art,.dark .modal-product-art,.dark .checkout-summary,.dark .cart-item-art,.dark .fav-item-art,.dark .checkout-product-art{ filter:saturate(.8) brightness(.82); }
body.dark .newsletter{ background:#2a3fa0; }
body.dark .footer{ background:#0a0a0a; }
body.dark .payment.active{ background:#262626; }
body.dark .form-error{ background:#3a1e1c; color:#ffb2ae; }
body.dark .cart-empty .button-outline,.dark .fav-empty .button-outline{ border-color:var(--ink); }
body.dark .cart-button{ background:var(--acid); color:var(--acid-ink); }
body.dark .button-dark,.dark .button-outline:hover,.dark .chip.active,.dark .product-add:hover,.dark .filters-open{ background:#f0f0f0; color:#171717; }
body.dark .product-add:hover{ border-color:#f0f0f0; }
body.dark .checkout-form input,.dark .mini-modal input,.dark .mini-modal textarea{ background:#181818; }
body.dark .active-chip{ background:#202020; }
