/* ==========================================================
   Znakotveta — редизайн 2026. Дизайн-токены из Figma-макета Яны
   (файл gV6eGSVfYbpTThCresPRch, извлечено 15.07.2026)
   ========================================================== */
:root {
  /* Цвета из макета */
  --teal: #0B7A6A;        /* основной бирюзово-зелёный */
  --teal-light: #14988B;  /* светлый тил: ховеры кнопок */
  --sage: #7FB3A4;        /* шалфей: ярлык «Новинка» (Юра, 28.07) */
  --ink: #2D2D2D;         /* основной текст */
  --ink-soft: #335152;    /* тёмно-бирюзовый текст/иконки */
  --orange: #C47530;      /* оранжевый акцент (скидки, футер-телефон) */
  --red: #CC0000;         /* алерт (Сб-Вс, бейдж корзины) */
  --gray: #999999;
  --gray-light: #E0E0E0;
  --bg: #FFFFFF;
  --bg-dark: #2B2B2B;     /* тёмный футер */
  --badge-sale-bg:#C62828;   --badge-sale-fg:#fff;
  --badge-hit-bg:#A85D18;    --badge-hit-fg:#fff;
  --badge-last-bg:#F5EAD7;   --badge-last-fg:#7A5610;
  --badge-new-bg: var(--sage);    --badge-new-fg:#fff;
  --badge-price-bg:#E3F2EC;  --badge-price-fg:#0B7A6A;
  --badge-order-bg:#EFF1F1;  --badge-order-fg:#4F5959;

  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 4px rgba(45,45,45,.08), 0 4px 16px rgba(45,45,45,.06);
  --container: 1300px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h2.section-title { font-size: 28px; font-weight: 700; margin: 48px 0 24px; }

/* ---------- Шапка ---------- */
.topbar { border-bottom: 1px solid var(--gray-light); background: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 28px; padding: 12px 14px; }

.burger {
  width: 48px; height: 48px; border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(45,45,45,.16), 0 4px 10px rgba(45,45,45,.18);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  flex-shrink: 0; transition: box-shadow .15s, transform .15s;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
/* Открытый каталог: бургер превращается в X */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger:hover { box-shadow: 0 2px 4px rgba(45,45,45,.2), 0 7px 16px rgba(45,45,45,.24); transform: translateY(-1px); }

/* Логотип: крыша сверху, надпись под ней */
.logo { display: flex; flex-direction: column; align-items: center; gap: 0; flex-shrink: 0; }
.logo svg { width: 40px; height: auto; margin-bottom: -3px; }
.logo-text { font-weight: 700; letter-spacing: .12em; font-size: 16.5px; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.logo-sub { font-size: 10.5px; letter-spacing: .06em; color: var(--teal); font-weight: 500; }

.head-contacts { display: flex; flex-direction: column; gap: 6px; }
.head-phones { display: flex; align-items: center; gap: 22px; font-size: 15px; flex-wrap: wrap; }
.head-phones .phone { font-weight: 700; display: flex; align-items: center; gap: 7px; }
.head-phones .phone svg { color: var(--teal); }
.head-phones .hours { color: var(--ink); }
.head-phones .weekend { color: var(--red); }
.head-menu { display: flex; gap: 26px; font-size: 16.5px; font-weight: 500; }
.head-menu a:hover { color: var(--teal); }

.head-actions { display: flex; gap: 14px; margin-left: auto; }
.iconbtn {
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(45,45,45,.16), 0 4px 10px rgba(45,45,45,.18);
  display: flex; align-items: center; justify-content: center; position: relative;
  flex-shrink: 0; color: var(--ink-soft);
  transition: box-shadow .15s, color .15s, transform .15s;
}
.iconbtn:hover { color: var(--teal); box-shadow: 0 2px 4px rgba(45,45,45,.2), 0 7px 16px rgba(45,45,45,.24); transform: translateY(-1px); }
.iconbtn .badge {
  position: absolute; top: -2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.iconbtn--cart { color: var(--red); }
.iconbtn--cart:hover { color: var(--red); }

/* ---------- Слайдер ---------- */
.hero { margin-top: 20px; }
.hero-slider { position: relative; border-radius: var(--radius-card); overflow: hidden; }
.hero-slide { position: relative; aspect-ratio: 2/1; background: #d8e4e2; }
/* Исходники слайдера 1254x470 - это 2,67:1, слишком узкая полоса: мебель
   выглядит приплюснутой (замечание Юры 27.07). Делаем кадр выше, лишнее
   по бокам обрезается штатным object-fit: cover. На телефоне широкая полоса
   превращалась в ленточку 140 px - там поднимаем сильнее. */
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; left: 32px; bottom: 28px; color: #fff; font-size: 26px; font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.hero-dots { position: absolute; top: 22px; right: 28px; display: flex; gap: 9px; }
.hero-dots button { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; }
.hero-dots button.active { background: var(--teal); border-color: var(--teal); }
.hero-arrow {
  position: absolute; right: 24px; bottom: 24px; color: #fff; font-size: 30px; line-height: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ---------- Слоган ---------- */
.slogan { text-align: center; font-size: 42px; font-weight: 400; margin: 44px 0 8px; }
.slogan .t1 { color: var(--teal); }
.slogan .t2 { color: var(--orange); }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; }
.cat-card {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card); padding: 18px 12px 14px;
  text-align: center; transition: box-shadow .15s, border-color .15s; background: #fff;
}
.cat-card:hover { box-shadow: var(--shadow-card); border-color: var(--teal); }
.cat-card .ph { height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.cat-card .ph img { max-height: 96px; object-fit: contain; }
.cat-card .name { font-weight: 500; font-size: 15.5px; }

/* ---------- Карточка товара (разгруженная версия) ---------- */
.goods { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; align-items: stretch; }
.gcard {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s;
  position: relative; height: 100%; min-width: 0;
}
.gcard:hover { box-shadow: var(--shadow-card); }
/* Единая зона фото: товар целиком, без обрезки и растягивания. */
.gcard-photo {
  position: relative; height: 260px; flex: 0 0 260px;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gcard-photo > a {
  width: 100%; height: 100%; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.gcard-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.gcard-brand {
  height: 17px; min-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; line-height: 17px; color: var(--gray); text-transform: uppercase; letter-spacing: .03em;
}
.gcard-fav {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gray-light); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.gcard-fav:hover { color: var(--red); border-color: var(--red); }
.gcard-badges { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 7px; max-width: calc(100% - 24px); }
.gcard-badges .b {
  height: 30px; padding: 0 9px; border-radius: 8px;
  display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent;
}
.gcard-badges .b--sale, .gcard-badges .b--promo { background: var(--badge-sale-bg); color: var(--badge-sale-fg); }
.gcard-badges .b--hit { background: var(--badge-hit-bg); color: var(--badge-hit-fg); }
.gcard-badges .b--last { background: var(--badge-last-bg); color: var(--badge-last-fg); }
.gcard-badges .b--new { background: var(--badge-new-bg); color: var(--badge-new-fg); }
.gcard-badges .b--price { background: var(--badge-price-bg); color: var(--badge-price-fg); }
.gcard-badges .b--order { background: var(--badge-order-bg); color: var(--badge-order-fg); }
.gcard-body {
  padding: 14px 16px 16px; display: grid;
  grid-template-rows: 48px 17px 41px 34px minmax(46px, auto);
  gap: 8px; flex: 1; min-height: 0;
}
.gcard-price {
  min-height: 48px; max-height: 48px; overflow: hidden;
  display: flex; align-content: flex-start; align-items: baseline; gap: 6px 10px; flex-wrap: wrap;
}
.gcard-price .now { font-size: 20px; font-weight: 800; }
.gcard-price .was { font-size: 15px; color: var(--gray); text-decoration: line-through; }
.gcard-price .disc { font-size: 16px; font-weight: 700; color: var(--orange); }
.gcard-title {
  height: 41px; min-height: 41px; max-height: 41px;
  font-size: 15px; line-height: 1.35; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.gcard-meta { height: 34px; min-height: 34px; overflow: hidden; font-size: 13px; line-height: 17px; color: var(--gray); display: flex; align-items: center; }
.gcard-meta .stock { color: var(--teal); font-weight: 500; }
.gcard-meta .stock--2 { color: var(--badge-hit-bg); }
.gcard-meta .stock--3 { color: var(--badge-order-fg); }
.gcard-body > noindex { min-width: 0; min-height: 46px; display: flex; align-items: flex-end; }
.gcard-foot {
  min-height: 46px; width: 100%; align-self: end;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.gcard-ask { font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px dashed var(--ink-soft); padding-bottom: 1px; }
.gcard-ask:hover { color: var(--teal); border-color: var(--teal); }
.gcard-buy {
  height: 46px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--teal); color: #fff;
  display: flex; align-items: center; gap: 9px; font-weight: 500;
  transition: background .15s, box-shadow .15s;
}
.gcard-buy:hover { background: var(--teal-light); box-shadow: var(--shadow-card); }

/* ---------- Промо-фото ---------- */
/* Промо-коллаж по макету: большая слева, широкая справа сверху, 3 мини снизу */
.nd-collage { display: grid; grid-template-columns: 43fr 57fr; gap: 16px; margin-top: 48px; }
.nd-collage a { display: block; border-radius: var(--radius-card); overflow: hidden; position: relative; }
.nd-collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nd-collage a:hover img { transform: scale(1.03); }
.ndc-big { aspect-ratio: 1/1; }
.ndc-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.ndc-wide { flex: 1 1 auto; min-height: 0; position: relative; }
.ndc-wide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ndc-minis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; flex: 0 0 auto; }
.ndc-minis a { aspect-ratio: 1/1; }
.nd-banner-caption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  color: #fff; font-size: 16px; font-weight: 600;
  text-shadow: 0 1px 7px rgba(0,0,0,.65);
}
@media (max-width: 760px) {
  .nd-collage { grid-template-columns: minmax(0,1fr); }
  .ndc-big { aspect-ratio: 16/10; }
  .ndc-wide { aspect-ratio: 16/9; }
}

.promo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-top: 48px; }
.promo-item { border-radius: var(--radius-card); overflow: hidden; }
.promo-item img { width: 100%; height: 340px; object-fit: cover; transition: transform .3s; }
.promo-item:hover img { transform: scale(1.03); }

/* ---------- Бренды ---------- */
.brands-banner { border-radius: var(--radius-card); overflow: hidden; position: relative; margin-bottom: -46px; }
.brands-banner img { width: 100%; aspect-ratio: 1128/380; object-fit: cover; }
/* Лента брендов: логотипы + горизонтальный скролл (просьба Юры 16.07) */
.brands-row {
  position: relative; display: flex; flex-wrap: nowrap; gap: 16px; padding: 0 40px 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
}
.brands-row::-webkit-scrollbar { height: 8px; }
.brands-row::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 4px; }
.brands-row::-webkit-scrollbar-thumb:hover { background: var(--gray); }
.brands-row .brand-card { flex: 0 0 176px; }
.brand-visual { height: 56px; display: flex; align-items: center; justify-content: center; }
.brand-logo { display: block; height: 54px; max-width: 90%; margin: 0 auto; object-fit: contain; }
.brand-card {
  min-height: 116px; background: #fff; border: 1px solid var(--gray-light); border-radius: 14px; padding: 14px 10px;
  text-align: center; font-size: 13.5px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: center;
}
.brand-card .bname, .brand-card .bcountry { display: block; }
.brand-card .bname { font-weight: 700; margin-top: 6px; }
.brand-card .bcountry { color: var(--teal); font-size: 12px; }
.brand-card img { height: 46px; margin: 0 auto; object-fit: contain; }
.brand-mark-text {
  min-height: 56px; width: 100%; padding: 8px 9px; border: 1px solid rgba(0, 128, 128, .24);
  border-radius: 10px; background: linear-gradient(145deg, #f0f9f8, #fff8ee);
  color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.2;
  letter-spacing: .035em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  overflow-wrap: anywhere;
}
.brand-mark-fallback { display: none; }
.brand-card--text .bcountry { margin-top: 8px; }

/* ---------- Блог ---------- */
.blog { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.blog-card { border: 1px solid var(--gray-light); border-radius: var(--radius-card); overflow: hidden; background: #fff; }
.blog-card img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.blog-card .bb { padding: 16px 18px 20px; }
.blog-card .bt { font-weight: 700; font-size: 16.5px; margin-bottom: 8px; }
.blog-card .bd { font-size: 13.5px; color: var(--gray); }

/* ---------- Преимущества ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px;
  margin: 56px auto 0; padding-bottom: 48px;
}
.benefit { text-align: center; }
.benefit svg { color: var(--teal); margin: 0 auto 14px; }
.benefit .bt { font-weight: 700; margin-bottom: 8px; }
.benefit .bd { font-size: 13.5px; color: var(--gray); max-width: 260px; margin: 0 auto; }

/* ---------- Футер ---------- */
footer { background: var(--bg-dark); color: #cfcfcf; padding: 48px 0 32px; }
.foot-contacts { text-align: center; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.foot-contacts .bigphone { font-size: 34px; color: var(--orange); font-weight: 500; letter-spacing: .02em; }
.foot-cols { display: flex; justify-content: center; gap: 90px; margin: 40px 0 24px; padding-top: 32px; border-top: 1px solid #4a4a4a; }
.foot-col .fh { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.foot-col a { display: block; margin-bottom: 10px; font-size: 15px; color: #cfcfcf; }
.foot-col a:hover { color: var(--orange); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #9a9a9a; flex-wrap: wrap; gap: 12px; }
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 40;
}

/* ---------- Панель прототипа (переключатель лого) ---------- */
.proto-panel {
  position: fixed; left: 20px; bottom: 20px; z-index: 100; background: #fff; border: 1px solid var(--gray-light);
  border-radius: 14px; box-shadow: var(--shadow-card); padding: 12px 16px; font-size: 13px;
}
.proto-panel b { display: block; margin-bottom: 8px; }
.proto-panel button {
  padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--gray-light); margin-right: 8px; background: #fff;
}
.proto-panel button.active { border-color: var(--teal); background: var(--teal); color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .goods { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gcard-photo { height: 240px; flex-basis: 240px; }
  .brands-row { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .head-menu { display: none; }
}
@media (max-width: 800px) {
  .promo { grid-template-columns: minmax(0,1fr); }
  .hero-slide { aspect-ratio: 16/9; }
  .promo-item img { height: 220px; }
  .cats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .goods { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gcard-photo { height: 220px; flex-basis: 220px; }
  .blog, .nd-articles { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  /* Телефон и мессенджеры на телефоне показываем компактно, а не прячем (27.07) */
  .head-phones { display: flex; }
  .brands-row { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 0 10px; }
  .slogan { font-size: 28px; }
  .hero-caption { font-size: 17px; left: 18px; bottom: 14px; }
  .foot-cols { gap: 40px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  body { overflow-x: hidden; }
  .container { padding: 0 14px; }
  /* Контакты — отдельной строкой: в один ряд шапка не помещается (28.07) */
  .topbar-inner { gap: 8px; padding: 10px 0; flex-wrap: wrap; row-gap: 8px; }
  .head-contacts { order: 4; flex: 1 0 100%; align-items: center; }
  .head-phones { justify-content: center; gap: 12px; width: 100%; }
  .logo { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .head-actions { flex: 0 0 auto; }
  .burger { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
  /* Контакты на телефоне: показываем компактно, а не прячем совсем (27.07).
     Номер и мессенджеры — главный способ связи, скрывать их нельзя. */
  .head-contacts { display: flex; }
  .head-phones .hours { display: none; }
  .hp-msg-label { display: none; }
  .hp-col { gap: 8px; }
  .phone--main { font-size: 13px; }
  .phone--main svg { width: 13px; height: 13px; }
  .msg { padding: 2px 6px; font-size: 11px; }
  .msg svg { width: 12px; height: 12px; }
  .logo { gap: 2px; }
  .logo svg { width: 26px; height: auto; }
  .logo-text { font-size: 12px; letter-spacing: .08em; }
  .head-actions { gap: 6px; }
  .iconbtn { width: 40px; height: 40px; }
  .iconbtn--geo { display: none; }
  .cats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cat-card { min-width: 0; }
  .cat-card .ph img { width: 100%; height: 96px; object-fit: contain; }
  .goods { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .gcard-photo { height: 150px; flex-basis: 150px; padding: 10px; }
  .gcard-body {
    padding: 10px; gap: 6px;
    grid-template-rows: 44px 16px 41px 34px minmax(76px, auto);
  }
  .gcard-price { min-height: 44px; max-height: 44px; gap: 4px 7px; }
  .gcard-brand { height: 16px; min-height: 16px; line-height: 16px; font-size: 11px; }
  .gcard-meta { height: 34px; min-height: 34px; line-height: 17px; font-size: 11.5px; }
  .gcard-body > noindex { min-height: 76px; }
  .gcard-foot { min-height: 76px; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 7px; }
  .gcard-ask { align-self: center; font-size: 12px; }
  .gcard-buy { width: 100%; justify-content: center; padding: 0 8px; height: 42px; }
  .gcard-price .now { font-size: 17px; }
  .gcard-price .was { font-size: 13px; }
  .gcard-badges { left: 8px; bottom: 8px; gap: 5px; max-width: calc(100% - 16px); }
  .gcard-badges .b { height: 26px; padding: 0 7px; font-size: 11px; }
  .brands-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .benefits { grid-template-columns: 1fr; }
  .foot-contacts .bigphone { font-size: 26px; }
}

/* ==================== КАТАЛОГ ==================== */
.cat-banner { position: relative; border-radius: var(--radius-card); overflow: hidden; margin-top: 20px; }
.cat-banner img { width: 100%; height: 225px; object-fit: cover; }
.cat-banner-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; text-align: center;
}
.cat-banner h1 { font-size: 40px; font-weight: 700; color: var(--ink); }
.crumbs { font-size: 14px; color: var(--ink); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--teal); }
.cat-count { color: var(--teal); font-weight: 700; font-size: 17px; }

.catalog-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 24px; margin-top: 26px; align-items: start; }

.filters-toggle {
  display: none; height: 46px; padding: 0 20px; border-radius: var(--radius-pill);
  background: var(--teal); color: #fff; font-weight: 500; align-items: center; gap: 8px; margin: 16px 0 4px;
}
.filters-close { display: none; }
.fblock { border: 1px solid var(--gray-light); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.fblock--cat { background: #F1F1F1; border-color: #F1F1F1; }
.fhead {
  width: 100%; padding: 13px 16px; font-weight: 700; font-size: 15.5px; display: flex;
  justify-content: space-between; align-items: center; text-align: left; color: var(--ink);
}
.fhead svg { transition: transform .2s; color: var(--ink-soft); flex-shrink: 0; }
.fblock--open .fhead svg { transform: rotate(180deg); }
.fbody { display: none; padding: 2px 16px 14px; }
.fblock--open .fbody { display: block; }
.nd-price-range { display: none; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.fblock--open .nd-price-range { display: grid; }
.nd-price-range label { min-width: 0; }
.nd-price-range label span { display: block; margin-bottom: 4px; color: var(--gray); font-size: 12px; }
.nd-price-range .field { width: 100%; min-width: 0; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.price-inputs { display: flex; gap: 10px; margin-bottom: 12px; }
.price-inputs input {
  width: 100%; min-width: 0; height: 40px; border: 1px solid var(--gray-light); border-radius: 10px;
  padding: 0 12px; font: inherit; font-size: 14px;
}
.price-inputs input:focus { outline: none; border-color: var(--teal); }
.price-range { width: 100%; accent-color: var(--teal); }
.show-all-params { font-size: 14.5px; font-weight: 500; color: var(--ink); padding: 6px 4px; }
.show-all-params:hover { color: var(--teal); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--teal); border-radius: var(--radius-pill); padding: 9px 18px;
  font-size: 14px; color: var(--ink); background: #fff; transition: background .15s, color .15s;
}
.chip:hover, .chip.active { background: var(--teal); color: #fff; }

.list-controls { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 18px; flex-wrap: wrap; gap: 10px; }
.lc-btn { display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.lc-btn:hover { color: var(--teal); }

.goods--catalog { grid-template-columns: repeat(3, minmax(0,1fr)); }

.list-foot { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 56px; flex-wrap: wrap; gap: 16px; }
.pagination { display: flex; align-items: center; gap: 6px; }
.page {
  min-width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 15px; color: var(--ink); padding: 0 6px;
}
.page:hover { background: #F1F1F1; }
.page.active { background: var(--teal); color: #fff; font-weight: 700; }
.total-count { color: var(--teal); font-weight: 500; }
.show-more {
  height: 46px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--teal);
  color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 9px;
  transition: background .15s, box-shadow .15s;
}
.show-more:hover { background: var(--teal-light); box-shadow: var(--shadow-card); }

@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 260px minmax(0,1fr); }
  .goods--catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .catalog-layout { grid-template-columns: minmax(0,1fr); }
  .filters-toggle { display: inline-flex; }
  body.nd-filters-open { overflow: hidden; }
  .filters { display: none; position: fixed; inset: 0; z-index: 200; background: #fff; overflow: auto; padding: 18px 16px 40px; }
  .filters.open { display: block; }
  .filters-close {
    display: block; width: 100%; height: 48px; border-radius: var(--radius-pill); background: var(--teal);
    color: #fff; font-weight: 500; margin-bottom: 16px; position: sticky; top: 0;
  }
  .cat-banner h1 { font-size: 26px; }
  .cat-banner img { height: 170px; }
  .goods--catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ==================== СТРАНИЦА ТОВАРА ==================== */
.crumbs--plain {
  margin-top: 20px; color: var(--gray); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-title { font-size: 32px; font-weight: 700; margin: 14px 0 22px; }
/* Галерея-«липучка»: фото реального размера, блок едет вслед за прокруткой,
   пока клиент читает характеристики справа (просьба Юры 16.07) */
.pd-layout { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 36px; margin-top: 18px; align-items: start; }
.pd-gallery { position: sticky; top: 86px; }
.pd-main {
  position: relative; border: 1px solid var(--gray-light); border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden;
  min-height: 220px;
}
.pd-main img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
@media (max-width: 800px) { .pd-gallery { position: static; } }
/* мелкая ссылка «перейти к описанию» у характеристик */
.nd-descr-link { float: right; font-size: 13px; font-weight: 400; color: var(--teal); margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nd-descr-link:hover { color: var(--teal-light); }
.pd-fav { width: 46px; height: 46px; }
/* Миниатюры: одна строка с горизонтальным скроллом (просьба Юры 16.07) */
.pd-thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: nowrap;
  overflow-x: auto; padding-bottom: 6px; overscroll-behavior-x: contain;
}
.pd-thumbs::-webkit-scrollbar { height: 8px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 4px; }
.pd-thumbs::-webkit-scrollbar-thumb:hover { background: var(--gray); }
.pd-thumb {
  width: 86px; height: 86px; border: 1px solid var(--gray-light); border-radius: 12px;
  padding: 7px; background: #fff; display: flex; align-items: center; justify-content: center;
  flex: 0 0 86px;
}
.pd-thumb img { max-height: 100%; object-fit: contain; }
.pd-thumb.active { border: 2px solid var(--teal); }

/* Ряд покупки — паттерн Ozon */
.pd-buy-btn {
  flex: 1 1 auto; min-height: 58px; background: var(--teal); color: #fff; border-radius: var(--radius-pill);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16.5px; padding: 8px 22px;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.pd-buy-btn:hover { background: var(--teal-light); box-shadow: var(--shadow-card); }
.pd-buy-btn:active { transform: scale(.985); }
.pd-buy-btn.incart { background: var(--orange); }
.pd-buy-btn.incart:hover { background: #D68544; box-shadow: var(--shadow-card); }
.pd-buy-sub { font-size: 12px; font-weight: 400; opacity: .92; margin-top: 2px; }
.pd-qty-step {
  display: flex; align-items: center; border: 1px solid var(--gray-light);
  border-radius: 14px; overflow: hidden; background: #fff; flex: 0 0 auto;
}
.pd-qty-btn { width: 44px; align-self: stretch; font-size: 20px; font-weight: 700; color: var(--teal); background: #fff; }
.pd-qty-btn:hover { background: #F1F1F1; }
.pd-qty-input { width: 40px; border: none; text-align: center; font: inherit; font-weight: 700; padding: 0; }
.pd-qty-input:focus { outline: none; }
.pd-fav-btn {
  width: 58px; flex: 0 0 58px; border-radius: 14px; background: #EEF5F4; color: var(--teal);
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.pd-fav-btn:hover { background: #E2EFED; }
.pd-fav-btn.active { color: #E23B3B; background: #FDEEEE; }
.pd-actions-secondary { margin-top: 10px; }
.btn-full { width: 100%; }
.pd-title { font-size: 27px; font-weight: 700; line-height: 1.25; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.pd-price .now { font-size: 32px; font-weight: 800; }
.pd-price .was { font-size: 18px; color: var(--gray); text-decoration: line-through; }
.pd-price .disc { font-size: 20px; font-weight: 700; color: var(--orange); }
.pd-stock { color: var(--gray); font-size: 14.5px; margin-bottom: 20px; }
.pd-stock .stock { color: var(--teal); font-weight: 700; }
.pd-stock .stock--2 { color: var(--badge-hit-bg); }
.pd-stock .stock--3 { color: var(--badge-order-fg); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal); color: #fff; border-radius: var(--radius-pill); font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: background .15s;
}
.btn-primary:hover { background: var(--teal-light); box-shadow: var(--shadow-card); }
.btn-outline {
  border: 1.5px solid var(--teal); color: var(--teal); border-radius: var(--radius-pill);
  font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn-outline:hover { background: var(--teal-light); border-color: var(--teal-light); color: #fff;
  box-shadow: var(--shadow-card); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16.5px; }
.btn-full { width: 100%; }
.pd-ask { display: inline-block; margin: 16px 0 4px; }
.pd-info { border: 1px solid var(--gray-light); border-radius: 14px; padding: 6px 18px; margin-top: 18px; }
.pd-info-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  font-size: 14.5px; border-bottom: 1px solid #F1F1F1;
}
.pd-info-row:last-child { border-bottom: none; }
.pd-info-row span { color: var(--gray); }
.pd-info-row b { font-weight: 500; text-align: right; }
.pd-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.perk { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-soft); }
.perk svg { color: var(--teal); flex-shrink: 0; }
.pd-section { margin-top: 8px; }
.pd-text { max-width: 900px; font-size: 15.5px; line-height: 1.6; }
.spec-table { border-collapse: collapse; width: 100%; max-width: 700px; font-size: 15px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid #F1F1F1; }
.spec-table td:first-child { color: var(--gray); width: 46%; }

/* ==================== КОРЗИНА ==================== */
.cart-layout { display: grid; grid-template-columns: minmax(0,8fr) minmax(0,4fr); gap: 32px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--gray-light); align-items: stretch;
}
.ci-photo { width: 100%; height: 100%; border: 1px solid var(--gray-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.ci-photo img { max-height: 100%; object-fit: contain; }
.ci-title { font-weight: 500; font-size: 16px; display: block; margin-bottom: 6px; }
.ci-title:hover { color: var(--teal); }
.ci-controls {
  display: flex; align-items: center; gap: 20px; margin-top: 12px;
  flex-wrap: wrap; min-width: 0;
}
.qty { display: flex; align-items: center; gap: 14px; }
.qty-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--teal); color: #fff; }
.qty-val { min-width: 22px; text-align: center; font-weight: 700; }
.ci-remove { display: flex; align-items: center; gap: 7px; color: var(--gray); font-size: 13.5px; }
.ci-remove:hover { color: var(--red); }
.ci-price { text-align: right; }
.cart-summary {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card); padding: 22px;
  position: sticky; top: 96px; background: #fff;
}
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 7px 0; color: var(--ink); }
.sum-row span:first-child { color: var(--gray); }
.sum-disc { color: var(--orange); font-weight: 500; }
.sum-total { border-top: 1px solid var(--gray-light); margin-top: 8px; padding-top: 14px; }
.sum-total span { font-size: 20px !important; font-weight: 800; color: var(--ink) !important; }
.checkout-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.field {
  height: 46px; border: 1px solid var(--gray-light); border-radius: 10px; padding: 0 14px;
  font: inherit; font-size: 14.5px; width: 100%; min-width: 0; background: #fff;
}
.field:focus { outline: none; border-color: var(--teal); }
.field--area { height: 84px; padding: 12px 14px; resize: vertical; }
.form-note { font-size: 12px; color: var(--gray); line-height: 1.45; }
.form-note a { text-decoration: underline; }

/* ==================== 404 ==================== */
.nf { text-align: center; padding: 30px 0 70px; }
.nf-code { font-size: 130px; font-weight: 800; line-height: 1; letter-spacing: .04em; }
.nf-code .t1 { color: var(--teal); }
.nf-code .t2 { color: var(--orange); }
.nf-title { font-size: 34px; font-weight: 700; margin-top: 6px; }
.nf-sub { color: var(--orange); font-size: 19px; margin: 10px 0 24px; }
.nf-btn { margin-bottom: 10px; }
.nf-img { max-width: 520px; width: 100%; margin: 0 auto; }

/* ==================== ИНФОСТРАНИЦА ==================== */
.info-page { max-width: 860px; padding-bottom: 60px; }
.info-page h2 { font-size: 21px; font-weight: 700; margin: 26px 0 10px; }
.info-page p { margin: 10px 0; font-size: 15.5px; line-height: 1.6; }
.info-page ul { margin: 10px 0 10px 22px; display: flex; flex-direction: column; gap: 7px; font-size: 15.5px; }
.info-page a { color: var(--teal); }
.info-page--italy { max-width: 1120px; }
.italy-lead {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 30px; align-items: center; padding: 30px; margin-bottom: 30px;
  border-radius: 22px; background: linear-gradient(135deg, #f0f9f8 0%, #fff7ea 100%);
}
.italy-lead img { width: 100%; height: 270px; object-fit: cover; margin: 0; }
.italy-kicker {
  display: inline-block; color: var(--teal); font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.italy-lead p { font-size: 17px; }
.italy-section { margin: 42px 0; }
.italy-section > h2 { font-size: 25px; }
.italy-link-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 18px 0 8px;
}
.italy-link-card {
  display: flex; min-height: 96px; padding: 18px; border: 1px solid var(--gray-light);
  border-radius: 14px; background: #fff; color: var(--ink) !important;
  font-size: 16px; font-weight: 700; align-items: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.italy-link-card:hover {
  border-color: var(--teal); box-shadow: var(--shadow-card); transform: translateY(-2px);
}
.italy-factories {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px;
}
.italy-factories a {
  padding: 11px 16px; border-radius: 999px; background: #f0f9f8;
  border: 1px solid rgba(0, 128, 128, .2); font-weight: 700;
}
.italy-note {
  padding: 18px 20px; margin: 24px 0; border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0; background: #fff8ee;
}
.italy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.italy-actions a {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 0 22px; border-radius: var(--radius-pill); background: var(--teal);
  color: #fff !important; font-weight: 700;
}
.italy-actions a + a { background: #fff; color: var(--teal) !important; border: 1px solid var(--teal); }
.nd-article-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 0 0 26px;
  border-radius: var(--radius-card);
}
.nd-related {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f3f8f7;
}
.nd-related h2 { margin-top: 0; }
.nd-related ul { margin-bottom: 0; }

@media (max-width: 900px) {
  .italy-lead { grid-template-columns: 1fr; padding: 22px; }
  .italy-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .cart-layout { grid-template-columns: minmax(0,1fr); }
  .cart-summary { position: static; }
  .nf-code { font-size: 84px; }
  .nf-title { font-size: 24px; }
  .page-title { font-size: 24px; }
  .pd-title { font-size: 21px; }
  .pd-price .now { font-size: 25px; }
  .cart-item { grid-template-columns: 104px minmax(0,1fr); }
  .ci-price { grid-column: 2; text-align: left; }
}
@media (max-width: 560px) {
  .italy-lead { padding: 18px; gap: 18px; }
  .hero-slide { aspect-ratio: 16/9; }
  .italy-lead img { height: 210px; }
  .italy-link-grid { grid-template-columns: 1fr; }
  .italy-link-card { min-height: 72px; }
  .italy-actions { flex-direction: column; }
}

/* ==================== СЕРВЕРНЫЕ ДОПОЛНЕНИЯ (dev) ==================== */
.hidden { display: none !important; }

/* Слайдер: кнопка Подробнее */
.hero-more {
  position: absolute; right: 26px; bottom: 24px; background: var(--teal); color: #fff;
  border-radius: var(--radius-pill); height: 42px; padding: 0 22px; display: inline-flex; align-items: center;
  font-weight: 500;
  transition: background .15s, box-shadow .15s;
}
.hero-more:hover { background: var(--teal-light); box-shadow: var(--shadow-card); }

/* Выпадающее подменю в шапке */
.hm-drop { position: relative; }
.hm-drop > a { display: inline-flex; align-items: center; gap: 4px; }
.hm-drop > a::after { content: '▾'; font-size: 11px; color: var(--gray); }
.hm-sub {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 60; background: #fff;
  border: 1px solid var(--gray-light); border-radius: 14px; box-shadow: var(--shadow-card);
  padding: 10px 0; min-width: 240px;
}
.hm-drop:hover .hm-sub { display: block; }
.hm-sub a { display: block; padding: 8px 18px; font-size: 14.5px; font-weight: 400; white-space: nowrap; }
.hm-sub a:hover { background: #F4F7F6; color: var(--teal); }

/* Мега-меню каталога (бургер, десктоп) */
.nd-mega {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--gray-light);
  box-shadow: 0 22px 34px rgba(45,45,45,.14); z-index: 140;
}
.nd-mega.open { display: block; }
.nd-mega-inner {
  display: grid; grid-template-columns: 320px minmax(0,1fr);
}
.nd-mega-cats {
  list-style: none; margin: 0; padding: 10px 0;
  border-right: 1px solid var(--gray-light); background: #fff;
  max-height: calc(100vh - 130px); overflow-y: auto; overscroll-behavior: contain;
}
/* тонкий аккуратный скроллбар списка категорий */
.nd-mega-cats::-webkit-scrollbar { width: 8px; }
.nd-mega-cats::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 4px; }
.nd-mega-cats::-webkit-scrollbar-thumb:hover { background: var(--gray); }
.nd-mega-cats li a {
  display: flex; align-items: center; gap: 12px; padding: 7px 18px;
  font-size: 14.5px; color: var(--ink); border-radius: 0;
}
.nd-mega-cats li img {
  width: 30px; height: 30px; object-fit: contain; flex-shrink: 0;
  border-radius: 6px; background: #fff;
}
.nd-mega-cats li.active { background: #F1F1F1; }
.nd-mega-cats li.active a { color: var(--teal); font-weight: 600; }
.nd-mega-panes {
  padding: 22px 30px 30px;
  max-height: calc(100vh - 130px); overflow-y: auto; overscroll-behavior: contain;
}
.nd-mega-pane { display: none; }
.nd-mega-pane.active { display: block; }
.nd-mega-title { display: inline-block; font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.nd-mega-title:hover { color: var(--teal); }
.nd-mega-links { columns: 3; column-gap: 34px; }
.nd-mega-links a {
  display: block; padding: 5px 0; font-size: 14.5px; color: var(--ink);
  break-inside: avoid;
}
.nd-mega-links a:hover { color: var(--teal); }
@media (max-width: 1150px) { .nd-mega-links { columns: 2; } }
@media (max-width: 950px) { .nd-mega { display: none !important; } }

/* Мобильное меню */
.nd-mobile-menu { display: none; background: #fff; border-top: 1px solid var(--gray-light); max-height: 70vh; overflow: auto; }
.nd-mobile-menu.open { display: block; }
.ndmm-group { padding: 12px 18px 4px; font-weight: 700; color: var(--gray); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.ndmm-item { display: block; padding: 10px 18px; border-bottom: 1px solid #F4F4F4; font-size: 15px; }
.ndmm-sub { padding-left: 30px; }

/* Цена в карточке приходит готовым HTML со старым классом — приводим к виду */
.gcard-price .now * { font-size: inherit !important; color: inherit !important; font-weight: inherit !important; }
.gcard-price .was * { font-size: inherit !important; color: inherit !important; }
.gcard-price .noprice { font-size: 15px; color: var(--gray); font-weight: 500; }
.gcard-meta .stock * { color: var(--teal) !important; font-size: inherit !important; }

/* SEO-текст на главной */
.nd-seo-text { max-width: 1000px; padding-bottom: 10px; }
.nd-seo-text h1 { font-size: 28px; font-weight: 700; margin: 44px 0 14px; }
.nd-seo-text h2 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; }
.nd-seo-text p { margin: 10px 0; font-size: 15.5px; line-height: 1.6; }
.nd-seo-text ul { margin: 10px 0 10px 22px; font-size: 15.5px; line-height: 1.8; }
.nd-seo-text a { color: var(--teal); text-decoration: underline; }
.nd-seo-row { display: flex; gap: 32px; flex-wrap: wrap; }
.nd-seo-col { flex: 1 1 300px; min-width: 280px; }
.nd-seo-img img { border-radius: var(--radius-card); max-width: 430px; width: 100%; }

/* Отзывы */
.nd-reviews { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-bottom: 40px; }
.nd-review {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card); padding: 18px 20px;
  display: flex; gap: 16px; align-items: flex-start;
}
.nd-review img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nd-review-name { font-weight: 700; margin-bottom: 6px; }
.nd-review-name span { color: var(--gray); font-weight: 400; font-size: 13.5px; }
.nd-review p { font-size: 14.5px; line-height: 1.55; }
@media (max-width: 800px) { .nd-reviews { grid-template-columns: minmax(0,1fr); } }

/* Футер: стилизация ссылок из include_footer_col_menu.html (старые классы) */
footer .zag_block_f { color: #fff; font-weight: 700; font-size: 18px; margin: 14px 0 10px; }
footer .znak_footer_column_a { display: block; margin-bottom: 10px; font-size: 15px; color: #cfcfcf; }
footer .znak_footer_column_a:hover { color: var(--orange); }
footer .foot-col .fh { display: block; }
footer .foot-contacts a { color: #cfcfcf; }
footer .foot-contacts a:hover { color: var(--orange); }

/* Телефоны из include в шапке: ссылки телефона/воцапа */
.head-phones a { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.head-phones a:hover { color: var(--teal); }
.head-phones img { height: 16px; }

/* Шапка: телефоны столбиком + время работы (правка 15.07 23:30) */
.head-phones { gap: 20px; align-items: center; }
.hp-col { display: flex; flex-direction: row; align-items: center; gap: 22px; }
.hp-col .phone { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hp-col .phone svg { color: var(--teal); flex-shrink: 0; }
.head-phones .hours { font-size: 12.5px; color: var(--gray); line-height: 1.35; }
.head-phones .hours br { line-height: 1.35; }
.head-menu { gap: 20px; font-size: 15px; }
.head-menu a, .hm-drop > a { white-space: nowrap; }
/* Ступенчатое ужатие шапки: часы → плотнее меню → меню в бургер */
@media (max-width: 1460px) { .head-phones .hours { display: none; } }
@media (max-width: 1360px) {
  .topbar-inner { gap: 16px; }
  .head-menu { gap: 13px; font-size: 14px; }
  .head-actions { gap: 10px; }
  .iconbtn { width: 44px; height: 44px; }
  .hp-col { gap: 14px; }
  .hp-col .phone { font-size: 14px; }
}
@media (max-width: 1150px) { .head-menu { display: none; } .head-phones { padding-top: 4px; } }

/* ==================== КАТАЛОГ (серверная версия) ==================== */
.nd-catalog-main { min-width: 0; }
.nd-quick-filters {
  display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 14px;
}
.nd-quick-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 7px 15px;
  border: 1px solid var(--gray-light); border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
}
.nd-quick-chip:hover {
  border-color: var(--teal); color: var(--teal);
}
.nd-quick-chip.active {
  border-color: var(--teal); background: var(--teal); color: #fff;
}
.chips-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.chip.active { background: var(--teal); color: #fff; }
.lc-label { color: var(--gray); font-size: 14.5px; }
.sort-links { display: flex; gap: 16px; }
.sort-links a { font-size: 14.5px; color: var(--ink); border-bottom: 1px dashed var(--gray); }
.sort-links a.active { color: var(--teal); border-bottom: none; font-weight: 700; }
.fselect {
  width: 100%; height: 42px; border: 1px solid var(--gray-light); border-radius: 10px;
  padding: 0 32px 0 10px; font: inherit; font-size: 14px; background: #fff; cursor: pointer;
  /* своя стрелка вместо нативной: отступ справа = отступу текста слева (10px) */
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23555555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.fselect::-ms-expand { display: none; }
.fselect:focus { outline: none; border-color: var(--teal); }
.filters .fhead { cursor: default; }
.nd-filter-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.nd-filter-clear { font-size: 14px; color: var(--gray); text-decoration: underline; }
.nd-filter-clear:hover { color: var(--red); }
.filters .field { height: 42px; }
.nd-dimensions { padding-top: 0; }
.nd-dimension-row + .nd-dimension-row {
  border-top: 1px solid #eeeeee; margin-top: 12px; padding-top: 12px;
}
.nd-dimension-label {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px;
  font-size: 13.5px; font-weight: 500;
}
.nd-dimension-label span { color: var(--gray); font-size: 12px; font-weight: 400; }
.nd-dimension-range {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px;
}
.nd-dimension-range label { min-width: 0; }
.nd-dimension-range label span {
  display: block; margin-bottom: 4px; color: var(--gray); font-size: 12px;
}
.nd-dimension-range .field { width: 100%; min-width: 0; }

@media (max-width: 520px) {
  .nd-quick-filters { gap: 7px; margin-bottom: 12px; }
  .nd-quick-chip { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .sort-links { gap: 10px 14px; flex-wrap: wrap; }
}

/* SEO-блоки под каталогом */
.nd-seo-below { padding-bottom: 40px; }
.nd-content-block {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card);
  padding: 20px 24px; margin-top: 22px; font-size: 15px; line-height: 1.55;
}
.nd-cb-header { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.nd-cb-subheader { font-weight: 500; margin-bottom: 8px; }
.nd-cb-body ul { margin: 10px 0 10px 22px; }
.nd-cb-body li { margin: 4px 0; }
.nd-link { color: var(--teal); text-decoration: underline; }
.nd-producer-logo { max-height: 90px; width: auto; margin: 6px 0 10px; }
.nd-details { margin: 10px 0; }
.nd-details summary {
  cursor: pointer; color: var(--teal); font-weight: 500; user-select: none;
  padding: 6px 0; font-size: 15.5px;
}
.nd-details summary:hover { color: var(--teal-light); }
.nd-details-body { margin: 10px 0 6px 12px; }
.nd-categ-list > li { margin-bottom: 8px; }
.nd-collections { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.nd-collection-card { text-align: center; border: 1px solid var(--gray-light); border-radius: 14px; padding: 12px; }
.nd-collection-card img { max-height: 110px; margin: 0 auto 8px; object-fit: contain; }
.nd-collection-card:hover { box-shadow: var(--shadow-card); }
.nd-collection-card span { font-size: 14px; font-weight: 500; }
@media (max-width: 800px) { .nd-collections { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ==================== КАРТОЧКА ТОВАРА (серверная версия) ==================== */
.nd-admin-link { background: #ffffb8; border-radius: 14px; padding: 10px 16px; margin: 14px 0 4px; max-width: 560px; }
.nd-admin-link a { color: #5252e7; font-size: 15px; }
.pd-zoom-hint { text-align: center; color: var(--gray); font-size: 13px; margin-top: 8px; }
.pd-price .now * { font-size: inherit !important; color: inherit !important; font-weight: inherit !important; }
.pd-price .was * { font-size: inherit !important; color: inherit !important; }
.pd-stock nobr, .pd-stock nobr * { color: var(--orange); font-weight: 500; }
.pd-variants { border: 1px solid var(--gray-light); border-radius: 14px; padding: 12px 16px; margin: 14px 0 4px; }
.pd-variants-title { font-weight: 700; margin-bottom: 6px; }
.pd-variants .fcheck { justify-content: flex-start; gap: 10px; }
.pd-variant-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.pd-variant-price * { font-size: inherit !important; color: inherit !important; }
.pd-qty { width: 74px; flex-shrink: 0; }
.pd-qty .field { text-align: center; height: 52px; font-size: 17px; font-weight: 700; }
.pd-actions { margin-top: 16px; }
.pd-dop-props {
  margin-top: 16px; padding: 14px 16px; border: 1px solid var(--gray-light);
  border-radius: 14px; background: #fafbfb; font-size: 14px; line-height: 1.55;
  overflow-x: auto;
}
.pd-dop-props-content > :first-child { margin-top: 0; }
.pd-dop-props-content > :last-child { margin-bottom: 0; }
.pd-dop-props table { width: 100%; border-collapse: collapse; background: #fff; }
.pd-dop-props th, .pd-dop-props td {
  padding: 9px 10px; border-bottom: 1px solid var(--gray-light);
  text-align: left; vertical-align: top;
}
.pd-dop-props th, .pd-dop-props td:first-child { color: var(--ink-soft); font-weight: 600; }
.pd-dop-props tr:last-child th, .pd-dop-props tr:last-child td { border-bottom: 0; }
.pd-dop-props ul, .pd-dop-props ol { margin: 8px 0; padding-left: 22px; }
.pd-dop-props li + li { margin-top: 5px; }
.pd-dop-props p { margin: 7px 0; }
.pd-nav-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 14px; }
.nd-gallery { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.nd-gallery-item {
  border: 1px solid var(--gray-light); border-radius: 14px; overflow: hidden; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center; padding: 8px; background: #fff;
}
.nd-gallery-item img { max-height: 100%; object-fit: contain; }
.nd-gallery-item:hover { box-shadow: var(--shadow-card); }
.nd-item-details { max-width: 1000px; }
.nd-request { max-width: 760px; }
.nd-request-card {
  padding: 28px 30px; background: #fff; border: 1px solid var(--gray-light);
  border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.nd-request-title { margin: 0 0 6px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.nd-request-sub { margin: 0 0 20px; color: var(--gray); font-size: 14px; line-height: 1.45; }
.nd-request-row {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 12px; margin-bottom: 14px;
}
.nd-request-field { position: relative; }
.nd-request-field input {
  width: 100%; height: 52px; padding: 20px 14px 6px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--gray-light); border-radius: 12px;
  outline: none; font: inherit; font-size: 15.5px;
  transition: border-color .15s, box-shadow .15s;
}
.nd-request-field label {
  position: absolute; top: 16px; left: 15px; color: var(--gray); font-size: 15px;
  line-height: 1; pointer-events: none; transition: all .15s;
}
.nd-request-field--required label:after { content: " *"; color: var(--red); }
.nd-request-field input:focus,
.nd-request-text:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,122,106,.12);
}
.nd-request-field input:focus + label,
.nd-request-field input:not(:placeholder-shown) + label {
  top: 7px; color: var(--teal); font-size: 11.5px;
}
.nd-request-text-label {
  display: block; margin: 0 0 6px; color: var(--gray); font-size: 12px; font-weight: 500;
}
.nd-request-text {
  width: 100%; min-height: 110px; margin: 0; padding: 12px 14px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--gray-light); border-radius: 12px;
  outline: none; font: inherit; font-size: 14.5px; line-height: 1.45; resize: vertical;
}
.nd-request-agree {
  display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px;
  color: var(--gray); font-size: 12.5px; line-height: 1.45;
}
.nd-request-agree input {
  flex: none; width: 20px; height: 20px; margin: 0;
  accent-color: var(--teal); cursor: pointer;
}
.nd-request-agree a { color: var(--teal); text-decoration: underline; }
.nd-request-submit { width: 100%; min-height: 54px; border: 0; font-weight: 600; }
.nd-request-submit:disabled,
.nd-request-submit:disabled:hover {
  color: #f6f8f8; background: #c3cccc; cursor: not-allowed;
}
.nd-request-note {
  margin: 11px 0 0; color: var(--gray); font-size: 12px;
  line-height: 1.4; text-align: center;
}
@media (max-width: 800px) {
  .nd-gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nd-request-row { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .nd-request-card { padding: 20px 14px; border-radius: 14px; }
  .nd-request-title { font-size: 21px; }
}

/* ==================== КОРЗИНА (серверная версия) ==================== */
.nd-cart-empty { padding: 30px 0 50px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.nd-cart-empty p { font-size: 17px; color: var(--gray); }
.ci-price-one { font-weight: 700; white-space: nowrap; }
.ci-price-one * { font-size: inherit !important; color: inherit !important; }
.nd-qty-input { width: 74px; text-align: center; font-weight: 700; }
.ci-sum-label { font-size: 12.5px; color: var(--gray); text-align: right; }
.ci-sum { font-size: 18px; font-weight: 800; white-space: nowrap; text-align: right; }
.nd-form-sec { font-weight: 700; font-size: 17px; margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--gray-light); }
.nd-field-label { display: block; font-size: 13px; color: var(--gray); margin: 10px 0 4px; }
.nd-field-label .req { color: var(--red); }
.nd-select-hints { font-size: 13px; color: var(--ink-soft); margin: 8px 2px 2px; }
.nd-select-hints .delivery_info, .nd-select-hints .payment_info { padding: 4px 0; }
.nd-km-input { display: inline-block; height: 34px; padding: 0 8px; margin-left: 6px; }
.nd-cart-admin-html { font-size: 14px; margin-top: 14px; line-height: 1.5; }
.nd-agreement { font-size: 12.5px; color: var(--gray); margin: 16px 0 12px; line-height: 1.5; }
.nd-agreement .fcheck { align-items: flex-start; margin-top: 8px; color: var(--ink); }
.nd-agreement input { margin-top: 3px; flex-shrink: 0; }
.nd-submit { margin-top: 4px; }
@media (max-width: 900px) {
  .ci-sum-label, .ci-sum { text-align: left; }
}

/* Инфостраницы и 404 (серверные) */
.info-page img { border-radius: 14px; margin: 10px 0; height: auto; }
.info-page table { border-collapse: collapse; margin: 12px 0; max-width: 100%; }
.info-page td, .info-page th { border: 1px solid var(--gray-light); padding: 8px 12px; font-size: 14.5px; }
.info-page h2, .info-page h3 { margin: 22px 0 10px; }
.nf-help { max-width: 560px; margin: 26px auto 0; text-align: left; font-size: 15px; color: var(--ink-soft); }
.nf-help ul { margin: 8px 0 0 22px; display: flex; flex-direction: column; gap: 6px; }

/* ==================== МЕЛКИЕ СТРАНИЦЫ ==================== */
.nd-news-grid { padding-bottom: 40px; }
.nd-news-date { font-size: 12.5px; color: var(--gray); margin-bottom: 6px; }
.nd-news-img { max-width: 420px; border-radius: var(--radius-card); margin-bottom: 14px; }
.nd-articles {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px; padding-bottom: 40px;
}
.nd-article-row {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card);
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: box-shadow .15s;
}
.nd-article-row:hover { box-shadow: var(--shadow-card); }
.nd-article-preview {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 0; margin: 0;
}
.nd-article-name {
  font-weight: 700; font-size: 16.5px; color: var(--teal);
  padding: 16px 18px 8px;
}
.nd-article-info { font-size: 14px; color: var(--gray); padding: 0 18px 18px; }
.nd-faq { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
.nd-faq-item { border: 1px solid var(--gray-light); border-radius: 14px; padding: 16px 20px; }
.nd-faq-q { font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.nd-faq-q::before { content: 'Вопрос: '; color: var(--teal); }
.nd-faq-a::before { content: 'Ответ: '; color: var(--orange); font-weight: 700; }
.nd-faq-a { font-size: 15px; line-height: 1.55; }
.nd-root-cats { margin-bottom: 50px; }
.nd-goods-page { margin-bottom: 50px; }
.nd-alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.nd-letter {
  min-width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--teal); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; padding: 0 6px;
}
.nd-letter:hover { background: var(--teal); color: #fff; }
.nd-letter--off { border-color: #EDEDED; color: #C8C8C8; }
.nd-letter--off:hover { background: none; color: #C8C8C8; }
.nd-producers { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; margin-bottom: 50px; }
.nd-producer-card {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card); padding: 16px 12px;
  text-align: center; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s;
}
.nd-producer-card:hover { box-shadow: var(--shadow-card); }
.nd-producer-card .ph { height: 70px; display: flex; align-items: center; justify-content: center; }
.nd-producer-card .ph img { max-height: 70px; object-fit: contain; }
.nd-producer-card .name { font-weight: 700; font-size: 14.5px; }
.nd-producer-card .country { font-size: 12.5px; color: var(--teal); }
.nd-sent { text-align: center; padding: 60px 0 90px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nd-sent-icon { color: var(--teal); }
.nd-sent-sub { color: var(--gray); font-size: 17px; margin-bottom: 8px; }
@media (max-width: 900px) { .nd-producers { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 520px) { .nd-producers { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ==================== ЖИВОЙ ПОИСК В ШАПКЕ ==================== */
.nd-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nd-search-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--gray-light);
  box-shadow: 0 14px 28px rgba(45,45,45,.16);
}
.nd-search-panel.open { display: block; }
.nd-search-panel > .container { padding-top: 18px; padding-bottom: 18px; }
.nd-search-form {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center;
  gap: 12px; min-height: 56px; border: 2px solid var(--teal); border-radius: 16px;
  padding: 7px 8px 7px 16px; background: #fff;
}
.nd-search-form-icon { color: var(--teal); flex-shrink: 0; }
.nd-search-form input {
  min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; -webkit-appearance: none;
}
.nd-search-form input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.nd-search-submit {
  height: 40px; padding: 0 24px; border-radius: var(--radius-pill);
  background: var(--teal); color: #fff; font-weight: 700;
  transition: background .15s, box-shadow .15s;
}
.nd-search-submit:hover { background: var(--teal-light); box-shadow: var(--shadow-card); }
.nd-search-close {
  width: 40px; height: 40px; border-radius: 50%; color: var(--gray);
  font-size: 30px; line-height: 1;
}
.nd-search-close:hover { background: #f2f2f2; color: var(--ink); }
.nd-search-results {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px;
  max-height: min(54vh, 430px); overflow: auto; margin-top: 12px;
}
.nd-search-result {
  display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 12px;
  min-width: 0; padding: 8px; border: 1px solid transparent; border-radius: 12px;
}
.nd-search-result:hover, .nd-search-result:focus {
  border-color: var(--gray-light); background: #f7faf9; outline: none;
}
.nd-search-result img {
  width: 64px; height: 64px; border-radius: 9px; object-fit: contain; background: #f6f6f6;
}
.nd-search-result-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nd-search-result-copy strong {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 15px; line-height: 1.3;
}
.nd-search-result-copy small { color: var(--gray); font-size: 13px; }
.nd-search-all {
  grid-column: 1 / -1; justify-self: center; color: var(--teal); font-weight: 700;
  padding: 10px 18px; border-radius: var(--radius-pill);
}
.nd-search-all:hover, .nd-search-all:focus { background: #edf7f5; outline: none; }
.nd-search-empty {
  grid-column: 1 / -1; color: var(--gray); text-align: center; padding: 18px 10px 4px;
}
.nd-search-status { min-height: 18px; margin-top: 4px; color: var(--gray); font-size: 13px; text-align: center; }
.iconbtn:focus-visible, .burger:focus-visible, .nd-search-submit:focus-visible,
.nd-search-close:focus-visible { outline: 3px solid rgba(11,122,106,.28); outline-offset: 2px; }

/* ==================== AJAX-КАТАЛОГ (с полным GET fallback) ==================== */
#ndCatalogArea { transition: opacity .16s ease; outline: none; }
#ndCatalogArea.nd-catalog-loading { opacity: .5; pointer-events: none; cursor: progress; }

@media (max-width: 700px) {
  .nd-search-panel > .container { padding: 10px 12px 14px; }
  .nd-search-form {
    grid-template-columns: auto minmax(0,1fr) auto; gap: 8px;
    min-height: 50px; padding: 5px 5px 5px 12px;
  }
  .nd-search-form-icon { width: 19px; height: 19px; }
  .nd-search-form-icon { grid-column: 1; grid-row: 1; }
  .nd-search-form input { grid-column: 2; grid-row: 1; font-size: 16px; }
  .nd-search-close { grid-column: 3; grid-row: 1; width: 36px; height: 36px; }
  .nd-search-submit { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .nd-search-results { grid-template-columns: minmax(0,1fr); max-height: 52vh; }
  .nd-search-result { grid-template-columns: 54px minmax(0,1fr); }
  .nd-search-result img { width: 54px; height: 54px; }
  .nd-search-result-copy strong { -webkit-line-clamp: 3; }
}

/* Держим узкие правила последними: поздний desktop-breakpoint 1360px не должен
   снова увеличивать кнопки и отступы на телефоне. */
@media (max-width: 520px) {
  .topbar-inner { gap: 8px; padding: 10px 0; }
  .head-actions { gap: 6px; }
  .iconbtn { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .iconbtn--callback { display: none; }
}

/* ---------- Контакты в шапке (27.07: городской номер убран) ---------- */
/* Номер и мессенджеры — одной строкой, прижаты влево (просьба Юры 27.07). */
.head-phones { align-items: center; }
.hp-col { display: flex; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.phone--main { font-size: 16px; font-weight: 600; white-space: nowrap; }
.hp-msg { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.hp-msg-label { color: var(--gray); font-size: 12px; white-space: nowrap; }
.msg {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 3px 8px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.msg svg { flex: none; }
.msg--wa { color: #128C7E; background: rgba(18,140,126,.08); }
.msg--wa:hover { background: rgba(18,140,126,.16); border-color: rgba(18,140,126,.35); }
.msg--max { color: #1B6BF0; background: rgba(27,107,240,.08); }
.msg--max:hover { background: rgba(27,107,240,.16); border-color: rgba(27,107,240,.35); }
.msg--tg { color: #229ED9; background: rgba(34,158,217,.08); }
.msg--tg:hover { background: rgba(34,158,217,.16); border-color: rgba(34,158,217,.35); }
@media (max-width: 1240px) {
  .hp-msg-label { display: none; }
}
@media (max-width: 1100px) {
  .hp-col { gap: 10px; }
}

}

.msg--tg { color: #229ED9; background: rgba(34,158,217,.08); }
.msg--tg:hover { background: rgba(34,158,217,.16); border-color: rgba(34,158,217,.35); }


/* Товар уже в корзине: кнопка меняет цвет вместо всплывающего окна (27.07).
   Оранжевый — тот же акцент, что и в карточке товара. */
/* Селектор усилен: одиночный класс перебивался правилом кнопки (27.07) */
.gcard-buy.gcard-buy--added,
.gcard-buy.gcard-buy--added:hover {
  background: #C47530 !important; border-color: #C47530 !important; color: #fff !important;
}
.gcard-buy--added:hover { filter: brightness(1.06); }

/* Количество в корзине (27.07): кнопки спокойные — светлый фон и зелёный знак,
   чтобы не перетягивать внимание с товара и суммы. */
.ci-qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--gray-light, #E0E0E0); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.ci-qty-btn {
  width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 0;
  background: #fff; color: var(--teal);
  font-size: 17px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.ci-qty-btn:hover { background: rgba(11,122,106,.08); }
.ci-qty .nd-qty-input {
  width: 44px; height: 34px; text-align: center;
  border: 0; border-left: 1px solid var(--gray-light, #E0E0E0);
  border-right: 1px solid var(--gray-light, #E0E0E0);
  border-radius: 0; padding: 0; background: #fff;
}
.ci-qty .nd-qty-input::-webkit-outer-spin-button,
.ci-qty .nd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ci-qty .nd-qty-input { -moz-appearance: textfield; }

/* Строка экономии в корзине (27.07): показываем, сколько покупатель сэкономил */
.sum-discount { color: #C47530; }
.sum-discount span:last-child { font-weight: 600; }

/* Подпись «есть варианты отделки» в плитке (27.07): заметная, но не кричащая */
.gcard-variants {
  margin-top: 4px; font-size: 12px; color: var(--orange, #C47530);
  display: inline-flex; align-items: center; gap: 4px;
}
.gcard-variants::before { content: "◈"; font-size: 10px; }

/* Артикул в плитке (28.07): покупателю удобно назвать его менеджеру */
.gcard-art { margin-top: 2px; font-size: 12px; color: var(--orange, #C47530); }

/* Цена до скидки в корзине (28.07): видно выгоду там, где принимают решение */
.ci-price-was {
  margin-left: 8px; color: var(--gray, #999);
  text-decoration: line-through; font-size: 13px; white-space: nowrap;
}

/* Срок поставки в корзине оранжевым: сразу видно, что товар не со склада (28.07) */
.cart-items .stock { color: var(--teal, #0B7A6A); }
.cart-items .stock--order { color: var(--orange, #C47530); }
.cart-items .gcard-meta .stock { font-weight: 500; }

/* Выбор расцветки в карточке товара (28.07): варианты склеенных близнецов */
.pd-family { margin: 18px 0; }
.pd-family-title { font-size: 14px; color: var(--gray, #666); margin-bottom: 8px; }
.pd-family-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-family-item {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--gray-light, #E0E0E0);
  font-size: 13px; color: var(--dark, #2D2D2D); text-decoration: none;
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-family-item:hover {
  border-color: #DFA574; background: rgba(196,117,48,.04);
  box-shadow: var(--shadow-card); transform: translateY(-2px);
}
.pd-family-item--current {
  border-color: var(--orange, #C47530); background: #fff; color: var(--orange, #C47530);
  font-weight: 500; cursor: default;
}
/* выбранный уже выбран — подниматься ему некуда */
.pd-family-item--current:hover { box-shadow: none; transform: none; background: #fff; }

/* Миниатюры расцветок (28.07): по одному названию цвет не представить */
/* Amazon-манера (28.07): в ряду только миниатюры, название отделки — строкой сверху.
   При десятке расцветок плашки с подписями занимали пол-экрана. */
.pd-family-item { gap: 0; padding: 4px; border-radius: 12px; max-width: none; }
.pd-family-current {
  display: block; margin-top: 3px;
  color: var(--orange, #C47530); font-weight: 600; font-size: 14px;
  /* Высота под три строки: у разных расцветок подпись разной длины,
     и без резерва блок с плитками прыгал при переключении (28.07). */
  line-height: 1.35;
  height: calc(1.35em * 3); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
@media (max-width: 520px) {
  /* на телефоне строка короче — резервируем больше */
  .pd-family-current { height: calc(1.35em * 4); -webkit-line-clamp: 4; }
}
.pd-family-noph {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--gray); text-transform: uppercase;
}
.pd-family-thumb {
  width: 48px; height: 48px; flex: none;
  border-radius: 9px; object-fit: cover; background: #f4f4f4;
}

/* Длинный список расцветок сворачиваем (28.07, порог 25): иначе полсотни вариантов
   отодвигают кнопку покупки за пределы экрана. */
.pd-family-list--collapsed .pd-family-item:nth-child(n+26) { display: none; }
.pd-family-more {
  margin-top: 10px; padding: 7px 16px;
  border: 1.5px solid var(--orange, #C47530); border-radius: 999px;
  background: #fff; color: var(--orange, #C47530);
  font-size: 13px; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.pd-family-more:hover { background: rgba(196,117,48,.06);
  box-shadow: var(--shadow-card); transform: translateY(-2px); }

/* Ссылка под блоком «Товары со скидкой» на карточке (28.07) */
.pd-all-discount { display: inline-block; margin-top: 18px; font-size: 15px; }
.pd-section:last-of-type { background: #fff; padding-bottom: 34px; }

/* Галочки выбора товаров в корзине (28.07) */
.ci-pick { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ci-pick-input { width: 20px; height: 20px; accent-color: var(--teal); cursor: pointer; }
.cart-item--off { opacity: .5; }
.cart-item--off .ci-sum { text-decoration: line-through; }
.nd-pick-hint { font-size: 13px; color: var(--gray); margin-bottom: 10px; }

/* Блок «Клиентам нравятся» в каталоге (28.07) */
.nd-liked { margin: 8px 0 34px; }
.nd-liked .section-title { margin-bottom: 16px; }

/* Желаемая дата доставки и примечание о крупногабарите (28.07) */
.nd-date-input { width: 100%; }
.nd-hint-note { color: var(--gray); font-size: 13px; }

/* Поле «сколько километров от МКАД» (28.07): раньше терялось в строке текста */
.nd-km-row { margin-top: 10px; }
.nd-km-row label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.nd-km-field { display: flex; align-items: center; gap: 8px; }
.nd-km-field .nd-km-input { width: 110px; }
.nd-km-unit { color: var(--gray); font-size: 14px; }

/* Календарь желаемой даты (28.07): свой, потому что браузерный показывает
   дату в формате системной локали — у покупателей выходило 7/28/2026 */
.nd-date-wrap { position: relative; }
.nd-date-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--gray); cursor: pointer; padding: 4px;
}
.nd-date-btn:hover { color: var(--teal); }
.nd-cal {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0;
  width: 280px; background: #fff; border: 1px solid var(--gray-light);
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow-card);
}
.nd-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nd-cal-title { font-weight: 600; font-size: 15px; }
.nd-cal-nav {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: #fff;
  font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
}
.nd-cal-nav:hover { background: rgba(196,117,48,.08); color: var(--orange); }
.nd-cal-week, .nd-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.nd-cal-week span { text-align: center; font-size: 12px; color: var(--gray); padding: 4px 0; }
.nd-cal-day {
  height: 34px; border: 0; background: #fff; border-radius: 8px;
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.nd-cal-day:hover { background: rgba(196,117,48,.10); color: var(--orange); }
.nd-cal-past { color: #C9C9C9; cursor: default; display: flex; align-items: center; justify-content: center; }
.nd-cal-empty { height: 34px; }

/* ===== Фильтры каталога (28.07): цена, цвет, материал, габариты ===== */
.nd-filters {
  border: 1px solid var(--gray-light); border-radius: var(--radius-card);
  background: #fff; padding: 16px 18px; margin: 0 0 22px;
}
.ndf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 22px; }
.ndf-block { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ndf-title { font-size: 13px; color: var(--gray); }
.ndf-range { display: flex; align-items: center; gap: 7px; }
.ndf-num { width: 92px; }
.ndf-dash { color: var(--gray); }
.ndf-select { min-width: 190px; }

/* Цвет кружочками: название всплывает подсказкой, чтобы не разносить строку */
.ndf-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ndf-color { position: relative; cursor: pointer; line-height: 0; }
.ndf-color input { position: absolute; opacity: 0; width: 0; height: 0; }
.ndf-dot {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--gray-light); box-shadow: inset 0 0 0 2px #fff;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.ndf-color:hover .ndf-dot { transform: translateY(-2px); box-shadow: var(--shadow-card), inset 0 0 0 2px #fff; }
.ndf-color.is-on .ndf-dot { border-color: var(--orange); border-width: 2.5px; }
.ndf-clear-color {
  font-size: 20px; line-height: 1; color: var(--gray); text-decoration: none;
  padding: 0 4px;
}
.ndf-clear-color:hover { color: var(--orange); }

/* Сами цвета. Светлые получают заметную обводку, иначе теряются на белом. */
.ndf-dot--белый { background: #FFFFFF; border-color: #C9C9C9; }
.ndf-dot--черный { background: #232323; }
.ndf-dot--серый { background: #9A9A9A; }
.ndf-dot--серебристый { background: linear-gradient(135deg, #E8E8E8, #A8A8A8); }
.ndf-dot--золотой { background: linear-gradient(135deg, #E8C36A, #B8912F); }
.ndf-dot--бежевый { background: #E4D5BE; border-color: #CBB99C; }
.ndf-dot--коричневый { background: #7A5230; }
.ndf-dot--красный { background: #C0392B; }
.ndf-dot--оранжевый { background: #E07B27; }
.ndf-dot--желтый { background: #E9C019; }
.ndf-dot--зеленый { background: #4E8C57; }
.ndf-dot--синий { background: #35618E; }
.ndf-dot--фиолетовый { background: #7A5A9E; }
.ndf-dot--розовый { background: #DFA0B4; }
.ndf-dot--прозрачный {
  background: linear-gradient(135deg, #F4FAFC 40%, #D8E9F0 100%);
  border-color: #B9D3DD;
}
.ndf-dot--разноцветный {
  background: conic-gradient(#C0392B, #E9C019, #4E8C57, #35618E, #7A5A9E, #C0392B);
}

.ndf-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ndf-apply {
  height: 42px; padding: 0 26px; border: 0; border-radius: var(--radius-pill);
  background: var(--teal); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.ndf-apply:hover { background: var(--teal-light); box-shadow: var(--shadow-card); }
.ndf-reset { font-size: 14px; color: var(--gray); text-decoration: none; border-bottom: 1px dashed var(--gray); }
.ndf-reset:hover { color: var(--orange); border-color: var(--orange); }

@media (max-width: 760px) {
  .nd-filters { padding: 14px; }
  .ndf-row { gap: 14px 16px; }
  .ndf-num { width: 78px; }
  .ndf-select { min-width: 0; width: 100%; }
  .ndf-actions { margin-left: 0; width: 100%; }
  .ndf-apply { flex: 1 1 auto; }
}

/* «Любой цвет» — крестик рядом с кружочками (28.07) */
.ndf-dot--any {
  background: #fff; color: var(--gray); font-size: 15px; line-height: 23px;
  text-align: center; border-color: var(--gray-light);
}
.ndf-color--any:hover .ndf-dot--any { color: var(--orange); }

/* Кружок цвета отзывается на клик сразу, не дожидаясь перезагрузки (28.07) */
.ndf-color input:checked + .ndf-dot {
  border-color: var(--orange); border-width: 2.5px; transform: translateY(-1px);
}
.ndf-color input:focus-visible + .ndf-dot { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Выбор товара в корзине — кружком (Юра, 28.07). Сам чекбокс прячем,
   рисуем круг: пустой — товар не идёт в заказ, с галочкой — идёт. */
/* Метка выбора сидит в левом верхнем углу фото, по контуру его рамки (28.07) */
.ci-photo-box { position: relative; width: 150px; min-height: 150px; align-self: stretch; }
.ci-photo-box .ci-photo { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; }
.ci-pick { position: absolute; left: 0; top: 0; z-index: 3; line-height: 0; }
.ci-pick-input {
  position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; z-index: 2;
}
.ci-pick-mark {
  display: block; width: 30px; height: 30px;
  border-radius: 14px 10px 10px 10px;
  border: 1px solid var(--gray-light); border-right-width: 1px; border-bottom-width: 1px;
  background: #fff;
  transition: background .15s, border-color .15s, box-shadow .15s;
  position: relative;
}
.ci-pick-mark::after {
  content: ""; position: absolute; left: 11px; top: 7px;
  width: 7px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform .15s;
}
.ci-pick-input:checked + .ci-pick-mark {
  background: var(--teal); border-color: var(--gray-light);
}
.ci-pick-input:checked + .ci-pick-mark::after { transform: rotate(45deg) scale(1); }
.ci-pick:hover .ci-pick-mark { box-shadow: var(--shadow-card); }
.ci-pick-input:focus-visible + .ci-pick-mark { outline: 2px solid var(--teal); outline-offset: 2px; }

/* На телефоне фото меньше — рамка выбора вместе с ним (28.07) */
@media (max-width: 760px) {
  .ci-photo-box { width: 104px; min-height: 104px; }
  .ci-pick { left: 0; top: 0; }
  .ci-pick-mark { width: 26px; height: 26px; border-radius: 14px 9px 9px 9px; }
  .ci-pick-mark::after { left: 9px; top: 6px; width: 6px; height: 10px; }
}

/* Двусторонний бегунок размеров (28.07). Два ползунка лежат друг на друге:
   левый задаёт «от», правый «до». Полосу между ними подсвечиваем. */
.ndr { margin-top: 10px; }
.ndr-track {
  position: relative; height: 26px; display: flex; align-items: center;
}
.ndr-line {
  position: absolute; left: 0; right: 0; height: 4px;
  background: var(--gray-light); border-radius: 2px;
}
.ndr-fill {
  position: absolute; height: 4px; background: var(--teal); border-radius: 2px;
}
.ndr-track input[type="range"] {
  position: absolute; left: 0; width: 100%; margin: 0; padding: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
  height: 26px;
}
.ndr-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal); cursor: pointer;
  box-shadow: 0 1px 3px rgba(45,45,45,.2);
}
.ndr-track input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal); cursor: pointer;
}
.ndr-track input[type="range"]::-webkit-slider-runnable-track { background: none; }
.ndr-track input[type="range"]::-moz-range-track { background: none; }
.ndr-vals { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.ndr-vals input { width: 88px; }
.ndr-dash { color: var(--gray); }

/* Серия товара — компактная лента под фото (28.07).
   Мелкие плашки: человек листает их, пока смотрит товар, а не уходит вниз страницы. */
.pd-series { margin: 26px 0 4px; }
.pd-series-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pd-series-title { font-size: 16.5px; font-weight: 700; }
.pd-series-note { color: var(--gray); font-size: 13.5px; }
.pd-series-row {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
.pd-series-card {
  flex: 0 0 132px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--gray-light); border-radius: 12px; padding: 8px;
  background: #fff; transition: box-shadow .15s, border-color .15s;
}
.pd-series-card:hover { box-shadow: var(--shadow-card); border-color: var(--teal); }
.pd-series-photo {
  display: flex; align-items: center; justify-content: center;
  height: 96px; overflow: hidden; border-radius: 8px;
}
.pd-series-photo img { max-height: 96px; max-width: 100%; object-fit: contain; }
.pd-series-name {
  font-size: 12.5px; line-height: 1.35; height: calc(1.35em * 2);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pd-series-price { font-size: 13.5px; font-weight: 700; }
@media (max-width: 760px) {
  .pd-series-card { flex-basis: 116px; }
  .pd-series-photo { height: 84px; }
  .pd-series-photo img { max-height: 84px; }
}

/* Мобильная корзина и шапка: строка управления не влезала в 360 px,
   значок корзины выступал за экран на 4 px (проверка Codex 28.07) */
@media (max-width: 520px) {
  .ci-controls { gap: 10px 12px; }
  .ci-qty { flex: 0 0 auto; }
  .ci-remove { flex: 0 0 auto; font-size: 13px; }
  .ci-price, .ci-sum { flex: 1 1 100%; }
  .head-actions { gap: 4px; }
  .iconbtn { width: 38px; height: 38px; }
  .iconbtn .badge, .iconbtn span[class*="count"] { transform: scale(.9); }
}

/* Счётчик корзины не должен расширять страницу (проверка Codex 28.07):
   он выступал за правый край кнопки и тянул за собой ширину документа. */
.iconbtn { overflow: visible; }
.head-actions { padding-right: 2px; }
.iconbtn .badge { right: 0 !important; }
