/* ==========================================================================
   ЕК-ЛЮК — макет каталога. Направление: эволюция бренда.
   Teal + оранжевый, serif только на уровне страницы, интерфейс — sans.
   ========================================================================== */

:root {
  --ink: #1b1916;
  --ink-soft: #3f3a33;
  --muted: #6d655b;
  --line: #eae1d5;
  --line-strong: #d7caba;
  --bg: #faf7f2;
  --surface: #ffffff;
  --brand: #1e5a56;
  --brand-700: #164542;
  --brand-100: #e9f1ef;
  --accent: #e2872a;
  --accent-hover: #d2761a;
  --accent-ink: #241605;
  --accent-deep: #b4520e;
  --hero-start: #cb6614;
  --hero-end: #9c430a;
  --success: #2f7a4f;
  --danger: #b3261e;

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1200px;

  --shadow-sm: 0 1px 2px rgba(18, 30, 28, .05);
  --shadow: 0 1px 2px rgba(18, 30, 28, .05), 0 12px 32px -20px rgba(18, 30, 28, .35);
  --shadow-lg: 0 24px 64px -32px rgba(18, 30, 28, .45);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Верхняя оранжевая полоса ---------- */

.topbar {
  background: var(--accent-deep);
  color: rgba(255, 255, 255, .88);
  font-size: 12.5px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
}
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-sep { color: rgba(255, 255, 255, .4); }
.topbar-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Типографика уровней страницы ---------- */

.display {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}

h1.display { font-size: clamp(30px, 3.6vw, 46px); }
h2.display { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.18; }

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.micro { font-size: 13px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-700); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-quiet {
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  border-color: var(--line-strong);
  color: var(--brand);
  font-weight: 600;
}
.btn-quiet:hover { border-color: var(--brand); background: var(--brand-100); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.btn-link:hover { color: var(--brand-700); }
.btn-link svg { transition: transform .15s ease; }
.btn-link:hover svg { transform: translateX(2px); }

/* ---------- Поля ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
textarea.input { padding: 11px 13px; min-height: 84px; resize: vertical; }
.input::placeholder { color: #8b9492; }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 85, 83, .14);
}

select.input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6866' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 24px -18px rgba(18, 30, 28, .45); }

.header-top {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 13px 0;
}

.logo { flex: none; }
.logo img { height: 50px; width: auto; }

.search {
  position: relative;
  flex: 1 1 auto;
  max-width: 460px;
}
.search .input { height: 44px; min-height: 44px; padding-right: 50px; background: #fdfaf5; border-radius: 999px; }
.search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.search-btn:hover { background: var(--brand-700); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone { text-align: right; line-height: 1.25; }
.header-phone a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone a:hover { color: var(--brand); }
.header-phone span { font-size: 12px; color: var(--muted); }

.header-nav { border-top: 1px solid var(--line); }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 46px;
  flex-wrap: wrap;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 12px 0;
  white-space: nowrap;
}
.nav a:hover { color: var(--brand); }
.nav a.is-active { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav-size {
  margin-left: auto;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.burger,
.header-top .header-phone-mobile {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}

.mobile-search { display: none; padding: 0 0 12px; }

/* Mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 22, 20, .45);
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 86vw);
  background: #fff;
  padding: 18px 22px 32px;
  overflow-y: auto;
  animation: slide-in .2s ease;
}
@keyframes slide-in { from { transform: translateX(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.mobile-nav .mobile-nav-phone { font-size: 20px; font-weight: 700; color: var(--brand); border: 0; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 62px;
  color: #fff;
  background:
    radial-gradient(720px 360px at 82% -10%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%),
    linear-gradient(112deg, var(--hero-start) 0%, #b4520e 58%, var(--hero-end) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 52%;
  width: 46%;
  height: 170%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0));
  transform: skewX(-14deg);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: #ffd6a3;
}

.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { max-width: 48ch; margin-bottom: 26px; color: rgba(255, 255, 255, .88); }
.hero .btn-primary { background: #fff; color: #2a1a0a; }
.hero .btn-primary:hover { background: #fbeee0; color: #2a1a0a; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
}
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { color: #ffd6a3; flex: none; }

/* Finder */
.finder {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 30px 70px -30px rgba(52, 24, 3, .55);
  color: var(--ink);
}
.finder-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.finder-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.finder-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.finder-x { padding-bottom: 13px; color: var(--muted); font-size: 14px; }
.finder .btn { margin-top: 4px; }
.finder-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.finder-note svg { flex: none; margin-top: 1px; color: var(--brand); }

/* ---------- Секции ---------- */

.section { padding: 68px 0; }
.section-tight { padding: 48px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.section-head p { margin-top: 8px; }
.section-head .btn-link { flex: none; }

/* Каталог-плитка */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.tile-media { aspect-ratio: 4 / 3; overflow: hidden; background: #f4ede3; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover .tile-media img { transform: scale(1.025); }
.tile-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 17px;
}
.tile-title { font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.tile-count { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--muted); }
.tile-arrow {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand);
  transition: background-color .15s ease, border-color .15s ease;
}
.tile:hover .tile-arrow { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Факты */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { padding: 24px 26px; display: flex; gap: 14px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact svg { flex: none; color: var(--brand); margin-top: 2px; }
.fact h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.fact p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-top: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 40px 20px 0; color: var(--ink-soft); font-size: 15px; }
.faq p + p { padding-top: 0; }

/* CTA-полоса */
.cta {
  background: var(--brand);
  border-radius: 20px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 44px;
  align-items: center;
  color: #fff;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 46ch; }
.cta-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink);
  display: grid;
  gap: 12px;
}
.cta-form .legal { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---------- Подвал ---------- */

.site-footer {
  background: #14201e;
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 0;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer .logo img { height: 46px; filter: none; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; margin-top: 16px; max-width: 30ch; }
.site-footer h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255, 255, 255, .72); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-list li + li { margin-top: 9px; }
.footer-contact a { display: block; }
.footer-phone { font-size: 19px !important; font-weight: 600; color: #fff !important; margin-bottom: 4px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 18px 0 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink-soft); }

/* ==========================================================================
   Каталог
   ========================================================================== */

.page-head { padding: 22px 0 26px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { font-size: 16px; }
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.size-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.size-strip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
}
.size-strip-row { display: flex; gap: 8px; align-items: center; }
.size-strip .input { min-height: 42px; width: 86px; }
.size-strip .btn { min-height: 42px; padding: 0 16px; white-space: nowrap; }

.catalog-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 34px;
  padding: 6px 0 76px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 20px 16px;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}
.filters-head h2 { font-size: 15px; font-weight: 600; }
.filters-reset {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filters-reset:hover { color: var(--brand); }

.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14.5px;
  cursor: pointer;
}
.check input {
  width: 18px; height: 18px;
  margin: 0;
  accent-color: var(--brand);
  flex: none;
}
.check span { display: flex; justify-content: space-between; width: 100%; gap: 8px; }
.check em { font-style: normal; color: var(--muted); font-size: 13px; }

.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.size-chip:hover { border-color: var(--brand); color: var(--brand); }
.size-chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.price-range { display: flex; align-items: center; gap: 8px; }
.price-range .input { min-height: 42px; font-size: 14px; }
.price-range span { color: var(--muted); }

.filters-help {
  margin-top: 14px;
  padding: 14px;
  background: #f8f2e9;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.filters-help a { font-weight: 600; }

.filters-foot { display: none; }

.filters-close { display: none; }

.catalog-main { min-width: 0; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-count { font-size: 14px; color: var(--muted); }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.toolbar label { font-size: 13px; color: var(--muted); }
.toolbar .input { min-height: 42px; padding-top: 0; padding-bottom: 0; min-width: 190px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 13px;
}
.chip button {
  border: 0;
  background: rgba(29, 85, 83, .12);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  cursor: pointer;
  color: inherit;
  padding: 0;
}
.chip button:hover { background: rgba(29, 85, 83, .24); }

.filters-toggle { display: none; }

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- Карточка товара ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4ede3;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.card:hover .card-media img { transform: scale(1.03); }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.badge-accent { background: var(--accent); color: var(--accent-ink); }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }

.card-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--brand); }

.card-specs {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}
.card-specs li { display: inline; }
.card-specs li + li::before {
  content: "\00a0· ";
  color: #a6b1ae;
}

.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--success); margin-top: 2px; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.stock-out { color: var(--muted); }

.card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand);
  flex: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.card:hover .card-link { background: var(--brand); border-color: var(--brand); color: #fff; }

.load-more { display: flex; justify-content: center; margin-top: 32px; }
.is-hidden { display: none !important; }

.empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}

/* ==========================================================================
   Страница товара
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  gap: 46px;
  padding: 18px 0 48px;
  align-items: start;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-main img { width: 86%; height: 86%; object-fit: contain; }
.gallery-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumb {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  cursor: pointer;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.buybox { position: sticky; top: 96px; }
.buybox h1 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--brand);
  margin-bottom: 10px;
}
.buybox-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink-soft);
}

.buybox-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.buybox-price strong { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.buybox-price span { font-size: 13px; color: var(--muted); }

.size-picker {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}
.size-picker .field { margin-bottom: 10px; }
.size-picker-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.size-picker .stock { margin-top: 2px; }
.size-picker-note a { text-decoration: underline; text-underline-offset: 3px; }

.buybox-actions { display: grid; gap: 10px; margin-bottom: 18px; }
.buybox-actions .btn-primary { min-height: 52px; font-size: 16px; }
.buybox-actions .btn { width: 100%; }

.buybox-facts { display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.buybox-facts li { display: flex; gap: 9px; align-items: flex-start; }
.buybox-facts svg { flex: none; color: var(--brand); margin-top: 2px; }

.product-section { border-top: 1px solid var(--line); padding: 40px 0; }
.product-section h2 { margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: auto;
}
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  background: #f7f0e6;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-soft);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f0e8dc;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #fbf6ee; }
tbody tr[aria-selected="true"] { background: #f3ece0; }
tbody tr[aria-selected="true"] td { color: var(--brand-700); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-action {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(29, 85, 83, .35);
  text-underline-offset: 3px;
}
.table-action:hover { text-decoration-color: currentColor; }
tr[aria-selected="true"] .table-action { text-decoration-color: currentColor; }
.table-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.scroll-hint { display: none; }

.matrix { font-size: 12.5px; }
.matrix th, .matrix td { padding: 8px 10px; }
.matrix th:first-child,
.matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  font-weight: 600;
  border-right: 1px solid var(--line);
}
.matrix thead th:first-child { z-index: 3; background: #f7f0e6; }
.matrix tbody tr:hover td:first-child { background: #fbf6ee; }
.matrix td { color: var(--ink-soft); }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec-row dt { color: var(--muted); }
.spec-row dd { text-align: right; color: var(--ink); font-weight: 500; }

.prose { max-width: 72ch; color: var(--ink-soft); font-size: 15px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 12px; display: grid; gap: 8px; }
.prose ul li { display: flex; gap: 10px; }
.prose ul li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.mount-scheme {
  margin-top: 22px;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.mount-scheme svg { width: 100%; height: auto; }

.similar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ==========================================================================
   Модальное окно заявки
   ========================================================================== */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 20, .5);
  animation: fade-in .15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: pop-in .18s ease;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
@keyframes pop-in { from { transform: translateY(8px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f5f4;
  cursor: pointer;
  color: var(--ink-soft);
}
.modal-close:hover { background: #e8ebe9; }

.modal-panel h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--brand);
  margin-bottom: 6px;
}
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.modal-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.modal-summary strong { font-weight: 600; }
.modal-summary span { color: var(--muted); }

.modal form { display: grid; gap: 12px; }
.modal .legal { font-size: 12px; line-height: 1.5; color: var(--muted); }
.modal .legal a { text-decoration: underline; text-underline-offset: 2px; }

.form-success { text-align: center; padding: 22px 6px 8px; }
.form-success .ok {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-100);
  color: var(--brand);
}
.form-success h2 { margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 14px; }

/* ---------- Заметка макета ---------- */

.mock-note {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  background: rgba(16, 32, 31, .92);
  color: rgba(255, 255, 255, .8);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: var(--shadow);
}
.mock-note b { color: #fff; font-weight: 600; }

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1120px) {
  .header-phone span { display: none; }
  .header-actions .btn { display: none; }
  .header-top { gap: 18px; }
  .nav { gap: 20px; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 40px 0 48px; }
  .hero .lead { max-width: 60ch; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0;
    z-index: 95;
    border-radius: 0;
    overflow-y: auto;
    padding: 0 20px 24px;
    display: none;
  }
  .filters.is-open { display: block; }
  .filters-head { position: sticky; top: 0; background: #fff; z-index: 2; }
  .filters-close { display: grid; }
  .filters-head h2 { flex: 1; }
  .filters-toggle { display: inline-flex; }
  .filters-foot {
    display: block;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 14px 0 0;
    margin-top: 18px;
    border-top: 1px solid var(--line);
  }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .buybox { position: static; }
  .cta { grid-template-columns: 1fr; gap: 26px; padding: 32px 26px; }
  .page-head-row { align-items: stretch; }
  .size-strip { width: 100%; }
}

@media (max-width: 860px) {
  .topbar-links { display: none; }
  .topbar-inner { padding: 6px 0; }
  .header-top { flex-wrap: wrap; padding: 12px 0; }
  .search { display: none; }
  .mobile-search { display: block; }
  .burger, .header-top .header-phone-mobile { display: grid; }
  .header-actions { gap: 10px; }
  .header-phone { display: none; }
  .nav { display: none; }
  .header-nav { display: none; }
  .header-top { justify-content: space-between; }
  .logo img { height: 42px; }

  .section { padding: 48px 0; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .specs-grid { grid-template-columns: 1fr; }
  .similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), 100% - 32px); }
  body { font-size: 15.5px; }
  .tiles { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; gap: 14px; }
  .similar { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head .btn-link { order: 3; }

  .tile { flex-direction: row; }
  .tile-media { width: 38%; flex: none; aspect-ratio: 1; }
  .tile-body { flex: 1; padding: 12px 14px; }
  .tile-arrow { display: none; }
  .tile-count { white-space: nowrap; font-size: 12.5px; }

  .hero-trust { display: none; }
  .hero-actions .btn-ghost { display: none; }

  .table-wrap { max-height: none; }
  .size-table th:nth-child(3),
  .size-table td:nth-child(3) { display: none; }
  .scroll-hint { display: block; }

  /* горизонтальная карточка на телефоне */
  .card { flex-direction: row; }
  .card-media { width: 42%; flex: none; aspect-ratio: 1; }
  .card-body { padding: 12px 14px; }
  .card-title { font-size: 14.5px; }
  .card-specs { font-size: 12px; margin-bottom: 8px; }
  .card-foot { flex-wrap: wrap; }
  .price { font-size: 16.5px; }
  .card-link { display: none; }

  .hero { padding: 28px 0 38px; }
  .hero .eyebrow { display: none; }
  .finder-sub { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 8px 16px; font-size: 13px; }
  .finder { padding: 20px 16px; }
  .finder-row { grid-template-columns: 1fr 1fr; }
  .finder-x { display: none; }
  .finder .field > label { white-space: nowrap; }

  .page-head { padding: 16px 0 20px; }
  .page-head h1 { font-size: 26px; }
  .size-strip-row .input { width: 74px; }
  .size-strip-row { flex-wrap: wrap; }

  .toolbar-right { width: 100%; margin-left: 0; }
  .toolbar .input { flex: 1; }

  .thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .buybox-price strong { font-size: 26px; }

  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { margin-top: 48px; }
  .cta { border-radius: 16px; }
  .cta-form { padding: 18px; }

  .modal { padding: 0; align-items: end; }
  .modal-panel {
    width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 24px 20px 28px;
    max-height: 92vh;
  }
  .table-wrap { max-height: 380px; }
  thead th, tbody td { padding-left: 12px; padding-right: 12px; }
  .mock-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .mock-note, .buybox-actions { display: none; }
}
