:root {
  color-scheme: light;
  --ink: #1f2725;
  --muted: #65706c;
  --line: #dfe5e0;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --sage: #6e8f7d;
  --sage-dark: #355a49;
  --coral: #c96f50;
  --sun: #f0c45c;
  --blue: #5d7fa3;
  --shadow: 0 18px 50px rgba(36, 46, 41, 0.12);

  /* Дизайн-токены. Раньше всё держалось на рамке 1px — от этого интерфейс
     выглядел как админка. Карточки теперь на мягкой тени, радиусы крупнее. */
  --r-card: 18px;
  --r-media: 14px;
  --r-pill: 999px;
  --lift-1: 0 2px 10px rgba(53, 90, 73, 0.05);
  --lift-2: 0 10px 30px rgba(53, 90, 73, 0.09);
  --lift-3: 0 18px 44px rgba(53, 90, 73, 0.14);
  --section-y: clamp(56px, 6vw, 96px);
  --gutter: clamp(18px, 4vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Липкая шапка 70px перекрывала бы заголовок раздела при переходе по якорю. */
:target,
[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(223, 229, 224, 0.8);
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fff;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-weight: 600;
}

.icon-button {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.cart-button::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  transform: translateY(3px);
}

.cart-button::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateY(-8px);
}

.cart-button {
  position: relative;
}

.cart-button span {
  position: absolute;
  right: -7px;
  top: -7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: clamp(520px, 76vh, 720px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(24px, 5vw, 60px);
}

.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 31, 27, 0.62), rgba(21, 31, 27, 0.24) 48%, rgba(21, 31, 27, 0.03));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: white;
  padding-bottom: clamp(80px, 14vh, 140px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2d28c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.02em;
}

h2,
h3 {
  color: #2a483a;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.985);
}

.primary:hover {
  background: #2a483a;
}

.ghost:hover {
  border-color: var(--sage);
  background: #f2f6f3;
}

.button[disabled] {
  opacity: 0.5;
  pointer-events: none;
  transform: none;
}

.primary {
  box-shadow: var(--lift-1);
}

.primary:hover {
  box-shadow: var(--lift-2);
}

.ghost {
  background: var(--surface);
  border-color: rgba(53, 90, 73, 0.18);
  color: var(--sage-dark);
}

.primary {
  background: var(--sage-dark);
  color: white;
}

.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.hero-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trustbar article {
  min-height: 112px;
  padding: 26px clamp(18px, 3vw, 42px);
  background: var(--surface);
}

.trustbar strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--sage-dark);
}

.trustbar p,
.section-heading p,
.product p,
.kit p,
.care-layout p,
.source-layout p {
  color: var(--muted);
  line-height: 1.55;
}

.collections,
.shop-section,
.kits,
.care,
.sourcing {
  padding: var(--section-y) var(--gutter);
}

.collections {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: minmax(280px, 1fr);
  gap: 18px;
}

.collection {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--lift-2);
}

.collection.large {
  grid-row: span 2;
}

.collection picture, .collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22, 32, 28, 0.72), rgba(22, 32, 28, 0.08) 58%);
}

.collection div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: white;
}

.collection p {
  margin-bottom: 6px;
  color: #f2d28c;
  font-weight: 800;
}

.collection h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
}

.section-heading.compact h2 {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
}

.filter {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--sage-dark);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--lift-1);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter:hover {
  box-shadow: var(--lift-2);
}

.filter.active {
  background: var(--sage-dark);
  color: #fff;
  border-color: var(--sage-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 4px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--lift-1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;   /* вся карточка открывает страницу товара */
}

/* Интерактивные элементы внутри карточки — обычный курсор, не «вся карточка». */
.product [data-add],
.product .ops-only {
  cursor: pointer;
}

.product:hover {
  box-shadow: var(--lift-3);
  transform: translateY(-3px);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 10px 12px;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-media);
  background: radial-gradient(120% 100% at 30% 15%, var(--a), var(--b));
  color: var(--sage-dark);
}

.product-media svg {
  width: 38%;
  max-width: 96px;
  opacity: 0.8;
}

.product-media.has-photo {
  /* Фото поставщиков разнородные: часть на белом, часть лайфстайл, часть
     с рекламным текстом. Общая тёплая подложка и лёгкая коррекция
     приводят сетку к одному знаменателю. */
  background: linear-gradient(180deg, #ffffff 0%, #f6f3ee 100%);
}

.product-media.has-photo img {
  filter: saturate(0.92) contrast(1.03);
}

/* Мягкое затухание к низу кадра: гасит рекламные надписи на фото
   и связывает картинку с карточкой. */
.product-media.has-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(246, 243, 238, 0), rgba(246, 243, 238, 0.85));
  pointer-events: none;
}

.product-media picture, .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-media);
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf3ef;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.grade {
  color: white;
  background: var(--coral);
}

.product h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.32;
}

.product-more p {
  margin-bottom: 12px;
  font-size: 14px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 54px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.specs li {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: auto 0 6px;
}

.price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.compare {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: line-through;
}

/* Цена после стартового периода. Не зачеркиваем: это будущая цена, а не «было». */
.later {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.product-media {
  position: relative;
}

.badge-off {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(201, 111, 80, 0.3);
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.vat {
  margin-bottom: 14px;
  color: #6d7975;
  font-size: 12px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.product button {
  width: 100%;
}

.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--sage-dark);
}

.proof {
  min-height: 38px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ops-row {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
}

/* ops-слой: по умолчанию скрыт, включается ?ops=1 */
.ops-only {
  display: none;
}

.ops-on .ops-only {
  display: revert;
}

.ops-on .card-actions .ops-only {
  display: inline-flex;
}

.ops-on .product-top .ops-only {
  display: inline-flex;
}

.ops-banner {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(18px, 4vw, 52px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.ops-on .ops-banner {
  display: flex;
}

.ops-banner button {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.kits {
  background: #eef1ec;
}

.care-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.care-layout article {
  padding: 26px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--lift-1);
}

.care-layout h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.kit-grid,
.source-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.kit,
.source-layout article {
  padding: 26px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--lift-1);
}

.kit {
  display: flex;
  flex-direction: column;
}

/* Растягиваем именно лид, а не любой <p> в наборе: правило .kit p по
   специфичности перебивало .kit-badge и .kit-why p и раздувало их. */
.kit-lead {
  flex: 1;
}

.kit-n {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--coral);
  font-weight: 800;
}

/* Набор с обязательным экстрактором выделен рамкой: это не «можно и без»,
   а условие работы химии, и на витрине это должно быть видно до покупки. */
.kit-strict {
  border-color: #d8cba9;
  background: linear-gradient(#fffdf7, #fff);
}

/* Флагманский общий набор: самый выгодный, выделен цветом бренда и занимает
   всю ширину сетки, чтобы читался как «главное предложение», а не ещё один из. */
.kit-hero {
  grid-column: 1 / -1;
  border-color: var(--sage-dark);
  box-shadow: var(--lift-1);
  background: linear-gradient(135deg, #f2f6f2, #fffdf7);
}

.kit-hero .kit-badge {
  background: var(--sage-dark);
}

.kit-off {
  margin-left: auto;
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.kit-badge {
  align-self: flex-start;
  flex: none;
  margin: -18px 0 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kit-inside {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.kit-inside summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--sage-dark);
}

.kit-inside ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.kit-inside li {
  padding: 6px 0 6px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
  text-indent: -16px;
}

.kit-inside li::before {
  content: "· ";
  color: var(--muted);
}

.kit-inside li:last-child {
  border-bottom: 0;
}

.kit-why {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #e6ddc6;
  border-radius: 12px;
  background: #fdf8ec;
}

.kit-why h4 {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.kit-why p {
  flex: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.kit-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}

.kit h3,
.source-layout h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

.kit-price strong {
  font-size: 26px;
}

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

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 45;
  display: flex;
  width: min(420px, 100vw);
  height: 100dvh;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(25, 33, 30, 0.2);
  transform: translateX(105%);
  /* visibility, иначе закрытая панель остается в порядке фокуса и кликабельна */
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}

.cart-panel.open {
  transform: translateX(0);
  visibility: visible;
}

.scrim {
  position: fixed;
  inset: 0;
  /* Выше чата (40/41), иначе плавающая кнопка всплывала поверх открытой корзины. */
  z-index: 44;
  background: rgba(24, 32, 29, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-panel h2 {
  margin-bottom: 0;
}

.cart-panel ul {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.cart-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.cart-empty,
.cart-note,
.cart-legal {
  color: var(--muted);
}

.cart-note {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-dark);
}

.cart-legal {
  margin: 10px 0 0;
  font-size: 12px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.full {
  width: 100%;
  margin-top: 18px;
}

footer {
  padding: 40px clamp(18px, 4vw, 52px) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

footer p {
  margin-bottom: 6px;
  line-height: 1.5;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-fine {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .product-grid,
  .kit-grid,
  .source-layout,
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trustbar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  /* Трастбар свайпом: колонкой он занимал почти 600px высоты. */
  .trustbar {
    display: flex;
    gap: 10px;
    padding: 16px var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: var(--paper);
    border-block: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trustbar::-webkit-scrollbar {
    display: none;
  }

  .trustbar article {
    flex: 0 0 78%;
    min-height: 0;
    padding: 16px 18px;
    border-radius: var(--r-card);
    box-shadow: var(--lift-1);
    scroll-snap-align: start;
  }

  .trustbar strong {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .trustbar p {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(21, 31, 27, 0.78), rgba(21, 31, 27, 0.18));
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .collections,
  .kit-grid,
  .care-layout,
  .source-layout,
  .footer-cols,
  .section-heading {
    grid-template-columns: 1fr;
  }

  /* Две колонки на телефоне: одной колонкой каталог из 39 карточек
     давал 36 000px прокрутки. */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product {
    padding: 8px 8px 4px;
  }

  .product-info {
    padding: 10px 6px 8px;
  }

  .product h3 {
    font-size: 14px;
  }

  .price {
    font-size: 19px;
  }

  .vat {
    font-size: 10.5px;
  }

  .product .card-actions {
    grid-template-columns: 1fr;
  }

  .product .button {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .collection {
    min-height: 210px;
  }

  .filters {
    gap: 8px;
  }

  .filter {
    font-size: 13px;
    padding: 8px 12px;
  }

  .collection.large {
    grid-row: auto;
  }

  .product {
    min-height: auto;
  }

  .product h3,
  .specs,
  .proof {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product:hover {
    transform: none;
  }

  .cart-panel,
  .scrim {
    transition: none;
  }
}

/* ---------- страницы оформления и правовой информации ---------- */

.page main {
  padding: clamp(24px, 4vw, 52px);
}

.step {
  color: var(--muted);
  font-weight: 700;
}

.step.current {
  color: var(--sage-dark);
}

.step.done {
  color: var(--ink);
}

.step.done::after {
  content: " ✓";
  color: var(--sage);
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout h1 {
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.checkout fieldset {
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout legend {
  padding: 0 8px;
  font-weight: 800;
}

.checkout label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
}

.checkout .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout input[type="text"],
.checkout input[type="email"],
.checkout input[type="tel"],
.checkout input:not([type]),
.checkout select {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.checkout input:focus-visible,
.checkout select:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 1px;
}

.checkout .invalid {
  border-color: var(--coral);
  background: #fdf3f0;
}

[data-error] {
  display: block;
  margin-top: 5px;
  color: var(--coral);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.field-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.radio,
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
}

.radio input,
.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--sage-dark);
}

.radio span,
.check span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.radio strong {
  display: block;
  color: var(--ink);
}

.radio b {
  display: block;
  margin-top: 4px;
  color: var(--sage-dark);
}

.check a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consents .check {
  margin-bottom: 12px;
}

.form-status {
  margin: 12px 0 6px;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 14px;
}

.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-summary {
  position: sticky;
  top: 90px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-summary ul {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.checkout-summary li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.checkout-summary li img {
  border-radius: 8px;
  object-fit: cover;
}

.checkout-summary li small {
  display: block;
  color: var(--muted);
}

.totals {
  margin: 0 0 14px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  margin: 0;
  font-weight: 700;
}

.totals .grand {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.order-page {
  display: grid;
  place-items: start center;
}

.order-card {
  width: min(640px, 100%);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.order-card h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.order-meta {
  display: grid;
  gap: 1px;
  margin: 24px 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.order-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
}

.order-meta dt {
  color: var(--muted);
}

.order-meta dd {
  margin: 0;
  font-weight: 800;
}

.order-lines {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.order-lines li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.order-lines small {
  color: var(--muted);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}

.legal-nav {
  position: sticky;
  top: 90px;
  align-self: start;
}

.legal-nav ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.legal-nav a:hover {
  color: var(--sage-dark);
}

.legal-body {
  max-width: 760px;
}

.legal-body h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.legal-body h2 {
  margin: 40px 0 14px;
  font-size: 24px;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-body strong {
  color: var(--ink);
}

.legal-body a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-warning {
  padding: 16px 18px;
  border-left: 3px solid var(--coral);
  border-radius: 0 8px 8px 0;
  background: #fdf3f0;
}

.legal-form {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}

@media (max-width: 900px) {
  .checkout,
  .legal {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .legal-nav {
    position: static;
  }

  .checkout .two {
    grid-template-columns: 1fr;
  }
}

/* ---------- отзывы ---------- */

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.rating.none {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.stars {
  color: #e0a93f;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.review-block {
  margin: 26px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.review-block h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.review-form {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.review-form strong {
  display: block;
  margin-bottom: 10px;
}

.stars-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.stars-input label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}

.stars-input input {
  accent-color: var(--sage-dark);
}

.stars-input label:has(input:checked) {
  border-color: var(--sage-dark);
  background: #edf3ef;
}

.review-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  resize: vertical;
}

/* ---------- блок запуска ---------- */

.launch {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 52px);
  background: var(--sage-dark);
  color: #fff;
}

.launch-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.launch .eyebrow {
  color: var(--sun);
}

.launch h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.launch-lead {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.launch-grid article {
  padding: 26px 24px 28px;
  background: var(--sage-dark);
}

.launch-num {
  display: block;
  margin-bottom: 18px;
  color: var(--sun);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}

.launch-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
}

.launch-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.launch-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  margin-top: 20px;
  padding: 24px clamp(20px, 3vw, 32px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.launch-note strong {
  grid-column: 1;
  font-size: 19px;
}

.launch-note p {
  grid-column: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.launch-note .button {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--sun);
  color: var(--ink);
  white-space: nowrap;
}

.rating.none a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.rating.none a:hover {
  color: var(--sage-dark);
}

@media (max-width: 1120px) {
  .launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .launch-note {
    grid-template-columns: 1fr;
  }

  .launch-note .button {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Плашка проверки образца. Управляется полем tested в каталоге. */
.tested {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
}

.tested span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e3efe7;
  font-size: 11px;
}

/* ---------- основатель ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 52px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.founder h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.founder blockquote {
  position: relative;
  margin: 0;
  padding-left: clamp(18px, 2vw, 26px);
  border-left: 3px solid var(--sage);
}

.founder blockquote p {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
}

.founder blockquote p:last-child {
  margin-bottom: 0;
}

.founder-sign {
  margin: 20px 0 0;
  padding-left: clamp(18px, 2vw, 26px);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.founder-method {
  align-self: start;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.founder-method h3 {
  margin-bottom: 20px;
  font-size: 21px;
}

.founder-method ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.founder-method li {
  position: relative;
  margin-bottom: 18px;
  padding-left: 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.founder-method li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf3ef;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
}

.founder-method li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.founder-help {
  padding: 18px 20px;
  border-radius: 8px;
  background: #edf3ef;
}

.founder-help strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sage-dark);
}

.founder-help p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.collection-note {
  margin: 6px 0 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px;
  font-weight: 600 !important;
}

.founder-pick {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.founder-pick a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 111, 80, 0.35);
}

.founder-pick a:hover {
  text-decoration-color: var(--coral);
}

@media (max-width: 900px) {
  .founder {
    grid-template-columns: 1fr;
  }
}

.founder-pets {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 0 8px 8px 0;
  background: var(--paper);
}

.founder-pets strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.founder-pets p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- гарантия основателя ---------- */

.guarantee {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 52px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.guarantee-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.guarantee h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.guarantee-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.g-card {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.g-card.accent {
  border-color: var(--sage-dark);
  background: #edf3ef;
  box-shadow: 0 14px 34px rgba(36, 46, 41, 0.09);
}

.g-num {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.g-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.28;
}

.g-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.g-card strong {
  color: var(--ink);
}

.g-card em {
  font-style: italic;
  color: var(--ink);
}

.g-note {
  margin: 14px 0 0 !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px !important;
}

.launch-note a {
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1000px) {
  .guarantee-grid {
    grid-template-columns: 1fr;
  }
}

/* Факты о доставке в hero */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.hero-facts strong {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.hero-facts li + li {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 640px) {
  .hero-facts li + li {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- плавающая помощь ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.chat-fab {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(24, 40, 32, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(24, 40, 32, 0.34);
}

.chat-fab-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.chat-fab-icon svg {
  width: 22px;
  height: 22px;
}

.chat-panel {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(78px, 8vw, 96px);
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 130px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(24, 40, 32, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: var(--paper);
}

.chat-who {
  display: flex;
  align-items: center;
  gap: 11px;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 800;
}

.chat-who strong {
  display: block;
  font-size: 15px;
}

.chat-who small {
  color: var(--muted);
  font-size: 12.5px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.chat-msg p {
  margin: 0;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-msg.from-us p {
  border-radius: 14px 14px 14px 4px;
  background: #edf3ef;
  color: var(--ink);
}

.chat-msg.from-you {
  justify-self: end;
  max-width: 88%;
}

.chat-msg.from-you p {
  border-radius: 14px 14px 4px 14px;
  background: var(--sage-dark);
  color: #fff;
  white-space: pre-wrap;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.chat-chips button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chat-chips button:hover {
  border-color: var(--sage);
  background: #edf3ef;
}

.chat-form {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.chat-field {
  display: block;
  margin-bottom: 9px;
}

.chat-field > span:not(.sr-only) {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.chat-field input,
.chat-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.chat-field input:focus-visible,
.chat-field textarea:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 1px;
}

.chat-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.chat-note a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-status:empty {
  display: none;
}

.chat-status {
  margin: 8px 0 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}

.founder-help .button {
  margin-top: 12px;
}

@media (max-width: 520px) {
  .chat-fab-label {
    display: none;
  }

  .chat-fab {
    padding: 14px;
  }

  .chat-panel {
    left: 14px;
    right: 14px;
    width: auto;
  }
}


/* ---------- компактная карточка ---------- */

.product-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.product-more {
  display: grid;
  place-items: center;
  margin-top: 24px;
}

/* Фото — кнопка, открывающая карточку товара. Сбрасываем всё,
   что браузер рисует у button, иначе вокруг картинки появляется рамка. */
.product-open {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

.media-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(31, 39, 37, 0.62);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hint-play {
  font-size: 9px;
}

.link-title {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.link-title:hover {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-details {
  margin-top: 12px;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.card-details::after {
  content: " →";
  opacity: 0.6;
}

/* ---------- окно товара ---------- */

.pdp {
  width: min(1040px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--lift-3);
  background: var(--surface);
  color: var(--ink);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* Без min-width: 0 колонки грида раздуваются под содержимое
   (лента миниатюр, длинные слова) и ломают ширину окна. */
.pdp-grid > *,
.pdp-media,
.pdp-side {
  min-width: 0;
}

.pdp::backdrop {
  background: rgba(24, 32, 29, 0.55);
  backdrop-filter: blur(3px);
}

/* Прижимаем крестик вправо флексом, а не left: 100%: второе сдвигает липкий
   элемент на ширину контейнера и добавляет горизонтальную прокрутку — на
   телефоне окно уезжало вбок и обрезало текст.
   Крестик держим в непрозрачной полосе на всю ширину, а не отдельным
 * полупрозрачным кружком: инструкции длинные, и при прокрутке кружок
 * наезжал на текст — буквы читались сквозь него. */
.pdp-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px;
  margin-bottom: -54px;
  background: linear-gradient(#fff 62%, rgba(255, 255, 255, 0));
}

.pdp-close {
  display: block;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--lift-1);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 30px);
}

.pdp-stage {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-media);
  background: linear-gradient(180deg, #ffffff 0%, #f6f3ee 100%);
}

.pdp-stage img,
.pdp-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.pdp-stage img {
  background: none;
}

.pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pdp-thumbs::-webkit-scrollbar {
  display: none;
}

.thumb {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f6f3ee;
  overflow: hidden;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.active {
  border-color: var(--sage-dark);
}

.thumb.is-video span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(24, 32, 29, 0.42);
  color: #fff;
  font-size: 16px;
}

.pdp-side h3,
.pdp-side h1 {
  margin: 6px 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
}

/* Плашка «гипоаллергенно · безопасно для детей и животных». Ставится только
   там, где это подтверждено документом поставщика (docsStatus: received),
   и никогда на бытовой химии с CLP-маркировкой опасности. */
.safety-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 12px;
  padding: 8px 11px;
  border: 1px solid #cfe0d3;
  border-radius: 10px;
  background: #f1f7f2;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.safety-badge span {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  font-size: 11px;
}

/* ---------- отдельная страница товара (product.html) ---------- */
/* .button задаёт display:inline-flex и перебивает атрибут [hidden] (у него
   display:none слабее по специфичности) — кнопка «Оформить заказ» показывалась
   до добавления в корзину. Возвращаем hidden приоритет. */
[hidden] { display: none !important; }

.crumbs {
  max-width: 1040px;
  margin: 18px auto 0;
  padding: 0 clamp(16px, 4vw, 24px);
  font-size: 13px;
  color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--sage-dark); }

.product-page {
  width: min(1040px, 94vw);
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--lift-1);
  overflow: hidden;
}

.product-loading,
.product-missing {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}

.product-missing h1 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  margin-bottom: 10px;
}

.pdp-desc p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

.product-back {
  max-width: 1040px;
  margin: 22px auto 40px;
  padding: 0 clamp(16px, 4vw, 24px);
}

.pdp-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.pdp-side .price-row {
  margin: 0 0 6px;
}

.pdp-side .price {
  font-size: 30px;
}

.pdp-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.pdp-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.pdp-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdp-block li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.pdp-block li:last-child {
  border-bottom: 0;
}

.pdp-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.pdp-noshot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  aspect-ratio: 1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #f7f5f0;
  color: var(--muted);
  text-align: center;
}

.pdp-noshot svg {
  width: 64px;
  height: 64px;
  opacity: 0.55;
}

.pdp-noshot p {
  max-width: 24ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Инструкция и ограничения — на всю ширину и первыми: это самые длинные блоки,
 * в узкой колонке сетки они превращались в лесенку из одного слова в строке. */
.pdp-howto,
.pdp-limits {
  grid-column: 1 / -1;
}

.pdp-howto ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pdp-howto li {
  position: relative;
  padding: 9px 0 9px 34px;
  counter-increment: step;
}

.pdp-howto li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pdp-limits {
  padding: 14px 16px;
  border: 1px solid #e6ddc6;
  border-radius: 12px;
  background: #fdf8ec;
}

.pdp-limits li {
  position: relative;
  padding-left: 22px;
  border-bottom-color: #eee3ca;
}

.pdp-limits li::before {
  content: "—";
  position: absolute;
  margin-left: -22px;
  color: var(--muted);
}

.pdp-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .pdp {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- тизер вместо длинной истории ---------- */

.teaser {
  padding: var(--section-y) var(--gutter);
  background: var(--sage-dark);
  color: #fff;
}

.teaser-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.teaser .eyebrow {
  color: var(--sun);
}

.teaser h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.1;
}

.teaser-lead {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

.teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teaser-actions .primary {
  background: var(--sun);
  color: var(--ink);
}

.teaser-actions .ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.teaser-facts {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.teaser-facts li {
  padding: 16px 20px;
  background: var(--sage-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.teaser-facts strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

@media (max-width: 900px) {
  .teaser-inner {
    grid-template-columns: 1fr;
  }
}
