/* ==========================================================================
   components.scss — Кнопки, карточки, FAQ, breadcrumbs, dropdown, модалки
   Объединяет: components.css
   ========================================================================== */

/* components.css — part of NAOMI TOFU design system */

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.btn--sm { padding: 0.625rem 1rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.btn--block-sm { width: 100%; }
@media (min-width: 640px) {
  .btn--block-sm { width: auto; }
}

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.btn--ghost { background: transparent; color: var(--ink); padding-inline: 1rem; }
.btn--ghost:hover { background: var(--cream); }

.btn--white {
  background: #fff;
  color: var(--ink);
}
.btn--white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.3);
}


/* --------------------------------------------------------------------------
   11. Benefit cards
   -------------------------------------------------------------------------- */

.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(4px);
}
.benefit-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.benefit-card__icon svg { width: 1.375rem; height: 1.375rem; }
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.benefit-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   12. Compact product cards (used on home page)
   -------------------------------------------------------------------------- */

.product-compact {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.product-compact:hover {
  border-color: #d4d4d4;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.product-compact__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #fff;
  overflow: hidden;
}
.product-compact__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-compact:hover .product-compact__image img { transform: scale(1.05); }

.product-compact__chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--product-soft);
  color: var(--product-text);
  border: 1px solid color-mix(in srgb, var(--product-accent) 25%, transparent);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
}

.product-compact__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-compact__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.product-compact__tagline {
  font-size: 0.8125rem;
  color: var(--mute);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-compact__price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.product-compact__price-label {
  font-size: 0.6875rem;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.product-compact__price-val {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--product-text);
}

.product-compact__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--product-text);
  margin-top: 0.5rem;
}
.product-compact__more svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}
.product-compact:hover .product-compact__more svg { transform: translateX(3px); }


/* --------------------------------------------------------------------------
   13. Product detail page (full product card)
   -------------------------------------------------------------------------- */

.product-detail {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .product-detail {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: start;
  }
}

.product-detail__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
@media (max-width: 1023px) {
  .product-detail__image-wrap { position: relative; top: auto; }
}
.product-detail__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail__chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--product-soft);
  color: var(--product-text);
  border: 1px solid color-mix(in srgb, var(--product-accent) 25%, transparent);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
}

.product-detail__body { display: flex; flex-direction: column; }

.accent-bar {
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 1rem;
  background: var(--product-accent);
}

.product-detail__title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .product-detail__title { font-size: 2.5rem; }
}

.product-detail__tagline {
  font-size: 1.125rem;
  color: var(--product-text);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
}

.product-detail__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.product-detail__section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
}

.product-detail__features {
  display: grid;
  gap: 0.625rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .product-detail__features { grid-template-columns: repeat(2, 1fr); gap: 0.625rem 1rem; }
}
.product-detail__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.product-detail__features li::before {
  content: "";
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25rem;
  background: var(--product-text);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14 5l-7 7-3-3'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14 5l-7 7-3-3'/></svg>") center / contain no-repeat;
}

.product-detail__prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-bottom: 2rem;
}
.price-tier {
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  background: var(--product-soft);
  border: 1px solid color-mix(in srgb, var(--product-accent) 15%, transparent);
}
.price-tier__qty {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.price-tier__val {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--product-text);
}
@media (min-width: 768px) {
  .price-tier__val { font-size: 1.5rem; }
}

.product-detail__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .product-detail__cta { flex-direction: row; }
}
.product-detail__cta .btn--primary {
  background: var(--product-text);
}
.product-detail__cta .btn--primary:hover {
  background: color-mix(in srgb, var(--product-text) 85%, #000);
}

.product-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--mute);
  transition: color 0.2s ease;
  margin-bottom: 1.5rem;
}
.product-detail__back:hover { color: var(--ink); }
.product-detail__back svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}
.product-detail__back:hover svg { transform: translateX(-3px); }

/* Related products section */
.related-products { margin-top: 3rem; }
@media (min-width: 768px) { .related-products { margin-top: 4rem; } }
.related-products__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .related-products__title { font-size: 1.875rem; }
}


/* --------------------------------------------------------------------------
   14. Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mute);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--mute); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-current] { color: var(--ink); }


/* --------------------------------------------------------------------------
   17. Why cards
   -------------------------------------------------------------------------- */

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  backdrop-filter: blur(2px);
}
.why-card__num {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.why-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   19. FAQ accordion
   -------------------------------------------------------------------------- */

.faq {
  max-width: 48rem;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: left;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-trigger:hover { color: var(--naomi-greentea-text); }
.faq-trigger[aria-expanded="true"] { color: var(--naomi-greentea-text); }

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  color: currentColor;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-icon::before {
  top: 50%; left: 4px; right: 4px; height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon::after {
  left: 50%; top: 4px; bottom: 4px; width: 1.5px;
  transform: translateX(-50%);
}
.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-panel.is-open {
  max-height: 800px;
  padding-bottom: 1.5rem;
}
.faq-panel__content {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-footer {
  margin-top: 3rem;
  text-align: center;
}
.faq-footer p {
  color: var(--mute);
  margin-bottom: 1rem;
}
.faq-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}


/* --------------------------------------------------------------------------
   22. Floating contact buttons
   -------------------------------------------------------------------------- */

.floating {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
@media (min-width: 640px) {
  .floating { right: 1.5rem; bottom: 1.5rem; }
}
.floating.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating__expanded {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.floating__expanded.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating__btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.3);
}
.floating__btn svg { width: 1.375rem; height: 1.375rem; }
.floating__btn--whatsapp { background: #25D366; }
.floating__btn--viber { background: #7360F2; }
.floating__btn--phone { background: var(--ink); }
.floating__btn--main {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--ink);
  position: relative;
}
.floating__btn--main.is-open { background: var(--ink-soft); }

.floating__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.floating__icon--chat { opacity: 1; }
.floating__icon--close {
  opacity: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.floating__btn--main.is-open .floating__icon--chat { opacity: 0; }
.floating__btn--main.is-open .floating__icon--close {
  opacity: 1;
  transform: translate(-50%, -50%);
}


/* --------------------------------------------------------------------------
   23. News modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
@media (min-width: 768px) {
  .modal { align-items: center; padding: 1.5rem; }
}
.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 48rem;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: modal-in 0.25s ease;
}
@media (min-width: 768px) {
  .modal__dialog {
    border-radius: 1.5rem;
    overflow: hidden;
    max-height: 90vh;
  }
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal__image {
  position: relative;
  height: 35vh;
  flex-shrink: 0;
  background: var(--cream);
  overflow: hidden;
}
@media (min-width: 768px) {
  .modal__image { height: 36vh; }
}
.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}
.modal__close:hover { background: #fff; }

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .modal__body { padding: 2.5rem; }
}

.modal__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--mute);
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .modal__title { font-size: 2.25rem; }
}

.modal__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .modal__content { font-size: 1.125rem; }
}
.modal__content p { white-space: pre-line; }

.modal__source {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--mute);
}
.modal__source a {
  color: var(--naomi-greentea-text);
  word-break: break-all;
}
.modal__source a:hover { text-decoration: underline; }

.modal__footer {
  flex-shrink: 0;
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .modal__footer { flex-direction: row; padding: 1.5rem; }
}

/* Body scroll lock when modal/menu is open */
body.is-locked {
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   26. Lightbox (image zoom on click)
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox__container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.6);
  animation: lightbox-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}
.lightbox__close svg { width: 1.25rem; height: 1.25rem; }

/* Navigation arrows (shown when there are multiple images) */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
@media (min-width: 768px) {
  .lightbox__nav { width: 3.5rem; height: 3.5rem; }
}
.lightbox__nav:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav svg { width: 1.5rem; height: 1.5rem; }
.lightbox__nav[hidden] { display: none; }

/* Counter "1 / 5" */
.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  z-index: 2;
  pointer-events: none;
}
.lightbox__counter[hidden] { display: none; }

/* Caption under image */
.lightbox__caption {
  position: absolute;
  bottom: 4rem;
  left: 1rem;
  right: 1rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  z-index: 2;
  pointer-events: none;
  max-width: 48rem;
  margin-inline: auto;
}
.lightbox__caption[hidden] { display: none; }

/* Visual hint that an image is clickable */
[data-lightbox] {
  cursor: zoom-in;
}

/* For elements with explicit hover affordance, add subtle zoom icon hint */
.article__hero[data-lightbox],
.article__gallery-item[data-lightbox],
.product-detail__image-wrap[data-lightbox],
.hero__main-img[data-lightbox] {
  cursor: zoom-in;
}


/* --------------------------------------------------------------------------
   29.2 Small phones (≤ 480px) — improve CTA layout, grids, buttons
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  /* Hero CTA: stack buttons vertically, full width */
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero title: cap at 2rem so it never overflows */
  .hero__title {
    font-size: 2rem;
  }

  /* Wholesale banner: stack actions full width */
  .wholesale-banner__actions {
    gap: 0.5rem;
  }
  .wholesale-banner__actions .btn {
    width: 100%;
  }

  /* Wholesale intro CTA: stack buttons */
  .wholesale-intro__cta {
    flex-direction: column;
  }
  .wholesale-intro__cta .btn {
    width: 100%;
  }

  /* Visit CTA: stack and full-width button */
  .visit-cta .btn--white {
    width: 100%;
  }

  /* FAQ footer CTA: stack buttons */
  .faq-footer__cta {
    flex-direction: column;
  }
  .faq-footer__cta .btn {
    width: 100%;
  }

  /* Contacts CTA: full-width actions */
  .contacts-cta__actions .btn {
    width: 100%;
  }

  /* Product detail CTA: stack buttons */
  .product-detail__cta .btn {
    width: 100%;
  }

  /* Article CTA: stack buttons full width */
  .article__cta-buttons {
    min-width: 0;
  }
  .article__cta-buttons .btn {
    width: 100%;
  }

  /* Mobile nav: tighter padding */
  .mobile-nav__link {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }
  .mobile-nav__header {
    padding: 0 1rem;
    height: 3.5rem;
  }
  .mobile-nav__footer {
    padding: 1rem;
    gap: 0.5rem;
  }
  .mobile-nav__footer .btn {
    font-size: 0.8125rem;
    /* Allow wrapping for long button labels like the phone number — prevents
       horizontal overflow inside the mobile nav drawer on very small screens. */
    white-space: normal;
    line-height: 1.3;
    padding-inline: 1rem;
    text-align: center;
  }

  /* Floating buttons: smaller */
  .floating__btn {
    width: 2.875rem;
    height: 2.875rem;
  }
  .floating__btn--main {
    width: 3.125rem;
    height: 3.125rem;
  }

  /* Lightbox: reduce padding */
  .lightbox {
    padding: 0.5rem;
  }
  .lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
  }
  .lightbox__nav svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   29.3 Grids on small screens
   By default, 3/4/5-col grids collapse to 2 cols at 640px and 1 col below.
   We keep that, but for very small screens (≤ 419px) we force single column
   so cards don't get too narrow.
   -------------------------------------------------------------------------- */

@media (max-width: 419px) {
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }
  .news-grid .grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Allow 2 columns on 420px+ screens for product/news/benefit cards */
@media (min-width: 420px) and (max-width: 639px) {
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Tighten gap on small 2-col grids */
  .grid--3,
  .grid--4,
  .grid--5 {
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   29.4 Marketplace mapping table — MOBILE REDESIGN
   On small screens the table is hard to read because the header row is
   separate from the data rows. We:
   1. Hide the header row on mobile
   2. Make each data row a self-contained card
   3. Show a label before each marketplace link using the data-label attribute
   -------------------------------------------------------------------------- */

@media (max-width: 899px) {
  /* Hide the header row on mobile */
  .mp-mapping__row--head {
    display: none;
  }

  /* Each data row becomes a card with internal spacing */
  .mp-mapping__row {
    padding: 1rem 1.125rem;
    gap: 0.375rem;
  }

  /* Add subtle separation between rows (already has border-bottom) */
  .mp-mapping__row:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  /* Product cell: prominent, with bottom border inside the card */
  .mp-mapping__cell--product {
    font-size: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 0.25rem;
  }

  /* Marketplace cells: label + link on the same line */
  .mp-mapping__cell:not(.mp-mapping__cell--product) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.3125rem 0;
    min-height: 2.25rem;
  }

  /* The label shown via ::before from data-label attribute */
  .mp-mapping__cell:not(.mp-mapping__cell--product)::before {
    content: attr(data-label);
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--ink-soft);
    letter-spacing: -0.005em;
    flex-shrink: 1;
    min-width: 0;
    overflow-wrap: break-word;
  }

  /* Make sure the link button doesn't shrink too much */
  .mp-mapping__cell:not(.mp-mapping__cell--product) .mp-link {
    flex-shrink: 0;
  }
}

/* For very small screens (≤ 380px), stack label above the link button */
@media (max-width: 380px) {
  .mp-mapping__cell:not(.mp-mapping__cell--product) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }
  .mp-mapping__cell:not(.mp-mapping__cell--product)::before {
    font-size: 0.75rem;
    color: var(--mute);
  }
  .mp-mapping__cell:not(.mp-mapping__cell--product) .mp-link {
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
  .mp-mapping__cell:not(.mp-mapping__cell--product) .mp-link--soon {
    align-self: stretch;
    text-align: center;
  }
}

/* On medium screens (768px–899px) tighten the table padding */
@media (min-width: 768px) and (max-width: 899px) {
  .mp-mapping__row {
    padding: 1.125rem 1.5rem;
  }
  .mp-mapping__cell:not(.mp-mapping__cell--product) {
    padding: 0.375rem 0;
  }
}

/* --------------------------------------------------------------------------
   29.5 Header & burger refinements
   Ensure the header never overflows even when both phone link and burger
   are visible (768px–1023px).
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .header__inner {
    gap: 0.75rem;
  }
  /* Trim the phone button on tablet so it doesn't crowd the burger */
  .header__phone {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
}

/* On small phones hide the phone button text — keep just an icon */
@media (max-width: 480px) {
  .header__actions {
    gap: 0.375rem;
  }
  /* Ensure burger button never gets pushed off-screen */
  .burger {
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   29.6 Hero thumbnails on tablet — fix potential overflow
   The .hero__thumbs uses left: -2rem and right: 2rem which can push
   outside the container on certain viewport widths. We clamp it inside.
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__thumbs {
    left: 0;
    right: 0;
    bottom: -1.5rem;
  }
  .hero__thumb-label {
    font-size: 0.5625rem;
    padding: 0.1875rem 0.375rem;
  }
}


/* --------------------------------------------------------------------------
   29.10 Modal on small screens
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .modal__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .modal__content {
    font-size: 0.9375rem;
  }
  .modal__body {
    padding: 1.25rem;
  }
  .modal__image {
    height: 30vh;
  }
  .modal__footer {
    padding: 1rem;
  }
  .modal__footer .btn {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   29.13 Buttons — full-width utility on small screens for stacked CTAs
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  /* Force every CTA group to full width on tiny screens */
  .btn--block,
  .btn--block-sm {
    width: 100%;
  }
  .faq-footer__cta .btn,
  .hero__cta .btn,
  .wholesale-banner__actions .btn,
  .wholesale-intro__cta .btn,
  .product-detail__cta .btn,
  .article__cta-buttons .btn,
  .visit-cta .btn,
  .contacts-cta__actions .btn,
  .modal__footer .btn {
    width: 100%;
    justify-content: center;
  }
}



/* Product dropdown */
.nav__item--has-dropdown {
  position: relative;
}
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15);
  padding: 0.5rem;
  min-width: 200px;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}
.nav__item--has-dropdown:hover .nav__dropdown {
  display: flex;
}
.nav__dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #4a4a4a !important;
  border-radius: 0.375rem;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav__dropdown a:hover {
  background: #f5f5f5;
  color: #1a1a1a !important;
}

/* ============================================================
 * Marketplace logos & mp-card overrides
 * (added by request — moved here from <style> blocks)
 * ============================================================ */

/* ====== FOOTER marketplace logos: tiny ====== */
.footer__platform,
.footer__platform--link,
.footer__platform--soon {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 1px 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 0.78em !important;
}

.footer__platforms .footer__platform-logo,
.footer__platform-logo,
.footer__platforms img {
  height: 10px !important;
  width: auto !important;
  max-width: 32px !important;
  max-height: 10px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  opacity: 0.8 !important;
}

.footer__platforms {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
}

/* ====== CONTACTS-CTA marketplace logos: tiny ====== */
.contacts-cta__mp-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.82em !important;
}

.contacts-cta__mp-list img,
.contacts-cta__mp-link img,
.contacts-cta__mp-logo {
  height: 10px !important;
  width: auto !important;
  max-width: 36px !important;
  max-height: 10px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  opacity: 0.85 !important;
  display: inline-block !important;
}

/* ====== RETAIL mp-card: dim background so logo is more visible ====== */
.mp-card {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.mp-card__logo {
  background: rgba(0, 0, 0, 0.06) !important;
  padding: 6px 8px !important;
  max-height: 32px !important;
  overflow: hidden !important;
  border-radius: 6px !important;
}

.mp-card__logo img {
  max-height: 18px !important;
  height: 18px !important;
  width: auto !important;
  max-width: 80px !important;
  object-fit: contain !important;
  display: block !important;
  filter: contrast(1.1) !important;
}

.mp-card:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

.mp-card:hover .mp-card__logo {
  background: rgba(0, 0, 0, 0.08) !important;
}


/* ============================================================
 * Лёгкий Старт — program badge / note / section
 * (added 2026-07: выделенный пункт в меню «Продукция»,
 *  плашка в карточке товара, секция на главной)
 * ============================================================ */

/* Highlighted CTA item at top of «Продукция» dropdown */
.nav__dropdown-cta {
  display: block !important;
  padding: 0.625rem 0.875rem !important;
  margin-bottom: 0.375rem;
  border-radius: 0.5rem !important;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe2bd 100%) !important;
  border: 1px solid #f5c97a !important;
  color: #8a5a00 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.nav__dropdown-cta:hover {
  background: linear-gradient(135deg, #ffe9c4 0%, #ffd596 100%) !important;
  color: #6e4700 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(245, 201, 122, 0.6);
}
.nav__dropdown-cta strong { font-weight: 700; }

/* Mobile nav «Лёгкий Старт» highlighted item */
.mobile-nav__link--cta {
  display: block;
  padding: 0.75rem 1rem !important;
  margin: 0.25rem 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe2bd 100%) !important;
  color: #8a5a00 !important;
  font-weight: 600 !important;
  border: 1px solid #f5c97a;
}

/* Badge near H1 title in product cards */
.light-start-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe2bd 100%);
  border: 1px solid #f5c97a;
  border-radius: 999px;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.light-start-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -3px rgba(245, 201, 122, 0.65);
  color: #6e4700;
}
@media (max-width: 640px) {
  .light-start-badge {
    display: inline-flex;
    margin-left: 0;
    margin-top: 0.5rem;
    font-size: 0.68rem;
  }
}

/* Inline note inside product card prices block */
.light-start-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #fffaf0 0%, #fff3d6 100%);
  border: 1px solid #f5c97a;
  border-left: 3px solid #f0a500;
  border-radius: 0.5rem;
  color: #6e4700;
  font-size: 0.875rem;
  line-height: 1.5;
}
.light-start-note__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.light-start-note__text { flex: 1; }
.light-start-note__text strong { color: #4a3000; font-weight: 700; }
.light-start-note__link {
  color: #8a5a00;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.light-start-note__link:hover { color: #4a3000; }

/* Full section on homepage */
.light-start {
  background: linear-gradient(135deg, #fff8eb 0%, #ffe9c4 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  border: 1px solid #f5c97a;
  position: relative;
  overflow: hidden;
}
.light-start::before {
  content: "🚀";
  position: absolute;
  top: -1rem;
  right: -0.5rem;
  font-size: 9rem;
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
}
.light-start__head { position: relative; z-index: 1; max-width: 720px; }
.light-start__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a00;
  margin-bottom: 0.5rem;
}
.light-start__title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #4a3000;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.light-start__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: #6e4700;
  margin: 0 0 1.5rem;
}
.light-start__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.625rem;
}
.light-start__features li {
  position: relative;
  padding-left: 1.5rem;
  color: #4a3000;
  font-size: 0.92rem;
  line-height: 1.45;
}
.light-start__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #c88500;
  font-weight: 700;
}
.light-start__price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 0.625rem;
  border: 1px solid #f5c97a;
}
.light-start__price {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #c88500;
  line-height: 1;
}
.light-start__price-label {
  font-size: 0.85rem;
  color: #6e4700;
  line-height: 1.3;
}
.light-start__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.light-start__cta .btn--primary {
  background: #c88500;
  color: #fff;
}
.light-start__cta .btn--primary:hover {
  background: #a86f00;
}
.light-start__cta .btn--outline {
  border-color: #c88500;
  color: #6e4700;
}
@media (max-width: 640px) {
  .light-start { padding: 1.75rem 1.25rem; }
  .light-start__title { font-size: 1.4rem; }
  .light-start__price { font-size: 1.6rem; }
  .light-start::before { font-size: 6rem; }
}


/* ============================================================
 * Лёгкий Старт — compact strip (inside products section)
 * Brief enticing block, replaces the full homepage section
 * ============================================================ */
.light-start-strip {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #fff8eb 0%, #ffe9c4 100%);
  border: 1px solid #f5c97a;
  border-left: 4px solid #f0a500;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.light-start-strip::before {
  content: "🚀";
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  font-size: 6rem;
  opacity: 0.07;
  pointer-events: none;
  line-height: 1;
}
.light-start-strip__content {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 1;
}
.light-start-strip__title {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #4a3000;
  line-height: 1.3;
}
.light-start-strip__text {
  margin: 0;
  color: #6e4700;
  font-size: 0.92rem;
  line-height: 1.5;
}
.light-start-strip__text strong { color: #4a3000; font-weight: 700; }
.light-start-strip__price {
  display: inline-block;
  margin-right: 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #c88500;
  font-size: 1.05rem;
}
.light-start-strip__actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.light-start-strip__actions .btn {
  white-space: nowrap;
}
.light-start-strip__actions .btn--primary {
  background: #c88500;
  color: #fff;
}
.light-start-strip__actions .btn--primary:hover { background: #a86f00; }
.light-start-strip__actions .btn--outline {
  border-color: #c88500;
  color: #6e4700;
}
@media (max-width: 640px) {
  .light-start-strip { padding: 1.25rem 1.25rem; flex-direction: column; align-items: stretch; }
  .light-start-strip__title { font-size: 1.05rem; }
  .light-start-strip__actions { width: 100%; }
  .light-start-strip__actions .btn { flex: 1; text-align: center; }
  .light-start-strip::before { font-size: 4rem; }
}


/* ============================================================
 * Modifiers for cards WITHOUT image
 * (product cards on homepage + text-only news cards in Полезные материалы)
 * Keeps layout consistent and text aligned uniformly with image cards.
 * ============================================================ */

/* Product compact card — chip as inline badge (when no image) */
.product-compact__chip--inline {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--product-soft);
  color: var(--product-text);
  border: 1px solid color-mix(in srgb, var(--product-accent) 25%, transparent);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

/* News card — text-only variant (no image block)
   Aligns body padding & structure with image cards */
.news-card--text .news-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card--text .news-card__title {
  -webkit-line-clamp: none;
  margin-bottom: 0.6rem;
}
.news-card--text .news-card__excerpt {
  -webkit-line-clamp: none;
  margin-bottom: 1rem;
}
.news-card--text .news-card__more {
  margin-top: auto;
}

