/* ==========================================================================
   ApiVita — Интернет-магазин натурального мёда
   Адаптировано для пользователей 40+: крупный шрифт, высокая контрастность,
   теплая янтарная палитра, интуитивная навигация и быстродействие.
   ========================================================================== */

:root {
  --primary: #c97d10;
  --primary-hover: #b06b09;
  --primary-light: #fff8eb;
  --primary-dark: #8c5304;
  --accent-green: #2d6a4f;
  --accent-green-hover: #1b4332;
  --accent-green-light: #e8f5e9;
  --bg-main: #fcfbfa;
  --bg-card: #ffffff;
  --bg-honey: #fff9e6;
  --text-main: #24292e;
  --text-muted: #57606a;
  --text-light: #6e7781;
  --border-color: #e1e4e8;
  --border-focus: #f39c12;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-base: 17px;
  --line-height: 1.6;
}

body.font-scale-sm { --font-base: 15px; }
body.font-scale-md { --font-base: 17px; }
body.font-scale-lg { --font-base: 20px; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-base);
  line-height: var(--line-height);
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------- ШАПКА САЙТА (HEADER) ----------------- */

.top-bar {
  background-color: #f7f3ec;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 13.5px;
  overflow: hidden;
}

.top-bar-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 15px;
  width: 100%;
}

.top-features {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.top-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-title-magic {
  font-family: 'Caveat', 'Marck Script', cursive, Georgia, serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  letter-spacing: 0.3px !important;
  line-height: 1 !important;
  display: inline-block;
}

.logo-text .site-title-magic {
  color: var(--accent-green) !important;
}

@media (max-width: 1140px) {
  .top-features .feat-delivery {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .top-features .feat-gost {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top-features {
    display: none !important;
  }
  .top-bar-content {
    justify-content: flex-end !important;
  }
}

.font-resizer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 13px;
}

.font-resizer button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  font-weight: bold;
  color: var(--text-muted);
  border-radius: 4px;
}

.font-resizer button.active, .font-resizer button:hover {
  background-color: var(--primary);
  color: #fff;
}

.header-main {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
}

.logo-text h1, .logo-text .site-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-text span {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
}

.main-nav a {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-green);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-contact {
  text-align: right;
}

.phone-contact a {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.phone-contact a:hover {
  color: var(--primary);
}

.phone-contact small {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
}

.cart-button {
  background-color: var(--accent-green);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.25);
  transition: all 0.2s;
}

.cart-button:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-1px);
}

.cart-badge {
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 800;
}

/* ----------------- ГЛАВНЫЙ ЭКРАН (HERO) ----------------- */

.hero-section {
  background: linear-gradient(135deg, #fff9e6 0%, #fefcf7 100%);
  padding: 40px 0;
  border-bottom: 1px solid #fae1af;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-block;
  background: #fff;
  color: var(--accent-green);
  border: 1px solid #d8e2dc;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a252f;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-honey {
  background-color: var(--primary);
  color: #fff;
}
.btn-honey:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: #fff;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.02);
}

/* ----------------- ЗНАКИ ДОВЕРИЯ (TRUST BADGES) ----------------- */

.site-svg {
  display: inline-block;
  vertical-align: -0.15em;
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

.trust-section {
  padding: 30px 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff8eb;
  border: 1px solid #fae1af;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #1a252f;
}

.trust-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ----------------- КАРТОЧКИ ТОВАРОВ ----------------- */

.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: #1a252f;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-hit {
  background-color: #e74c3c;
  color: #fff;
}

.badge-eco {
  background-color: var(--accent-green);
  color: #fff;
}

.badge-premium {
  background-color: var(--primary);
  color: #fff;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.stars {
  color: #f1c40f;
}

.reviews-cnt {
  color: var(--text-light);
}

.product-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-title a:hover {
  color: var(--primary);
}

.product-region {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.current-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.old-price {
  font-size: 15px;
  color: var(--text-light);
  text-decoration: line-through;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ----------------- КВИЗ ПОДБОРА МЕДА ----------------- */

.quiz-section {
  background: #fdfaf3;
  border-top: 1px solid #fae1af;
  border-bottom: 1px solid #fae1af;
  padding: 50px 0;
}

.quiz-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid #f1e4cb;
  max-width: 850px;
  margin: 0 auto;
}

.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.quiz-option {
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-option:hover, .quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.quiz-option-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.quiz-option-label {
  font-weight: 700;
  font-size: 15px;
}

.quiz-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

/* ----------------- КАТАЛОГ С ФИЛЬТРАМИ И ПАГИНАЦИЕЙ ----------------- */

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a252f;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-list a {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 4px;
}

.filter-list a:hover, .filter-list a.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 600;
}

.price-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 13px;
  padding: 4px 10px;
  background: #f1f3f5;
  border-radius: 20px;
  color: var(--text-muted);
}

.tag-pill:hover, .tag-pill.active {
  background: var(--primary);
  color: #fff;
}

.catalog-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 24px;
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  flex-grow: 1;
  max-width: 400px;
}

.search-box input {
  border: none;
  padding: 10px 14px;
  outline: none;
  width: 100%;
}

.search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
}

.sort-select select {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 700;
  background: #fff;
}

.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-link:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* ----------------- КАРТОЧКА ТОВАРА (PRODUCT DETAIL) ----------------- */

.breadcrumbs {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #fafafa;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #fdfdfd;
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a252f;
  margin-bottom: 12px;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.passport-card {
  background: var(--bg-honey);
  border: 1px solid #f6deb4;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.passport-item span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.passport-item strong {
  font-size: 17px;
  color: var(--primary-dark);
}

.packaging-selector {
  margin-bottom: 24px;
}

.packaging-label {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.packaging-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pack-btn {
  padding: 10px 18px;
  border: 2px solid var(--border-color);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
}

.pack-btn.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.product-buy-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius-md);
}

.product-price-large {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
}

/* ----------------- БЛОГ И СТАТЬИ ----------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.blog-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-title a:hover {
  color: var(--accent-green);
}

.blog-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Статья детальнее */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.article-content {
  font-size: 18px;
  line-height: 1.75;
  color: #2c3e50;
  margin-top: 24px;
}

.article-content h2, .article-content h3 {
  margin: 28px 0 14px 0;
  color: #1a252f;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 20px 28px;
}

/* ----------------- КОРЗИНА И ОФОРМЛЕНИЕ ----------------- */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

.cart-table-card, .order-summary-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
}

.quantity-picker button {
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
}

.quantity-picker span {
  padding: 6px 10px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

/* ----------------- МОДАЛЬНЫЕ ОКНА И ТОСТЕР ----------------- */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e3f20;
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 3000;
  font-weight: 600;
}

/* ----------------- ПОДВАЛ (FOOTER) ----------------- */

.site-footer {
  background: #1c2826;
  color: #e5e5e5;
  padding: 60px 0 20px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #2d3b38;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #8a9995;
}

/* ----------------- АДАПТИВНОСТЬ ----------------- */

@media (max-width: 992px) {
  .hero-grid, .product-detail-grid, .catalog-layout, .cart-layout {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid, .quiz-options, .trust-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products-grid, .blog-grid, .quiz-options, .trust-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  .top-features {
    display: none;
  }
}
