/* ============ LINEA — кожаные сумки и аксессуары ============ */
:root {
  --bg: #F8F5F1;
  --bg-soft: #F1ECE4;
  --ink: #2B2118;
  --ink-soft: #6E6257;
  --accent: #6B4A35;
  --accent-dark: #533826;
  --line: #E2DACE;
  --line-strong: #CFC4B3;
  --white: #FFFDFA;
  --map-bg: #211A14;
  --shadow: 0 18px 40px -18px rgba(43, 33, 24, 0.22);
  --font-display: "Montserrat Alternates", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

.container { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- цифры/цены ---------- */
.price, .num, .qty-val, .cart-count, .stat-num {
  font-family: var(--font-body);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 245, 241, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.32em; color: var(--ink); }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
@media (max-width: 1023px) { .main-nav + .header-actions { margin-left: auto; } }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white); font-size: 11px; font-weight: 600; border-radius: 9px;
}
.cart-count.has { display: inline-flex; }
.burger { display: none; }

/* мобильное меню */
.mobile-nav {
  position: fixed; inset: 68px 0 auto 0; z-index: 55;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px 0 20px; display: flex; flex-direction: column;
  visibility: hidden;
  transform: translateY(calc(-100% - 80px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.35s;
}
.mobile-nav.open { transform: none; visibility: visible; transition-delay: 0s; }
.mobile-nav a { padding: 13px clamp(16px, 4vw, 40px); font-size: 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-nav a:last-child { border-bottom: none; }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: var(--white);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--bg-soft); border-color: var(--bg-soft); }
.btn[disabled] { opacity: 0.5; cursor: default; pointer-events: none; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero { position: relative; overflow: clip; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 7vw, 96px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 600; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-soft); max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(360px, 46vw, 620px); object-fit: cover; border-radius: var(--radius); }
.hero-media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 253, 250, 0.5); border-radius: 2px; pointer-events: none; }
.hero-note {
  position: absolute; left: -1px; bottom: clamp(18px, 3vw, 34px);
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 14px 22px 14px 18px; max-width: 260px; font-size: 13px; color: var(--ink-soft); box-shadow: var(--shadow);
}
.hero-note strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); margin-bottom: 2px; }

/* ============ СЕКЦИИ ============ */
.section { padding-block: clamp(52px, 7vw, 104px); }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-kicker { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3vw, 40px); }
.section-link { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: color 0.25s, border-color 0.25s; }
.section-link:hover { color: var(--accent-dark); }

/* категории */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.cat-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.cat-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248, 245, 241, 0.95); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 2px;
}
.cat-card-label b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.cat-card-label small { font-size: 12px; color: var(--ink-soft); }
.cat-card-label svg { width: 16px; height: 16px; color: var(--accent); transition: transform 0.3s; }
.cat-card:hover .cat-card-label svg { transform: translateX(4px); }

/* мастерская */
.craft-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.craft-media { position: relative; }
.craft-media img { width: 100%; height: clamp(320px, 40vw, 540px); object-fit: cover; border-radius: var(--radius); }
.craft-media-sub {
  position: absolute; right: clamp(-18px, -1.5vw, -24px); bottom: -34px; width: 44%;
  border: 5px solid var(--bg-soft); border-radius: var(--radius); box-shadow: var(--shadow); display: none;
}
.craft-media-sub img { height: auto; aspect-ratio: 4 / 3; }
.craft-text .section-title { margin-bottom: 18px; }
.craft-text p { color: var(--ink-soft); margin-bottom: 16px; max-width: 52ch; }
.craft-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.stat-num { font-size: clamp(26px, 3vw, 38px); font-weight: 600; color: var(--accent); font-family: var(--font-display); }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ============ КАРТОЧКИ ТОВАРОВ ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.product-card-media { position: relative; overflow: hidden; }
.product-card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--white); padding: 5px 10px; border-radius: 2px;
  font-variant-numeric: lining-nums tabular-nums;
}
.badge.badge-new { background: var(--ink); }
.product-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.product-card-cat { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.product-card-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.product-card-name a::after { content: ""; position: absolute; inset: 0; }
.product-card-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font-size: 17px; font-weight: 600; }
.price-old { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }
.card-add {
  position: relative; z-index: 2; margin: 0 16px 16px; padding: 11px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.card-add:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ============ КАРТА МАГАЗИНОВ ============ */
.stores-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.map-mock {
  position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 68% 30%, rgba(107, 74, 53, 0.28), transparent 42%),
    radial-gradient(circle at 22% 72%, rgba(107, 74, 53, 0.18), transparent 38%),
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(248, 245, 241, 0.05) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(248, 245, 241, 0.05) 59px 60px),
    var(--map-bg);
  border: 1px solid #372B21;
}
.map-road { position: absolute; background: rgba(248, 245, 241, 0.09); border-radius: 99px; }
.map-road.r1 { width: 140%; height: 3px; top: 34%; left: -20%; transform: rotate(-9deg); }
.map-road.r2 { width: 140%; height: 2px; top: 62%; left: -20%; transform: rotate(6deg); }
.map-road.r3 { width: 2px; height: 140%; left: 38%; top: -20%; transform: rotate(14deg); }
.map-road.r4 { width: 2px; height: 140%; left: 72%; top: -20%; transform: rotate(-11deg); }
.map-river { position: absolute; width: 160%; height: 34px; left: -25%; top: 47%; transform: rotate(-7deg); background: rgba(107, 122, 138, 0.22); border-radius: 99px; filter: blur(1px); }
.map-label { position: absolute; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(248, 245, 241, 0.28); }
.map-pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: pointer; transition: transform 0.25s; }
.map-pin::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(198, 148, 108, 0.55); transition: inset 0.3s, opacity 0.3s; }
.map-pin:hover, .map-pin.is-active { transform: scale(1.25); background: #C6946C; }
.map-pin:hover::after, .map-pin.is-active::after { inset: -11px; opacity: 0.9; }
.map-pin-tag {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  white-space: nowrap; font-size: 11px; letter-spacing: 0.06em; color: var(--bg);
  background: rgba(43, 33, 24, 0.92); border: 1px solid rgba(198, 148, 108, 0.4);
  padding: 4px 10px; border-radius: 2px; pointer-events: none;
}
.stores-list { display: flex; flex-direction: column; gap: 12px; }
.store-card { border: 1px solid var(--line); border-left: 3px solid transparent; background: var(--white); border-radius: var(--radius); padding: 18px 20px; transition: border-color 0.25s, box-shadow 0.25s; cursor: pointer; }
.store-card:hover, .store-card.is-active { border-left-color: var(--accent); box-shadow: var(--shadow); }
.store-city { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.store-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.store-addr { font-size: 13.5px; color: var(--ink-soft); }
.store-hours { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

/* ============ ОТЗЫВЫ ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.review-stars { display: flex; gap: 3px; color: var(--accent); }
.review-stars svg { width: 15px; height: 15px; }
.review-text { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent); }
.review-author b { display: block; font-size: 14px; }
.review-author small { font-size: 12px; color: var(--ink-soft); }

/* ============ ФУТЕР ============ */
.site-footer { background: #241C15; color: #CFC4B3; margin-top: auto; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(44px, 6vw, 72px); }
.footer-brand .logo { color: var(--bg); font-size: 26px; }
.footer-brand p { font-size: 13.5px; color: #9A8C7C; margin-top: 14px; max-width: 30ch; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bg); margin-bottom: 16px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: #9A8C7C; padding-block: 5px; transition: color 0.25s; }
.footer-col a:hover { color: var(--bg); }
.footer-demo { border-top: 1px solid #3A2E23; padding-block: 22px; font-size: 12.5px; color: #9A8C7C; text-align: center; }
.footer-demo a { color: #C6946C; border-bottom: 1px solid rgba(198, 148, 108, 0.4); transition: color 0.25s; }
.footer-demo a:hover { color: var(--bg); }
.footer-bottom { border-top: 1px solid #3A2E23; padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #77675A; flex-wrap: wrap; }

/* ============ ПОДСТРАНИЦЫ: шапка страницы ============ */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--line-strong); }
.page-title { font-size: clamp(28px, 3.4vw, 44px); }
.page-sub { color: var(--ink-soft); margin-top: 10px; max-width: 60ch; }

/* ============ КАТАЛОГ ============ */
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); padding-block: clamp(30px, 4vw, 56px); align-items: start; }
.filters { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 26px; }
.filter-group h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink); }
.filter-option { display: flex; align-items: center; gap: 10px; padding-block: 5px; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; transition: color 0.2s; }
.filter-option:hover { color: var(--ink); }
.filter-option input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.filter-option .count { margin-left: auto; font-size: 12px; color: var(--line-strong); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%; padding: 9px 10px; font-size: 14px; font-family: var(--font-body);
  font-variant-numeric: lining-nums tabular-nums;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.price-inputs input:focus { outline: none; border-color: var(--accent); }
.filters-reset { align-self: flex-start; font-size: 13px; color: var(--ink-soft); background: none; border: none; border-bottom: 1px dashed var(--line-strong); padding: 0 0 2px; transition: color 0.2s, border-color 0.2s; }
.filters-reset:hover { color: var(--accent); border-color: var(--accent); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-count { font-size: 13.5px; color: var(--ink-soft); }
.sort-select {
  padding: 10px 36px 10px 14px; font-size: 13.5px; font-family: var(--font-body);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B4A35' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--accent); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 22px); }
.catalog-empty { padding: 60px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.filters-toggle { display: none; }

/* ============ КАРТОЧКА ТОВАРА ============ */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); padding-block: clamp(30px, 4vw, 60px); align-items: start; }
.product-gallery { position: sticky; top: 92px; }
.gallery-main { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.gallery-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity 0.35s ease; }
.gallery-main img.is-fading { opacity: 0; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumb { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); opacity: 0.75; transition: opacity 0.25s, border-color 0.25s; }
.gallery-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumb.is-active, .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.product-info .product-card-cat { margin-bottom: 8px; }
.product-info h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.product-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.product-price-row .price { font-size: 28px; }
.product-price-row .price-old { font-size: 16px; }
.product-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #4E7A46; margin-bottom: 24px; }
.product-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4E7A46; }
.product-lead { color: var(--ink-soft); margin-bottom: 28px; }
.product-buy { display: flex; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.qty-picker { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); }
.qty-picker button { width: 44px; height: 50px; background: none; border: none; font-size: 18px; color: var(--ink-soft); transition: color 0.2s; }
.qty-picker button:hover { color: var(--accent); }
.qty-val { min-width: 34px; text-align: center; font-weight: 600; }
.product-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 34px; }
.perk { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 12.5px; color: var(--ink-soft); background: var(--white); }
.perk svg { width: 20px; height: 20px; color: var(--accent); }

/* аккордеон */
.accordion { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 2px; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink);
  transition: color 0.25s;
}
.acc-head:hover { color: var(--accent); }
.acc-head svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.acc-item.open .acc-head svg { transform: rotate(45deg); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.acc-body-inner { padding: 2px 2px 22px; font-size: 14.5px; color: var(--ink-soft); }
.acc-body-inner p { margin-bottom: 12px; }
.acc-body-inner p:last-child { margin-bottom: 0; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--ink-soft); width: 44%; padding-right: 14px; }
.related { padding-block: clamp(40px, 6vw, 80px); }

/* ============ ЧЕКАУТ ============ */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(30px, 4vw, 56px); align-items: start; }
.checkout-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.checkout-block + .checkout-block { margin-top: 20px; }
.checkout-block h3 { font-size: 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 13px; font-family: var(--font-body); font-weight: 600; font-variant-numeric: lining-nums; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.form-field input, .form-field textarea {
  padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form-field input.invalid { border-color: #B4543C; }
.radio-row { display: flex; flex-direction: column; gap: 10px; }
.radio-card { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.radio-card:hover { border-color: var(--accent); }
.radio-card input { accent-color: var(--accent); margin-top: 3px; width: 16px; height: 16px; }
.radio-card b { display: block; font-size: 14.5px; }
.radio-card small { font-size: 12.5px; color: var(--ink-soft); }
.radio-card .radio-price { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.radio-card:has(input:checked) { border-color: var(--accent); background: rgba(107, 74, 53, 0.05); }
.order-summary { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.order-summary h3 { font-size: 18px; margin-bottom: 18px; }
.summary-items { display: flex; flex-direction: column; gap: 14px; max-height: 340px; overflow-y: auto; margin-bottom: 18px; padding-right: 4px; }
.summary-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.summary-item img { width: 64px; height: 76px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.summary-item-name { font-size: 13.5px; font-weight: 500; }
.summary-item-meta { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); padding-block: 6px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-strong); margin-top: 10px; padding-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 20px; }
.summary-total .price { font-size: 22px; }
.checkout-empty { text-align: center; padding: 70px 20px; }
.checkout-empty h2 { margin-bottom: 12px; }
.checkout-empty p { color: var(--ink-soft); margin-bottom: 26px; }
.thanks-screen { text-align: center; padding: clamp(60px, 10vw, 120px) 20px; max-width: 620px; margin-inline: auto; }
.thanks-icon { width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.thanks-icon svg { width: 36px; height: 36px; }
.thanks-screen h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.thanks-screen p { color: var(--ink-soft); margin-bottom: 30px; }

/* ============ КОРЗИНА (drawer) ============ */
.cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(43, 33, 24, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(420px, 100vw);
  background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.open { transform: none; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { font-size: 18px; }
.cart-close { background: none; border: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: color 0.2s; }
.cart-close:hover { color: var(--accent); }
.cart-close svg { width: 22px; height: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item img { width: 72px; height: 88px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.cart-item-name { font-size: 14px; font-weight: 500; }
.cart-item-cat { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); }
.cart-qty button { width: 30px; height: 32px; background: none; border: none; color: var(--ink-soft); font-size: 15px; transition: color 0.2s; }
.cart-qty button:hover { color: var(--accent); }
.cart-qty .qty-val { min-width: 26px; font-size: 13.5px; }
.cart-item .price { font-size: 14.5px; }
.cart-item-remove { background: none; border: none; font-size: 12px; color: var(--ink-soft); border-bottom: 1px dashed var(--line-strong); padding: 0 0 1px; margin-top: 8px; align-self: start; transition: color 0.2s, border-color 0.2s; }
.cart-item-remove:hover { color: #B4543C; border-color: #B4543C; }
.cart-drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.cart-drawer-foot .summary-total { border-top: none; margin-top: 0; padding-top: 0; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; }
.cart-empty svg { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--line-strong); display: block; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 80px);
  background: var(--ink); color: var(--bg); font-size: 14px; padding: 13px 22px; border-radius: var(--radius);
  opacity: 0; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s; pointer-events: none;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============ АДАПТИВ ============ */
@media (min-width: 1024px) { .craft-media-sub { display: block; } }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .hero-grid, .craft-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .hero-media img { height: clamp(280px, 52vw, 440px); }
  .craft-media img { height: clamp(260px, 50vw, 420px); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .stores-grid { grid-template-columns: minmax(0, 1fr); }
  .map-mock { min-height: 340px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; inset: 0; z-index: 80; top: auto; max-height: 82vh; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--line); border-radius: 12px 12px 0 0;
    padding: 24px clamp(16px, 4vw, 40px) 34px;
    transform: translateY(105%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-gallery { position: static; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
}

@media (max-width: 640px) {
  html { overflow-x: hidden; }
  .header-inner { height: 60px; gap: 14px; }
  .mobile-nav { inset: 60px 0 auto 0; }
  .logo { font-size: 20px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .hero-note { position: static; margin-top: 14px; max-width: none; }
  .hero-media::after { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-body { padding: 12px 12px 12px; }
  .product-card-name { font-size: 14px; }
  .price { font-size: 15px; }
  .card-add { margin: 0 12px 12px; padding: 10px 6px; font-size: 12px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .craft-stats { gap: 10px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .product-perks { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .summary-item { grid-template-columns: 52px 1fr auto; }
  .summary-item img { width: 52px; height: 62px; }
}
