/* ============================================================
   components.css — компонентные стили функциональных страниц
   (каталог, карточка, корзина, СФР, статьи).
   Автовыжимка из main.css (scripts: см. git history) с маппингом
   старых токенов на новую палитру site.css.
   ============================================================ */
:root {
  --mint: var(--sage-light);
  --peach: #F2C4A0;
  --text: var(--ink);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --border: #E8E3DA;
  --white: #FFFFFF;
  --gap-xs: 0.5rem;
  --gap-2xl: 6rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(43,43,38,0.06);
  --shadow-md: 0 4px 12px rgba(43,43,38,0.08);
  --shadow-lg: 0 8px 30px rgba(43,43,38,0.1);
  --shadow-hover: 0 8px 25px rgba(122,148,113,0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;
  --container: 1240px;
  --container-narrow: 960px;
  --font-display: 'Manrope', -apple-system, sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
}
/* в”Ђв”Ђ Cards в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: none;
  overflow: visible;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Product Card */
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5EE 0%, #FDEEE4 100%);
  border-radius: 24px;
  margin: 0.5rem;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card__image img {
  transform: scale(1.05);
}
.product-card__body { padding: 0.375rem 0.75rem 0.125rem; flex: 1; }
.product-card__brand {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.125rem;
}
.product-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.75rem 0.625rem;
}
.product-card__prices { display: flex; align-items: baseline; gap: 0.5rem; }

.product-card__badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
}
.product-card__badge-sfr {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: auto;
  z-index: 3;
  background: #fff;
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.22em 0.55em 0.22em 0.42em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border: 1px solid rgba(95,163,99,0.4);
  box-shadow: 0 2px 8px -2px rgba(27,36,32,0.28);
}
.product-card__badge-sfr img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.product-card__badge-ozon {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  background: linear-gradient(135deg, #005bff 0%, #0041c2 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25em 0.6em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.3;
}
/* When both discount and Ozon badges exist, stack Ozon below */
.product-card__badge + .product-card__badge-ozon {
  top: 1.8rem;
}

/* в”Ђв”Ђ Brand badge on product card в”Ђв”Ђ */
.product-card__brand-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
  transition: filter var(--duration), transform var(--duration);
}
.product-card__brand-badge:hover {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  transform: scale(1.08);
}
.product-card__brand-badge img {
  height: 18px;
  width: auto;
  object-fit: contain;
}
/* Catalog page cards keep normal size */
.products-grid .product-card__brand-badge img {
  height: 24px;
}
.product-card__brand-badge-text {
  display: none;
}
/* When logo fails, show text as pill fallback */
.product-card__brand-badge.no-logo img {
  display: none;
}
.product-card__brand-badge.no-logo .product-card__brand-badge-text {
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.85);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
/* СФР-стикер теперь в левом верхнем углу, бренд — в правом, не пересекаются */

.btn-cart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(107,158,135,0.3);
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration);
  flex-shrink: 0;
}
.btn-cart:hover { background: var(--sage-dark); transform: scale(1.1); box-shadow: 0 4px 12px rgba(107,158,135,0.4); }
.btn-cart:active { transform: scale(0.92); }
.btn-cart svg { width: 18px; height: 18px; }
.btn-cart--in-cart {
  background: var(--coral);
  box-shadow: 0 2px 8px rgba(232,131,107,0.3);
}
.btn-cart--in-cart:hover {
  background: #d4694f;
  box-shadow: 0 4px 12px rgba(232,131,107,0.4);
}
.btn--in-cart {
  background: var(--coral) !important;
  border-color: var(--coral) !important;
}
.btn--in-cart:hover { background: #d4694f !important; }

/* Category Card */
.category-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  padding: var(--gap-lg);
  text-align: center;
  transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.category-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.category-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--gap-sm);
}
.category-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.category-card__price {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.category-card__price span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

/* Advantage Card */
.advantage-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--gap-lg);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.advantage-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
}
.advantage-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--gap-sm);
  color: var(--sage);
}
.advantage-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.advantage-card__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* в”Ђв”Ђ Floating cart button (visible when cart has items) в”Ђв”Ђ */
.floating-cart {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.floating-cart.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-cart:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.floating-cart__count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--coral, #E57373);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
@media (max-width: 768px) {
  .floating-cart { bottom: 1.25rem; right: 1.25rem; width: 48px; height: 48px; }
}


/* в”Ђв”Ђ Product Popup (hover card) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.product-popup {
  position: fixed;
  z-index: 10000;
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  background: linear-gradient(165deg, #fff 0%, var(--cream) 100%);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04);
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-sizing: border-box;
  word-break: break-word;
}
/* Gradient side borders that fade from accent bar to midpoint */
.product-popup__inner::before,
.product-popup__inner::after {
  content: '';
  position: absolute;
  top: 0;
  width: 1.5px;
  height: 50%;
  background: linear-gradient(to bottom, rgba(107,158,135,0.45) 0%, rgba(107,158,135,0) 100%);
  pointer-events: none;
}
.product-popup__inner::before { left: 0; }
.product-popup__inner::after { right: 0; }
/* When popup is above вЂ” borders start from bottom */
.product-popup--above .product-popup__inner::before,
.product-popup--above .product-popup__inner::after {
  top: auto;
  bottom: 0;
  background: linear-gradient(to top, rgba(107,158,135,0.45) 0%, rgba(107,158,135,0) 100%);
}
.product-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Accent bar вЂ” default: top */
.product-popup__inner {
  position: relative;
  padding: 1.25rem 1.5rem 1rem;
  border-top: 3px solid var(--sage);
  border-bottom: none;
  border-radius: var(--radius-xl);
}
/* When popup is above вЂ” accent bar moves to bottom */
.product-popup--above .product-popup__inner {
  border-top: none;
  border-bottom: 3px solid var(--sage);
}
/* Arrow pointing up to the card (popup below) */
.product-popup::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--sage);
  border-left: 1px solid rgba(107,158,135,0.18);
  border-top: 1px solid rgba(107,158,135,0.18);
}
/* Invisible bridge between card and popup so mouse doesn't lose hover */
.product-popup::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 28px;
}
/* When popup is above the card вЂ” arrow flips down, sage color */
.product-popup--above::before {
  top: auto;
  bottom: -7px;
  background: var(--sage);
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(107,158,135,0.18);
  border-bottom: 1px solid rgba(107,158,135,0.18);
}
.product-popup--above::after {
  top: auto;
  bottom: -24px;
  height: 28px;
}
.product-popup__desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
}
/* Specs table */
.product-popup__specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.875rem;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}
.product-popup__spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  padding: 0.375rem 0.625rem;
}
.product-popup__spec:nth-child(odd) {
  background: rgba(245,240,235,0.5);
}
.product-popup__spec-label {
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.product-popup__spec-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  white-space: normal;
  word-break: break-word;
  min-width: 0;
  font-size: 0.8rem;
}
.product-popup__spec-label::after {
  content: '';
  flex: 1;
  border-bottom: 1px dotted rgba(0,0,0,0.08);
  min-width: 10px;
  margin: 0 0.25rem;
  align-self: baseline;
  position: relative;
  top: -3px;
}
.product-popup__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.product-popup__rating .stars {
  color: #E8A84C;
  letter-spacing: 1px;
}
/* CTA button */
.product-popup__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.625rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--sage);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.product-popup__link:hover {
  background: var(--sage-dark);
  transform: translateX(2px);
}
.product-popup__link::after {
  content: '\2192';
  font-size: 0.9em;
}
/* Thumbnail gallery in popup */
.product-popup__thumbs {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
  overflow: hidden;
}
.product-popup__thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.product-popup__thumb:hover {
  border-color: var(--sage);
  transform: scale(1.06);
}
/* Brand in popup */
.product-popup__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  margin-bottom: 0.625rem;
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
  transition: transform 0.2s;
}
.product-popup__brand:hover {
  transform: scale(1.05);
}
.product-popup__brand img {
  height: 14px;
  width: auto;
  object-fit: contain;
}
.product-popup__brand.no-logo img {
  display: none;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* в”Ђв”Ђ Quiz Modal в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.quiz-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.quiz-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.quiz-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.93);
  transition:
    transform 0.45s cubic-bezier(0.16,1,0.3,1),
    max-width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.quiz-modal-overlay.active .quiz-modal {
  transform: translateY(0) scale(1);
}
/* Expand modal when showing results */
.quiz-modal.quiz-modal--results {
  max-width: 720px;
}
.quiz-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--duration), transform var(--duration);
}
.quiz-modal__close:hover {
  background: var(--white);
  transform: rotate(90deg);
}

/* в”Ђв”Ђ Quiz в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.quiz {
  background: linear-gradient(135deg, var(--cream) 0%, var(--mint) 50%, var(--sand) 100%);
  border-radius: var(--radius-xl);
  padding: var(--gap-xl);
  text-align: center;
}
.quiz__header { margin-bottom: var(--gap-sm); }
.quiz__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}
.quiz__subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}
.quiz__question {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
}
.quiz__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}
.quiz__options--budget {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
button.quiz__option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
  text-align: left;
  width: 100%;
  color: var(--text);
}
.quiz__option:hover {
  border-color: var(--sage);
  box-shadow: 0 2px 8px rgba(107,158,135,0.12);
}
.quiz__option.selected {
  border-color: var(--sage);
  background: var(--mint);
  box-shadow: 0 2px 8px rgba(107,158,135,0.18);
}
.quiz__option-label {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.quiz__option-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.quiz__back {
  display: inline-block;
  margin-top: var(--gap-md);
  padding: 0.375rem 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s;
}
.quiz__back:hover { color: var(--sage-dark); }
.quiz__progress {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--gap-md);
}
.quiz__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--duration), width var(--duration), border-radius var(--duration);
}
.quiz__dot.active { background: var(--sage); width: 24px; border-radius: 4px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}


/* в”Ђв”Ђ Search Bar в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.search-bar:focus-within {
  border-color: var(--sage);
  box-shadow: 0 4px 20px rgba(107,158,135,0.12);
}
.search-bar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-secondary);
  margin-right: 0.75rem;
}
.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text);
}
.search-bar__input::placeholder { color: var(--text-secondary); opacity: 0.6; }
.search-bar__btn {
  flex-shrink: 0;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

/* Page-level search section (internal pages) */
.page-search {
  padding: 1.5rem 0 1rem;
  background: var(--cream);
  position: relative;
  z-index: 90;
}
.page-search .container {
  max-width: 600px;
  transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.page-search:focus-within .container {
  max-width: 960px;
}
.page-search .search-bar {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: border-color var(--duration), box-shadow 0.4s ease, transform 0.3s ease;
}
.page-search:focus-within .search-bar {
  box-shadow: 0 8px 40px rgba(107,158,135,0.18);
  transform: scale(1.02);
}
.page-search::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.page-search:focus-within::before {
  opacity: 1;
}

/* Search Dropdown */
.search-dropdown {
  position: fixed;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }

.search-dropdown__group {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 0.75rem 1rem 0.375rem;
}
.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background var(--duration);
  font-size: 0.875rem;
}
.search-dropdown__item:hover {
  background: var(--sand);
}
.search-dropdown__cat {
  justify-content: space-between;
}
.search-dropdown__count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.search-dropdown__img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--sand);
  flex-shrink: 0;
  padding: 2px;
}
.search-dropdown__info {
  min-width: 0;
}
.search-dropdown__name {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-dropdown__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--sage);
  margin-top: 0.125rem;
}
.search-dropdown__spec {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
  background: var(--mint);
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-right: 0.25rem;
}
.search-dropdown__spec--exact {
  background: rgba(107,158,135,0.2);
  color: var(--sage);
  font-weight: 600;
}
.search-dropdown__empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.search-dropdown__all {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background var(--duration);
}
.search-dropdown__all:hover {
  background: var(--mint);
}

/* Autocomplete suggestions */
.search-dropdown__suggestions {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.search-dropdown__suggestions-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.25rem 1rem;
}
.search-dropdown__suggestion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: background 0.15s;
}
.search-dropdown__suggestion:hover {
  background: var(--sand);
}
.search-dropdown__suggestion svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.search-dropdown__suggestion mark {
  background: none;
  font-weight: 600;
  color: var(--sage);
}
.search-dropdown__suggestion--cat {
  color: var(--sage);
  font-weight: 500;
}

/* Cart count badge */
.az-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--coral);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  padding: 0 4px;
}
.az-cart-count:empty { display: none; }
.nav__cart {
  position: relative;
  transition: transform 0.2s ease;
}


/* в”Ђв”Ђ Callback Modal в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--duration);
}
.modal__close:hover { background: var(--sand); }
.modal__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.modal__subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.callback-form__field {
  margin-bottom: 0.875rem;
}
.callback-form__field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.callback-form__field .required { color: var(--coral); }
.callback-form__field input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  transition: border-color var(--duration);
  background: var(--white);
}
.callback-form__field input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,158,135,0.12);
}
.callback-form__submit {
  width: 100%;
  margin-top: 0.5rem;
}
.callback-form__success {
  text-align: center;
  padding: 1.5rem 0;
}
.callback-form__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--mint);
  color: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.callback-form__success h4 { margin-bottom: 0.25rem; }
.callback-form__success p { color: var(--text-secondary); font-size: 0.875rem; }


/* в”Ђв”Ђ Quiz Results (product cards in quiz) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
/* Quiz Results вЂ” horizontal product cards */
.quiz__results {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}
.quiz__results-header {
  margin-bottom: 0.25rem;
}
.quiz__results-subtitle {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
.quiz__results-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quiz-result-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.quiz-result-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
}
.quiz-result-card__image {
  display: block;
  width: 160px;
  min-height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--sand);
}
.quiz-result-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}
.quiz-result-card:hover .quiz-result-card__image img {
  transform: scale(1.04);
}
.quiz-result-card__info {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.quiz-result-card__brand {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-bottom: 0.125rem;
}
.quiz-result-card__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 0.375rem;
}
.quiz-result-card__name:hover {
  color: var(--sage);
}
.quiz-result-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.quiz-result-card__price {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
}
.quiz-result-card__old-price {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}
.quiz-result-card__discount {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
}
.quiz-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
}
.quiz-result-card__actions .btn {
  font-size: 0.7rem;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
}
.quiz-result-card__actions .btn--outline {
  text-align: center;
  text-decoration: none;
}

@media (max-width: 600px) {
  .quiz-result-card {
    flex-direction: column;
  }
  .quiz-result-card__image {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }
}


/* в”Ђв”Ђ Catalog / Archive в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.catalog-header {
  margin-bottom: var(--gap-lg);
}
.catalog-header h1 { margin-bottom: 0.5rem; }
.catalog-seo-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.catalog-seo-toggle {
  color: var(--sage);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.875rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
}
.filter-group { position: relative; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--white);
  transition: border-color var(--duration), color var(--duration), background var(--duration);
}
.filter-btn:hover { border-color: var(--sage); }
.filter-btn--active { border-color: var(--sage); background: var(--mint); }

.filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 50;
  display: none;
}
.filter-dropdown.open { display: block; }

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  cursor: pointer;
}
.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
}

/* Spec Filters Row */
.spec-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--gap-md);
  padding: var(--gap-sm) var(--gap-md);
  background: var(--sand);
  border-radius: var(--radius-md);
  align-items: center;
  animation: specFiltersIn 0.35s ease-out;
}
@keyframes specFiltersIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.spec-filters__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 0.25rem;
  white-space: nowrap;
}
.spec-filter-group {
  position: relative;
}
.spec-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--duration), background var(--duration);
  white-space: nowrap;
}
.spec-filter-btn:hover { border-color: var(--sage); }
.spec-filter-btn--active {
  border-color: var(--sage);
  background: var(--mint);
  color: var(--sage-dark, #4a7a65);
}
.spec-filter-btn svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.spec-filter-group.open .spec-filter-btn svg {
  transform: rotate(180deg);
}
.spec-filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.375rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 51;
  display: none;
}
.spec-filter-group.open .spec-filter-dropdown {
  display: block;
}
.spec-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.25rem;
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.spec-filter-option:hover {
  background: var(--sand);
}
.spec-filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--sage);
  flex-shrink: 0;
}
.spec-filter-option__count {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.04);
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
}
.spec-filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: var(--coral);
  cursor: pointer;
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}
.spec-filters__reset:hover { text-decoration: underline; }
.spec-filters__active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: var(--gap-sm);
}
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.625rem;
  background: var(--mint);
  border: 1px solid rgba(107,158,135,0.3);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--sage-dark, #4a7a65);
}
.spec-tag__remove {
  background: none;
  border: none;
  font-size: 0.875rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
}
.spec-tag__remove:hover { opacity: 1; }

@media (max-width: 640px) {
  .spec-filters {
    padding: var(--gap-xs) var(--gap-sm);
  }
  .spec-filter-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    min-height: 38px;
  }
}

/* Sort */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-md);
}
.sort-bar__count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.8125rem;
  outline: none;
}
.sort-select:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: var(--gap-xl);
}
.products-grid .product-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.03);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.products-grid .product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.products-grid .product-card__image {
  border-radius: 14px;
  margin: 0.25rem;
}
.products-grid .product-card__image img {
  border-radius: 14px;
}
.products-grid .product-card__body {
  padding: 0.2rem 0.4rem 0.1rem;
}
.products-grid .product-card__brand {
  font-size: 0.7rem;
}
.products-grid .product-card__title {
  font-size: 0.84rem;
  line-height: 1.3;
}
.products-grid .product-card__footer {
  padding: 0.2rem 0.4rem 0.4rem;
}
.products-grid .product-card__footer .price {
  font-size: 0.98rem;
}
.products-grid .product-card__footer .price-old {
  font-size: 0.65rem;
}
/* до 1400px из-за сайдбара 256px колонка узкая — 5 плиток не влезали (гориз. скролл) */
@media (max-width: 1400px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
/* Телефоны: 2 колонки до 360px (как у медтех-каталогов), 1 колонка только на самых узких */
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  /* фикс. высота 200px делала фото узких 2-кол карточек тонкой полосой — квадрат по ширине */
  .products-grid .product-card__image { height: auto; aspect-ratio: 1 / 1; padding: 10px; }
  .products-grid .product-card__image img { max-height: none; }
}
@media (max-width: 360px) { .products-grid { grid-template-columns: 1fr; } }

/* Load more */
.load-more {
  text-align: center;
  margin-top: var(--gap-xl);
}

/* Catalog Category Tiles вЂ” horizontal scroll */
.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--gap-lg);
  padding-bottom: 4px;
}
.catalog-categories::-webkit-scrollbar { display: none; }
/* Категории разложены равномерной сеткой — стрелки прокрутки больше не нужны */
.catalog-categories-wrap__arrow { display: none !important; }
.catalog-categories-wrap {
  position: relative;
}
.catalog-categories-wrap__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--duration), box-shadow var(--duration);
  color: var(--text);
}
.catalog-categories-wrap__arrow:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.catalog-categories-wrap__arrow--left { left: -12px; }
.catalog-categories-wrap__arrow--right { right: -12px; }
.catalog-categories-wrap__arrow[hidden] { display: none; }

/* Catalog Search Bar */
.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  box-shadow: 0 8px 24px -14px rgba(27,36,32,0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-search:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(107,158,135,0.15), 0 10px 28px -14px rgba(27,36,32,0.35);
}
.catalog-search__icon {
  color: var(--sage-deep);
  flex-shrink: 0;
  margin-right: 0.7rem;
}
.catalog-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text);
}
.catalog-search__input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}
@media (max-width: 480px) {
  /* компактнее, но шрифт ≥16px — иначе iOS зумит поле при фокусе */
  .catalog-search { padding: 0.8rem 1.05rem; }
  .catalog-search__input { font-size: 1rem; }
}
.catalog-search__clear {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}
.catalog-search__clear:hover {
  color: var(--coral);
}

.catalog-cat-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration);
  white-space: nowrap;
}
.catalog-cat-tile:hover {
  border-color: var(--sage);
  background: var(--mint);
}
.catalog-cat-tile--active {
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
  font-weight: 600;
}
.catalog-cat-tile--active:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
}
.catalog-cat-tile__count {
  font-size: 0.6875rem;
  background: rgba(0,0,0,0.06);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
.catalog-cat-tile--active .catalog-cat-tile__count {
  background: rgba(255,255,255,0.35);
  color: #fff;
}

/* Product Card Rating */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  margin-top: 0.25rem;
}
.product-card__stars {
  color: #F5A623;
  letter-spacing: -1px;
}
.product-card__reviews-count {
  color: var(--text-secondary);
}

/* Catalog Empty State */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--gap-xl) var(--gap-md);
}
.catalog-empty__icon {
  margin-bottom: var(--gap-md);
  opacity: 0.5;
}
.catalog-empty h3 {
  margin-bottom: 0.5rem;
}

/* Active nav link */
.nav__link--active {
  color: var(--sage);
}

/* в”Ђв”Ђ Single Product в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}
@media (max-width: 768px) {
  .product-single { grid-template-columns: 1fr; }
}

/* Gallery */
.product-gallery { min-width: 0; }
.product-gallery__main {
  position: relative;
  min-width: 0;
  height: 460px;            /* фиксированная высота — окно не «скачет» при смене фото */
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;         /* белый фон: фото на белом не дают коричневых полей по бокам */
  box-shadow: inset 0 0 0 1px rgba(27,36,32,.07);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-sm);
}
.product-gallery__main img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  transition: opacity .25s ease;   /* мягкое перетекание кадров при авто-слайдшоу */
}
/* подсказка «нажмите для увеличения» — появляется при наведении (без авто-зума) */
.product-gallery__main::after {
  content: "";
  position: absolute; bottom: 12px; right: 12px; width: 38px; height: 38px; z-index: 3;
  border-radius: 50%; background: rgba(255,255,255,.92) no-repeat center/18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5E4E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  box-shadow: 0 2px 8px rgba(27,36,32,.18);
  opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s; pointer-events: none;
}
.product-gallery__main:hover::after { opacity: 1; transform: none; }

/* Стрелки листания на фото — статичны, по центру по вертикали, не зависят от размера фото */
.product-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--sage-deep);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(27,36,32,.18); transition: background .15s, transform .15s;
}
.product-gallery__nav svg { width: 22px; height: 22px; }
.product-gallery__nav--prev { left: 12px; }
.product-gallery__nav--next { right: 12px; }
.product-gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
/* Ссылки «Подробнее о доставке / Способы оплаты» в блоке товара */
.product-details__more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--sage-dark); text-decoration: none; }
.product-details__more:hover { text-decoration: underline; }
/* Подзаголовки секций в описании (структурируем «слитые» описания МЕД-МОС/Армед) */
.product-desc__h { margin-top: 1em; margin-bottom: 2px; color: var(--ink); }
.product-desc__h:first-child { margin-top: 0; }
.product-desc__h strong { font-weight: 700; }

/* ── Умный-поиск: «Поиск понял …» + примеры запросов ── */
.understood-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; padding: 10px 14px; background: var(--mint, #EAF2EC); border: 1px solid rgba(107,158,135,0.28); border-radius: 14px; }
.understood-bar__label { font: 700 12px var(--font-body), 'Manrope', sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--sage-deep); }
.understood-bar__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.understood-chip { display: inline-flex; align-items: center; background: #fff; color: var(--sage-deep); font: 600 13px var(--font-body), 'Manrope', sans-serif; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(95,163,99,.35); }
.understood-bar__reset { all: unset; cursor: pointer; font: 600 12.5px var(--font-body), 'Manrope', sans-serif; color: var(--coral, #d9744f); }
.understood-bar__reset:hover { text-decoration: underline; }
.search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.search-examples__label { font: 600 12.5px var(--font-body), 'Manrope', sans-serif; color: var(--text-secondary, #6E6E64); }
.search-examples__chip { all: unset; cursor: pointer; box-sizing: border-box; padding: 6px 12px; border: 1px solid var(--hair, #e7e2d8); border-radius: 999px; background: #fff; font: 500 13px var(--font-body), 'Manrope', sans-serif; color: var(--ink, #2B2B26); transition: border-color .15s, background .15s; }
.search-examples__chip:hover { border-color: var(--sage); background: var(--cream, #FBF7F0); }

/* ── Лайтбокс: листание (стрелки/клавиши), режим лупы (вкл/выкл), миниатюры снизу ── */
.img-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(20,26,23,.9); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw 104px;
  cursor: zoom-out;
}
.img-lightbox.open { display: flex; }
.img-lightbox__stage {
  position: relative; max-width: 86vw; max-height: 78vh; overflow: hidden;
  border-radius: 16px; background: #fff; cursor: default; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.img-lightbox.is-zoom .img-lightbox__stage { cursor: crosshair; }
.img-lightbox__img {
  display: block; max-width: 86vw; max-height: 78vh; width: auto; height: auto;
  transition: transform .12s ease-out; transform-origin: center; will-change: transform;
}
.img-lightbox__close {
  position: absolute; top: 16px; right: 18px; z-index: 4; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #2B2B26;
  font: 400 28px/1 'Manrope', sans-serif; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.img-lightbox__close:hover { background: #fff; }
/* Кнопка лупы — явный вход/выход в режим увеличения */
.img-lightbox__zoom {
  position: absolute; top: 16px; right: 74px; z-index: 4; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #2E5E4E;
  cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.img-lightbox__zoom svg { width: 22px; height: 22px; }
.img-lightbox__zoom:hover { background: #fff; }
.img-lightbox.is-zoom .img-lightbox__zoom { background: var(--sage); color: #fff; }
/* Стрелки листания — статичны по краям */
.img-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #2B2B26; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.28); transition: background .15s;
}
.img-lightbox__nav svg { width: 26px; height: 26px; }
.img-lightbox__nav--prev { left: 3vw; }
.img-lightbox__nav--next { right: 3vw; }
.img-lightbox__nav:hover { background: #fff; }
.img-lightbox.is-single .img-lightbox__nav { display: none; }
/* Полоса миниатюр снизу — переход к конкретному фото + «где я нахожусь» */
.img-lightbox__thumbs {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 4;
  display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 0 16px;
}
.img-lightbox__thumb {
  flex: 0 0 auto; width: 58px; height: 58px; padding: 0; border: 2px solid transparent;
  border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; opacity: .6;
  transition: opacity .15s, border-color .15s;
}
.img-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-lightbox__thumb:hover { opacity: 1; }
.img-lightbox__thumb.active { opacity: 1; border-color: var(--sage); }
.img-lightbox__hint {
  position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 4;
  color: #fff; font: 500 13px 'Manrope', sans-serif; opacity: .82; pointer-events: none;
  background: rgba(0,0,0,.32); padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.product-gallery__brand-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  background: none;
  padding: 0;
  border: none;
  text-decoration: none;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.18));
  transition: filter var(--duration), transform var(--duration);
}
.product-gallery__brand-badge:hover {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.22));
  transform: scale(1.05);
}
.product-gallery__brand-badge span {
  display: none;
}
.product-gallery__brand-badge img {
  width: auto;
  height: 26px;
  object-fit: contain;
}
.product-gallery__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
/* если рядом с СФР-стикером есть ещё бейджи (скидка/Ozon) — опускаем их под него */
.product-gallery__sfr + .product-gallery__badges { top: 3.4rem; }
/* СФР-стикер на крупном фото товара (как на МЕТ.РУ) — ЛЕВЫЙ верхний угол,
   не пересекается с фичами/«в наличии» (право-верх), лупой (низ) и брендом (низ-лево) */
.product-gallery__sfr {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  background: #fff;
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.3em 0.7em 0.3em 0.5em;
  border-radius: 999px;
  border: 1px solid rgba(95,163,99,0.4);
  box-shadow: 0 3px 10px -3px rgba(27,36,32,0.3);
}
.product-gallery__sfr img { width: 16px; height: 16px; object-fit: contain; }
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.product-gallery__thumb {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--duration);
  background: var(--sand);
}
.product-gallery__thumb.active,
.product-gallery__thumb:hover { border-color: var(--sage); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .product-gallery__thumbs {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
  }
  .product-gallery__main { height: 360px; }
}

/* Product Info */
.product-info {}
.product-info__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.product-info__brand a:hover { text-decoration: underline; }
.product-info__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}
.product-info__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: var(--gap-md);
  font-size: 0.8125rem;
}
.product-info__sku {
  color: var(--text-secondary);
}
.product-info__rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}
.product-info__stars { color: #F5A623; }

.product-info__price-block {
  display: flex;
  align-items: baseline;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
/* «Оплата по сертификату СФР» — зелёная плашка под заголовком (только у СФР-товаров) */
.product-info__sfr {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 12px 0 2px; padding: 7px 13px; border-radius: 999px;
  background: #E9F0E4; color: #21473A; text-decoration: none; width: fit-content;
  font: 700 13.5px var(--font-body, 'Manrope'), sans-serif; transition: background .15s;
}
.product-info__sfr img { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.product-info__sfr:hover { background: #dde9d5; }
.product-info__price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
}
.product-info__price-old {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.product-info__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.product-info__stock--in { color: var(--sage); }
.product-info__stock--out { color: #D4A017; }
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.stock-dot--in { background: var(--sage); }
.stock-dot--out { background: #D4A017; }

/* Variants */
.product-variants {
  margin-bottom: var(--gap-md);
}
.product-variants__label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-variants__options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
/* Многоосевой селектор: отдельная группа на ось (ширина / тип шин / тормоз) */
.product-variants__group + .product-variants__group { margin-top: 0.85rem; }
.variant-option {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--duration), background var(--duration), color var(--duration);
}
.variant-option:hover { border-color: var(--sage); }
.variant-option.active,
.variant-option--active { border-color: var(--sage); background: var(--mint); color: var(--sage); }

/* Add to cart buttons */
.product-actions {
  display: flex;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
}
.product-actions .btn { flex: 1; }

/* Delivery calculator */
.delivery-calc {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
.delivery-calc__title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--gap-sm);
}
.delivery-calc__form {
  display: flex;
  gap: var(--gap-sm);
}
.delivery-calc__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  outline: none;
}
.delivery-calc__input:focus { border-color: var(--sage); }
.delivery-calc__input:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: -2px;
}
.delivery-calc__result {
  margin-top: var(--gap-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Key specs (above fold) */
.product-key-specs {
  margin-bottom: var(--gap-md);
  border-radius: var(--radius-lg);
}
.product-key-specs__header {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  padding: 0 0 0.5rem 0.125rem;
  margin-bottom: 0.25rem;
}

/* Feature badges (overlaid on photo, right side) */
.product-feature-badges {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}
.feature-badge--accent {
  background: var(--sage);
  color: white;
  box-shadow: 0 1px 4px rgba(107,158,135,0.3);
}
.feature-badge--info {
  background: rgba(107,158,135,0.15);
  color: var(--sage-dark);
  border: 1px solid rgba(107,158,135,0.4);
}
.feature-badge--neutral {
  background: rgba(255,255,255,0.85);
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,0.08);
}
.feature-badge__icon {
  font-size: 0.625rem;
}

/* Product details (description + specs + delivery) */
.product-details {
  margin-top: var(--gap-xl);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
}
.product-details__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}
.product-details__left {}
.product-details__right {}
.product-details__section {}
.product-details__heading {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  font-style: normal;
  color: var(--sage-dark);
  margin-bottom: var(--gap-md);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.product-details__delivery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.product-details__delivery h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-details__delivery ul {
  padding-left: 1.25rem;
}
.product-details__delivery li {
  margin-bottom: 0.25rem;
}
@media (max-width: 768px) {
  .product-details__two-col { grid-template-columns: 1fr; }
  .product-details__delivery { grid-template-columns: 1fr; }
}

/* Legacy tabs (keep for potential reuse) */
.product-tabs { margin-top: var(--gap-xl); }
.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.product-tabs__btn {
  padding: var(--gap-sm) var(--gap-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--duration);
  margin-bottom: -1px;
}
.product-tabs__btn:hover { color: var(--text); }
.product-tabs__btn.active {
  color: var(--sage);
  border-bottom-color: var(--sage);
}
.product-tabs__content { padding: var(--gap-lg) 0; }
.product-tabs__panel { display: none; animation: fadeUp 0.3s var(--ease-out); }
.product-tabs__panel.active { display: block; }

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td {
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}
.specs-table td:first-child {
  color: var(--text-secondary);
  width: 40%;
}


/* в”Ђв”Ђ Cart Page в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.cart-table {
  width: 100%;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md) 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: var(--gap-sm);
  }
}
.cart-item__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--sand);
}
.cart-item__info {}
.cart-item__name { font-weight: 500; font-size: 0.9375rem; }
.cart-item__brand { font-size: 0.75rem; color: var(--text-secondary); }
.cart-item__price { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.cart-item__qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.cart-item__qty button {
  width: 36px;
  height: 36px;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
}
.cart-item__qty button:hover { background: var(--sand); }
.cart-item__qty span {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}
.cart-item__remove {
  color: var(--text-secondary);
  transition: color var(--duration);
}
.cart-item__remove:hover { color: var(--coral); }

.cart-summary {
  background: var(--sand);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  margin-top: var(--gap-lg);
  max-width: 400px;
  margin-left: auto;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}
.cart-summary__total {
  border-top: 1px solid var(--border);
  padding-top: var(--gap-sm);
  margin-top: var(--gap-sm);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem;
}

/* в”Ђв”Ђ Checkout в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--gap-xl);
  align-items: start;
}
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-md);
}
.checkout-section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--gap-md);
}

.form-row { margin-bottom: var(--gap-sm); }
.form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.form-row label .required { color: var(--coral); }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: var(--white);
  outline: none;
  transition: border-color var(--duration);
}
.form-input:focus { border-color: var(--sage); }
.form-input:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: -2px;
}
.form-input--error { border-color: var(--coral); }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}
.payment-option {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration);
}
.payment-option:hover { border-color: var(--sage); }
.payment-option.active {
  border-color: var(--sage);
  background: var(--mint);
}
.payment-option input[type="radio"] { accent-color: var(--sage); }
.payment-option__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.payment-option.active .payment-option__icon { background: var(--white); }
.payment-option__info { flex: 1; }
.payment-option__name { font-weight: 600; font-size: 0.9375rem; }
.payment-option__desc { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.125rem; }

/* Checkout stepper */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--gap-lg);
  padding: var(--gap-md) 0;
}
.checkout-stepper__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration);
}
.checkout-stepper__step.active { color: var(--sage); font-weight: 600; }
.checkout-stepper__step.completed { color: var(--sage); cursor: pointer; }
.checkout-stepper__step.completed:hover { opacity: 0.75; }
.checkout-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}
.checkout-back-top:hover { opacity: 0.7; }
.checkout-stepper__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  transition: all var(--duration);
  flex-shrink: 0;
}
.checkout-stepper__step.active .checkout-stepper__num {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--white);
}
.checkout-stepper__step.completed .checkout-stepper__num {
  border-color: var(--sage);
  background: var(--mint);
  color: var(--sage);
}
.checkout-stepper__line {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 var(--gap-sm);
  transition: background var(--duration);
}
.checkout-stepper__line.completed { background: var(--sage); }
@media (max-width: 480px) {
  .checkout-stepper__label { display: none; }
  .checkout-stepper__line { width: 20px; margin: 0 6px; }
}

/* Form enhancements */
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-sm);
}
@media (max-width: 640px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}
.form-error {
  font-size: 0.75rem;
  color: var(--coral);
  margin-top: 0.25rem;
  display: none;
}
.form-row.has-error .form-error { display: block; }
.form-row.has-error .form-input { border-color: var(--coral); }
.form-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Checkout buttons row */
.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--gap-lg);
  gap: var(--gap-md);
}
.checkout-actions__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--duration);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.checkout-actions__back:hover { color: var(--sage); }

/* Order review items (compact) */
.order-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.order-item {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 0.75rem;
  background: var(--sand);
  border-radius: var(--radius-md);
}
.order-item__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
  flex-shrink: 0;
}
.order-item__info { flex: 1; min-width: 0; }
.order-item__name {
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-item__meta { font-size: 0.8125rem; color: var(--text-secondary); }
.order-item__price { font-weight: 600; font-size: 0.9375rem; flex-shrink: 0; }

/* Review data block */
.review-block {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  margin-bottom: var(--gap-md);
}
.review-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gap-sm);
}
.review-block__title {
  font-weight: 600;
  font-size: 0.9375rem;
}
.review-block__edit {
  font-size: 0.8125rem;
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
}
.review-block__row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.875rem;
}
.review-block__label { color: var(--text-secondary); }
.review-block__value { font-weight: 500; text-align: right; }

/* Order totals */
.order-totals {
  border-top: 2px solid var(--border);
  padding-top: var(--gap-md);
  margin-top: var(--gap-md);
}
.order-totals__row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}
.order-totals__row--grand {
  font-weight: 700;
  font-size: 1.25rem;
  padding-top: var(--gap-sm);
  margin-top: var(--gap-xs);
  border-top: 1px solid var(--border);
}
.order-totals__row--grand .order-totals__price { color: var(--sage); }

/* Success screen */
.order-success {
  text-align: center;
  padding: var(--gap-xl) var(--gap-md);
  max-width: 560px;
  margin: 0 auto;
}
.order-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--gap-md);
}
.order-success__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: var(--gap-xs);
}
.order-success__number {
  font-size: 1.125rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: var(--gap-md);
}
.order-success__info {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  text-align: left;
  margin-bottom: var(--gap-lg);
}
.order-success__info p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.order-success__info p:last-child { margin-bottom: 0; }
.order-success__actions {
  display: flex;
  justify-content: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

/* Delivery type selector */
.delivery-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
@media (max-width: 640px) {
  .delivery-types { grid-template-columns: 1fr; }
}
.delivery-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--gap-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration);
  text-align: center;
  background: var(--white);
}
.delivery-type:hover { border-color: var(--sage); }
.delivery-type.active {
  border-color: var(--sage);
  background: var(--mint);
}
.delivery-type input[type="radio"] { display: none; }
.delivery-type__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: 50%;
  transition: background var(--duration);
}
.delivery-type.active .delivery-type__icon { background: var(--white); }
.delivery-type__name { font-weight: 600; font-size: 0.9375rem; }
.delivery-type__desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.4; }

/* Delivery extra fields (floor, elevator) */
.delivery-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}
@media (max-width: 640px) {
  .delivery-extras { grid-template-columns: 1fr; }
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.5rem 0;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
  cursor: pointer;
}

/* Pickup info */
.pickup-info {
  background: var(--mint);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.pickup-info strong { font-weight: 600; }

/* Terminal selector */
.terminal-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  margin-top: var(--gap-sm);
  max-height: 280px;
  overflow-y: auto;
}
.terminal-option {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: 0.75rem var(--gap-sm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration);
  background: var(--white);
}
.terminal-option:hover { border-color: var(--sage); }
.terminal-option.active {
  border-color: var(--sage);
  background: var(--mint);
}
.terminal-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--sage);
  flex-shrink: 0;
}
.terminal-option__info { flex: 1; }
.terminal-option__carrier {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.terminal-option__carrier--dellin {
  background: #E3F2FD;
  color: #1565C0;
}
.terminal-option__carrier--cdek {
  background: #E8F5E9;
  color: #2E7D32;
}
.terminal-option__carrier--pek {
  background: #FFF3E0;
  color: #E65100;
}
.terminal-option__name { font-weight: 600; font-size: 0.875rem; }
.terminal-option__address { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.125rem; line-height: 1.4; }
.terminal-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--gap-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.terminal-loading__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Delivery calc loading state (Step 3) */
.delivery-calc-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-lg);
  text-align: center;
}
.delivery-calc-status__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.delivery-calc-status__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.delivery-calc-result {
  background: var(--mint);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
}
.delivery-calc-result__row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}
.delivery-calc-result__row--price {
  font-weight: 600;
  font-size: 1.125rem;
  padding-top: var(--gap-xs);
  margin-top: var(--gap-xs);
  border-top: 1px solid rgba(107,158,135,0.2);
}

/* в”Ђв”Ђ Delivery carrier options (Step 3) в”Ђв”Ђ */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--white);
}
.delivery-option:hover { border-color: var(--sage); }
.delivery-option.active {
  border-color: var(--sage);
  background: var(--mint);
}
.delivery-option input[type="radio"] {
  accent-color: var(--sage);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.delivery-option__info { flex: 1; display: flex; flex-direction: column; gap: 0.125rem; }
.delivery-option__carrier { font-weight: 600; font-size: 0.9375rem; }
.delivery-option__days { font-size: 0.8125rem; color: var(--text-secondary); }
.delivery-option__price {
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
  color: var(--sage-dark, var(--sage));
}

/* в”Ђв”Ђ Modals в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,44,44,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overscroll-behavior: contain;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--gap-xl);
  max-width: 440px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
.modal__close {
  position: absolute;
  top: var(--gap-md);
  right: var(--gap-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--duration);
}
.modal__close:hover { background: var(--sand); }
.modal__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: var(--gap-md);
}
.modal__product {
  display: flex;
  gap: var(--gap-sm);
  padding: var(--gap-sm);
  background: var(--sand);
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-md);
}
.modal__product-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}


/* в”Ђв”Ђ Blog в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
@media (max-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.blog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sand);
}
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: var(--gap-md); }
.blog-card__tag {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.blog-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.blog-card__excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* в”Ђв”Ђ Thank You Page в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.thank-you {
  text-align: center;
  padding: var(--gap-2xl) 0;
}
.thank-you__icon {
  width: 80px;
  height: 80px;
  background: var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--gap-md);
  color: var(--sage);
}


/* в”Ђв”Ђ SFR Page в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-page-hero {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  margin-top: var(--gap-md);
}
.sfr-page-hero__content { flex: 1; min-width: 0; }
.sfr-page-hero__img { flex-shrink: 0; max-width: 45%; }
.sfr-page-hero__img img { width: 100%; height: auto; border-radius: var(--radius-lg); }
@media (max-width: 768px) {
  .sfr-page-hero { flex-direction: column; text-align: center; }
  .sfr-page-hero__img { order: -1; }
}

.sfr-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  counter-reset: step;
}
.sfr-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  padding-top: calc(var(--gap-md) + 0.5rem);
}
.sfr-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--gap-sm);
}
.sfr-step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sfr-step__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .sfr-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sfr-steps { grid-template-columns: 1fr; }
}

.sfr-faq { max-width: 800px; }
.sfr-faq__item {
  border-bottom: 1px solid var(--border);
}
.sfr-faq__q {
  padding: 1rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sfr-faq__q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--sage);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
details[open] .sfr-faq__q::after {
  transform: rotate(45deg);
}
.sfr-faq__q::-webkit-details-marker { display: none; }
.sfr-faq__a {
  padding-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* в”Ђв”Ђ SFR Hero Banner в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-hero-banner {
  position: relative;
  background: linear-gradient(135deg, #e8f0eb 0%, #eef4f0 40%, #f0f2ee 100%);
  padding: var(--gap-xl) 0;
  overflow: hidden;
}
.sfr-hero-banner__bg {
  position: absolute;
  top: 0; right: max(0px, calc((100% - 1240px) / 2));
  width: min(60%, 720px); height: 100%;
  background: url('/assets/img/banner-sfr-bg.webp') right center / cover no-repeat;
  opacity: 1;
  mask-image: linear-gradient(to right, transparent 0%, transparent 8%, black 42%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 8%, black 42%);
}
@media (max-width: 768px) {
  .sfr-hero-banner__bg { width: 100%; opacity: 0.15; mask-image: none; -webkit-mask-image: none; }
}
.sfr-hero-banner__content { position: relative; z-index: 1; max-width: 600px; }
.sfr-hero-banner__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
@media (max-width: 480px) { .sfr-hero-banner__title { font-size: 1.75rem; } }
.sfr-hero-banner__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.sfr-hero-banner__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* в”Ђв”Ђ SFR Section Backgrounds в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-section-wrap { padding: var(--gap-xl) 0; }
.sfr-section-wrap--sand { background: var(--sand); }
.sfr-section-wrap--mint { background: var(--mint); }
.sfr-section-wrap--cream { background: var(--cream); }

/* в”Ђв”Ђ SFR Hub: Tile Navigation в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-hub { padding: var(--gap-lg) 0; }
.sfr-hub__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .sfr-hub__row2 { grid-template-columns: 1fr; }
}
.sfr-hub-tile--featured {
  padding: 2rem 2.25rem;
  border-width: 2px;
  border-color: rgba(232,131,107,0.3);
}
.sfr-hub-tile--featured .sfr-hub-tile__title { font-size: 1.25rem; }
.sfr-hub-tile--featured .sfr-hub-tile__desc { font-size: 0.9rem; }
.sfr-hub-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration), border-color var(--duration);
}
.sfr-hub-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107,158,135,0.3);
}
.sfr-hub-tile--mint { background: linear-gradient(135deg, #edf5f0 0%, #f4f9f6 60%, #f9fcfa 100%); }
.sfr-hub-tile--sand { background: linear-gradient(135deg, #fdf5ef 0%, #fef8f3 60%, #fffaf6 100%); }
.sfr-hub-tile--sage { background: linear-gradient(135deg, #f0f4ed 0%, #f6f9f4 60%, #fafcf8 100%); }
.sfr-hub-tile--coral { background: linear-gradient(135deg, #fdf0e6 0%, #fef5ed 60%, #fff9f4 100%); }
.sfr-hub-tile--warm { background: linear-gradient(135deg, #f5f0eb 0%, #faf7f4 60%, #fdfcfa 100%); }
.sfr-hub-tile__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  color: var(--sage);
}
.sfr-hub-tile__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}
.sfr-hub-tile__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.sfr-hub-tile__arrow {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sage);
}

/* в”Ђв”Ђ SFR Hub: Section Anchors в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-section { scroll-margin-top: 100px; }

/* в”Ђв”Ђ SFR Hub: Payment Steps в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-pay-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .sfr-pay-steps { grid-template-columns: 1fr; }
}
.sfr-pay-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.sfr-pay-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.sfr-pay-step__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.sfr-pay-step__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* в”Ђв”Ђ SFR Hub: Fact Cards в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .sfr-facts { grid-template-columns: 1fr; }
}
.sfr-fact {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
}
.sfr-fact__val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.25rem;
}
.sfr-fact__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* в”Ђв”Ђ SFR Hub: IPRA Duration Pills в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.sfr-pill {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* в”Ђв”Ђ SFR Hub: News Grid в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-news-grid {
  display: grid;
  /* строками: слева направо, потом сверху вниз (хронология по строкам, от новых к старым) */
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 960px) {
  .sfr-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sfr-news-grid { grid-template-columns: 1fr; }
}
/* Карточки новостей (стили были только в main.css, которую страница не грузит → выглядело голо) */
.sfr-news-grid .news-card {
  background: #fff; border: 1px solid rgba(33,71,58,.12); border-radius: 14px;
  padding: 16px 18px; transition: transform .25s ease, box-shadow .25s ease;
}
.sfr-news-grid .news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px -12px rgba(27,36,32,.22); }
.sfr-news-grid .news-card__date {
  display: inline-block; margin-bottom: 8px;
  font: 800 12px/1 'Manrope', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #21473A;
}
.sfr-news-grid .news-card__title { font: 600 15px/1.35 'Onest','Manrope',sans-serif; color: #2B2B26; margin-bottom: 6px; }
.sfr-news-grid .news-card__excerpt { font: 400 13px/1.5 'Manrope', sans-serif; color: #5C6B61; margin: 0; }

/* в”Ђв”Ђ SFR Page: Alert Card в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-alert {
  background: #fff3cd;
  border-left: 4px solid #d4a017;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: var(--gap-md);
}
.sfr-alert__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--heading);
}
.sfr-alert__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}
.sfr-alert__text + .sfr-alert__text { margin-top: 0.5rem; }

/* в”Ђв”Ђ SFR Page: Document Checklist в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .sfr-checklist { grid-template-columns: 1fr; }
}
.sfr-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.sfr-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.5 13.3 5.2 10l1.1-1.1 2.2 2.2 4.8-4.8 1.1 1.1z'/%3E%3C/svg%3E");
}

/* в”Ђв”Ђ SFR Page: IPRA Steps в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-ipra-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}
.sfr-ipra-step {
  flex: 1 1 200px;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--sand);
  border-radius: var(--radius-md);
  position: relative;
}
.sfr-ipra-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.sfr-ipra-step__text {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* в”Ђв”Ђ SFR Page: Nominal Rules в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.sfr-rule {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--mint);
  font-size: 0.9rem;
  line-height: 1.6;
}
.sfr-rule strong { display: block; margin-bottom: 0.25rem; }

/* в”Ђв”Ђ SFR Page: Who Section в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sfr-who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.sfr-who-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}
.sfr-who-card strong { display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }


/* в”Ђв”Ђ Product Description в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.product-desc p {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
}
.product-desc p:last-child { margin-bottom: 0; }
.product-desc ul {
  margin: 0.375rem 0 0.5rem 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.product-desc ul li { margin-bottom: 0.25rem; }

/* в”Ђв”Ђ Specs Grid (2-column) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 768px) {
  /* в одну колонку с того же брейка, что и весь блок товара (.product-single) */
  .specs-grid { grid-template-columns: 1fr; }
}
.specs-grid__item {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.specs-grid__item:nth-child(odd) { background: var(--sand); }
.specs-grid__key {
  color: var(--text-secondary);
  flex-shrink: 0;
  max-width: 55%;
}
.specs-grid__val {
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

/* в”Ђв”Ђ Compact Specs (product card key specs) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.specs-grid--compact {
  grid-template-columns: 1fr;
}
.specs-grid--compact .specs-grid__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border-bottom: none;
  border-radius: var(--radius-sm);
  background: transparent;
}
.specs-grid--compact .specs-grid__item:nth-child(odd) {
  background: var(--sand);
}
.specs-grid--compact .specs-grid__key {
  color: var(--text-secondary);
  font-weight: 400;
  max-width: none;
}
.specs-grid--compact .specs-grid__val {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}


/* в”Ђв”Ђ Delivery Calculator Widget в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.delivery-calc__step {
  margin-bottom: 0.75rem;
}
.delivery-calc__step--hidden {
  display: none;
}
.delivery-calc__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.delivery-calc__input-wrap {
  position: relative;
}
.delivery-calc__input-wrap--street {
  flex: 1;
}
.delivery-calc__input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.delivery-calc__input:focus {
  outline: none;
  border-color: var(--sage);
}
.delivery-calc__input--house {
  width: 90px;
  flex-shrink: 0;
}
.delivery-calc__address-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.delivery-calc__suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}
.delivery-calc__suggestions.open { display: block; }
.delivery-calc__suggestion {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}
.delivery-calc__suggestion:hover {
  background: var(--sand);
}
.delivery-calc__region {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}
.delivery-calc__no-result {
  padding: 0.75rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* Variant buttons */
.delivery-calc__variants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.delivery-calc__variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.delivery-calc__variant:hover {
  border-color: var(--sage);
}
.delivery-calc__variant--active {
  border-color: var(--sage);
  background: var(--mint);
}
.delivery-calc__variant-icon {
  font-size: 1.25rem;
}
.delivery-calc__variant-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.delivery-calc__variant-price {
  font-size: 0.8125rem;
  color: var(--sage-dark);
  font-weight: 500;
}

/* Result */
.delivery-calc__result {
  margin-top: 0.375rem;
}
.delivery-calc__loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.delivery-calc__spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.delivery-calc__success {
  background: var(--mint);
  border-radius: var(--radius-sm, 8px);
  padding: 0.75rem 1rem;
}
.delivery-calc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.delivery-calc__row--sub {
  margin-top: 0.25rem;
}
.delivery-calc__carrier {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.delivery-calc__price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--sage-dark);
  font-weight: 700;
}
.delivery-calc__days {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.delivery-calc__hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.delivery-calc__terminal-info {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.delivery-calc__terminal-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.delivery-calc__terminal-address {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.delivery-calc__error {
  font-size: 0.8125rem;
  color: var(--coral);
  padding: 0.5rem 0;
}

/* Breakdown rows */
.delivery-calc__breakdown {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.delivery-calc__breakdown .delivery-calc__row {
  padding: 0.2rem 0;
}
.delivery-calc__row--discount {
  color: var(--sage-dark);
  font-weight: 500;
}
.delivery-calc__row--total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-weight: 600;
}
.delivery-calc__row--total .delivery-calc__price {
  font-size: 1.25rem;
}

/* Insurance / options */
.delivery-calc__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.delivery-calc__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.delivery-calc__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
  cursor: pointer;
}
.delivery-calc__option-price {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}


/* в”Ђв”Ђ Submit modal (Stage 8) в”Ђв”Ђ */
.az-rmodal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-md);
  animation: az-rmodal-fade .18s ease-out;
}
@keyframes az-rmodal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.az-rmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 50, 50, 0.55);
  backdrop-filter: blur(3px);
}
.az-rmodal__panel {
  position: relative;
  background: var(--cream, #fff);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: az-rmodal-pop .22s ease-out;
}
@keyframes az-rmodal-pop {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.az-rmodal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.az-rmodal__close:hover {
  background: var(--sand, #f5efe6);
  color: var(--text-primary);
}
.az-rmodal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.az-rmodal__hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 var(--gap-md);
  line-height: 1.5;
}
.az-rmodal__form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm, 0.75rem);
}
.az-rmodal__row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.az-rmodal__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.az-rmodal__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border, #e2dcd1);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
}
.az-rmodal__input:focus {
  outline: none;
  border-color: var(--sage, #7a9b8e);
  box-shadow: 0 0 0 3px rgba(122, 155, 142, 0.18);
}
.az-rmodal__textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}
.az-rmodal__rating {
  display: flex;
  gap: 0.25rem;
}
.az-rmodal__star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #d8d2c5;
  padding: 0.1rem 0.15rem;
  transition: color .12s, transform .12s;
}
.az-rmodal__star:hover {
  transform: scale(1.1);
}
.az-rmodal__star--active {
  color: #f0b400;
}
.az-rmodal__error {
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.3);
  color: #b13030;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.85rem;
}
.az-rmodal__actions {
  display: flex;
  gap: var(--gap-sm, 0.75rem);
  justify-content: flex-end;
  margin-top: var(--gap-sm, 0.75rem);
}
.az-rmodal__success {
  text-align: center;
  padding: 1rem 0;
}
.az-rmodal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--gap-sm);
  border-radius: 50%;
  background: var(--sage, #7a9b8e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.az-rmodal__success p {
  color: var(--text-secondary);
  margin: 0.4rem 0;
}
@media (max-width: 480px) {
  .az-rmodal__panel { padding: 1.4rem; }
  .az-rmodal__title { font-size: 1.2rem; }
  .az-rmodal__actions { flex-direction: column-reverse; }
  .az-rmodal__actions .btn { width: 100%; }
}



/* ════════════════════════════════════════════════════════════
   Product card — рестайл под A2 (поверх старых стилей выжимки)
   Карточка без рамки; белая фото-зона с внутренней обводкой;
   рейтинг золотом; строка наличия; цена + квадратная кнопка.
   ════════════════════════════════════════════════════════════ */
.product-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.product-card:hover { transform: none; box-shadow: none; }
.product-card__image {
  background: #fff;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(43,43,38,0.07);
  height: 200px;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.product-card:hover .product-card__image {
  box-shadow: inset 0 0 0 1px rgba(43,43,38,0.07), 0 16px 34px rgba(43,43,38,0.1);
}
.product-card__image img {
  max-height: 170px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .25s;
}
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__body { padding: 10px 2px 0; }
.product-card__brand { display: none; }
.product-card__title {
  font: 500 14px/1.4 var(--font-body);
  color: var(--ink);
  min-height: 39px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__title a { color: var(--ink); }
.product-card__rating { margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.product-card__stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.product-card__reviews-count { font-size: 12px; color: var(--ink-soft); }
.product-card__stock {
  margin-top: 5px;
  font-size: 12px;
  color: #4E7D51;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-card__stock::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #5FA363;
}
.product-card__footer {
  padding: 8px 2px 0;
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card .price { font: 800 17px var(--font-body); color: var(--ink); }
.product-card .price-old { font-size: 13px; }
.btn-cart {
  width: 38px; height: 38px;
  border: 0; border-radius: 10px;
  background: var(--sage-light);
  color: var(--sage-deep);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s, color .18s;
}
.btn-cart svg { width: 16px; height: 16px; }
.btn-cart:hover { background: var(--sage); color: #fff; }
.product-card__brand-badge {
  top: 10px; right: 10px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Кнопка пагинации каталога */
.catalog-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 18px 0 6px; }


/* Иконка-подсказка у ключа характеристики (стиль не попал в выжимку) */
.specs-grid__key--link { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.specs-grid__key--link:hover { color: var(--sage-dark); }
.specs-grid__key-icon { width: 13px; height: 13px; flex: 0 0 auto; opacity: 0.55; }

/* «Что важно знать при выборе» — карточки-подсказки на странице товара.
   Стили были только в main.css, который product.html не подключает → шеврон рендерился огромным. */
.product-highlights { margin: var(--gap-lg) 0 var(--gap-md); padding: var(--gap-md); background: var(--sand); border-radius: 16px; }
.product-highlights__header { margin-bottom: var(--gap-sm); }
.product-highlights__header h3 { margin: 0 0 0.35rem; font-size: 1.25rem; font-weight: 700; }
.product-highlights__header p { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }
.product-highlights__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.highlight-card { background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); overflow: hidden; transition: box-shadow .2s ease, transform .15s ease; }
.highlight-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.highlight-card[open] { box-shadow: 0 4px 14px rgba(107,158,135,0.12); }
.highlight-card__summary { list-style: none; cursor: pointer; padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.6rem; font-weight: 600; user-select: none; }
.highlight-card__summary::-webkit-details-marker { display: none; }
.highlight-card__title { flex: 1; font-size: 0.95rem; line-height: 1.3; }
.highlight-card__value { font-size: 0.8125rem; font-weight: 600; background: var(--sand); color: var(--sage-dark); padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.highlight-card__chevron { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.55; transition: transform .2s ease; }
.highlight-card[open] .highlight-card__chevron { transform: rotate(180deg); }
.highlight-card__body { padding: 0 1rem 1rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary); }
.highlight-card__body p { margin: 0 0 0.6rem; }
.highlight-card__more { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--sage); text-decoration: none; border-bottom: 1px solid rgba(107,158,135,0.4); padding-bottom: 1px; }
.highlight-card__more:hover { color: var(--sage-dark); border-bottom-color: var(--sage-dark); }
@media (max-width: 640px) { .product-highlights__list { grid-template-columns: 1fr; } }


/* ── Product Reviews (AZReviews) — стили были только в main.css, который product.html не подключает (отзывы рендерились без оформления) ── */
.az-reviews {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  margin-top: var(--gap-lg);
  box-shadow: var(--shadow-sm);
}
.az-reviews--loading,
.az-reviews--empty {
  text-align: center;
  color: var(--text-secondary);
}
.az-reviews__empty-state {
  padding: var(--gap-md) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
}

.az-reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap-md);
  flex-wrap: wrap;
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border);
}
.az-reviews__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--gap-xs);
}
.az-reviews__rating-row {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-size: 1.05rem;
}
.az-reviews__rating-num {
  font-weight: 600;
  font-size: 1.2rem;
}
.az-reviews__count { color: var(--text-secondary); }
.az-reviews__split {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Stars */
.az-stars {
  color: var(--coral);
  letter-spacing: 1px;
  font-size: 1rem;
  display: inline-block;
  position: relative;
}
.az-stars__empty { color: var(--border); }

/* Tabs */
.az-reviews__tabs {
  display: flex;
  gap: var(--gap-xs);
  flex-wrap: wrap;
  margin: var(--gap-md) 0;
}
.az-reviews__tab {
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}
.az-reviews__tab:hover { background: var(--mint); }
.az-reviews__tab--active {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage-dark);
}
.az-reviews__tab-count {
  display: inline-block;
  margin-left: 0.3rem;
  opacity: 0.7;
  font-weight: 600;
}

/* List */
.az-reviews__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.az-reviews__empty-filter {
  text-align: center;
  color: var(--text-secondary);
  padding: var(--gap-md) 0;
}

/* Review card */
.az-review {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
}
.az-review--internal {
  border-left: 3px solid var(--sage);
}
.az-review__head {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  margin-bottom: var(--gap-xs);
}
.az-review__author {
  font-weight: 600;
  color: var(--text);
}
.az-review__date {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.az-review__verified {
  font-size: 0.8rem;
  color: var(--sage-dark);
  background: var(--mint);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.az-review__text {
  color: var(--text);
  line-height: 1.6;
  margin: var(--gap-xs) 0;
  white-space: pre-wrap;
}
.az-review__proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
  font-size: 0.9rem;
}
.az-review__pros,
.az-review__cons {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  line-height: 1.5;
}
.az-review__proscons-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}
.az-review__pros .az-review__proscons-label { color: var(--sage-dark); }
.az-review__cons .az-review__proscons-label { color: var(--coral); }
.az-review__footer {
  margin-top: var(--gap-sm);
  padding-top: var(--gap-xs);
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
}
.az-review__source-link {
  color: var(--text-secondary);
  text-decoration: none;
}
.az-review__source-link[href]:hover {
  color: var(--sage);
  text-decoration: underline;
}

.az-reviews__more {
  text-align: center;
  margin-top: var(--gap-md);
}

/* Responsive */
@media (max-width: 720px) {
  .az-reviews { padding: var(--gap-md); }
  .az-reviews__title { font-size: 1.4rem; }
  .az-review__proscons { grid-template-columns: 1fr; }
}

/* ── Submit modal (Stage 8) ── */
.az-rmodal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-md);
  animation: az-rmodal-fade .18s ease-out;
}
@keyframes az-rmodal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.az-rmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 50, 50, 0.55);
  backdrop-filter: blur(3px);
}
.az-rmodal__panel {
  position: relative;
  background: var(--cream, #fff);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: az-rmodal-pop .22s ease-out;
}
@keyframes az-rmodal-pop {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.az-rmodal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.az-rmodal__close:hover {
  background: var(--sand, #f5efe6);
  color: var(--text);
}
.az-rmodal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.az-rmodal__hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 var(--gap-md);
  line-height: 1.5;
}
.az-rmodal__form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm, 0.75rem);
}
.az-rmodal__row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.az-rmodal__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.az-rmodal__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border, #e2dcd1);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.az-rmodal__input:focus {
  outline: none;
  border-color: var(--sage, #7a9b8e);
  box-shadow: 0 0 0 3px rgba(122, 155, 142, 0.18);
}
.az-rmodal__textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}
.az-rmodal__rating {
  display: flex;
  gap: 0.25rem;
}
.az-rmodal__star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #d8d2c5;
  padding: 0.1rem 0.15rem;
  transition: color .12s, transform .12s;
}
.az-rmodal__star:hover {
  transform: scale(1.1);
}
.az-rmodal__star--active {
  color: #f0b400;
}
.az-rmodal__error {
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.3);
  color: #b13030;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.85rem;
}
.az-rmodal__actions {
  display: flex;
  gap: var(--gap-sm, 0.75rem);
  justify-content: flex-end;
  margin-top: var(--gap-sm, 0.75rem);
}
.az-rmodal__success {
  text-align: center;
  padding: 1rem 0;
}
.az-rmodal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--gap-sm);
  border-radius: 50%;
  background: var(--sage, #7a9b8e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.az-rmodal__success p {
  color: var(--text-secondary);
  margin: 0.4rem 0;
}
@media (max-width: 480px) {
  .az-rmodal__panel { padding: 1.4rem; }
  .az-rmodal__title { font-size: 1.2rem; }
  .az-rmodal__actions { flex-direction: column-reverse; }
  .az-rmodal__actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   Articles / Гид покупателя — перенесено из main.css
   (article.html грузит site.css + components.css, не main.css)
   ═══════════════════════════════════════════════════════════ */
/* Articles list page + grid (used on /articles and on product card) */
.articles-page__header {
  margin: var(--gap-lg) 0 var(--gap-md);
  text-align: center;
}
.articles-page__header h1 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
}
.articles-page__header p {
  max-width: 640px;
  margin: 0 auto;
}
.articles-group {
  margin-top: var(--gap-lg);
}
.articles-group__title {
  font-size: 1.5rem;
  margin: 0 0 var(--gap-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
/* Category banner (shown when filtering articles by category) */
.articles-category-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--gap-md);
  max-height: 220px;
}
.articles-category-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.articles-category-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(44,44,44,0.55), transparent 70%);
  display: flex;
  align-items: flex-end;
  padding: var(--gap-md) var(--gap-lg);
}
.articles-category-banner__overlay h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--white);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap-sm);
}
.articles-grid--page {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .articles-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .articles-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .articles-grid--page { grid-template-columns: 1fr; }
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: var(--gap-md) 0 var(--gap-md);
}
.articles-filter {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.articles-filter:hover {
  border-color: var(--sage);
  color: var(--sage);
}
.articles-filter.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.article-card__category {
  color: var(--sage);
  font-weight: 700;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 200px;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(107, 158, 135, 0.4);
}
.article-card__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.article-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}
.article-card__excerpt {
  margin: 0 0 0.8rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}
.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}
.article-card__tag {
  font-size: 0.72rem;
  background: var(--sand);
  color: var(--text-secondary);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.article-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage);
  margin-top: auto;
}
.article-card--mini { min-height: 180px; }

/* Single article page */
.article-page {
  max-width: 760px;
  margin: var(--gap-md) auto var(--gap-lg);
}
.article-page__header {
  margin-bottom: var(--gap-md);
}
.article-page__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.article-page__category {
  color: var(--sage);
  font-weight: 700;
}
.article-page__title {
  font-size: 2.1rem;
  line-height: 1.18;
  margin: 0 0 0.75rem;
}
.article-page__excerpt {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.article-tldr {
  background: var(--sand);
  border-left: 4px solid var(--sage);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.4rem;
  margin: var(--gap-md) 0;
}
.article-tldr__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}
.article-tldr__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.94rem;
  line-height: 1.55;
}
.article-tldr__list li { margin-bottom: 0.4rem; }
.article-tldr__list li:last-child { margin-bottom: 0; }

.article-toc {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  margin: var(--gap-md) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.article-toc__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}
.article-toc__link {
  font-size: 0.875rem;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.article-toc__link:hover {
  border-bottom-color: var(--sage);
}

.article-body {
  margin-top: var(--gap-md);
}
.article-section {
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.article-section:last-child { border-bottom: none; }
.article-section__title {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  scroll-margin-top: 100px;
}
.article-section__summary {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}
.article-section__details {
  margin-top: 0.8rem;
}
.article-section__details summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  padding: 0.35rem 0;
}
.article-section__details summary::-webkit-details-marker { display: none; }
.article-section__details summary::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  transition: transform 0.2s ease;
}
.article-section__details[open] summary::before {
  transform: rotate(90deg);
}
.article-section__body {
  padding-top: 0.6rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.article-section__body p { margin: 0 0 0.8rem; }
.article-section__body ul, .article-section__body ol { padding-left: 1.3rem; margin: 0 0 0.8rem; }
.article-section__body li { margin-bottom: 0.35rem; }
.article-section__body strong { color: var(--text-primary); }
.article-section__body a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }
.article-section__body a:hover { color: var(--sage-dark); }

.article-cta {
  margin-top: var(--gap-lg);
  padding: var(--gap-md);
  background: var(--sand);
  border-radius: 16px;
  text-align: center;
}
.article-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}
.article-cta p {
  margin: 0 0 var(--gap-sm);
  color: var(--text-secondary);
}

.article-related {
  margin-top: var(--gap-lg);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.article-related__title {
  font-size: 1.5rem;
  margin: 0 0 var(--gap-sm);
  text-align: center;
}

@media (max-width: 640px) {
  .product-highlights__list { grid-template-columns: 1fr; }
  .article-page__title { font-size: 1.6rem; }
  .article-page__excerpt { font-size: 1rem; }
  .article-section__title { font-size: 1.2rem; }
  .articles-page__header h1 { font-size: 1.7rem; }
}

/* Improved article cards — lifted, visible on cream bg */
.article-card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration), transform var(--duration);
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   Мобильная доступность (аудит 2026-06): поля 16px (без iOS-зума),
   тач-таргеты ≥44px. Блок в конце — грузится последним, переопределяет.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sort-select, .search-bar__input, .callback-form__field input, .form-input,
  .az-rmodal__input, .info-page__input, .info-page__textarea,
  .quiz2__phone-row input, .search input, .catalog-search__input,
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="number"], input[type="search"], textarea, select {
    font-size: 16px;
  }
  .cart-item__qty button { width: 44px; height: 44px; }
  .modal__close, .az-modal__close { width: 44px; height: 44px; }
  .footer ul a, .f-bottom a, .breadcrumbs a { display: inline-block; padding: 5px 0; }
  /* стрелки лайтбокса не налезают на фото на узких экранах */
  .img-lightbox__nav { width: 40px; height: 40px; }
  .img-lightbox__nav--prev { left: 2px; }
  .img-lightbox__nav--next { right: 2px; }
}
