/* Каталог — редакторский вид темы Calafate (Karla, full-bleed грид, hover-оверлей «Classic») */

:root {
  --text: #111;
  --muted: #8a8a8a;
  --accent: #9a603f;
  --accent-ink: #102238;
  --line: #e9e8ec;
  --bg: #fbfbfd;
  --panel: #fff;
  --soft: #f6f4f8;
  --overlay: rgba(20, 20, 20, .72);
  --maxw: 1500px;
  --gap: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Karla, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbfbfd 0%, #fff 280px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.poppins { font-family: Karla, sans-serif; }
.muted { color: var(--muted); }
a { color: inherit; text-decoration: none; }

.wrapper {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 600px) { .wrapper { padding: 0 18px; } }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    radial-gradient(circle at 16% 0%, rgba(154, 96, 63, .12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(250,247,255,.96) 56%, rgba(247,247,248,.98) 100%);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(154, 96, 63, .10);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background:
    radial-gradient(circle at 18% 0%, rgba(154, 96, 63, .18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.86) 0%, rgba(250,247,255,.84) 54%, rgba(247,247,248,.88) 100%);
  box-shadow: 0 12px 34px -18px rgba(16, 34, 56, .34), 0 8px 28px -18px rgba(0, 0, 0, .22);
}
.header-row {
  display: flex;
  align-items: center;
  height: 92px;
  gap: 28px;
}
.header-left { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
}
.site-logo img {
  width: 188px;
  height: auto;
  display: block;
}
@media (max-width: 820px) { .site-logo img { width: 158px; } }
@media (max-width: 600px) { .site-logo img { width: 140px; } }

/* кнопка категорий */
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6e6e6;
  background: rgba(255, 255, 255, .92);
  padding: 11px 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 8px 22px -18px rgba(0, 0, 0, .55);
}
.cat-btn:hover,
body.cat-open .cat-btn {
  border-color: rgba(154, 96, 63, .42);
  background: rgba(154, 96, 63, .08);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px -18px rgba(16, 34, 56, .55);
}
.cat-btn:active { transform: translateY(1px); }
.cat-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 19px; }
.cat-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .2s; }
.cat-btn-text { font-weight: 700; }
body.cat-open .cat-bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.cat-open .cat-bars span:nth-child(2) { opacity: 0; }
body.cat-open .cat-bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 0;
  border: 0 solid rgba(154, 96, 63, .28);
  background: rgba(255, 255, 255, .86);
  color: var(--accent-ink);
  padding: 12px 0;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 10px 26px -20px rgba(16, 34, 56, .7);
  transition: opacity .2s, visibility .2s, transform .2s, background .2s, border-color .2s, max-width .2s, padding .2s, gap .2s;
}
.site-header.scrolled .header-filter-btn {
  gap: 9px;
  max-width: 160px;
  border-width: 1px;
  padding: 12px 16px;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.header-filter-btn svg { flex: 0 0 auto; }
.header-filter-btn:hover,
.header-filter-btn[aria-expanded="true"] {
  border-color: rgba(154, 96, 63, .48);
  background: rgba(154, 96, 63, .10);
}

/* большой поиск по центру */
.header-search {
  flex: 1 1 auto;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.search-ic { position: absolute; left: 20px; color: var(--muted); pointer-events: none; transition: color .2s; }
.header-search:focus-within .search-ic { color: var(--text); }
#search {
  width: 100%;
  height: 54px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 0 22px 0 52px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(154, 96, 63, .10);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
#search:hover { box-shadow: 0 0 0 3px rgba(154, 96, 63, .16); }
#search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(154, 96, 63, .24); }
#search::placeholder { color: #9a9a9a; }
.header-search .search-ic { color: var(--accent-ink); }

/* правое меню */
.header-nav { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 28px; }
.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  padding: 8px 2px;
  transition: color .2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--accent-ink); }
.header-nav .nav-icon { display: none; flex: 0 0 auto; }
.header-fav,
.header-fav-clear {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .1s;
}
.header-fav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
}
.header-fav span { color: #b8b8b8; }
.header-fav em {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
}
.header-fav em[hidden],
.header-fav-clear[hidden] { display: none; }
.header-fav-clear {
  width: 28px;
  height: 28px;
  margin-left: -18px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.header-fav:hover,
.header-fav.active {
  border-color: rgba(154, 96, 63, .45);
  background: rgba(154, 96, 63, .08);
}
.header-fav:hover span,
.header-fav.active span { color: var(--accent); }
.header-fav-clear:hover { color: var(--text); transform: scale(1.04); }
.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}

/* ── Слайд-панель категорий ─────────────────────────── */
.cat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  z-index: 60;
}
.cat-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 360px;
  max-width: 86vw;
  background: #fff;
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 50px rgba(0, 0, 0, .14);
}
body.cat-open .cat-panel { transform: none; }
.cat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cat-panel-title { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.cat-close { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; transition: color .2s; }
.cat-close:hover { color: var(--text); }
.cat-list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; }
.cat-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: none;
  padding: 13px 24px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.cat-list button:hover { background: #f6f6f6; }
.cat-list button.active { font-weight: 700; }
.cat-list .cat-name { transition: box-shadow .2s; }
.cat-list button.active .cat-name { box-shadow: inset 0 -2px var(--accent); }
.cat-num { color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .header-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .header-nav { gap: 10px; }
  .header-nav a[data-nav="contacts"] {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--muted);
    box-shadow: 0 8px 22px -18px rgba(0, 0, 0, .55);
  }
  .header-nav a[data-nav="contacts"]:hover,
  .header-nav a[data-nav="contacts"].active {
    border-color: rgba(154, 96, 63, .42);
    background: rgba(154, 96, 63, .08);
    color: var(--accent-ink);
  }
  .header-nav a[data-nav="contacts"]::after { display: none; }
  .header-nav a[data-nav="contacts"] .nav-label { display: none; }
  .header-nav a[data-nav="contacts"] .nav-icon { display: block; }
}
@media (max-width: 600px) {
  .cat-btn { width: 42px; height: 42px; justify-content: center; padding: 0; }
  .cat-btn-text { display: none; }
}
@media (max-width: 460px) {
  .header-row { gap: 10px; }
  .header-left { gap: 10px; }
  .cat-btn { width: 42px; height: 42px; justify-content: center; padding: 0; }
  .cat-btn-text { display: none; }
  .site-logo img { width: 130px; }
  .site-header.scrolled .header-filter-btn {
    width: 42px;
    max-width: 42px;
    height: 42px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 12px;
  }
  .site-header.scrolled .header-filter-btn span { display: none; }
}

/* ── Intro ──────────────────────────────────────────── */
.catalog-hero {
  position: relative;
  display: block;
  margin: 20px 0 12px;
  padding: 15px 18px;
  border: 1px solid rgba(17, 17, 17, .07);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 34px -32px rgba(17, 17, 17, .46);
  overflow: hidden;
}
.catalog-hero[hidden] { display: none; }
.catalog-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(24px, 2.35vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--text);
}
.catalog-hero p {
  display: none;
}
@media (max-width: 720px) { .catalog-hero h1 { font-size: 24px; } }

.catalog-lead {
  max-width: 820px;
  margin: -8px 0 22px;
}
.catalog-lead p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #555;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.quick-cats:empty { display: none; }
.quick-cats button {
  border: 1px solid #dfdde4;
  background: rgba(255, 255, 255, .82);
  color: #2a2a2a;
  border-radius: 10px;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.quick-cats button:hover {
  border-color: rgba(154, 96, 63, .34);
  background: #fff;
  box-shadow: 0 8px 18px -18px rgba(16, 34, 56, .45);
}
.quick-cats button.active {
  border-color: var(--accent);
  background: rgba(154, 96, 63, .07);
  color: var(--accent-ink);
}

.category-banner-copy { position: relative; z-index: 1; }
.category-banner-kicker {
  display: none;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(154, 96, 63, .10);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.category-banner h2 {
  max-width: 780px;
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -1.8px;
  color: var(--text);
}
.category-banner p {
  max-width: 680px;
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}
.category-banner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.category-banner-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(17, 17, 17, .07);
  border-radius: 999px;
  background: rgba(246, 244, 248, .74);
  color: #666;
  font-size: 12px;
  line-height: 1;
}
.category-banner-stats strong {
  color: var(--text);
  font-size: 13px;
}
.category-banner-glow {
  display: none;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}
.trust-strip div {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-height: 52px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(17, 17, 17, .07);
  border-radius: 8px;
  overflow: hidden;
}
.trust-strip div::before {
  content: attr(data-icon);
  position: static;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(154, 96, 63, .08);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.trust-strip strong {
  display: block;
  grid-column: 2;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 3px;
}
.trust-strip span {
  display: block;
  grid-column: 2;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.trust-strip div:hover {
  border-color: rgba(154, 96, 63, .22);
  background: #fff;
}
.trust-strip div:nth-child(1)::before { content: "WB"; }
.trust-strip div:nth-child(2)::before { content: "₽"; font-size: 15px; }
.trust-strip div:nth-child(3)::before { content: "→"; font-size: 16px; }
.trust-strip div:nth-child(4)::before { content: "↺"; font-size: 15px; }
@media (max-width: 820px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .catalog-hero {
    margin: 12px 0 10px;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .catalog-hero h1 {
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: 0;
  }
  .quick-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .quick-cats::-webkit-scrollbar { display: none; }
  .quick-cats button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .category-banner-stats {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 9px -18px 0;
    padding: 0 18px 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-banner-stats::-webkit-scrollbar { display: none; }
  .category-banner-stats span { flex: 0 0 auto; }
  .trust-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-strip div {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 0;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .trust-strip div::before {
    width: 22px;
    height: 22px;
  }
  .trust-strip strong { font-size: 12px; }
  .trust-strip span { display: none; }
}

/* ── Тулбар (фильтры-кнопка / счётчик / сортировка) ──── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.result-count { font-size: 14px; letter-spacing: .3px; }
.toolbar #sort {
  margin-left: auto;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 11px 36px 11px 14px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none;
  cursor: pointer; outline: none; transition: border-color .2s;
}
.toolbar #sort:hover { border-color: #c2c2c2; }
.toolbar #sort:focus { border-color: var(--text); }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}
.active-filters[hidden],
.active-filters:empty { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(154, 96, 63, .28);
  background: rgba(154, 96, 63, .08);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s;
}
.filter-chip:hover {
  background: rgba(154, 96, 63, .14);
  border-color: rgba(154, 96, 63, .48);
}
.filter-chip:active { transform: translateY(1px); }
.filter-chip span {
  font-size: 16px;
  line-height: 1;
}

/* кнопка «Фильтры» — всегда видна, открывает панель */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  padding: 11px 18px;
  font: inherit; font-size: 14px; font-weight: 700;
  color: var(--text); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.filter-toggle:hover { border-color: var(--text); box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); }
.filter-toggle svg { color: var(--muted); }

.discount-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.discount-toggle:hover { border-color: var(--text); box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); }
.discount-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 480px) {
  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .filter-toggle,
  .discount-toggle {
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
  }
  .result-count {
    align-self: center;
    font-size: 13px;
  }
  .toolbar #sort {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 10px 34px 10px 12px;
    border-radius: 10px;
    font-size: 14px;
  }
}

.catalog-main { padding-bottom: 80px; }

/* ── Панель фильтров (drawer, выезжает по кнопке) ────── */
.filter-rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 380px; max-width: 90vw;
  background: #fff;
  z-index: 71;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 60px rgba(0, 0, 0, .16);
}
body.filters-open .filter-rail { transform: none; }

.filter-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px 18px;
  flex: 0 0 auto;
}
.filter-rail-head > span { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.filter-rail-close {
  border: 0; background: #f2f2f2; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.filter-rail-close:hover { background: #e7e7e7; }

.filter-rail-body { flex: 1; overflow-y: auto; padding: 4px 22px 10px; }

/* округлые «карточки» секций */
.filter-group {
  background: #f7f7f8;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.filter-group[hidden] { display: none; }
.filter-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
}
.filter-options { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.filter-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background .15s;
}
.filter-opt:hover { background: #ededee; }
.filter-opt input {
  width: 19px; height: 19px;
  accent-color: var(--text);
  cursor: pointer; flex: 0 0 auto;
}
.filter-opt-name { flex: 1; text-transform: capitalize; }
.filter-opt-num { color: var(--muted); font-size: 13px; }
.filter-empty { font-size: 13px; padding: 4px 0; }

.filter-select {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--text);
  padding: 12px 38px 12px 14px;
  border: 1px solid #e0e0e2;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none;
  cursor: pointer; outline: none; transition: border-color .2s;
}
.filter-select:hover { border-color: #c2c2c2; }
.filter-select:focus { border-color: var(--text); }

.price-range { display: flex; align-items: center; gap: 10px; }
.price-range input {
  width: 100%;
  font: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #e0e0e2;
  border-radius: 12px;
  background: #fff;
  outline: none; transition: border-color .2s;
  -moz-appearance: textfield;
}
.price-range input::-webkit-outer-spin-button,
.price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range input:focus { border-color: var(--text); }
.price-range span { color: var(--muted); flex: 0 0 auto; }

/* футер панели: «Показать» + «Сбросить всё» */
.filter-rail-foot {
  flex: 0 0 auto;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-apply {
  border: 0; cursor: pointer;
  background: var(--text); color: #fff;
  padding: 15px 18px; border-radius: 14px;
  font: inherit; font-size: 15px; font-weight: 700;
  transition: background .2s;
}
.btn-apply:hover { background: var(--accent); color: #fff; }
.btn-reset {
  border: 0; background: none; cursor: pointer;
  padding: 6px; font: inherit; font-size: 14px; color: var(--muted);
  transition: color .2s;
}
.btn-reset:hover { color: var(--text); }

/* затемнение под панелью */
.filters-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .42);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 70;
}
body.filters-open .filters-overlay { opacity: 1; visibility: visible; }

/* ── Grid ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}
@media (max-width: 1380px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px)  { .grid { grid-template-columns: 1fr; } }

/* ── Card ───────────────────────────────────────────── */
.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
}
.entry.in { opacity: 1; transform: none; }
.entry-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #b8b8b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .65);
  transition: transform .15s, color .2s, background .2s;
}
.entry-fav:hover { transform: scale(1.06); color: var(--accent-ink); }
.entry-fav.active,
.entry-fav[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.entry-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border-radius: 7px;
  aspect-ratio: 4 / 5;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .045);
  transition: box-shadow .2s ease;
}
.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .5s ease;
}
.entry-thumb img.loaded { opacity: 1; }
.entry:hover .entry-thumb img { transform: scale(1.06); }
.entry:hover .entry-thumb { box-shadow: inset 0 0 0 1px rgba(154, 96, 63, .16); }

.entry-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}
.entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .55);
}
.entry-badge.sale {
  background: var(--accent);
  color: #fff;
}
.entry-badge.hit {
  background: #fff;
  color: var(--accent-ink);
}
.entry-badge.wb {
  background: rgba(17, 17, 17, .9);
  color: #fff;
}

/* оверлей в стиле Calafate «Classic»: тёмный, по центру, появляется на ховере */
.entry-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--overlay);
  opacity: 0;
  transition: opacity .35s cubic-bezier(.39,.575,.565,1);
}
.entry:hover .entry-overlay { opacity: 1; }

.entry-overlay-inner {
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  transition: transform .4s cubic-bezier(.39,.575,.565,1), opacity .5s ease;
  color: #fff;
  max-width: 90%;
}
.entry:hover .entry-overlay-inner { transform: none; opacity: 1; }

.entry-cat {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}
/* заголовок и счётчик в оверлее (только визуально) */
.entry-otitle {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-count {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.4);
  padding: 4px 10px;
  border-radius: 999px;
}

/* всегда видимый низ карточки: название, размер, цена, кнопка */
.entry-foot {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 158px;
  padding: 14px 2px 4px;
}
.entry-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  min-height: 36px;
  margin-bottom: 8px;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-name:hover { color: var(--accent); }

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.entry-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #e5e5e7;
  border-radius: 999px;
  background: #f7f7f8;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.entry-tag-main {
  border-color: rgba(154, 96, 63, .34);
  background: rgba(154, 96, 63, .09);
  color: var(--accent-ink);
}
.entry-color {
  position: relative;
  min-height: 17px;
  margin: 0 0 5px;
  padding-left: 13px;
  color: #686868;
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-color::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.entry-article {
  margin: 0 0 10px;
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.entry-meta {
  font-size: 12.5px;
  line-height: 1.35;
  text-transform: capitalize;
  color: var(--muted);
  min-height: 17px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.entry-price .now { font-size: 18px; font-weight: 700; color: var(--text); }
.entry-price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

.entry-buy {
  display: block;
  margin-top: auto;
  text-align: center;
  border: 1px solid #1f1f1f;
  background: #1f1f1f;
  border-radius: 6px;
  color: #fff;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background .2s, color .2s, border-color .2s;
}
.entry-buy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.entry-buy:active {
  background: #8b20df;
  border-color: #8b20df;
  color: #fff;
}

@media (max-width: 520px) {
  .entry-foot {
    min-height: 150px;
    padding: 10px 1px 3px;
  }
  .entry-name {
    font-size: 12.5px;
    line-height: 1.25;
    min-height: 32px;
    margin-bottom: 6px;
  }
  .entry-tags {
    gap: 4px;
    margin-bottom: 6px;
  }
  .entry-tag {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .entry-color {
    padding-left: 11px;
    font-size: 11px;
    margin-bottom: 4px;
  }
  .entry-article {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .entry-price {
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  .entry-price .now { font-size: 15px; }
  .entry-price .old { font-size: 11px; }
  .entry-buy {
    padding: 9px 8px;
    font-size: 10px;
    letter-spacing: .9px;
  }
}

/* ── Lazy gallery modal ─────────────────────────────── */
body.gallery-open { overflow: hidden; }
.gallery-modal[hidden] { display: none; }
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}
.gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 94vh;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 320px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 16px 20px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}
.gallery-main {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform .24s ease, box-shadow .24s ease;
}
.gallery-main.zoomed {
  transform: scale(1.55);
  cursor: zoom-out;
  z-index: 5;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.gallery-info {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  align-self: start;
  padding: 8px 8px 0 0;
}
.gallery-info h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}
.gallery-info p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.gallery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  margin-top: 14px;
}
.gallery-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .7);
  transition: background .2s, transform .1s, box-shadow .2s;
}
.gallery-buy:hover { background: var(--accent); box-shadow: 0 14px 28px -18px rgba(16, 34, 56, .65); }
.gallery-buy:active { transform: translateY(1px); }
.gallery-share {
  min-height: auto;
  width: max-content;
  justify-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 6px;
  cursor: pointer;
  transition: color .2s, opacity .2s;
}
.gallery-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 46px;
  border: 1px solid #e3e3e3;
  border-radius: 50%;
  background: #fff;
  color: #b8b8b8;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.gallery-share {
  grid-column: 1 / -1;
}
.gallery-fav:hover {
  border-color: rgba(154, 96, 63, .45);
  background: rgba(154, 96, 63, .07);
  color: var(--accent-ink);
}
.gallery-share:hover {
  color: var(--text);
  opacity: .82;
}
.gallery-fav.active,
.gallery-fav[aria-pressed="true"] {
  border-color: rgba(154, 96, 63, .45);
  background: var(--accent);
  color: #fff;
}
.gallery-specs {
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, .07);
  border-radius: 14px;
  background: rgba(246, 244, 248, .72);
}
.gallery-specs h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gallery-spec {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(17, 17, 17, .06);
  font-size: 12px;
  line-height: 1.25;
}
.gallery-spec:last-child { border-bottom: 0; }
.gallery-spec span {
  color: var(--muted);
}
.gallery-spec strong {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.gallery-thumbs {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 72vh;
  padding-right: 2px;
}
.gallery-thumb {
  flex: 0 0 68px;
  width: 58px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #f4f4f4;
  cursor: pointer;
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-note {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  margin: -2px 0 0;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.gallery-related {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  margin-top: 10px;
  padding: 13px 14px 14px;
  border: 1px solid #ededf0;
  border-radius: 16px;
  background: rgba(246, 244, 248, .78);
}
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}
.related-head span {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.related-head small {
  color: #6f6f76;
  font-size: 10.5px;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.related-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
  padding: 6px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 96, 63, .42);
  background: #fff;
  box-shadow: 0 14px 30px -24px rgba(0, 0, 0, .58);
}
.related-card img {
  width: 100%;
  aspect-ratio: 1 / .92;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #f4f4f4;
  margin-bottom: 6px;
}
.related-meta,
.related-card strong {
  display: block;
}
.related-meta {
  margin-top: 0;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-card strong {
  margin-top: 5px;
  color: var(--accent-ink);
  font-size: 12px;
}
.gallery-close,
.gallery-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.gallery-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.gallery-nav {
  top: 50%;
  width: 46px;
  height: 56px;
  margin-top: -28px;
  border-radius: 999px;
  font-size: 38px;
  line-height: 1;
}
.gallery-nav.prev { left: 112px; }
.gallery-nav.next { right: 358px; }
.gallery-nav:hover,
.gallery-close:hover { background: #fff; color: var(--accent-ink); }

@media (max-width: 820px) {
  .gallery-modal {
    align-items: stretch;
    padding: 8px;
  }
  .gallery-dialog {
    width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-main,
  .gallery-info,
  .gallery-thumbs,
  .gallery-note,
  .gallery-related {
    min-width: 0;
    width: 100%;
    flex: 0 0 auto;
  }
  .gallery-main {
    order: 1;
    height: auto;
    max-height: min(50dvh, 430px);
    min-height: 220px;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
  }
  .gallery-main.zoomed {
    transform: none;
    cursor: zoom-in;
    box-shadow: none;
  }
  .gallery-info {
    order: 3;
    padding: 0;
    overflow: visible;
  }
  .gallery-info h3 { font-size: 18px; margin-bottom: 6px; }
  .gallery-info p { font-size: 12.5px; margin-bottom: 8px; }
  .gallery-specs { margin-top: 0; padding: 10px 12px; border-radius: 12px; }
  .gallery-spec {
    grid-template-columns: minmax(78px, 34%) minmax(0, 1fr);
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.25;
    padding: 5px 0;
    min-width: 0;
  }
  .gallery-spec span,
  .gallery-spec strong {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .gallery-actions {
    margin-top: 12px;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) 46px;
  }
  .gallery-buy {
    min-width: 0;
    min-height: 46px;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: .8px;
  }
  .gallery-fav {
    width: 46px;
    min-height: 46px;
  }
  .gallery-share {
    width: 100%;
    justify-self: stretch;
    min-height: 38px;
    border: 1px solid rgba(154, 96, 63, .22);
    border-radius: 12px;
    background: rgba(154, 96, 63, .06);
  }
  .gallery-thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 2px;
  }
  .gallery-thumb { flex: 0 0 58px; width: 58px; height: 70px; }
  .gallery-note {
    order: 4;
    text-align: left;
  }
  .gallery-related {
    order: 5;
    margin-top: 8px;
    padding: 11px 12px 12px;
    border-radius: 14px;
  }
  .related-head { display: block; margin-bottom: 9px; }
  .related-head small { display: block; margin-top: 4px; }
  .related-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 12px 4px;
    -webkit-overflow-scrolling: touch;
  }
  .related-card { flex: 0 0 108px; border-radius: 12px; padding: 5px; }
  .related-name { font-size: 10.5px; min-height: 25px; }
  .gallery-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 27px;
  }
  .gallery-nav {
    top: 156px;
    width: 38px;
    height: 46px;
    font-size: 31px;
    margin-top: 0;
  }
  .gallery-nav.prev { left: 16px; }
  .gallery-nav.next { right: 16px; }
}

@media (max-width: 420px) {
  .gallery-main {
    max-height: 46dvh;
    min-height: 190px;
  }
  .gallery-info h3 { font-size: 17px; }
  .gallery-spec {
    grid-template-columns: minmax(72px, 32%) minmax(0, 1fr);
    font-size: 11px;
  }
  .gallery-nav { top: 132px; }
}

/* ── States / footer ────────────────────────────────── */
.empty, .status { text-align: center; padding: 60px 0; font-size: 16px; color: var(--muted); }
.empty-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fafafa;
}
.empty-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}
.empty-card p {
  margin: 0 0 18px;
  color: var(--muted);
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.empty-btn {
  border: 1px solid #dedede;
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.empty-btn:hover { border-color: var(--text); }
.empty-btn.primary {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.empty-btn.primary:hover {
  border-color: var(--accent);
  background: var(--accent);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 40px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Прелоадер ──────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #111;
  transition: opacity .4s ease;
}
#preloader.all-aboard { opacity: 0; }
#preloader span {
  font-size: 30px;
  line-height: 1;
  color: #fff;
  animation: blink .9s infinite both;
}
#preloader span:nth-child(2) { animation-delay: .3s; }
#preloader span:nth-child(3) { animation-delay: .6s; }
@keyframes blink { 0%,100% { opacity: .2 } 50% { opacity: 1 } }

/* ── Рамка-фрейм вокруг сайта ───────────────────────── */
.site-frame {
  position: fixed;
  inset: 16px;
  border: 1px solid rgba(0, 0, 0, .12);
  pointer-events: none;
  z-index: 50;
}
@media (max-width: 600px) { .site-frame { inset: 9px; } }

/* ── Появление страницы ─────────────────────────────── */
.page-fade {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
body.loaded .page-fade { opacity: 1; transform: none; }
html { scroll-behavior: smooth; }

/* ── Стрелка «наверх» ───────────────────────────────── */
.to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  z-index: 29;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.39,.575,.565,1), opacity .4s ease,
              visibility .4s linear, background .2s, color .2s;
}
.to-top.show { opacity: 1; transform: none; visibility: visible; }
.to-top:hover { background: var(--text); color: #fff; }
@media (max-width: 600px) { .to-top { right: 18px; bottom: 18px; } }

/* ── Страница контактов ─────────────────────────────── */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 90px;
}
@media (max-width: 880px) { .contacts { grid-template-columns: 1fr; gap: 36px; } }

.contact-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-block:first-child { border-top: 1px solid var(--line); }
.contact-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  transition: color .2s;
}
a.contact-value:hover { color: var(--accent); -webkit-text-stroke: .3px var(--text); }

.contacts-map {
  min-height: 420px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter .4s;
}
.contacts-map:hover iframe { filter: none; }

/* ── Reveal (статичные блоки) ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

