:root {
  --red: #a91e18;
  --red-dark: #7e130f;
  --red-soft: #f7e4df;
  --gold: #b87618;
  --gold-soft: #f6ead5;
  --blue: #183e72;
  --ink: #2a211b;
  --muted: #71685f;
  --cream: #fff8eb;
  --paper: #fffdf8;
  --line: #eadfce;
  --line-strong: #d9c4a7;
  --shadow: 0 14px 38px rgba(75, 42, 19, .11);
  --shadow-soft: 0 5px 20px rgba(75, 42, 19, .07);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(184, 118, 24, .05), transparent 32rem),
    #fbf7ef;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
body.menu-open,
body.filter-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.container { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
.serif { font-family: Georgia, "Times New Roman", serif; }

.topbar {
  background: #fff8ea;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top-items { display: flex; gap: 28px; align-items: center; }
.top-item { white-space: nowrap; }
.top-item b { color: var(--red); }

.main-header {
  background: rgba(255, 253, 248, .97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.header-row {
  min-height: 104px;
  display: grid;
  grid-template-columns: 275px 145px minmax(280px, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.logo img { width: 255px; display: block; }
.catalog-btn {
  height: 54px;
  border: 1px solid #8e1712;
  border-radius: 11px;
  background: linear-gradient(#b8251e, #9b1813);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(169, 30, 24, .2), inset 0 1px rgba(255, 255, 255, .25);
}
.catalog-btn:hover { background: linear-gradient(#a91e18, #85120e); }
.search {
  height: 54px;
  border: 1px solid #d9c9b4;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(75, 42, 19, .04);
}
.search:focus-within { border-color: #bd8e53; box-shadow: 0 0 0 3px rgba(184, 118, 24, .1); }
.search input { border: 0; outline: 0; flex: 1; padding: 0 18px; background: transparent; min-width: 0; }
.search button { border: 0; background: transparent; font-size: 24px; padding: 0 18px; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 21px; }
.header-action { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; }
.header-action:hover { color: var(--red); }
.action-icon { font-size: 26px; line-height: 1; }
.count {
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  min-width: 23px;
  height: 23px;
  padding-inline: 5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.mobile-toggle,
.mobile-cart { display: none; }

.category-nav { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 45; }
.category-nav .container { display: flex; align-items: stretch; justify-content: space-between; gap: 6px; }
.nav-item { position: relative; }
.nav-main {
  min-height: 49px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 10px;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.nav-main:hover,
.nav-item:hover .nav-main { color: var(--red); border-bottom-color: var(--red); }
.nav-symbol { color: var(--blue); font-size: 20px; }
.nav-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% - 1px);
  left: 0;
  width: 292px;
  padding: 0;
  overflow: visible;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  transition-delay: .22s;
}
.nav-item:nth-last-child(-n+2) .nav-dropdown { left: auto; right: 0; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: .14s;
}
.nav-flyout-head { padding: 15px 17px 13px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fff8ed); }
.nav-flyout-head > a { display: block; color: var(--red); font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.nav-flyout-head > a:hover { color: var(--red-dark); }
.nav-flyout-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.quick-nav-dropdown { width: 272px; }
.quick-nav-list { padding: 6px 0; }
.quick-nav-list > a {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px dashed #eadfce;
  font-size: 14px;
  transition: background .14s ease, color .14s ease, padding-left .14s ease;
}
.quick-nav-list > a:last-child { border-bottom: 0; }
.quick-nav-list > a:hover { padding-left: 20px; color: var(--red); background: #fff3e5; }
.quick-nav-list > a small { min-width: 22px; color: var(--muted); font-size: 11px; text-align: right; }
.quick-nav-list .quick-nav-all { color: var(--red); font-weight: 700; }
.nav-flyout-list { list-style: none; margin: 0; padding: 7px 0; }
.nav-flyout-branch { position: relative; }
.nav-child-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px dashed #eadfce;
  font-size: 14px;
  transition: background .14s ease, color .14s ease, padding-left .14s ease;
}
.nav-flyout-branch:last-child > .nav-child-link { border-bottom: 0; }
.nav-child-link b { color: #a78e73; font-size: 21px; font-weight: 400; line-height: 1; }
.nav-flyout-branch:hover > .nav-child-link,
.nav-flyout-branch:focus-within > .nav-child-link { padding-left: 20px; color: var(--red); background: #fff3e5; }
.nav-leaf-panel {
  position: absolute;
  z-index: 61;
  top: -1px;
  left: 100%;
  width: 278px;
  min-height: calc(100% + 2px);
  padding: 15px 17px 17px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
  box-shadow: 16px 18px 34px rgba(75, 42, 19, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(7px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  transition-delay: .18s;
}
.nav-item:nth-last-child(-n+2) .nav-leaf-panel {
  left: auto;
  right: 100%;
  border-radius: 12px 0 0 12px;
  box-shadow: -16px 18px 34px rgba(75, 42, 19, .14);
  transform: translateX(-7px);
}
.nav-flyout-branch:hover > .nav-leaf-panel,
.nav-flyout-branch:focus-within > .nav-leaf-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: .12s;
}
.nav-leaf-title { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nav-leaf-title small { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 700; }
.nav-leaf-title strong { display: block; margin-top: 2px; color: var(--red-dark); font-family: Georgia, serif; font-size: 21px; }
.nav-leaf-panel > a { display: block; padding: 9px 2px; border-bottom: 1px dashed #eadfce; font-size: 14px; }
.nav-leaf-panel > a:hover { color: var(--red); }
.nav-leaf-panel > a small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.nav-leaf-panel .nav-leaf-all { color: var(--red); font-weight: 700; }

.panel-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(24, 13, 8, .48);
  opacity: 0;
  pointer-events: none;
  transition: .22s;
}
.panel-overlay.open { opacity: 1; pointer-events: auto; }
.catalog-panel {
  position: fixed;
  z-index: 100;
  top: 56px;
  left: 50%;
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 88px);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  padding: 24px;
  transform: translate(-50%, -18px) scale(.98);
  opacity: 0;
  visibility: hidden;
  transition: .22s ease;
  overflow: auto;
}
.catalog-panel.open { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; }
.catalog-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.catalog-panel h2 { margin: 0; font-family: Georgia, serif; color: var(--red); font-size: 30px; }
.close-panel { border: 0; background: none; font-size: 32px; cursor: pointer; }
.catalog-mega.catalog-cascade {
  position: relative;
  display: block;
  height: 390px;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 1px), var(--line) calc(33.333% - 1px), var(--line) 33.333%, transparent 33.333%, transparent calc(66.666% - 1px), var(--line) calc(66.666% - 1px), var(--line) 66.666%, transparent 66.666%),
    #fffdf8;
}
.cascade-root-head,
.cascade-column-head { height: 66px; padding: 13px 17px 11px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fff8ed); }
.cascade-root-head { width: 33.333%; }
.cascade-root-head small,
.cascade-column-head small { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 700; }
.cascade-root-head strong,
.cascade-column-head strong { display: block; margin-top: 2px; color: var(--red-dark); font-family: Georgia, serif; font-size: 21px; line-height: 1.1; }
.cascade-root,
.mega-list { list-style: none; margin: 0; padding: 7px 0; }
.cascade-root { position: static; width: 33.333%; height: calc(100% - 66px); overflow-y: auto; }
.cascade-group,
.cascade-child { position: static; }
.mega-group-title,
.cascade-child-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 16px;
  border-bottom: 1px dashed #eadfce;
  font-family: Georgia, serif;
  font-size: 17px;
  color: var(--ink);
  transition: color .14s ease, background .14s ease, padding-left .14s ease;
}
.mega-group-title span { width: 25px; color: var(--blue); font-size: 21px; text-align: center; }
.mega-group-title em { font-style: normal; }
.mega-group-title b,
.cascade-child-link b { margin-left: auto; color: #a78e73; font-family: Arial, sans-serif; font-size: 21px; font-weight: 400; }
.cascade-group:hover > .mega-group-title,
.cascade-group:focus-within > .mega-group-title,
.cascade-child:hover > .cascade-child-link,
.cascade-child:focus-within > .cascade-child-link { padding-left: 20px; color: var(--red); background: #fff3e5; }
.cascade-second,
.cascade-third { position: absolute; top: 0; bottom: 0; width: 33.333%; display: none; background: #fffdf8; }
.cascade-second { left: 33.333%; }
.cascade-third { left: 100%; width: 100%; padding-bottom: 12px; overflow-y: auto; }
.cascade-group:first-child > .cascade-second,
.cascade-second .cascade-child:first-child > .cascade-third { display: block; }
.cascade-root:hover > .cascade-group:first-child:not(:hover) > .cascade-second,
.mega-list:hover > .cascade-child:first-child:not(:hover) > .cascade-third { display: none; }
.cascade-group:hover > .cascade-second,
.cascade-group:focus-within > .cascade-second,
.cascade-child:hover > .cascade-third,
.cascade-child:focus-within > .cascade-third { display: block; }
.cascade-second > .mega-list { max-height: calc(100% - 66px); overflow-y: auto; }
.cascade-child-link { font-family: Arial, sans-serif; font-size: 14px; }
.cascade-all-link { display: block; margin: 10px 16px 4px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--red); font-size: 13px; font-weight: 700; }
.mega-leaves { display: grid; padding: 0 16px; }
.mega-leaves a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed #eadfce; font-size: 14px; }
.mega-leaves a:hover { color: var(--red); }
.mega-leaves a small { color: var(--muted); font-size: 11px; white-space: nowrap; }

.hero { margin-top: 18px; }
.hero-card {
  position: relative;
  height: clamp(280px, 25vw, 360px);
  border: 1px solid #d9b67b;
  border-radius: 22px;
  overflow: hidden;
  background: #f2e6d3 var(--st-hero-desktop, url("../img/hero.jpg")) center / cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 5px rgba(255, 253, 248, .35);
  border-radius: inherit;
}
.hero-link { position: absolute; inset: 0; z-index: 1; }
.hero-mobile-copy { display: none; }
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.service { min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service-icon { font-size: 31px; color: var(--gold); }
.service strong { display: block; font-family: Georgia, serif; font-size: 17px; }
.service small { display: block; color: var(--muted); margin-top: 2px; }

.category-showcase { margin-top: 28px; }
.section-heading,
.panel-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-heading h2,
.panel-title h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: clamp(25px, 2.2vw, 34px); }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: var(--gold); font-size: 11px; }
.link-red { color: var(--red); font-size: 13px; font-weight: 700; white-space: nowrap; }
.link-red:hover { text-decoration: underline; }
.category-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-group-card {
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-rows: 112px 1fr;
}
.category-group-visual { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff7e8, #f2e3cc); }
.category-group-visual img { position: absolute; right: 8px; bottom: -8px; width: 145px; height: 145px; object-fit: contain; filter: drop-shadow(0 9px 10px rgba(67, 40, 20, .15)); }
.category-group-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(184, 118, 24, .18), transparent 48%); }
.category-group-name { position: absolute; left: 16px; top: 18px; z-index: 2; width: 55%; font-family: Georgia, serif; font-size: 22px; color: var(--red-dark); line-height: 1.1; }
.category-group-body { padding: 14px 16px 16px; }
.subcategory-list { display: grid; gap: 7px; }
.subcategory-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px dashed #e5d9ca; font-size: 14px; }
.subcategory-link:last-child { border-bottom: 0; }
.subcategory-link span:last-child { color: #a19383; font-size: 12px; }
.subcategory-link:hover { color: var(--red); }

.product-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-soft); }

/* Главная сохранена в исходной трёхколоночной структуре. */
.home-merch-grid {
  display: grid;
  grid-template-columns: minmax(350px, .92fr) minmax(480px, 1.22fr) minmax(370px, .96fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}
.home-merch-grid > .panel { min-width: 0; padding: 14px; }
.compact-title { align-items: center; margin-bottom: 10px; }
.compact-title h2 { font-size: clamp(23px, 1.85vw, 29px); line-height: 1.05; }
.compact-title .eyebrow { font-size: 9px; }
.popular-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.popular-category-card {
  min-width: 0;
  min-height: 137px;
  padding: 7px 5px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, #fffdf9, #fff8ed);
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.popular-category-card:hover { transform: translateY(-2px); border-color: #d3b17f; box-shadow: var(--shadow-soft); color: var(--red); }
.popular-category-image { width: 88px; height: 88px; display: grid; place-items: center; }
.popular-category-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(67,40,20,.1)); }
.popular-category-card strong { min-height: 30px; display: grid; place-items: center; font-family: Georgia, serif; font-size: 13px; line-height: 1.1; }
.home-product-row { display: grid; gap: 8px; }
.home-product-row-hits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-product-row-new { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-product-row .product-card { min-height: 284px; }
.home-product-row .product-img { aspect-ratio: 1 / .92; }
.home-product-row .product-img img { object-fit: contain; padding: 5px; }
.home-product-row .product-body { padding: 8px; }
.home-product-row .product-category { display: none; }
.home-product-row .product-title { min-height: 45px; font-size: 13px; line-height: 1.15; }
.home-product-row .rating { margin-top: 4px; font-size: 10px; white-space: nowrap; }
.home-product-row .product-bottom { padding-top: 5px; }
.home-product-row .price { font-size: 15px; }
.home-product-row .old-price { font-size: 10px; }
.home-product-row .cart-mini { width: 32px; height: 32px; border-radius: 7px; font-size: 13px; }
.product-panel { min-width: 0; }
.product-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d4b58e; }
.product-img { aspect-ratio: 1 / 1; background: #fffaf1; overflow: hidden; display: block; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-img img { transform: scale(1.035); }
.product-body { padding: 11px; display: flex; flex-direction: column; flex: 1; }
.product-category { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.product-title { font-family: Georgia, serif; font-size: 15px; line-height: 1.25; min-height: 38px; }
.product-title:hover { color: var(--red); }
.rating { font-size: 12px; color: #e77d00; margin-top: 7px; }
.rating span { color: #897d70; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; font-size: 17px; }
.old-price { font-size: 12px; color: #9a9187; text-decoration: line-through; }
.cart-mini { border: 0; background: var(--red); color: #fff; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; box-shadow: 0 4px 10px rgba(169, 30, 24, .18); }
.cart-mini:hover { background: var(--red-dark); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 20px; z-index: 2; font-weight: 700; }
.badge.gold { background: #b67817; }

.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px auto; }
.promo { min-height: 150px; border-radius: 16px; overflow: hidden; position: relative; color: #fff; padding: 22px 25px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-soft); }
.promo.exclusive { background: #102e58 var(--st-exclusive-bg, url("../img/exclusive.jpg")) right center / auto 100% no-repeat; }
.promo.wholesale { background: #8f170f var(--st-wholesale-bg, url("../img/wholesale.jpg")) right center / auto 100% no-repeat; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 18, 43, .97) 0, rgba(8, 18, 43, .83) 42%, transparent 80%); }
.promo.wholesale::after { background: linear-gradient(90deg, rgba(116, 12, 7, .97) 0, rgba(116, 12, 7, .83) 45%, transparent 82%); }
.promo > * { position: relative; z-index: 2; max-width: 58%; }
.promo h2 { font-family: Georgia, serif; font-size: 28px; margin: 0 0 5px; }
.promo p { margin: 0 0 12px; font-size: 14px; }
.promo a { width: fit-content; border: 1px solid rgba(255,255,255,.65); border-radius: 8px; padding: 8px 11px; font-size: 13px; }
.promo a:hover { background: #fff; color: var(--red-dark); }

.trust-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-soft); }
.trust { min-height: 78px; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 11px; border-right: 1px solid var(--line); }
.trust:last-child { border-right: 0; }
.trust-icon { color: var(--gold); font-size: 27px; }
.trust strong { display: block; font-family: Georgia, serif; font-size: 15px; }
.trust small { display: block; color: var(--muted); font-size: 11px; }

.page-head { padding: 25px 0 14px; }
.breadcrumbs { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.breadcrumbs a:hover { color: var(--red); }
.page-title { margin: 0; font-family: Georgia, serif; font-size: clamp(31px, 4vw, 46px); line-height: 1.1; }
.catalog-subcategories { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: thin; }
.catalog-subcategory {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}
.catalog-subcategory:hover,
.catalog-subcategory.active { color: #fff; background: var(--red); border-color: var(--red); }
.catalog-subcategory small { opacity: .72; }
.catalog-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 32px; }
.sidebar { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 16px; position: sticky; top: 172px; box-shadow: var(--shadow-soft); }
.sidebar-mobile-head { display: none; }
.filter-block { padding: 2px 0 17px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-block h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 18px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree > li { border-bottom: 1px solid #eee5d8; }
.tree > li:last-child { border-bottom: 0; }
.tree-row { display: flex; align-items: center; gap: 5px; }
.tree-row > a { flex: 1; display: block; padding: 10px 4px; font-weight: 700; }
.tree-toggle { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; color: var(--muted); transition: transform .2s; }
.tree li.open > .tree-row .tree-toggle { transform: rotate(180deg); }
.tree ul { display: none; padding: 0 0 8px 13px; }
.tree li.open > ul { display: block; }
.tree ul li { position: relative; }
.tree ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 1px; background: #c9b79e; }
.tree ul a { display: block; padding: 5px 4px 5px 13px; color: #554a41; font-size: 13px; }
.tree a:hover, .tree a.active { color: var(--red); }
.tree .tree-leaf-list { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0 0 8px 13px; }
.tree .tree-leaf-list a { padding: 3px 7px; border-radius: 999px; background: #f7efe4; font-size: 11px; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-fields input, .form-field input, .form-field select, .form-field textarea, .catalog-tools select {
  width: 100%; border: 1px solid #dacbb7; border-radius: 9px; background: #fff; outline: 0;
}
.price-fields input { height: 42px; padding: 0 10px; }
.check { display: block; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--red); }
.catalog-main { min-width: 0; }
.catalog-tools { min-height: 54px; padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-tools select { width: auto; min-width: 190px; height: 38px; padding: 0 9px; }
.catalog-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mobile-catalog-tools { display: none; }
.filter-overlay { display: none; }

.product-page { display: grid; grid-template-columns: minmax(330px, .85fr) 1.15fr; gap: 32px; margin-bottom: 20px; }
.product-gallery { background: #fff; border: 1px solid var(--line); border-radius: 16px; min-height: 520px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-soft); }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 10px 0; }
.product-info h1 { font-family: Georgia, serif; font-size: clamp(31px, 3.6vw, 48px); line-height: 1.08; margin: 12px 0; }
.product-price { color: var(--red); font-size: 30px; font-weight: 700; margin: 18px 0; }
.product-desc { font-size: 16px; color: #554b43; max-width: 760px; }
.product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; }
.product-meta div { padding: 10px 0; }
.buy-row { display: flex; gap: 12px; margin: 20px 0; }
.qty { display: inline-grid; grid-template-columns: 38px 48px 38px; height: 46px; border: 1px solid #d8c9b5; border-radius: 9px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: #f8efe3; cursor: pointer; }
.qty input { min-width: 0; width: 100%; border: 0; text-align: center; outline: 0; }
.primary-btn, .secondary-btn { border: 0; border-radius: 9px; cursor: pointer; font-weight: 700; }
.primary-btn { background: var(--red); color: #fff; padding: 13px 20px; }
.primary-btn:hover { background: var(--red-dark); }
.secondary-btn { background: #fff; border: 1px solid var(--line-strong); padding: 11px 14px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; color: var(--muted); font-size: 12px; }
.feature b { display: block; color: var(--ink); margin-bottom: 3px; }

.content-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-soft); margin-bottom: 18px; }
.content-card h2 { font-family: Georgia, serif; font-size: 29px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.lead { font-family: Georgia, serif; font-size: 24px; color: var(--red-dark); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf3; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: grid; gap: 6px; }
.form-field span { font-weight: 700; font-size: 13px; }
.form-field input, .form-field select { height: 46px; padding: 0 12px; }
.form-field textarea { min-height: 120px; padding: 12px; resize: vertical; }
.form-field.full { grid-column: 1 / -1; }
.empty { text-align: center; padding: 42px 20px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.cart-product { display: flex; align-items: center; gap: 12px; font-family: Georgia, serif; }
.cart-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.remove-btn { border: 0; background: transparent; color: var(--red); cursor: pointer; }
.cart-summary { margin: 16px 0 30px auto; max-width: 420px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 15px; font-size: 22px; font-weight: 700; }

.footer { margin-top: 36px; background: #321812; color: #f3e7d8; }
.footer > .container { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding: 40px 0; }
.footer-logo { width: 230px; filter: brightness(0) invert(1); opacity: .92; }
.footer h4 { color: #fff; font-family: Georgia, serif; font-size: 18px; margin: 0 0 12px; }
.footer a { display: block; color: #dccbbb; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer p { color: #cbb9a8; font-size: 14px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); color: #a99584; font-size: 12px; padding: 14px 0; }
.notice { position: fixed; right: 22px; bottom: 22px; z-index: 150; padding: 13px 17px; border-radius: 10px; background: #2d1b13; color: #fff; box-shadow: var(--shadow); transform: translateY(25px); opacity: 0; pointer-events: none; transition: .2s; }
.notice.show { transform: translateY(0); opacity: 1; }
.mobile-bottom-nav { display: none; }

@media (max-width: 1240px) {
  .header-row { grid-template-columns: 225px 125px minmax(220px, 1fr) auto; gap: 14px; }
  .logo img { width: 215px; }
  .header-actions { gap: 12px; }
  .header-action { font-size: 12px; }
  .category-nav .container { overflow-x: auto; justify-content: flex-start; }
  .nav-item { flex: 0 0 auto; }
  .category-groups { grid-template-columns: repeat(2, 1fr); }
  .home-merch-grid { grid-template-columns: 1fr 1fr; }
  .home-categories-panel { grid-column: 1 / -1; }
  .popular-category-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .popular-category-card { min-height: 124px; }
  .popular-category-image { width: 72px; height: 72px; }
  .product-sections { grid-template-columns: 1fr; }
  .catalog-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 28px, 900px); }
  .top-items:first-child .top-item:nth-child(n+2), .top-items:last-child .top-item:first-child { display: none; }
  .header-row { min-height: 88px; grid-template-columns: 190px 115px 1fr auto; }
  .logo img { width: 185px; }
  .header-action:not(:last-child) { display: none; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust { border-bottom: 1px solid var(--line); }
  .trust:nth-child(2n) { border-right: 0; }
  .trust:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .catalog-layout { grid-template-columns: 235px minmax(0, 1fr); }
  .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-page { grid-template-columns: 1fr 1fr; gap: 20px; }
  .product-gallery { min-height: 420px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 66px; }
  .container { width: min(100% - 20px, 720px); }
  .topbar .container { justify-content: center; min-height: 34px; }
  .top-items:last-child { display: none; }
  .top-item { font-size: 12px; }
  .main-header { top: 0; }
  .header-row {
    min-height: auto;
    padding: 11px 0 12px;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
  }
  .logo { justify-self: center; }
  .logo img { width: 190px; max-height: 64px; }
  .catalog-btn, .header-actions { display: none; }
  .mobile-toggle, .mobile-cart {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
  }
  .mobile-cart { position: relative; font-size: 20px; }
  .mobile-cart .count { position: absolute; top: -6px; right: -5px; }
  .search { grid-column: 1 / -1; grid-row: 2; height: 48px; margin-top: 4px; }
  .category-nav .container { gap: 7px; padding: 8px 0; }
  .nav-main { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fffaf3; font-family: Arial, sans-serif; font-size: 12px; }
  .nav-symbol { font-size: 16px; }
  .nav-dropdown { display: none; }
  .catalog-panel {
    top: 0;
    left: 0;
    width: min(92vw, 390px);
    height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0 18px 18px 0;
    padding: 18px;
    transform: translateX(-105%);
    opacity: 1;
    visibility: visible;
  }
  .catalog-panel.open { transform: translateX(0); }
  .catalog-panel h2 { font-size: 26px; }
  .catalog-mega.catalog-cascade { height: auto; min-height: 0; overflow: visible; border: 0; background: transparent; }
  .cascade-root-head { display: none; }
  .cascade-root { position: static; width: auto; padding: 0; overflow: visible; }
  .cascade-group { position: relative; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, #fff, #fffaf2); }
  .mega-group-title { min-height: 50px; padding: 10px 12px; border-bottom: 0; color: var(--red); font-size: 18px; }
  .mega-group-title b { display: none; }
  .cascade-second,
  .cascade-third { position: static; display: block !important; width: auto; padding: 0; background: transparent; }
  .cascade-column-head { display: none; }
  .cascade-second > .mega-list { max-height: none; padding: 0 12px 10px; overflow: visible; }
  .cascade-child { border-top: 1px dashed #e9dfd1; }
  .cascade-child-link { min-height: 42px; padding: 8px 0; border: 0; font-weight: 700; }
  .cascade-child-link b { display: none; }
  .cascade-all-link { display: none; }
  .mega-leaves { display: flex; flex-wrap: wrap; gap: 5px 7px; padding: 0 0 8px; }
  .mega-leaves a { display: inline-flex; padding: 4px 7px; border: 0; border-radius: 999px; background: #f7efe4; color: var(--muted); font-size: 11px; }
  .mega-leaves a small { display: none; }

  .hero { margin-top: 10px; }
  .hero-card {
    height: 470px;
    border-radius: 18px;
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 0 43%, rgba(255,253,248,.92) 59%, #fffdf8 72%),
      var(--st-hero-mobile, url("../img/hero-mobile.jpg")) center top / auto 290px no-repeat,
      #fffdf8;
  }
  .hero-card::after { box-shadow: inset 0 0 0 3px rgba(255,253,248,.35); }
  .hero-link { display: none; }
  .hero-mobile-copy { display: block; position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 24px; text-align: center; }
  .hero-kicker { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
  .hero-mobile-copy h1 { margin: 5px 0 8px; font-family: Georgia, serif; font-size: 34px; color: var(--red-dark); line-height: 1.02; }
  .hero-mobile-copy p { margin: 0 auto 17px; max-width: 420px; color: #50463e; font-size: 14px; }
  .hero-mobile-copy .primary-btn { display: inline-block; }
  .service-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; }
  .service { flex: 0 0 82%; min-height: 72px; justify-content: flex-start; border-right: 1px solid var(--line) !important; border-bottom: 0 !important; scroll-snap-align: start; }

  .category-showcase { margin-top: 24px; }
  .section-heading, .panel-title { align-items: flex-start; }
  .section-heading h2, .panel-title h2 { font-size: 27px; }
  .section-heading .link-red { display: none; }
  .category-groups { grid-template-columns: 1fr; gap: 10px; }
  .home-merch-grid { display: block; margin-top: 10px; }
  .home-merch-grid > .panel { margin-bottom: 10px; padding: 12px 10px; }
  .compact-title h2 { font-size: 25px; }
  .popular-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .popular-category-card { min-height: 112px; padding: 5px 3px 7px; }
  .popular-category-image { width: 66px; height: 66px; }
  .popular-category-card strong { min-height: 27px; font-size: 11px; }
  .home-product-row { display: flex; overflow-x: auto; gap: 9px; scroll-snap-type: x mandatory; padding-bottom: 3px; }
  .home-product-row .product-card { flex: 0 0 45%; min-height: 260px; scroll-snap-align: start; }
  .category-group-card { min-height: 0; grid-template-columns: 122px 1fr; grid-template-rows: 1fr; }
  .category-group-visual { min-height: 168px; }
  .category-group-visual img { width: 112px; height: 112px; right: 4px; bottom: 4px; }
  .category-group-name { top: 12px; left: 12px; width: 90%; font-size: 18px; }
  .category-group-body { padding: 12px; }
  .subcategory-list { gap: 5px; }
  .subcategory-link { font-size: 13px; padding-bottom: 5px; }

  .product-sections { display: block; margin-top: 12px; }
  .product-panel { margin-bottom: 12px; padding: 14px 10px; }
  .product-row { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .product-row .product-card { flex: 0 0 68%; scroll-snap-align: start; }
  .product-card .product-title { font-size: 16px; }
  .product-card .price { font-size: 18px; }

  .promo-grid { grid-template-columns: 1fr; }
  .promo { min-height: 170px; padding: 20px; }
  .promo > * { max-width: 72%; }
  .promo h2 { font-size: 25px; }
  .trust-strip { display: flex; overflow-x: auto; }
  .trust { flex: 0 0 78%; min-height: 72px; justify-content: flex-start; border-right: 1px solid var(--line) !important; border-bottom: 0 !important; }
  .trust:last-child { grid-column: auto; }

  .page-head { padding: 18px 0 10px; }
  .page-title { font-size: 34px; }
  .mobile-catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .mobile-catalog-tools span { color: var(--muted); font-size: 12px; text-align: right; }
  .catalog-layout { display: block; }
  .sidebar {
    position: fixed;
    z-index: 110;
    top: 0;
    left: 0;
    width: min(90vw, 380px);
    height: 100vh;
    border: 0;
    border-radius: 0 16px 16px 0;
    padding: 18px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: .22s;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: Georgia, serif; font-size: 22px; }
  .sidebar-mobile-head button { border: 0; background: none; font-size: 30px; }
  .filter-overlay { display: block; position: fixed; z-index: 105; inset: 0; background: rgba(24,13,8,.46); opacity: 0; visibility: hidden; transition: .2s; }
  .filter-overlay.open { opacity: 1; visibility: visible; }
  .catalog-tools { justify-content: flex-end; }
  .catalog-tools > span { display: none; }
  .catalog-tools select { flex: 1; min-width: 0; }
  .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-products .product-body { padding: 8px; }
  .catalog-products .product-category { display: none; }
  .catalog-products .product-title { min-height: 48px; font-size: 13px; }
  .catalog-products .rating { font-size: 10px; }
  .catalog-products .price { font-size: 15px; }
  .catalog-products .cart-mini { width: 32px; height: 32px; }

  .product-page { grid-template-columns: 1fr; gap: 15px; }
  .product-gallery { min-height: 0; aspect-ratio: 1 / 1; }
  .product-info h1 { font-size: 34px; }
  .product-meta { grid-template-columns: 1fr; }
  .buy-row { align-items: stretch; }
  .buy-row .primary-btn { flex: 1; }
  .feature-list { grid-template-columns: 1fr; }
  .content-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .lead { font-size: 21px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cart-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .cart-table td:first-child::before, .cart-table td:last-child::before { display: none; }
  .cart-product { width: 100%; }

  .footer { margin-top: 24px; }
  .footer > .container { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 30px 0; }
  .footer > .container > div:first-child { grid-column: 1 / -1; }
  .footer-logo { width: 210px; }
  .notice { right: 12px; left: 12px; bottom: 78px; text-align: center; }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,253,248,.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(67,40,20,.08);
    backdrop-filter: blur(10px);
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button { border: 0; background: transparent; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 10px; color: #5d5047; }
  .mobile-bottom-nav span { font-size: 20px; line-height: 1; }
}

@media (max-width: 390px) {
  .logo img { width: 165px; }
  .hero-card { height: 450px; background-size: auto 265px; }
  .hero-mobile-copy h1 { font-size: 30px; }
  .category-group-card { grid-template-columns: 108px 1fr; }
  .catalog-products { gap: 6px; }
  .catalog-products .product-title { font-size: 12px; }
}

/* Финальная полировка: структура сохранена, улучшены состояния и мобильная навигация. */
body { overflow-x: hidden; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(184, 118, 24, .28);
  outline-offset: 2px;
}
.category-nav .container,
.home-product-row,
.product-row,
.service-strip,
.trust-strip { scrollbar-width: thin; scrollbar-color: #d7bea0 transparent; }
.category-nav .container::-webkit-scrollbar,
.home-product-row::-webkit-scrollbar,
.product-row::-webkit-scrollbar,
.service-strip::-webkit-scrollbar,
.trust-strip::-webkit-scrollbar { height: 5px; }
.category-nav .container::-webkit-scrollbar-thumb,
.home-product-row::-webkit-scrollbar-thumb,
.product-row::-webkit-scrollbar-thumb,
.service-strip::-webkit-scrollbar-thumb,
.trust-strip::-webkit-scrollbar-thumb { background: #d7bea0; border-radius: 999px; }
.catalog-panel { overscroll-behavior: contain; }
.cascade-root,
.cascade-second > .mega-list,
.cascade-third { scrollbar-gutter: stable; }
.mega-group-title[aria-expanded="true"],
.cascade-child-link[aria-expanded="true"] { color: var(--red); background: #fff3e5; }

@media (max-width: 720px) {
  .category-nav .container { scrollbar-width: none; }
  .category-nav .container::-webkit-scrollbar { display: none; }
  .catalog-panel { padding: 0 14px 22px; overflow-x: hidden; }
  .catalog-panel-head {
    position: sticky;
    z-index: 4;
    top: 0;
    margin: 0 -14px 12px;
    padding: 15px 14px 12px;
    background: rgba(255,253,248,.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .catalog-panel h2 { font-size: 24px; }
  .close-panel { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; }
  .close-panel:hover { background: var(--red-soft); }

  .cascade-second,
  .cascade-third { display: none !important; }
  .cascade-group.mobile-open > .cascade-second,
  .cascade-child.mobile-open > .cascade-third { display: block !important; }
  .cascade-group { margin-bottom: 8px; }
  .mega-group-title { cursor: pointer; }
  .mega-group-title b,
  .cascade-child-link b {
    display: block;
    transition: transform .18s ease;
  }
  .cascade-group.mobile-open > .mega-group-title b,
  .cascade-child.mobile-open > .cascade-child-link b { transform: rotate(90deg); }
  .cascade-group.mobile-open > .mega-group-title { background: #fff3e5; }
  .cascade-second > .mega-list { padding: 0 10px 10px; }
  .cascade-child-link { padding: 10px 2px; cursor: pointer; }
  .cascade-child.mobile-open > .cascade-child-link { color: var(--red-dark); }
  .cascade-all-link {
    display: block;
    margin: 2px 0 8px;
    padding: 9px 10px;
    border: 1px solid #ead8c0;
    border-radius: 9px;
    background: #fff9ef;
    font-size: 12px;
  }
  .mega-leaves {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 0 10px;
  }
  .mega-leaves a {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    border: 1px solid #ead8c0;
    border-radius: 9px;
    background: #fffdf8;
    color: #55483d;
    text-align: center;
    line-height: 1.15;
  }
  .mega-leaves a:active { background: #fff0df; color: var(--red); }

  .service-strip,
  .trust-strip {
    gap: 8px;
    padding: 1px 1px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .service,
  .trust {
    flex-basis: calc(100% - 28px);
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }
  .service:last-child,
  .trust:last-child { margin-right: 1px; }
  .home-product-row .product-card { flex-basis: 52%; }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button { min-height: 62px; }
  .mobile-bottom-nav a:active,
  .mobile-bottom-nav button:active { color: var(--red); background: #fff5e8; }
}

@media (max-width: 390px) {
  .mega-leaves { grid-template-columns: 1fr; }
  .home-product-row .product-card { flex-basis: 58%; }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 8px;
}
.pagination[hidden] { display: none; }
.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.pagination-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.pagination-btn.active { border-color: var(--red); background: var(--red); color: #fff; font-weight: 700; }
.pagination-btn:disabled { opacity: .38; cursor: default; }
.pagination-arrow { font-size: 22px; line-height: 1; }
.pagination-gap { min-width: 20px; color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .pagination { gap: 5px; margin-top: 16px; }
  .pagination-btn { min-width: 36px; height: 36px; padding: 0 8px; }
}

/* UX refinement 2026-07: desktop polish + touch-first mobile navigation. */
.ui-icon { width: 24px; height: 24px; display: block; flex: 0 0 auto; }
.catalog-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.catalog-btn .ui-icon { width: 22px; height: 22px; }
.search button { display: grid; place-items: center; }
.search button .ui-icon { width: 22px; height: 22px; }
.header-action .ui-icon { width: 25px; height: 25px; }
.cart-mini { display: grid; place-items: center; }
.cart-mini .ui-icon { width: 19px; height: 19px; }
.mobile-menu-search,
.mobile-cascade-intro,
.mobile-cascade-toolbar,
.mobile-view-all,
.mobile-cascade-links,
.mobile-result-line,
.filter-mobile-actions { display: none; }
.mega-group-title b,
.cascade-child-link b { display: grid; place-items: center; }
.mega-group-title b .ui-icon,
.cascade-child-link b .ui-icon { width: 19px; height: 19px; }
.applied-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 0; margin: 0 0 11px; }
.applied-filters:empty { display: none; }
.applied-label { color: var(--muted); font-size: 12px; }
.applied-filters button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #ddc9ae;
  border-radius: 999px;
  background: #fffaf1;
  color: #59483d;
  cursor: pointer;
  font-size: 12px;
}
.applied-filters button:hover { border-color: var(--red); color: var(--red); }
.applied-filters .clear-all-filters { border-color: transparent; background: transparent; color: var(--red); font-weight: 700; }

@media (min-width: 721px) {
  .container { width: min(1380px, calc(100% - 44px)); }
  .main-header { box-shadow: 0 5px 20px rgba(65, 35, 17, .045); }
  .header-row { min-height: 100px; grid-template-columns: 265px 148px minmax(320px, 1fr) auto; gap: 20px; }
  .logo img { width: 245px; }
  .catalog-btn { height: 56px; }
  .search { height: 56px; }
  .header-actions { gap: 20px; }
  .header-action { min-height: 44px; padding: 5px 0; }
  .category-nav .container { min-height: 52px; }
  .nav-main { min-height: 52px; padding-inline: 12px; }
  .hero { margin-top: 20px; }
  .hero-card { height: clamp(300px, 25.4vw, 370px); border-radius: 20px; box-shadow: 0 16px 42px rgba(75, 42, 19, .13); }
  .service { min-height: 82px; }
  .service strong { font-size: 18px; }
  .home-merch-grid { grid-template-columns: minmax(360px, .95fr) minmax(510px, 1.32fr) minmax(390px, 1fr); gap: 16px; }
  .home-merch-grid > .panel { padding: 15px; }
  .popular-category-card { min-height: 142px; }
  .home-product-row .product-card { min-height: 294px; }
  .product-card { border-color: #e5d7c4; }
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(75,42,19,.13); }
  .product-img { background: linear-gradient(180deg, #fffdf8, #fff8ed); }
  .cart-mini { width: 38px; height: 38px; }
  .promo { min-height: 162px; }
  .trust { min-height: 82px; }
  .catalog-panel { width: min(1220px, calc(100vw - 52px)); padding: 26px; }
  .catalog-mega.catalog-cascade { height: 420px; min-height: 420px; }
  .cascade-root-head, .cascade-column-head { height: 70px; padding-top: 15px; }
  .cascade-root { height: calc(100% - 70px); }
  .mega-group-title { min-height: 54px; }
  .catalog-products .product-card { min-height: 360px; }
}

@media (max-width: 720px) {
  :root { --mobile-header-height: 116px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); background: #fbf6ed; }
  .container { width: calc(100% - 24px); }
  .topbar { background: #fff5e4; }
  .topbar .container { min-height: 32px; }
  .top-items:first-child { width: 100%; justify-content: center; }
  .top-items:first-child .top-item:first-child { display: block; font-size: 11px; }
  .main-header { position: sticky; top: 0; z-index: 70; background: rgba(255,253,248,.98); box-shadow: 0 6px 18px rgba(70,37,17,.07); }
  .header-row {
    min-height: 0;
    padding: 8px 0 10px;
    grid-template-columns: 46px minmax(0,1fr) 46px;
    gap: 8px;
  }
  .logo { height: 48px; display: grid; place-items: center; }
  .logo img { width: min(184px, 58vw); max-height: 52px; }
  .mobile-toggle,
  .mobile-cart {
    width: 44px;
    height: 44px;
    border: 1px solid #dfd0bd;
    border-radius: 12px;
    background: #fff;
    color: #3d2d24;
    box-shadow: 0 3px 10px rgba(75,42,19,.05);
  }
  .mobile-toggle .ui-icon,
  .mobile-cart .ui-icon { width: 23px; height: 23px; }
  .mobile-cart .count { top: -5px; right: -4px; }
  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 46px;
    margin-top: 2px;
    border-radius: 12px;
    border-color: #d8c5ad;
    box-shadow: 0 4px 14px rgba(75,42,19,.045);
  }
  .search input { padding-inline: 14px; font-size: 14px; }
  .search button { width: 48px; padding: 0; }
  .category-nav { z-index: 44; box-shadow: 0 4px 12px rgba(75,42,19,.035); }
  .category-nav .container { width: 100%; padding: 7px 12px 8px; gap: 7px; }
  .nav-main {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e0d0bc;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(75,42,19,.035);
    font-size: 12px;
  }
  .nav-main:active { background: #fff1df; color: var(--red); }
  .nav-symbol { font-size: 15px; }

  .panel-overlay { z-index: 118; background: rgba(24,13,8,.54); }
  .catalog-panel {
    z-index: 120;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fffdf8;
    transform: translateX(-100%);
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .catalog-panel.open { transform: translateX(0); }
  .catalog-panel-head {
    position: relative;
    flex: 0 0 auto;
    min-height: 70px;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) 14px 10px;
    border-bottom: 1px solid var(--line);
    background: #fffdf8;
  }
  .catalog-panel-head small { display: block; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .catalog-panel h2 { margin-top: 1px; font-size: 23px; line-height: 1.05; }
  .close-panel { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #4f3a2e; }
  .close-panel .ui-icon { width: 25px; height: 25px; }
  .mobile-menu-search {
    flex: 0 0 auto;
    height: 46px;
    display: flex;
    align-items: center;
    margin: 10px 14px;
    border: 1px solid #d9c6ad;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .mobile-menu-search input { min-width: 0; flex: 1; height: 100%; padding: 0 13px; border: 0; outline: 0; background: transparent; }
  .mobile-menu-search button { width: 48px; height: 100%; display: grid; place-items: center; border: 0; background: transparent; color: var(--red); }
  .mobile-menu-search .ui-icon { width: 22px; height: 22px; }

  .catalog-mega.catalog-cascade {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-top: 1px solid #f0e6d8;
    border-radius: 0;
    background: #fffdf8;
  }
  .cascade-root-head,
  .cascade-column-head { display: none; }
  .mobile-cascade-intro {
    flex: 0 0 auto;
    display: block;
    padding: 14px 16px 10px;
    background: linear-gradient(180deg, #fff8ec, #fffdf8);
  }
  .mobile-cascade-intro span { display: block; font-family: Georgia, serif; color: var(--red-dark); font-size: 21px; font-weight: 700; }
  .mobile-cascade-intro small { color: var(--muted); font-size: 12px; }
  .cascade-root {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    flex: 1 1 auto;
    margin: 0;
    padding: 2px 10px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .cascade-group,
  .cascade-child {
    position: static !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .mega-group-title,
  .cascade-child-link {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 9px 8px;
    border: 0;
    border-bottom: 1px solid #eee1d0;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #3f3027;
  }
  .mega-group-title span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #fff2df; color: var(--blue); font-size: 18px; }
  .mega-group-title em { font-style: normal; }
  .mega-group-title b,
  .cascade-child-link b { display: grid !important; margin-left: auto; color: #9a826a; }
  .mega-group-title b .ui-icon,
  .cascade-child-link b .ui-icon { width: 20px; height: 20px; }
  .mega-group-title:active,
  .cascade-child-link:active { background: #fff3e5; color: var(--red); }
  .cascade-second,
  .cascade-third {
    position: absolute !important;
    z-index: 4;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    padding: 0 12px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fffdf8 !important;
    transform: translateX(102%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s ease, opacity .18s ease, visibility .24s;
  }
  .cascade-third { z-index: 6; }
  .cascade-group.mobile-active > .cascade-second,
  .cascade-child.mobile-active > .cascade-third {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-cascade-toolbar {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    margin: 0 -12px 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,253,248,.97);
    backdrop-filter: blur(10px);
  }
  .mobile-cascade-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px 0 2px;
    border: 0;
    background: transparent;
    color: var(--red-dark);
    font-weight: 700;
  }
  .mobile-cascade-back .ui-icon { width: 23px; height: 23px; }
  .mobile-view-all {
    min-height: 48px;
    display: flex;
    align-items: center;
    margin: 4px 0 8px;
    padding: 10px 12px;
    border: 1px solid #e0c7a6;
    border-radius: 11px;
    background: #fff4e3;
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 700;
  }
  .cascade-second > .mega-list { max-height: none; padding: 0; overflow: visible; }
  .cascade-child-link { min-height: 54px; padding-inline: 8px; }
  .cascade-all-link { display: none; }
  .mega-leaves { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .mega-leaves a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e7d8c4;
    border-radius: 11px;
    background: #fff;
    color: #45352b;
    font-size: 14px;
  }
  .mega-leaves a:active { border-color: var(--red); background: #fff3e5; color: var(--red); }
  .mega-leaves a small { display: block; color: var(--muted); font-size: 11px; }
  .mobile-cascade-links {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 6px;
    padding: 9px 10px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff9ef;
  }
  .mobile-cascade-links a { min-height: 44px; display: grid; place-items: center; padding: 6px; border: 1px solid #e6d4bd; border-radius: 9px; background: #fff; color: #5a493d; text-align: center; font-size: 10px; font-weight: 700; line-height: 1.15; }

  .hero { margin-top: 12px; }
  .hero-card {
    height: 410px;
    border-radius: 17px;
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 0 42%, rgba(255,253,248,.9) 58%, #fffdf8 70%),
      url("../img/hero-mobile.jpg") center top / auto 250px no-repeat,
      #fffdf8;
    box-shadow: 0 12px 30px rgba(75,42,19,.11);
  }
  .hero-mobile-copy { left: 17px; right: 17px; bottom: 21px; }
  .hero-mobile-copy h1 { max-width: 330px; margin: 5px auto 8px; font-size: clamp(29px, 8.4vw, 34px); line-height: 1.02; }
  .hero-mobile-copy p { max-width: 340px; margin-bottom: 15px; font-size: 13px; line-height: 1.38; }
  .hero-mobile-copy .primary-btn { min-height: 46px; padding: 12px 18px; }
  .service-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin-top: 9px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .service {
    min-width: 0;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(75,42,19,.045);
  }
  .service-icon { flex: 0 0 auto; font-size: 24px; }
  .service strong { font-size: 13px; line-height: 1.15; }
  .service small { font-size: 10px; line-height: 1.25; }

  .home-merch-grid { display: block; margin-top: 12px; }
  .home-merch-grid > .panel { margin-bottom: 11px; padding: 13px 10px; border-radius: 14px; }
  .compact-title { margin-bottom: 9px; }
  .compact-title h2 { font-size: 24px; }
  .popular-category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
  .popular-category-card { min-height: 112px; padding: 6px 3px 8px; border-radius: 10px; }
  .popular-category-image { width: 65px; height: 65px; }
  .popular-category-card strong { font-size: 11px; }
  .home-product-row { gap: 9px; padding: 1px 1px 7px; scroll-padding-inline: 1px; }
  .home-product-row .product-card { flex: 0 0 47%; min-height: 254px; border-radius: 12px; }
  .home-product-row .product-img { aspect-ratio: 1 / .88; }
  .home-product-row .product-title { min-height: 43px; font-size: 13px; }
  .home-product-row .price { font-size: 16px; }
  .home-product-row .cart-mini { width: 38px; height: 38px; }
  .promo-grid { gap: 10px; margin-top: 10px; }
  .promo { min-height: 164px; border-radius: 14px; padding: 19px; }
  .promo h2 { font-size: 24px; }
  .trust-strip { gap: 8px; padding-bottom: 6px; }
  .trust { flex: 0 0 86%; min-height: 76px; border-radius: 12px; }

  .page-head { padding: 17px 0 8px; }
  .breadcrumbs { margin-bottom: 5px; font-size: 11px; }
  .page-title { font-size: 31px; }
  .catalog-subcategories { gap: 7px; padding-bottom: 10px; }
  .catalog-subcategory { min-height: 42px; padding: 8px 12px; }
  .mobile-catalog-tools {
    position: sticky;
    z-index: 32;
    top: var(--mobile-header-height);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 -12px;
    padding: 8px 12px;
    border-top: 1px solid rgba(234,223,206,.7);
    border-bottom: 1px solid var(--line);
    background: rgba(251,246,237,.97);
    backdrop-filter: blur(12px);
  }
  .mobile-tool-button {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #d9c5ab;
    border-radius: 11px;
    background: #fff;
    color: #4c3a2f;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(75,42,19,.04);
  }
  .mobile-sort-control select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  .mobile-result-line { display: flex; align-items: center; min-height: 34px; padding-top: 7px; color: var(--muted); font-size: 12px; }
  .catalog-layout { display: block; }
  .catalog-tools { display: none; }
  .applied-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 10px; padding: 1px 0 3px; scrollbar-width: none; }
  .applied-filters::-webkit-scrollbar { display: none; }
  .applied-filters > * { flex: 0 0 auto; }
  .applied-label { display: none; }
  .applied-filters button { min-height: 38px; }
  .sidebar {
    z-index: 130;
    top: 0;
    right: 0;
    left: auto;
    width: 100%;
    height: 100dvh;
    padding: 0 14px 92px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(102%);
    transition: transform .24s ease;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-mobile-head {
    position: sticky;
    z-index: 4;
    top: 0;
    min-height: 67px;
    margin: 0 -14px 10px;
    padding: max(12px, env(safe-area-inset-top)) 14px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,253,248,.98);
    font-size: 22px;
    backdrop-filter: blur(10px);
  }
  .sidebar-mobile-head button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 28px; }
  .filter-overlay { z-index: 125; }
  .filter-block { margin-bottom: 12px; padding-bottom: 14px; }
  .filter-block h3 { font-size: 19px; }
  .tree-row > a { min-height: 46px; display: flex; align-items: center; }
  .tree-toggle { width: 44px; height: 44px; }
  .tree ul a { min-height: 38px; display: flex; align-items: center; }
  .check { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 7px 0; }
  .check input { width: 19px; height: 19px; }
  .price-fields input { height: 46px; }
  .filter-mobile-actions {
    position: fixed;
    z-index: 6;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255,253,248,.98);
    box-shadow: 0 -8px 24px rgba(75,42,19,.08);
    backdrop-filter: blur(10px);
  }
  .filter-mobile-actions button { min-height: 48px; border-radius: 11px; }
  .filter-reset { border: 1px solid #d9c5ab; background: #fff; color: var(--red); font-weight: 700; }
  .catalog-products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .catalog-products .product-card { min-height: 278px; border-radius: 12px; }
  .catalog-products .product-img { aspect-ratio: 1 / .95; }
  .catalog-products .product-img img { object-fit: contain; padding: 5px; }
  .catalog-products .product-body { padding: 9px; }
  .catalog-products .product-title { min-height: 46px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13px; line-height: 1.18; }
  .catalog-products .rating { margin-top: 5px; font-size: 10px; white-space: nowrap; }
  .catalog-products .price { font-size: 16px; }
  .catalog-products .cart-mini { width: 40px; height: 40px; border-radius: 10px; }

  .product-row .product-card { flex-basis: 72%; }
  .product-page { margin-bottom: 16px; }
  .product-info h1 { font-size: 31px; }
  .buy-row { position: sticky; z-index: 20; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 8px; margin-inline: -8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,253,248,.96); box-shadow: 0 -6px 20px rgba(75,42,19,.08); backdrop-filter: blur(10px); }

  .mobile-bottom-nav {
    z-index: 100;
    min-height: 66px;
    grid-template-columns: repeat(4,1fr);
    background: rgba(255,253,248,.985);
    border-top-color: #ddcbb5;
    box-shadow: 0 -8px 26px rgba(67,40,20,.1);
  }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    position: relative;
    min-height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6a584c;
    font-size: 10px;
    font-weight: 600;
  }
  .mobile-bottom-nav .ui-icon { width: 23px; height: 23px; }
  .mobile-bottom-nav a.active { color: var(--red); }
  .mobile-bottom-nav a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--red); }
  .mobile-nav-count { position: absolute; top: 6px; left: 54%; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9px; }
  .notice { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  :root { --mobile-header-height: 112px; }
  .container { width: calc(100% - 20px); }
  .logo img { width: min(170px, 57vw); }
  .hero-card { height: 395px; background-size: auto 232px; }
  .hero-mobile-copy h1 { font-size: 29px; }
  .service { min-height: 82px; padding: 9px; }
  .home-product-row .product-card { flex-basis: 50%; }
  .popular-category-card { min-height: 108px; }
  .popular-category-image { width: 61px; height: 61px; }
  .catalog-products { gap: 7px; }
  .catalog-products .product-body { padding: 8px; }
  .catalog-products .product-title { font-size: 12px; }
  .catalog-products .price { font-size: 15px; }
}

/* Mobile header placement correction after icon markup. */
@media (max-width: 720px) {
  .catalog-btn { display: none !important; }
  .mobile-toggle { grid-column: 1; grid-row: 1; }
  .logo { grid-column: 2; grid-row: 1; }
  .mobile-cart { grid-column: 3; grid-row: 1; justify-self: end; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .mobile-bottom-nav a > span,
  .mobile-bottom-nav button > span { font-size: 10px; line-height: 1.1; }
}

/* Small mobile hero correction: preserve the existing layout and show all three bogatyrs. */
@media (max-width: 500px) {
  .hero-card {
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 0 42%, rgba(255,253,248,.90) 58%, #fffdf8 70%),
      var(--st-hero-mobile, url("../img/hero-mobile.jpg")) center top / 100% auto no-repeat,
      #fffdf8;
  }
}
/* Checkout additions: functionality only, existing visual language retained. */
.form-hint { display:block; margin-top:7px; color:var(--muted); font-size:12px; line-height:1.45; }
.checkout-check { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#fffaf3; font-size:13px; line-height:1.45; }
.checkout-check input { width:18px; height:18px; flex:0 0 auto; margin-top:1px; accent-color:var(--red); }
.checkout-submit { min-height:50px; width:100%; }

/* Служебные состояния оформления заказа. Не меняет визуальный стиль сайта. */
[data-address-field][hidden] { display: none !important; }

/* Управляемая доставка и итог оформления, без изменения утверждённой композиции. */
.delivery-meter{height:7px;background:#eee3d2;border-radius:99px;overflow:hidden;margin:-4px 0 13px}.delivery-meter i{display:block;height:100%;background:var(--red);border-radius:inherit}.delivery-progress{margin-bottom:8px}.checkout-order-summary{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fffaf3;display:grid;gap:8px}.checkout-order-summary>div{display:flex;justify-content:space-between;gap:18px}.checkout-order-summary small{color:var(--muted)}.checkout-order-summary .checkout-total{border-top:1px solid var(--line);padding-top:10px;font-size:18px}.checkout-order-summary[hidden]{display:none!important}

/* Language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(120, 55, 24, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  white-space: nowrap;
}
.language-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  min-width: 31px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.language-switcher button:hover,
.language-switcher button:focus-visible {
  background: rgba(169, 30, 24, .1);
  outline: none;
}
.language-switcher button.active {
  color: #fff;
  background: #a91e18;
}
.translation-unavailable .language-switcher {
  opacity: .72;
}

@media (max-width: 720px) {
  .topbar .top-items:first-child { display: none; }
  .topbar .top-items:last-child { width: 100%; justify-content: center; gap: 8px; }
  .topbar .top-items:last-child .top-item:first-child { display: none; }
  .language-switcher button { min-width: 29px; padding: 0 6px; }
}
