/* =========================================================
   Maslo&Slivki — современный дизайн
   Оптовые поставки сычужных пивных сыров Чечил
   ========================================================= */

:root {
  --ink: #1f1b16;
  --ink-soft: #4a4238;
  --muted: #8a8072;
  --line: #e9e3d8;
  --cream: #f7f4ee;
  --cream-2: #fdfbf7;
  --white: #ffffff;

  --accent: #c8452a;
  --accent-dark: #a8341d;
  --accent-soft: #fbe9e3;
  --green: #5b7052;
  --green-dark: #46583f;
  --green-soft: #e9efe4;
  --honey: #d9a441;
  --honey-soft: #fbf1da;

  --shadow-xs: 0 1px 2px rgba(31, 27, 22, 0.05);
  --shadow-sm: 0 4px 16px rgba(31, 27, 22, 0.06);
  --shadow: 0 12px 32px rgba(31, 27, 22, 0.08);
  --shadow-lg: 0 24px 56px rgba(31, 27, 22, 0.14);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

a { color: inherit; }

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

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

.section { padding: 88px 0; }
.section-light { background: var(--white); }
.section-beige { background: var(--cream); }

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.7rem;
  letter-spacing: -0.03em;
}
.section-subtitle {
  text-align: center;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 69, 42, 0.24);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(200, 69, 42, 0.32);
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 112, 82, 0.22);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 112, 82, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ===== Шапка ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
header.scrolled { box-shadow: 0 6px 24px rgba(31, 27, 22, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo i {
  color: #fff;
  background: var(--accent);
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(200, 69, 42, 0.28);
}
.logo span { color: var(--accent); }
.logo-img { height: 40px; width: auto; display: block; }
.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 14px;
  border-radius: 100px;
}
.nav-link:hover { color: var(--ink); background: var(--cream); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.header-phone a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  transition: var(--transition);
}
.header-phone a:hover { color: var(--accent); }
.header-phone small {
  font-size: 0.72rem;
  color: var(--muted);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 10px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Верхняя инфо-полоса ===== */
.topbar {
  background: var(--ink);
  color: #cfc6b8;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar i { color: var(--honey); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--ink);
  background: var(--cream-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.18), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -280px;
  left: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 69, 42, 0.12), transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  border: 1px solid rgba(91, 112, 82, 0.2);
  color: var(--green-dark);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge i { color: var(--green); }
.hero h1 {
  font-size: 3.4rem;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero h1 span { color: var(--accent); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-features {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-features span { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.hero-features i {
  color: var(--accent);
  width: 30px;
  height: 30px;
  background: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: var(--shadow-xs);
}

/* Визуал героя */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px 38px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-tree { font-size: 5rem; line-height: 1; margin-bottom: 14px; }
.hero-card h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: 6px; }
.hero-card > h3:first-child { margin-bottom: 14px; }
.hero-card .discount {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 10px 0 6px;
  letter-spacing: -0.04em;
}
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.2;
  margin: 12px 0;
  letter-spacing: -0.01em;
}
.hero-brand-logo { height: 34px; width: auto; display: block; }
.hero-card p { color: var(--ink-soft); font-size: 0.92rem; }
.hero-card-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-card-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
}
.hero-card-badges i { color: var(--green); }

/* Полоса доверия (торговые сети) */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.trust-strip p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-strip strong { color: var(--ink); }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 22px;
  border-radius: 100px;
}
.trust-badge i { color: var(--accent); }
.trust-badge-logo { height: 28px; width: auto; display: block; }

/* ===== Преимущества ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.advantage-item {
  background: var(--white);
  padding: 36px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  text-align: center;
  transition: var(--transition);
}
.advantage-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.advantage-item .icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--accent);
  transition: var(--transition);
}
.advantage-item:hover .icon { background: var(--accent); color: #fff; transform: scale(1.05); }
.advantage-item .icon img { width: 40px; height: auto; }
.advantage-item:hover .icon img { filter: brightness(0) invert(1); }
.advantage-item h3 { font-size: 1.15rem; margin-bottom: 9px; }
.advantage-item p { color: var(--muted); font-size: 0.93rem; }

/* ===== Каталог ===== */
.catalog-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--ink-soft);
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--cream), var(--honey-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 100px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  z-index: 2;
}
.product-tag.hit { background: var(--honey); color: #4a3300; }
.product-tag.sale { background: var(--accent-dark); }
.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-body h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}
.product-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.product-meta span { display: inline-flex; align-items: center; gap: 5px; }
.product-meta i { color: var(--honey); }
.product-desc {
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 16px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product-price small { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.product-old {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
}
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
  text-align: center;
}
.catalog-more { text-align: center; margin-top: 44px; }

/* Тизер каталога на главной */
.catalog-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.teaser-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  padding: 34px 24px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}
.teaser-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.teaser-emoji {
  font-size: 3rem;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.teaser-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: block;
}
.teaser-card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--ink); }
.teaser-card p { font-weight: 700; color: var(--accent); font-size: 1.08rem; }

/* ===== Поиск по каталогу ===== */
.catalog-search {
  max-width: 480px;
  margin: 0 auto 26px;
  position: relative;
}
.catalog-search input {
  width: 100%;
  padding: 15px 20px 15px 48px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
}
.catalog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.catalog-search i {
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.no-results {
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 40px;
}

/* ===== Полоса доставки ===== */
.delivery-strip {
  background: var(--green);
  color: #fff;
  padding: 44px 0;
}
.delivery-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.delivery-strip h3 { color: #fff; font-size: 1.45rem; margin-bottom: 8px; }
.delivery-strip p { color: #dfe7da; font-size: 0.96rem; }
.delivery-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.delivery-points span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.86rem;
}

/* ===== SEO-текст ===== */
.seo-block { max-width: 900px; margin: 0 auto; }
.seo-block h2 { font-size: 2rem; margin-bottom: 20px; letter-spacing: -0.03em; }
.seo-block p { margin-bottom: 16px; color: var(--ink-soft); }
.seo-block ul { margin: 0 0 16px 24px; }
.seo-block li { margin-bottom: 8px; color: var(--ink-soft); }
.seo-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Отзывы ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.review-stars { color: var(--honey); margin-bottom: 14px; font-size: 0.95rem; letter-spacing: 2px; }
.review-text { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 13px; }
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.review-author strong { display: block; font-size: 0.95rem; }
.review-author small { color: var(--muted); font-size: 0.82rem; }

/* ===== FAQ ===== */
.faq-controls {
  max-width: 800px;
  margin: 0 auto 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.faq-search { position: relative; flex: 1 1 260px; }
.faq-search input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
}
.faq-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.faq-search i {
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.faq-toggle-all { flex-shrink: 0; padding: 12px 24px; font-size: 0.88rem; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 26px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
.faq-question:hover { color: var(--accent); }
.faq-q-text { display: inline-flex; align-items: flex-start; gap: 12px; overflow-wrap: anywhere; }
.faq-q-icon {
  color: var(--accent);
  background: var(--accent-soft);
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.faq-item.open .faq-q-icon { background: var(--accent); color: #fff; }
.faq-q-chevron { color: var(--muted); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 26px 0 74px;
  color: var(--muted);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.faq-item.open .faq-answer { padding: 0 26px 24px 74px; }
.faq-empty { text-align: center; color: var(--muted); margin-top: 18px; font-size: 0.95rem; }
.faq-cta {
  max-width: 800px;
  margin: 40px auto 0;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.faq-cta::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.22), transparent 70%);
}
.faq-cta-text { position: relative; z-index: 2; }
.faq-cta-text h3 { color: #fff; font-size: 1.4rem; margin-bottom: 7px; }
.faq-cta-text p { color: #cfc6b8; font-size: 0.95rem; }
.faq-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.faq-cta-actions .btn { padding: 14px 26px; }
.faq-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.faq-cta .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 640px) {
  .faq-answer, .faq-item.open .faq-answer { padding-left: 26px; }
  .faq-q-text { font-size: 0.95rem; }
  .faq-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .faq-cta-actions { justify-content: center; }
}

/* ===== Блог ===== */
.blog-section { padding-top: 48px; }
.blog-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.blog-card-link { display: block; text-decoration: none; }
.blog-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--cream), var(--honey-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.06); }
.blog-card-emoji { font-size: 4rem; line-height: 1; }
.blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
  z-index: 2;
  box-shadow: var(--shadow-xs);
}
.blog-card-cat i { color: var(--accent); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-body h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card-title { color: var(--ink); text-decoration: none; transition: var(--transition); }
.blog-card-title:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 0.92rem; color: var(--muted); flex-grow: 1; margin-bottom: 18px; }
.blog-card-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.blog-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-card-meta i { color: var(--honey); }
.blog-card-more { align-self: flex-start; padding: 10px 22px; font-size: 0.88rem; }
.blog-empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 1rem; }
.blog-empty i { color: var(--honey); margin-right: 6px; }

/* ===== Контакты ===== */
.contacts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts-info p { margin: 18px 0; display: flex; align-items: center; gap: 15px; font-size: 1rem; }
.contacts-info i {
  width: 42px;
  height: 42px;
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contacts-info a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contacts-info a:hover { color: var(--accent); }
.contacts-map {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 240px;
  background: var(--cream);
}
.contacts-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contacts-form { background: var(--white); padding: 38px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contacts-form h3 { font-size: 1.35rem; margin-bottom: 8px; }
.contacts-form .hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.form-field { margin-bottom: 14px; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream-2);
  transition: var(--transition);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.contacts-form .btn { width: 100%; }
.form-message {
  margin-top: 14px;
  padding: 13px 18px;
  border-radius: 12px;
  display: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-message.success { display: block; background: var(--green-soft); color: var(--green-dark); }
.form-message.error { display: block; background: var(--accent-soft); color: var(--accent-dark); }
.form-note { font-size: 0.76rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ===== Футер ===== */
footer { background: var(--ink); color: #bfb6a7; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col p, .footer-col a {
  color: #bfb6a7;
  font-size: 0.92rem;
  text-decoration: none;
  display: block;
  margin-bottom: 11px;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-logo { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-logo-img { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.96; }
.footer-logo i {
  color: #fff;
  background: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfc6b8;
  margin: 0;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 24px; text-align: center; font-size: 0.82rem; color: #8a8072; }
.footer-bottom a { color: #bfb6a7; text-decoration: none; }

/* ===== Модалка ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 22, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal-content {
  background: var(--white);
  max-width: 460px;
  width: 100%;
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFade 0.3s ease;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes modalFade {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { color: var(--ink); }
.modal-content h3 { font-size: 1.45rem; margin-bottom: 8px; }
.modal-content .hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }

/* ===== Кнопка наверх ===== */
.to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 900;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* =========================================================
   СТРАНИЦА КАТАЛОГА (catalog.html)
   ========================================================= */
.page-head {
  background: var(--cream);
  color: var(--ink);
  padding: 48px 0 52px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; transition: var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs i { font-size: 0.6rem; color: var(--muted); }
.breadcrumbs span { color: var(--ink); font-weight: 600; }
.page-head h1 { color: var(--ink); font-size: 2.4rem; margin-bottom: 14px; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.02rem; }

.cat-section { padding: 48px 0 72px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.filters {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.filters-toggle { display: none; }
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filters-head h2 { font-size: 1.25rem; }
.filters-reset {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.filters-reset:hover { color: var(--accent-dark); }
.filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: var(--transition);
}
.filter-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-check:hover { color: var(--ink); }

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.price-inputs input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--cream-2);
  min-width: 0;
}
.price-inputs span { color: var(--muted); }
.price-inputs input:focus { outline: none; border-color: var(--accent); }
.price-range { display: flex; flex-wrap: wrap; gap: 7px; }
.price-range span {
  font-size: 0.78rem;
  background: var(--cream);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  border: 1px solid var(--line);
}
.price-range span:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters-apply { margin-top: 22px; }

.catalog-main { min-width: 0; }
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  background: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.catalog-count { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.catalog-sort { display: flex; align-items: center; gap: 10px; }
.catalog-sort label { font-size: 0.88rem; color: var(--muted); }
.catalog-sort select {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--cream-2);
  cursor: pointer;
}
.catalog-sort select:focus { outline: none; border-color: var(--accent); }

/* =========================================================
   СТРАНИЦА ТОВАРА (tovar/<slug>/)
   ========================================================= */
.breadcrumbs-dark { color: var(--muted); padding: 24px 0 0; }
.breadcrumbs-dark a { color: var(--ink-soft); }
.breadcrumbs-dark a:hover { color: var(--accent); }
.breadcrumbs-dark i { color: var(--muted); }
.breadcrumbs-dark span { color: var(--ink); }

.product-page { padding: 28px 0 20px; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-gallery { position: relative; }
.pd-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--cream), var(--honey-soft));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; cursor: zoom-in; }
.pd-image:hover img { transform: scale(1.05); }
.pd-image-emoji { font-size: 7rem; }

.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 3;
  opacity: 0.9;
}
.pd-arrow:hover { background: #fff; color: var(--accent); transform: translateY(-50%) scale(1.08); opacity: 1; }
.pd-arrow-prev { left: 16px; }
.pd-arrow-next { right: 16px; }
.pd-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(31, 27, 22, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  z-index: 3;
}

.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: linear-gradient(150deg, var(--cream), var(--honey-soft));
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--accent); box-shadow: 0 4px 14px rgba(200, 69, 42, 0.22); }

.pd-categories {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pd-categories-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pd-categories-label i { color: var(--accent); }
.pd-cat-link {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 8px 17px;
  border-radius: 100px;
  transition: var(--transition);
}
.pd-cat-link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pd-cat-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pd-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 15px;
  border-radius: 100px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pd-cat-badge i { color: var(--accent); }

.pd-info h1 { font-size: 2rem; margin-bottom: 16px; letter-spacing: -0.03em; }
.pd-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.pd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pd-meta i { color: var(--honey); }

.pd-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.pd-price { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.pd-price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.pd-old { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }

.pd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.pd-stars { color: var(--honey); display: inline-flex; gap: 2px; }
.pd-rating-value { font-weight: 700; color: var(--ink); }
.pd-rating-sep { color: var(--line); }
.pd-rating-count { color: var(--muted); }

.pd-discount {
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
}

.pd-desc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 22px; }

.pd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backdrop-filter: blur(6px);
}
.pd-lightbox.open { display: flex; }
.pd-lb-img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalFade 0.3s ease;
}
.pd-lb-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #cfc6b8;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}
.pd-lb-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: var(--transition);
}
.pd-lb-close:hover { opacity: 1; transform: scale(1.1); }
.pd-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.pd-lb-arrow:hover { background: rgba(255, 255, 255, 0.22); }
.pd-lb-prev { left: 26px; }
.pd-lb-next { right: 26px; }

.pd-features { list-style: none; margin: 0 0 26px; }
.pd-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 11px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pd-features i { color: var(--green); margin-top: 4px; }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pd-actions .btn { padding: 15px 28px; }

.pd-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.pd-benefits span { display: inline-flex; align-items: center; gap: 11px; }
.pd-benefits i { color: var(--accent); width: 20px; text-align: center; }

.pd-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.pd-description h2,
.pd-specs h2 { font-size: 1.45rem; margin-bottom: 18px; }
.pd-description p { color: var(--ink-soft); font-size: 0.98rem; }

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.specs-table th,
.specs-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }
.specs-table th { color: var(--muted); font-weight: 500; width: 55%; background: var(--cream-2); }
.specs-table td { color: var(--ink); font-weight: 600; }

/* =========================================================
   СТРАНИЦА СТАТЬИ БЛОГА
   ========================================================= */
.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta i { color: var(--accent); }

.article-wrap { padding-top: 48px; }
.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 96px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  padding: 24px 26px;
}
.article-toc h2 { font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.article-toc li { counter-increment: toc; margin-bottom: 5px; }
.article-toc a {
  display: block;
  padding: 8px 10px 8px 32px;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  line-height: 1.35;
}
.article-toc a::before {
  content: counter(toc) ".";
  position: absolute;
  left: 10px;
  color: var(--accent);
  font-weight: 700;
}
.article-toc a:hover { background: var(--cream); color: var(--ink); }

.article-content { max-width: 780px; }
.article-content h2 { font-size: 1.75rem; margin: 40px 0 16px; scroll-margin-top: 96px; letter-spacing: -0.03em; }
.article-content h3 { font-size: 1.28rem; margin: 28px 0 10px; color: var(--ink); }
.article-content p { margin-bottom: 15px; color: var(--ink-soft); }
.article-content ul,
.article-content ol { margin: 0 0 16px 22px; }
.article-content li { margin-bottom: 8px; color: var(--ink-soft); }
.article-content strong { color: var(--ink); }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-subhead { font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.article-lead {
  font-size: 1.13rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  margin-bottom: 20px;
}

.table-scroll { overflow-x: auto; margin: 8px 0 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.article-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
  min-width: 520px;
}
.article-table th,
.article-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.article-table th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.88rem; }
.article-table th:first-child { background: var(--ink); }
.article-table tbody tr:nth-child(even) { background: var(--cream-2); }
.article-table tbody tr:hover { background: var(--accent-soft); }
.article-table td:first-child { font-weight: 600; color: var(--ink); }

.article-faq { margin: 12px 0 8px; }
.article-faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.article-faq details[open] { border-color: var(--accent); box-shadow: var(--shadow-xs); }
.article-faq summary {
  padding: 17px 46px 17px 22px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform var(--transition);
}
.article-faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.article-faq summary:hover { color: var(--accent); }
.article-faq p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

.article-cta { margin-top: 40px; }
.article-related { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 30px; }
.article-related h2 { font-size: 1.45rem; margin-bottom: 18px; }
.article-related-list { list-style: none; margin: 0; padding: 0; }
.article-related-list li { margin-bottom: 10px; }
.article-related-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.article-related-list a:hover { color: var(--accent); }
.article-related-list i { color: var(--accent); }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.6rem; }
  .section-title { font-size: 2.05rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contacts-wrap { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 240px 1fr; gap: 24px; }
  .page-head h1 { font-size: 2rem; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-toc { position: static; }
}

@media (max-width: 860px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; padding: 0; overflow: hidden; }
  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 22px;
    background: var(--ink);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
  }
  .filters-toggle i { transition: var(--transition); }
  .filters.open .filters-toggle i { transform: rotate(180deg); }
  .filters-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 24px; }
  .filters-body.open { max-height: 1200px; padding: 22px 24px 26px; }
  .filters-head { display: none; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .pd-extra { grid-template-columns: 1fr; gap: 30px; }
  .pd-info h1 { font-size: 1.65rem; }
  .pd-price { font-size: 1.9rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    gap: 6px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .burger { display: flex; }
  .header-phone { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 52px 0; gap: 40px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-features { justify-content: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 340px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.85rem; }
  .delivery-strip .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo, .footer-social { justify-content: center; }
  .page-head h1 { font-size: 1.8rem; }
  .catalog-topbar { flex-direction: column; align-items: stretch; }
  .catalog-sort { justify-content: space-between; }
}

@media (max-width: 640px) {
  .pd-arrow { width: 38px; height: 38px; }
  .pd-lb-arrow { width: 44px; height: 44px; }
  .pd-lb-prev { left: 10px; }
  .pd-lb-next { right: 10px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .section-title { font-size: 1.6rem; }
  .modal-content { padding: 30px 24px; }
  .contacts-form { padding: 26px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Ссылки в карточках каталога */
.product-thumb-link { display: block; text-decoration: none; }
.product-title-link { color: inherit; text-decoration: none; transition: var(--transition); }
.product-title-link:hover { color: var(--accent); }
.product-card-link { text-decoration: none; }
