/* ============================================================
   ЛЕСНОЙ ДВОРИК — редизайн 2026
   Классическая вёрстка: чистый CSS, без фреймворков
   ------------------------------------------------------------
   1.  Дизайн-токены и база
   2.  Кнопки, бейджи, формы
   3.  Шапка
   4.  Карточка товара
   5.  Главная
   6.  Каталог
   7.  Список товаров
   8.  Страница товара
   9.  Футер, модалка, тост
   10. Адаптив
   ============================================================ */

/* ---------- 1. Токены и база ---------- */
:root {
  --green-950: #0e2318;
  --green-900: #14301f;
  --green-800: #1a3d29;
  --green-700: #24513a;
  --green-600: #2f6b46;
  --green-500: #3c8457;
  --amber-600: #b06f1e;
  --amber-500: #c8892b;
  --amber-400: #dd9f43;
  --cream: #f3ecdd;
  --paper: #faf7f0;
  --white: #ffffff;
  --ink: #1f241d;
  --muted: #68705f;
  --line: #e4dccb;
  --shadow-sm: 0 2px 10px rgba(20, 48, 31, .07);
  --shadow-md: 0 10px 34px rgba(20, 48, 31, .12);
  --shadow-lg: 0 24px 64px rgba(14, 35, 24, .22);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }

h1, h2, h3, .h-font { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

.section { padding: 84px 0; }
.section_tinted { background: var(--cream); }

.section_head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }

.section_kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-600); margin-bottom: 12px;
}
.section_kicker::before { content: ""; width: 34px; height: 2px; background: var(--amber-500); }

.section_title { font-size: 46px; color: var(--green-900); }

.section_link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--green-700);
  border-bottom: 2px solid var(--amber-400); padding-bottom: 3px;
  white-space: nowrap; transition: color .25s;
}
.section_link:hover { color: var(--amber-600); }

/* reveal-анимация (отключается классом no-reveal на body — для скриншотов/тестов) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal_in { opacity: 1; transform: none; }
body.no-reveal .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- 2. Кнопки, бейджи, формы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn_primary { background: var(--green-700); color: #fff; box-shadow: 0 10px 24px rgba(36, 81, 58, .35); }
.btn_primary:hover { background: var(--green-600); box-shadow: 0 14px 30px rgba(36, 81, 58, .42); }

.btn_accent { background: var(--amber-500); color: #2a1c06; box-shadow: 0 10px 24px rgba(200, 137, 43, .4); }
.btn_accent:hover { background: var(--amber-400); }

.btn_ghost { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 2px var(--green-700); }
.btn_ghost:hover { background: var(--green-700); color: #fff; }

.btn_light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn_light:hover { background: rgba(255, 255, 255, .24); }

.badge {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.badge_new { background: var(--amber-500); color: #2a1c06; }
.badge_hit { background: var(--green-700); color: #fff; }
.badge_stock { background: #e9f3ec; color: var(--green-700); }

.field {
  width: 100%; padding: 14px 18px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(47, 107, 70, .15); }

/* ---------- 3. Шапка ---------- */
.header { position: relative; z-index: 100; background: var(--white); }

.topbar { background: var(--green-950); color: #cfd8cd; font-size: 13px; }
.topbar_in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar_left, .topbar_right { display: flex; align-items: center; gap: 22px; }
.topbar_item { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar_item .ic { width: 15px; height: 15px; fill: var(--amber-400); }
a.topbar_item:hover { color: #fff; }
.topbar_badge {
  padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(200, 137, 43, .18); color: var(--amber-400);
  border: 1px solid rgba(221, 159, 67, .4);
}

.header_main { border-bottom: 1px solid var(--line); }
.header_main-in { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { height: 52px; width: auto; }
.logo_text { display: flex; flex-direction: column; line-height: 1.15; }
.logo_text b { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--green-800); letter-spacing: .01em; }
.logo_text i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; background: var(--cream); }
.burger span { display: block; width: 20px; height: 2px; background: var(--green-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.catalog-btn {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 12px 22px; border-radius: 999px;
  background: var(--green-700); color: #fff; font-weight: 700; font-size: 15px;
  transition: background .25s, box-shadow .25s;
}
.catalog-btn:hover, .catalog-btn.active { background: var(--green-800); box-shadow: var(--shadow-md); }

.search { position: relative; flex: 1; max-width: 460px; }
.search input {
  width: 100%; height: 48px; padding: 0 52px 0 20px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(47, 107, 70, .14); }
.search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--amber-500); color: #2a1c06;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.search button:hover { background: var(--amber-400); }
.search button .ic { width: 18px; height: 18px; }

.header_phones { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; flex: none; }
.header_phone { font-size: 19px; font-weight: 800; color: var(--green-800); letter-spacing: .01em; }
.header_phone:hover { color: var(--amber-600); }
.header_phone-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.header_phone-sub:hover { color: var(--green-700); }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 10px; flex: none;
  padding: 12px 20px; border-radius: 999px;
  background: var(--cream); color: var(--green-800); font-weight: 700; font-size: 14px;
  transition: background .25s;
}
.cart-btn:hover { background: #ece2cc; }
.cart-btn_count {
  position: absolute; top: -5px; left: 24px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--amber-500); color: #2a1c06;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.header_nav { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 90; }
.header_nav-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.header_nav-in::-webkit-scrollbar { display: none; }
.nav_link {
  padding: 15px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  border-bottom: 3px solid transparent; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.nav_link:hover, .nav_link.active { color: var(--green-700); border-bottom-color: var(--amber-500); }

.catalog-dropdown {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.catalog-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.catalog-dropdown_in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 28px; padding: 26px 24px 30px;
}
.cd_item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: background .2s, color .2s;
}
.cd_item i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.cd_item:hover { background: var(--cream); color: var(--green-700); }
.cd_item-all { color: var(--amber-600); }

.mobile-nav {
  display: none; position: fixed; top: 74px; left: 0; right: 0; bottom: 0;
  background: var(--paper); z-index: 200; overflow-y: auto;
  padding: 24px 24px 40px; border-top: 1px solid var(--line);
}
.mobile-nav.open { display: block; }
.search_mobile { max-width: none; margin-bottom: 26px; }
.mobile-nav_group { margin-bottom: 26px; }
.mobile-nav_title {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-600); margin-bottom: 10px;
}
.mobile-nav_group a { display: block; padding: 9px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav_group a:hover { color: var(--green-700); }
.mobile-nav_contacts { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }

/* ---------- 4. Карточка товара ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow .3s, transform .3s, border-color .3s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }

.product-card_img {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #f7f2e6, #efe7d4);
  padding: 22px;
}
.product-card_img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease; }
.product-card:hover .product-card_img img { transform: scale(1.05); }

.product-card_badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }

.product-card_body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }

.product-card_cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 6px; }

.product-card_title {
  font-size: 15.5px; font-weight: 700; line-height: 1.38; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 43px;
  background-image: linear-gradient(var(--green-700), var(--green-700));
  background-repeat: no-repeat; background-size: 0% 100%;
  transition: background-size .4s ease;
}
.product-card:hover .product-card_title { background-size: 100% 100%; color: #fff; }

.product-card_meta { font-size: 13px; color: var(--muted); margin-top: 8px; }

.product-card_row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }

.product-card_price { font-size: 19px; font-weight: 800; color: var(--green-800); white-space: nowrap; }
.product-card_price span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }

.btn-buy {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 18px; border-radius: 999px;
  background: var(--green-700); color: #fff; font-weight: 700; font-size: 13.5px;
  transition: background .25s, transform .2s;
}
.btn-buy:hover { background: var(--amber-500); color: #2a1c06; }
.btn-buy .ic { width: 16px; height: 16px; }
.btn-buy.added { background: var(--amber-500); color: #2a1c06; }

/* ---------- 5. Главная ---------- */

/* hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero_bg { position: absolute; inset: 0; }
.hero_bg img { width: 100%; height: 100%; object-fit: cover; }
.hero_bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(94deg, rgba(14, 35, 24, .88) 0%, rgba(14, 35, 24, .62) 42%, rgba(14, 35, 24, .12) 75%, rgba(14, 35, 24, .05) 100%);
}
.hero_in { position: relative; z-index: 2; padding: 110px 0; max-width: 660px; }
.hero_kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-400);
}
.hero_kicker::before { content: ""; width: 40px; height: 2px; background: var(--amber-400); }
.hero_title { font-size: 64px; font-weight: 600; line-height: 1.06; margin-bottom: 22px; }
.hero_title em { font-style: italic; color: var(--amber-400); }
.hero_text { font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .88); max-width: 520px; margin-bottom: 36px; }
.hero_actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero_trust { display: flex; flex-wrap: wrap; gap: 12px 26px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero_trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hero_trust-item .ic { width: 18px; height: 18px; fill: var(--amber-400); }

/* преимущества */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 26px; transition: box-shadow .3s, transform .3s;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature_icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
}
.feature_icon .ic { width: 26px; height: 26px; fill: var(--amber-400); }
.feature_title { font-size: 23px; font-weight: 600; color: var(--green-900); margin-bottom: 10px; }
.feature_text { font-size: 14.5px; color: var(--muted); }

/* категории */
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(160deg, #f4eee0, #e9dfc7);
  transition: box-shadow .3s, transform .3s;
}
.cat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cat-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  padding: 26px 26px 92px; mix-blend-mode: multiply;
  transition: transform .45s ease;
}
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile_label {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 14px 14px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  font-weight: 700; font-size: 15.5px; color: var(--green-900);
}
.cat-tile_label i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--amber-600); white-space: nowrap; }
.cat-tile_wide { grid-column: span 2; }
.cat-tile_photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }

/* популярные товары — сетка как .products-grid */

/* производство */
.craft { background: var(--green-950); color: #fff; overflow: hidden; }
.craft_in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.craft_media { position: relative; }
.craft_media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; height: 520px; object-fit: cover; }
.craft_media::before {
  content: ""; position: absolute; inset: -22px auto auto -22px; width: 120px; height: 120px;
  border-radius: 22px; background: var(--amber-500); opacity: .9; z-index: -1;
}
.craft_kicker { color: var(--amber-400); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.craft_title { font-size: 44px; margin-bottom: 20px; color: #fff; }
.craft_text { color: rgba(255, 255, 255, .8); font-size: 16.5px; margin-bottom: 30px; }
.craft_list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-bottom: 36px; }
.craft_item { display: flex; gap: 14px; align-items: flex-start; }
.craft_item .ic { width: 22px; height: 22px; fill: var(--amber-400); margin-top: 3px; }
.craft_item b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.craft_item span { font-size: 13.5px; color: rgba(255, 255, 255, .68); line-height: 1.5; }

/* баня-баннер */
.banya { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: center; }
.banya img.banya_bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banya::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 35, 24, .85) 8%, rgba(14, 35, 24, .35) 55%, transparent 85%); }
.banya_in { position: relative; z-index: 2; padding: 56px; max-width: 520px; color: #fff; }
.banya_title { font-size: 40px; margin-bottom: 14px; color: #fff; }
.banya_text { color: rgba(255, 255, 255, .85); margin-bottom: 28px; }

/* шаги заказа */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px 26px 28px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 52px; font-weight: 700;
  color: var(--cream); -webkit-text-stroke: 1px var(--amber-500);
  display: block; line-height: 1; margin-bottom: 16px;
}
.step_title { font-size: 22px; color: var(--green-900); margin-bottom: 8px; }
.step_text { font-size: 14px; color: var(--muted); }

/* CTA / обратный звонок */
.cta {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: #fff; padding: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(221, 159, 67, .35), transparent 70%);
}
.cta_title { font-size: 40px; color: #fff; margin-bottom: 14px; }
.cta_text { color: rgba(255, 255, 255, .82); font-size: 16px; }
.cta_form { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.cta_form .field { border: 0; height: 54px; }
.cta_form .btn { height: 54px; }
.cta_policy { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* текстовый SEO-блок */
.about-text { max-width: 860px; margin: 0 auto; color: var(--muted); font-size: 15.5px; }
.about-text h2 { font-size: 34px; color: var(--green-900); margin-bottom: 20px; text-align: center; }
.about-text p + p { margin-top: 14px; }

/* ---------- 6. Внутренние страницы: общее ---------- */
.page-head { background: linear-gradient(120deg, var(--green-950), var(--green-800)); color: #fff; padding: 44px 0 48px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--amber-400); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-head_title { font-size: 48px; color: #fff; }
.page-head_sub { color: rgba(255, 255, 255, .75); margin-top: 10px; max-width: 620px; }

/* ---------- 6а. Каталог ---------- */
.cats-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative; display: flex; align-items: flex-end; min-height: 300px;
  border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(160deg, #f4eee0, #e9dfc7);
  border: 1px solid var(--line);
  transition: box-shadow .3s, transform .3s;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 30px 30px 96px; mix-blend-mode: multiply; transition: transform .45s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card.cat-card_cover img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.cat-card_label {
  position: relative; z-index: 2; width: calc(100% - 28px); margin: 0 14px 14px;
  padding: 16px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cat-card_label b { font-size: 17px; color: var(--green-900); }
.cat-card_label i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--amber-600); white-space: nowrap; }

.cats-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.cat-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; transition: border-color .25s, box-shadow .25s, color .25s;
}
.cat-mini i { font-style: normal; color: var(--amber-500); font-size: 18px; }
.cat-mini:hover { border-color: var(--green-600); box-shadow: var(--shadow-sm); color: var(--green-700); }

/* ---------- 7. Список товаров ---------- */
.listing { display: grid; grid-template-columns: 272px 1fr; gap: 34px; align-items: start; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; position: sticky; top: 70px; }
.filters_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters_title { font-size: 24px; color: var(--green-900); }
.filters_reset { font-size: 12.5px; font-weight: 700; color: var(--amber-600); border-bottom: 1px dashed var(--amber-500); }
.filters_reset:hover { color: var(--green-700); }
.filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-of-type { border-top: 0; }
.filter-group_title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-800); margin-bottom: 12px; }
.filter-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.filter-check input { accent-color: var(--green-700); width: 17px; height: 17px; cursor: pointer; }
.filter-check i { font-style: normal; margin-left: auto; font-size: 12px; color: var(--muted); }
.filter-price { display: flex; align-items: center; gap: 10px; }
.filter-price input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.filter-price input:focus { outline: none; border-color: var(--green-600); }
.filters_apply { width: 100%; margin-top: 6px; }

.listing_toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 18px; margin-bottom: 22px;
}
.listing_count { font-size: 14px; color: var(--muted); }
.listing_count b { color: var(--green-800); }
.listing_sort { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.listing_sort select { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; background: #fff; cursor: pointer; }
.listing_sort select:focus { outline: none; border-color: var(--green-600); }
.view-toggle { display: flex; gap: 4px; background: var(--cream); border-radius: 999px; padding: 4px; }
.view-toggle button { width: 36px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.view-toggle button.active { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
.view-toggle .ic { width: 16px; height: 16px; }

.listing_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing_grid.view-list { grid-template-columns: 1fr; }
.listing_grid.view-list .product-card { flex-direction: row; align-items: stretch; }
.listing_grid.view-list .product-card_img { width: 220px; flex: none; aspect-ratio: auto; }
.listing_grid.view-list .product-card_title { -webkit-line-clamp: 1; min-height: 0; }

.listing_empty { display: none; text-align: center; padding: 70px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.listing_empty b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--green-900); margin-bottom: 8px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; background: #fff; border: 1px solid var(--line);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--green-600); color: var(--green-700); }
.pagination span.current { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- 8. Страница товара ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }

.gallery { position: sticky; top: 80px; }
.gallery_main {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(160deg, #f7f2e6, #efe7d4);
  border: 1px solid var(--line); aspect-ratio: 1 / 1;
}
.gallery_main img { width: 100%; height: 100%; object-fit: contain; padding: 40px; mix-blend-mode: multiply; cursor: crosshair; }
.gallery_badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 3; }
.gallery_zoom-hint {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--green-800);
  background: rgba(255, 255, 255, .85); padding: 8px 14px; border-radius: 999px; pointer-events: none;
}
.gallery_zoom-hint .ic { width: 15px; height: 15px; }
.gallery_thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery_thumb {
  width: 86px; height: 86px; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: #f4eee0; padding: 8px; flex: none;
  transition: border-color .25s;
}
.gallery_thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery_thumb.active, .gallery_thumb:hover { border-color: var(--amber-500); }

#zoomResultGlobal {
  position: fixed; z-index: 500; width: 420px; height: 420px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: #f4eee0 no-repeat;
  display: none; pointer-events: none;
}
.zoom-lens {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--amber-500); background: rgba(221, 159, 67, .12);
  pointer-events: none; z-index: 4; display: none;
}

.product-info_kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 10px; }
.product-info_title { font-size: 38px; color: var(--green-900); margin-bottom: 16px; }
.product-info_meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.product-info_meta .in-stock { color: var(--green-600); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.product-info_meta .in-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }

.chars { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 24px; }
.chars_row { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.chars_row:last-child { border-bottom: 0; }
.chars_row dt { color: var(--muted); }
.chars_row dd { font-weight: 700; text-align: right; }

.price-box { background: var(--green-950); color: #fff; border-radius: var(--r-md); padding: 26px 28px; margin-bottom: 24px; }
.price-box_units { display: flex; gap: 6px; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; margin-bottom: 20px; width: fit-content; }
.price-box_units button { padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: rgba(255, 255, 255, .75); transition: all .2s; }
.price-box_units button.active { background: var(--amber-500); color: #2a1c06; }
.price-box_main { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.price-box_value { font-size: 42px; font-weight: 800; font-family: var(--font-body); color: var(--amber-400); }
.price-box_per { color: rgba(255, 255, 255, .7); font-size: 15px; }
.price-box_alt { font-size: 13.5px; color: rgba(255, 255, 255, .62); margin-bottom: 22px; }
.price-box_calc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; }
.qty button { width: 40px; height: 44px; border-radius: 999px; color: #fff; font-size: 20px; font-weight: 700; transition: background .2s; }
.qty button:hover { background: rgba(255, 255, 255, .16); }
.qty input { width: 64px; height: 44px; background: transparent; border: 0; color: #fff; font-size: 17px; font-weight: 800; text-align: center; }
.qty input:focus { outline: none; }
.qty_hint { font-size: 12.5px; color: rgba(255, 255, 255, .6); width: 100%; }

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.product-actions .btn { flex: 1; min-width: 180px; }

.product-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.perk .ic { width: 18px; height: 18px; fill: var(--green-600); }

/* табы */
.tabs { margin-top: 70px; }
.tabs_head { display: flex; gap: 6px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs_head::-webkit-scrollbar { display: none; }
.tabs_button {
  position: relative; padding: 14px 22px; font-size: 15.5px; font-weight: 700; color: var(--muted);
  white-space: nowrap; transition: color .2s;
}
.tabs_button::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -2px; height: 3px;
  background: var(--amber-500); border-radius: 3px;
  opacity: 0; transform: scaleX(.4); transition: opacity .25s, transform .25s;
  margin-bottom: 0; z-index: 2;
}
.tabs_button:hover { color: var(--green-800); }
.tabs_button.active { color: var(--green-800); }
.tabs_button.active::after { opacity: 1; transform: none; }
.tabs_panel { display: none; padding: 30px 4px; color: var(--muted); font-size: 15.5px; max-width: 860px; }
.tabs_panel.active { display: block; }
.tabs_panel p + p { margin-top: 12px; }
.tabs_panel .chars { max-width: 560px; margin: 0; }

/* ---------- 9. Футер, модалка, тост ---------- */
.footer { background: var(--green-950); color: #b9c4b4; margin-top: 90px; }
.footer_in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; padding: 64px 24px 48px; }
.footer_about p { font-size: 14px; line-height: 1.7; margin: 18px 0 20px; }
.logo_footer .logo_text b { color: #fff; }
.logo_footer .logo_text i { color: rgba(255, 255, 255, .5); }
.footer_badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer_badge {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(221, 159, 67, .45); color: var(--amber-400);
}
.footer_title { font-family: var(--font-head); font-size: 21px; color: #fff; margin-bottom: 18px; }
.footer_col a { display: block; padding: 5px 0; font-size: 14.5px; color: #b9c4b4; transition: color .2s; }
.footer_col a:hover { color: var(--amber-400); }
.footer_phone { font-size: 21px !important; font-weight: 800; color: #fff !important; padding-bottom: 0 !important; }
.footer_phone2 { font-size: 15px; font-weight: 700; color: var(--amber-400) !important; }
.footer_addr, .footer_hours { display: block; font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer_bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer_bottom-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

.modal {
  position: fixed; inset: 0; z-index: 600; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(14, 35, 24, .6); backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal_box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-lg); padding: 40px 36px; box-shadow: var(--shadow-lg); }
.modal_close { position: absolute; top: 14px; right: 18px; font-size: 30px; line-height: 1; color: var(--muted); }
.modal_close:hover { color: var(--ink); }
.modal_title { font-family: var(--font-head); font-size: 32px; color: var(--green-900); margin-bottom: 10px; }
.modal_text { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.modal_form { display: flex; flex-direction: column; gap: 12px; }
.modal_policy { font-size: 11.5px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 80px);
  z-index: 700; padding: 14px 26px; border-radius: 999px;
  background: var(--green-800); color: #fff; font-weight: 700; font-size: 14.5px;
  box-shadow: var(--shadow-lg); opacity: 0; transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 10. Адаптив ---------- */
@media (max-width: 1180px) {
  .hero_title { font-size: 54px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .craft_in { gap: 40px; }
  .listing_grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 60px 0; }
  .section_title { font-size: 34px; }
  .topbar_left .topbar_hours { display: none; }
  .header_phones { display: none; }
  .burger { display: flex; }
  .catalog-btn { display: none; }
  .header_main-in .search { display: none; }
  .header_nav { display: none; }
  .cart-btn_label { display: none; }
  .cart-btn { padding: 12px 14px; }
  .hero { min-height: 560px; }
  .hero_title { font-size: 42px; }
  .hero_in { padding: 80px 0; }
  .craft_in { grid-template-columns: 1fr; }
  .craft_media img { height: 380px; }
  .cta { grid-template-columns: 1fr; padding: 44px 30px; }
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
  .gallery { position: static; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cats-page-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-mini { grid-template-columns: repeat(2, 1fr); }
  .footer_in { grid-template-columns: 1fr 1fr; gap: 34px; }
  .catalog-dropdown_in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section_head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 30px; }
  .hero { min-height: 520px; }
  .hero_title { font-size: 34px; }
  .hero_text { font-size: 16px; }
  .hero_actions .btn { width: 100%; }
  .products-grid, .cats-grid, .features, .steps, .listing_grid { grid-template-columns: 1fr; }
  .cat-tile_wide { grid-column: span 1; }
  .topbar_right .topbar_badge { display: none; }
  .topbar_address { font-size: 12px; }
  .logo_text { display: none; }
  .logo img { height: 42px; }
  .banya_in { padding: 34px 24px; }
  .banya_title { font-size: 30px; }
  .cta_title { font-size: 30px; }
  .product-info_title { font-size: 27px; }
  .price-box_value { font-size: 32px; }
  .product-perks { grid-template-columns: 1fr; }
  .cats-page-grid, .cats-mini { grid-template-columns: 1fr; }
  .page-head_title { font-size: 32px; }
  .footer_in { grid-template-columns: 1fr; }
  .listing_grid.view-list .product-card { flex-direction: column; }
  .listing_grid.view-list .product-card_img { width: 100%; aspect-ratio: 1/1; }
  #zoomResultGlobal { display: none !important; }
  .craft_list { grid-template-columns: 1fr; }
}

/* ============================================================
   11. Итерация 2: соцсети, липкая шапка, ровная сетка категорий,
       плоский каталог, тонкие крошки, наличие, статстраницы
   ============================================================ */

/* соцсети */
.socials { display: flex; align-items: center; gap: 8px; }
.socials_link {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #cfd8cd;
  transition: background .25s, color .25s, transform .2s;
}
.socials_link .ic { width: 18px; height: 18px; }
.socials_link:hover { background: var(--amber-500); color: #2a1c06; transform: translateY(-2px); }
.socials_topbar .socials_link { width: 28px; height: 28px; }
.socials_topbar .socials_link .ic { width: 15px; height: 15px; }
.socials_footer { margin: 4px 0 18px; }
.socials_footer .socials_link { background: rgba(255, 255, 255, .08); }
.mobile-nav_contacts .socials { margin-top: 12px; }
.mobile-nav_contacts .socials_link { background: var(--cream); color: var(--green-800); }

/* липкая шапка: sticky-обёртка поверх topbar */
.header_sticky {
  position: sticky; top: 0; z-index: 110;
  background: var(--white);
  transition: box-shadow .25s ease;
}
.header_sticky.stuck { box-shadow: 0 8px 28px rgba(20, 48, 31, .14); }
.header_sticky.stuck .header_main-in { min-height: 62px; }
.header_sticky.stuck .logo img { height: 42px; }
.header_sticky .header_main-in, .header_sticky .logo img { transition: min-height .25s ease, height .25s ease; }
.header_nav { position: static; box-shadow: none; border-top: 1px solid var(--line); }

/* главная: ровная сетка категорий одинакового размера */
.cat-tile_wide { grid-column: span 1; }
.cat-tile { min-height: 250px; }

/* каталог: общий плоский список одинаковых карточек (как на старом сайте) */
.cats-flat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-flat {
  display: flex; flex-direction: column; min-height: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow .3s, transform .3s, border-color .3s;
}
.cat-flat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--green-600); }
.cat-flat_img { height: 130px; background: linear-gradient(160deg, #f7f2e6, #efe7d4); padding: 14px; }
.cat-flat_img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s; }
.cat-flat:hover .cat-flat_img img { transform: scale(1.06); }
.cat-flat_img.cat-flat_cover { padding: 0; }
.cat-flat_img.cat-flat_cover img { object-fit: cover; mix-blend-mode: normal; }
.cat-flat_img.cat-flat_icon { display: flex; align-items: center; justify-content: center; }
.cat-flat_img.cat-flat_icon .ic { width: 44px; height: 44px; fill: var(--green-700); opacity: .8; }
.cat-flat_body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line); margin-top: auto; }
.cat-flat_body b { font-size: 15.5px; color: var(--green-900); line-height: 1.3; }
.cat-flat_body i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--amber-600); white-space: nowrap; }

/* тонкая полоска хлебных крошек (страница товара) */
.crumbs-strip { background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 0; }
.crumbs-strip .breadcrumbs { margin-bottom: 0; color: var(--muted); font-size: 12.5px; }
.crumbs-strip .breadcrumbs a { color: var(--green-700); }
.crumbs-strip .breadcrumbs a:hover { color: var(--amber-600); }
.crumbs-strip .breadcrumbs span::before { opacity: .4; }

/* выделенное наличие на странице товара */
.stock-flag {
  display: inline-flex; align-items: center; gap: 10px;
  background: #e7f3ea; border: 1.5px solid #bfe0c8; border-radius: 999px;
  padding: 9px 18px; font-weight: 800; font-size: 14.5px; color: var(--green-700);
}
.stock-flag::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(60, 132, 87, .5);
  animation: stockPulse 2s infinite;
}
@keyframes stockPulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 132, 87, .45); }
  70% { box-shadow: 0 0 0 9px rgba(60, 132, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 132, 87, 0); }
}

/* статичные страницы: типографика контента */
.content-page { max-width: 880px; }
.content-page h2 { font-size: 32px; color: var(--green-900); margin: 40px 0 16px; }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { font-size: 24px; color: var(--green-900); margin: 30px 0 12px; }
.content-page p { color: var(--muted); margin-bottom: 14px; }
.content-page ul, .content-page ol { color: var(--muted); margin: 0 0 16px 22px; }
.content-page li { margin-bottom: 8px; }
.content-page li::marker { color: var(--amber-500); }
.content-page b, .content-page strong { color: var(--ink); }
.content-note {
  background: #fdf6e8; border-left: 4px solid var(--amber-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px; margin: 22px 0; color: #6b5426; font-size: 15px;
}
.content-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.content-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px;
}
.content-card .ic { width: 26px; height: 26px; fill: var(--green-700); margin-bottom: 14px; }
.content-card b { display: block; font-size: 16.5px; color: var(--green-900); margin-bottom: 6px; }
.content-card span { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* таблица цен (услуги) */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); margin: 24px 0; }
.price-table th, .price-table td { padding: 15px 22px; text-align: left; font-size: 15px; }
.price-table th { background: var(--green-900); color: #fff; font-weight: 700; letter-spacing: .02em; }
.price-table td { border-bottom: 1px solid var(--line); color: var(--muted); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 800; color: var(--green-800); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: var(--paper); }

/* контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.contact-block h3 { font-size: 22px; color: var(--green-900); margin-bottom: 16px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15px; color: var(--muted); }
.contact-line .ic { width: 19px; height: 19px; fill: var(--amber-500); margin-top: 2px; }
.contact-line a { font-weight: 700; color: var(--ink); }
.contact-line a:hover { color: var(--green-700); }
.contact-line b { color: var(--ink); }
.req-table { width: 100%; font-size: 14.5px; border-collapse: collapse; }
.req-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.req-table td:last-child { text-align: right; color: var(--ink); font-weight: 600; }
.map-box { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin-top: 26px; height: 420px; background: var(--cream); }
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* копирайт в подвале */
.footer_copy a { color: var(--amber-400); font-weight: 700; border-bottom: 1px solid rgba(221, 159, 67, .4); }
.footer_copy a:hover { color: #fff; }

/* адаптив к новым блокам */
@media (max-width: 1180px) {
  .cats-flat-grid { grid-template-columns: repeat(3, 1fr); }
  .content-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .cats-flat-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cats-flat-grid, .content-cards { grid-template-columns: 1fr; }
  .cat-tile { min-height: 220px; }
  .topbar_email { display: none; }
  .price-table th, .price-table td { padding: 12px 14px; font-size: 13.5px; }
}

/* ============================================================
   12. Итерация 3: иконка MAX, соцсети в подвале, артикул,
       мобильная шапка/меню, двухколоночные сетки, свайп,
       мобильная страница категории, подвал в 2 колонки
   ============================================================ */

/* соцсети: круги не сжимаются, иконки строго по центру */
.socials_link { flex: none; }
.socials_link .ic { display: block; margin: auto; }

/* страница товара: артикул по центру строки с плашкой наличия */
.product-info_meta { align-items: center; }
.product-info_article { line-height: 1; }

/* мобильный телефон в верхней полоске (на десктопе скрыт) */
.topbar_phone-m { display: none; }

/* кнопка закрытия мобильного меню */
.mobile-nav_close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-nav_close .ic { width: 20px; height: 20px; }

/* мобильная шапка категории: узкие крошки + H1 + кнопка фильтров */
.cat-mob-head { display: none; }
.filters-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--green-700);
  background: #fff; color: var(--green-800); font-weight: 700; font-size: 14px;
  cursor: pointer; flex: none;
}
.filters-toggle .ic { width: 17px; height: 17px; }
.filters-toggle.active { background: var(--green-700); color: #fff; }

@media (max-width: 960px) {
  /* шапка: логотип слева первым, корзина справа */
  .header_main-in { gap: 12px; }
  .header_main-in .logo { order: -1; margin-right: auto; }
  .header_main-in .cart-btn { margin-left: 0; }

  /* верхняя полоска: короткий адрес + телефон, соцсети уходят */
  .topbar_city { display: none; }
  .topbar_phone-m { display: inline-flex; align-items: center; gap: 7px; }
  .topbar_phone-m .ic { width: 15px; height: 15px; }
  .socials_topbar { display: none; }

  /* мобильное меню: кнопка закрытия */
  .mobile-nav_close { display: inline-flex; }

  /* страница категории: без зелёной плашки, фильтры скрыты за кнопкой */
  .page-head_cat { display: none; }
  .cat-mob-head { display: block; }
  .cat-mob-head_row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding-top: 20px; padding-bottom: 4px;
  }
  .cat-mob-head_title { font-size: 26px; }
  .listing > .filters { display: none; }
  .listing > .filters.filters_open { display: block; margin-bottom: 22px; }
}

@media (max-width: 640px) {
  /* все списки карточек — по две в ряд */
  .products-grid, .cats-grid, .listing_grid,
  .cats-page-grid, .cats-mini, .cats-flat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card_body { padding: 12px 14px 14px; }
  .product-card_title { font-size: 13.5px; }
  .product-card_price { font-size: 16px; }
  .product-card_row { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; }
  .product-card .btn-buy { padding: 9px 10px; font-size: 12.5px; justify-content: center; }
  .gallery_zoom-hint { display: none; }
  .cat-tile { min-height: 180px; }
  .cat-flat { min-height: 170px; }

  /* подвал: каталог и покупателям в две колонки */
  .footer_in { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer_about, .footer_contacts { grid-column: 1 / -1; }
}

/* ============================================================
   13. Итерация 4 (мобила): счётчик под заголовком плитки,
       крестик над поиском, шапка без обрезки при скролле,
       названия товаров в 3 строки, запрет горизонтального скролла
   ============================================================ */

/* миниатюры галереи не раздувают страницу (источник гор. скролла) */
.gallery_thumbs { overflow-x: auto; scrollbar-width: none; }
.gallery_thumbs::-webkit-scrollbar { display: none; }
.product-layout > * { min-width: 0; }

@media (max-width: 640px) {
  /* счётчик «N товаров» — под названием категории, а не в строку */
  .cat-flat_body { flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; }
  .cat-tile_label { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 14px; }

  /* мобильное меню: поиск и ссылки ниже кнопки закрытия */
  .mobile-nav { padding-top: 70px; }

  /* названия товаров в карточках: 3 строки вместо 2 */
  .product-card_title { -webkit-line-clamp: 3; min-height: 56px; font-size: 13px; }
}

@media (max-width: 960px) {
  /* липкая шапка на мобильных: без анимации сжатия —
     иначе при скролле логотип и иконки визуально обрезаются */
  .header_sticky .header_main-in, .header_sticky .logo img { transition: none; }
  .header_sticky.stuck .header_main-in { min-height: var(--header-h); }
  .header_sticky.stuck .logo img { height: 42px; }
}

/* ===================== CMS-интеграция ===================== */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.js-form input.is-error, .js-form textarea.is-error { border-color: #C0392B !important; }
.checkbox.is-error .checkbox__text { color: #C0392B; }
.checkbox--consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2, #6b6b62); cursor: pointer; }
.checkbox--consent input { margin-top: 2px; accent-color: var(--green, #2E5A1C); }
.checkbox--consent a { color: inherit; text-decoration: underline; }

.form-success { text-align: center; padding: 28px 8px; }
.form-success__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #EAF3E4; display: flex; align-items: center; justify-content: center; }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success h4 { margin: 0 0 8px; font-size: 20px; }
.form-success p { margin: 0; color: var(--text-2, #6b6b62); font-size: 14px; }

.cookie-pop { position: fixed; left: 16px; bottom: 16px; z-index: 9000; max-width: 380px; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(28, 24, 18, .18); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.cookie-pop.hidden { display: none; }
.cookie-pop p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2, #6b6b62); }
.cookie-pop .btn { flex: none; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 8000; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--green, #2E5A1C); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(46, 90, 28, .35); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--green-2, #3A6E24); }

button.added, .btn.added { background: var(--green, #2E5A1C) !important; color: #fff !important; }

/* --- lesdvorik CMS: состояния карточки товара --- */
.badge_stock-out { background: #f7ecec; color: #a33; }
.stock-flag_out { color: #a33; }
.stock-flag_out::before { background: #c0392b !important; }
.price-box_old { color: var(--text-3, #9a9a90); font-size: 16px; margin-left: 10px; }
.price-box_ask .price-box_value { font-size: 22px; }
.seo-text { font-size: 15px; line-height: 1.7; color: var(--text-2, #55554e); }
.seo-text h2, .seo-text h3 { margin: 22px 0 10px; }
.seo-text p { margin: 0 0 12px; }
.section_tight { padding-top: 0; }
.pagination span.current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 10px; background: var(--green, #2E5A1C); color: #fff; font-weight: 700; }
.listing_empty { padding: 50px 20px; text-align: center; color: var(--text-2, #6b6b62); }
.listing_empty b { display: block; font-size: 18px; margin-bottom: 8px; color: var(--text, #26261f); }
.listing_empty a { color: var(--green, #2E5A1C); }
.filters_reset { font-size: 13px; color: var(--text-2, #6b6b62); text-decoration: underline; }
.filters_reset:hover { color: var(--green, #2E5A1C); }
.filters_form .filters_apply { width: 100%; margin-top: 16px; }
.btn-buy_ask { text-decoration: none; background: var(--bg-2, #f0ede6); color: var(--text, #26261f); }
.btn-buy_ask:hover { background: var(--green, #2E5A1C); color: #fff; }

/* === Совместимость с шаблонами модулей CMS (корзина, заказ, профиль, поиск) === */
.st { padding: 52px 0; }
.st__container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-head__title { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 6px 0 14px; }
.page-head__sub { color: var(--muted); max-width: 640px; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 10px 24px rgba(36, 81, 58, .35); }
.btn--primary:hover { background: var(--green-600); color: #fff; box-shadow: 0 14px 30px rgba(36, 81, 58, .42); }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); }

/* крошки: разделитель и после ссылок (span::before покрывает только последний пункт) */
.breadcrumbs a::after { content: "/"; margin-left: 8px; opacity: .5; }
