/* styles.css — финальный аккуратный вариант под текущую верстку PanaCerium */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.98rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  --text-lg: clamp(1.1rem, 1.02rem + 0.55vw, 1.35rem);
  --text-xl: clamp(1.55rem, 1.2rem + 1vw, 2.15rem);
  --text-2xl: clamp(2.3rem, 1.7rem + 2vw, 4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --color-bg: #f4f0e8;
  --color-surface: #fcfaf6;
  --color-surface-2: #f3eee5;
  --color-line: rgba(29, 34, 36, 0.1);
  --color-text: #1d2224;
  --color-muted: #66665f;
  --color-primary: #0e5f68;
  --color-gold: #a57a3d;
  --color-success: #4f6d34;

  --shadow-sm: 0 10px 24px rgba(26, 30, 31, 0.05);
  --shadow-md: 0 24px 56px rgba(26, 30, 31, 0.09);

  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --content: 1200px;
  --font-body: 'Inter', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--color-text);
  background:
    radial-gradient(circle at top right, rgba(165,122,61,0.08), transparent 22%),
    linear-gradient(180deg, #f7f3ec 0%, var(--color-bg) 100%);
}

html, body {
  overflow-x: hidden;
}

section,
.site-header,
main,
footer {
  max-width: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 10px 14px;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 100;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(244,240,232,0.82);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-block;
  flex: 0 0 40px;
  border-radius: 0;
  border: 0;
  position: relative;
  background: url("./assets/favicon2.png") center / contain no-repeat;
}

.brand-mark:before,
.brand-mark:after { content: none; }

.nav {
  display: flex;
  gap: 18px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* TYPOGRAPHY & SECTIONS */

h1, h2, h3, .display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.section { padding: clamp(56px, 7vw, 104px) 0; }

.section--soft {
  background: rgba(255,255,255,0.38);
  border-block: 1px solid rgba(29,34,36,0.06);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-xs);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-head {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

/* HERO */

.hero {
  padding: clamp(52px, 8vw, 112px) 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(165,122,61,0.18);
  background: rgba(255,255,255,0.55);
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  max-width: 12.5ch;
  margin-bottom: 18px;
}

.lead {
  margin: 0 0 22px;
  max-width: 63ch;
  color: var(--color-muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--color-line);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-text);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: rgba(255,255,255,0.72);
  border-color: var(--color-line);
}

.hero-card {
  position: relative;
  border-radius: 34px;
  padding: 24px;
  background: linear-gradient(145deg, #f3faff 0%, #e3f1fb 100%);
  border: 1px solid rgba(110, 168, 210, 0.22);
  box-shadow: 0 20px 44px rgba(100, 145, 190, 0.14);
  overflow: hidden;
}

.hero-card:before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 190, 240, 0.22), transparent 70%);
  top: -80px;
  right: -70px;
}

.hero-card .mini-label {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

.hero-video-frame {
  width: 100%;
  max-width: 550px;
  height: 400px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.hero-product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* HERO — mobile */

@media (max-width: 820px) {
  .hero {
    padding: 34px 0 40px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-card {
    padding: 16px;
    overflow: hidden;
  }

  .hero-showcase {
    min-height: auto;
    width: 100%;
  }

  .hero-video-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 22px;
    margin: 0;
  }

  .hero h1 {
    max-width: none;
  }

  .lead {
    max-width: none;
  }
}

/* MECHANISM */

.mechanism-grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 20px;
  align-items: stretch;
}

.mechanism-head { max-width: 880px; }

.mechanism-summary {
  position: relative;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(160deg, #fffdf9 0%, #f2ecdf 100%);
  border: 1px solid rgba(165,122,61,0.14);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.mechanism-summary:before {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,95,104,0.12), transparent 70%);
}

.mechanism-summary__orb {
  width: 78px;
  height: 78px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.94), rgba(14,95,104,0.18) 58%, rgba(165,122,61,0.16) 100%);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.75), 0 14px 30px rgba(14,95,104,0.12);
  position: relative;
  transform: translateY(-10px) scale(0.96);
  transform-origin: center;
}

.mechanism-summary__electron,
.mechanism-summary__electron--2 {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(14,95,104,0.16);
  border-radius: 50%;
  animation: spinOrbit 10s linear infinite;
}

.mechanism-summary__electron--2 {
  inset: -20px;
  border-color: rgba(165,122,61,0.18);
  animation-duration: 14s;
  animation-direction: reverse;
}

.mechanism-summary__electron:before,
.mechanism-summary__electron--2:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(14,95,104,0.08);
}

.mechanism-summary__electron--2:before {
  background: var(--color-gold);
  box-shadow: 0 0 0 5px rgba(165,122,61,0.08);
}

.mechanism-summary__orb:before,
.mechanism-summary__orb:after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
}

.mechanism-summary__orb:after {
  inset: 24px;
  border-color: rgba(14,95,104,0.25);
}

@keyframes spinOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.mechanism-summary__formula {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 10px;
}

.mechanism-summary h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin-bottom: 8px;
  text-align: center;
}

.mechanism-summary p {
  margin: 0 auto;
  max-width: 24ch;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mechanism-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mechanism-card {
  padding: 20px 20px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(252,250,246,0.96));
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.mechanism-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(165,122,61,0.7), rgba(14,95,104,0.38));
}

.mechanism-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(165,122,61,0.1);
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 800;
  margin-bottom: 14px;
}

.mechanism-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 9px;
}

.mechanism-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 34ch;
}

/* PRODUCTS */

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.product-visual {
  min-height: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, #efe8db 0%, #faf7f1 100%);
  border: 1px solid rgba(29,34,36,0.06);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 320px;        /* одна и та же высота для геля и крема */
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

/* одинаковый масштаб, чтобы визуально были сопоставимы по высоте */
.product-visual img.product-image--gel   { transform: scale(1.75); }
.product-visual img.product-image--cream { transform: scale(3.5); }

.product-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.product-image--gel,
.product-image--cream {
  width: min(100%, 220px);
  max-width: 220px;
  max-height: 320px;
}

.product-info {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto auto;
}

.product-tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(14,95,104,0.08);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.product-info h3 {
  font-size: 1.9rem;
  margin-bottom: 4px;
}

.product-info p { margin: 0 0 10px; }

.product-info ul {
  margin: 8px 0 12px;
  padding-left: 18px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.product-info li { margin-bottom: 6px; }

.highlight { color: #892420; font-weight: 800; }

.clean-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.clean-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--color-surface-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-doc-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.product-doc-link:hover,
.product-doc-link:focus-visible {
  color: #084f56;
}

.product-doc-link:active {
  opacity: 0.75;
}

.small-note {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Accordion внутри товара */

.accordion {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  align-content: start;
  grid-template-rows: repeat(4, minmax(52px, auto));
}

.accordion-item {
  border: 1px solid rgba(29,34,36,0.08);
  border-radius: 18px;
  background: rgba(243,238,229,0.6);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
}

.accordion-plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(29,34,36,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-primary);
  flex: 0 0 auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.accordion-item.active .accordion-plus {
  transform: rotate(45deg);
  background: rgba(14,95,104,0.08);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-item.active .accordion-panel { grid-template-rows: 1fr; }

.accordion-panel__inner { overflow: hidden; }

.accordion-panel__content {
  padding: 0 16px 16px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.accordion-panel__content p,
.accordion-panel__content ul { margin: 0; }

.accordion-panel__content ul { padding-left: 18px; }

/* Кнопка покупки / предзаказа */

.product-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  margin-top: 18px;
  border: 1px solid rgba(125, 181, 172, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #dff7f1 0%, #e9f8ff 100%);
  color: #245a52;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 10px 24px rgba(104, 163, 154, 0.14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

button.product-add-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d5f3eb 0%, #def4ff 100%);
  border-color: rgba(95, 160, 149, 0.34);
  box-shadow: 0 14px 28px rgba(104, 163, 154, 0.18);
}

button.product-add-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(104, 163, 154, 0.16);
}

button.product-add-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(164, 222, 214, 0.55), 0 14px 28px rgba(104, 163, 154, 0.18);
}

.product-add-btn[aria-disabled="true"] {
  background: linear-gradient(135deg, #edf7f4 0%, #f2f8fb 100%);
  color: #5f857d;
  border-color: rgba(125, 181, 172, 0.16);
  box-shadow: none;
}

/* RESULTS */

.warning {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(165,122,61,0.08);
  border: 1px solid rgba(165,122,61,0.16);
  color: #694f2b;
  margin-bottom: 18px;
}

.carousel-wrap {
  position: relative;
  display: grid;
  gap: 14px;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.results-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(420px, 480px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.case-card {
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.case-thumb {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(29,34,36,0.1), rgba(29,34,36,0.04));
  padding: 18px;
  overflow: hidden;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.06);
  transition: filter 0.28s ease, transform 0.28s ease;
}

.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px);
  text-align: center;
  transition: opacity 0.28s ease;
}

.case-note {
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: #5f6368;
  font-size: 0.86rem;
  line-height: 1.35;
}

.case-plus { transition: transform 0.28s ease; }

.case-body {
  padding: 16px 16px 20px;
  text-align: center;
}

.case-body span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.case-body h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.case-card--open .case-thumb img {
  filter: blur(0);
  transform: scale(1);
}

.case-card--open .case-overlay { opacity: 0; pointer-events: none; }

.case-card--open .case-plus { transform: rotate(45deg); }

/* BUY section */

.buy-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 20px;
  align-items: start;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.channel-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.channel-card--soon .channel-brand img { opacity: 0.72; }

.channel-card--docs {
  background: rgba(72, 140, 255, 0.08);
  border: 1px solid rgba(72, 140, 255, 0.18);
}

.channel-card--docs .channel-icon {
  background: rgba(72, 140, 255, 0.14);
  color: #3b82f6;
}

.channel-card--docs .status {
  background: rgba(72, 140, 255, 0.14);
  color: #2f6fe4;
}

.channel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.channel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.channel-brand img {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 42px;
  object-fit: contain;
}

.channel-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: rgba(14, 95, 104, 0.08);
  color: var(--color-primary);
}

.channel-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
}

.status--active { background: rgba(79,109,52,0.1); color: var(--color-success); }
.status--soon { background: rgba(29,34,36,0.08); color: var(--color-muted); }

.channel-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
}

.channel-docs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 2px;
}

.channel-link {
  display: block;
  width: fit-content;
  min-height: auto;
  text-align: left;
  line-height: 1.2;
  color: var(--color-primary);
  transition:
    color 0.18s ease,
    text-decoration-color 0.18s ease,
    text-decoration-thickness 0.18s ease,
    opacity 0.18s ease;
}

.channel-doc-link { margin: 0; padding: 0; }

#buy .channel-link:hover,
#buy .channel-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

#buy .channel-link:active { opacity: 0.75; }

.order-box {
  padding: 20px;
  align-self: start;
  max-width: 560px;
  border-radius: 30px;
  background: linear-gradient(145deg, #fdfbf7, #f2ece3);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
}

.switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(29,34,36,0.08);
  margin: 12px 0 14px;
}

.switcher button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-weight: 700;
}

.switcher button.active {
  background: var(--color-text);
  color: #fff;
}

.form-grid { gap: 10px 12px; }

.order-panels { margin-top: 2px; }

.order-panel {
  display: none;
}

.order-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--full { grid-column: 1 / -1; }

label { font-size: 0.9rem; font-weight: 700; }

input:not([type="checkbox"]),
textarea {
  width: 100%;
  border: 1px solid rgba(29,34,36,0.12);
  background: rgba(255,255,255,0.94);
  color: var(--color-text);
  border-radius: 14px;
  padding: 10px 12px;
}

input:not([type="checkbox"]) { min-height: 44px; }

textarea { min-height: 108px; resize: vertical; }

.order-box .btn--primary { width: 100%; }

/* Consent & policy */

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  color: var(--color-muted);
}

.form-consent input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin: 2px 0 0 0;
  padding: 0;
  flex: 0 0 14px;
}

.form-consent span {
  display: block;
  font-size: 11px;
  line-height: 1.32;
}

.form-consent a {
  color: #0b57d0 !important;
  font-size: 11px;
  line-height: 1.32;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}

.form-consent a:hover,
.form-consent a:focus { color: #0842a0 !important; }

.footer-doc-link {
  color: #0b57d0;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

.footer-doc-link:hover,
.footer-doc-link:focus { color: #0842a0; }

/* MEDIA (video section) */

.media-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.media-slide {
  flex: 0 0 min(560px, 88vw);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.media-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fdfbf7, #f2ece3);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}

.media-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #000;
}

.media-embed iframe,
.media-embed video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.media-embed iframe { position: absolute; inset: 0; }

#media .media-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

/* FOOTER */

.footer {
  position: relative;
  margin-top: 0;
  background: linear-gradient(180deg, #e4ebea 0%, #d7e0de 100%);
  border-top: 1px solid rgba(29,34,36,0.08);
}

.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 38px 0 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, 0.8fr));
  gap: 28px;
  align-items: start;
}

.footer-branding .brand { margin-bottom: 16px; }

.footer-branding p {
  margin: 0;
  max-width: 36ch;
  color: rgba(29,34,36,0.76);
  line-height: 1.55;
  font-size: 0.92rem;
}

.footer-branding p a { color: var(--color-primary); }

.footer-column h3 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(29,34,36,0.5);
}

.footer-links { display: grid; gap: 10px; }

.footer-links a,
.footer-links span {
  color: rgba(29,34,36,0.84);
  font-size: 0.96rem;
  line-height: 1.45;
}

.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(29,34,36,0.1);
}

.footer-rights {
  font-size: 0.86rem;
  color: rgba(29,34,36,0.72);
}

/* PREORDER BANNER */

.preorder-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  width: min(calc(100% - 24px), 980px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.38s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.preorder-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.preorder-banner__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(252, 250, 246, 0.92);
  border: 1px solid rgba(29,34,36,0.10);
  box-shadow: 0 20px 40px rgba(26, 30, 31, 0.14);
  backdrop-filter: blur(14px);
}

.preorder-banner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(14,95,104,0.10);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.preorder-banner__text {
  min-width: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-text);
}

.preorder-banner__text strong { font-weight: 800; }

.preorder-banner__cta {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.2;
}

.preorder-banner__cta:hover,
.preorder-banner__cta:focus-visible { background: var(--color-primary); }

.preorder-banner__close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(29,34,36,0.10);
  background: rgba(255,255,255,0.76);
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.preorder-banner__close:hover,
.preorder-banner__close:focus-visible {
  background: rgba(14,95,104,0.08);
  color: var(--color-primary);
}

/* RESPONSIVE */

@media (max-width: 1120px) {
  .hero__grid,
  .buy-grid,
  .products-grid,
  .mechanism-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .cart-toggle {
    order: 3;
    margin-left: 0;
    padding: 10px 12px;
  }

  .cart-toggle__label {
    display: none;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 20px;
    background: rgba(252, 250, 246, 0.98);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text);
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(14, 95, 104, 0.08);
    color: var(--color-primary);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mechanism-grid,
  .hero__grid,
  .products-grid,
  .buy-grid { grid-template-columns: 1fr; }

  .mechanism-cards,
  .channels-grid,
  .form-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 18px; }

  .product-card { grid-template-columns: 1fr; }
  .product-visual { min-height: auto; padding: 10px; }
  .product-visual img { height: 210px; }
  .product-visual img.product-image--gel { transform: scale(1.20); }
  .product-visual img.product-image--cream { transform: scale(1.05); }

  .results-carousel { grid-auto-columns: minmax(260px, 86vw); }
  .case-thumb { min-height: unset; aspect-ratio: 1 / 1; padding: 12px; }

  .preorder-banner {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    transform: translateY(140%);
  }

  .preorder-banner.is-visible { transform: translateY(0); }

  .preorder-banner__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    align-items: start;
  }

  .preorder-banner__badge {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 28px;
    padding: 0 10px;
    white-space: normal;
  }

  .preorder-banner__text {
    grid-column: 1 / -1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .preorder-banner__cta {
    grid-column: 1 / 2;
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    white-space: normal;
    text-align: center;
  }

  .preorder-banner__close {
    grid-column: 2 / 3;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-rights { margin-left: 0; white-space: normal; }
}
/* Cart drawer — mobile adjustments */
@media (max-width: 820px) {
  .cart-drawer {
    inset: 0;
    width: 100%;
  }

  .cart-drawer__panel {
    inset: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .cart-drawer__header,
  .cart-drawer__body {
    padding-inline: 14px;
  }

  .cart-block {
    border-radius: 20px;
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .cart-item__media {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .cart-item__name,
  .cart-item__price,
  .cart-item__line-total {
    font-size: 0.9rem;
  }

  .cart-summary__row {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preorder-banner {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: translate(-50%, 0);
  }

  .preorder-banner.is-visible { transform: translate(-50%, 0); }
}

/* Блоки "Механизм" и "Продукты" — запрет выделения текста */

#mechanism,
#mechanism *,
#products,
#products * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* =========================
   CART DRAWER
   ========================= */

.cart-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.cart-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.10);
  border-color: rgba(16, 24, 40, 0.14);
}

.cart-toggle:focus-visible {
  outline: 2px solid rgba(27, 112, 78, 0.35);
  outline-offset: 3px;
}

.cart-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.cart-toggle__label {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cart-toggle__count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 16, 24, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 1200;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 520px);
  max-width: 100%;
  z-index: 1210;
  display: block;
  pointer-events: none;
}

.cart-drawer[hidden] {
  display: block;
}

.cart-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 520px);
  height: 100dvh;
  background: #fcfaf7;
  color: var(--color-text);
  box-shadow: -24px 0 60px rgba(16, 24, 40, 0.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(252, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cart-drawer__title-wrap {
  min-width: 0;
}

.cart-drawer__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cart-drawer__title {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.1;
}

.cart-drawer__close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 24, 40, 0.10);
  background: #fff;
  color: var(--color-text);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.cart-drawer__close:hover {
  transform: rotate(90deg);
  border-color: rgba(16, 24, 40, 0.16);
  background: #f4f1ec;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 28px;
  display: grid;
  gap: 16px;
  overscroll-behavior: contain;
}

.cart-block {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}

.cart-block__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cart-block__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.cart-block__meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-empty {
  padding: 24px 12px 10px;
  text-align: center;
  color: var(--color-muted);
}

.cart-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4efe8;
  color: var(--color-text);
}

.cart-empty h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--color-text);
}

.cart-empty p {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 0.95rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #fcfaf7;
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.cart-item__media {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3eee7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__content {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__name {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.35;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-item__remove {
  min-width: 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cart-item__remove:hover {
  background: #f8eceb;
  color: #a24b42;
  border-color: rgba(162, 75, 66, 0.18);
}

.cart-item__price {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-text);
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__line-total {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-qty {
  display: inline-grid;
  grid-template-columns: 36px minmax(40px, auto) 36px;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  overflow: hidden;
}

.cart-qty__btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--color-text);
  background: transparent;
  transition: background-color .2s ease;
}

.cart-qty__btn:hover {
  background: #f3eee7;
}

.cart-qty__value {
  min-width: 40px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.cart-promo {
  margin-top: 14px;
}

.cart-promo__toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e6d54;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-promo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.cart-promo__input,
.cart-form__field input,
.cart-form__field textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cart-promo__input {
  min-height: 48px;
  padding: 0 14px;
}

.cart-form__field input {
  min-height: 50px;
  padding: 0 14px;
}

.cart-form__field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.cart-promo__input::placeholder,
.cart-form__field input::placeholder,
.cart-form__field textarea::placeholder {
  color: #8f8a83;
}

.cart-promo__input:focus,
.cart-form__field input:focus,
.cart-form__field textarea:focus {
  outline: none;
  border-color: rgba(30, 109, 84, 0.45);
  box-shadow: 0 0 0 4px rgba(30, 109, 84, 0.10);
}

.cart-promo__apply {
  min-width: 118px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--color-text);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}

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

.cart-promo__message {
  min-height: 20px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cart-summary {
  display: grid;
  gap: 10px;
}

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.96rem;
}

.cart-summary__row strong {
  white-space: nowrap;
}

.cart-summary__row--discount {
  color: #1e6d54;
}

.cart-summary__row--total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 1.04rem;
  font-weight: 800;
}

.cart-checkout__note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  max-width: 34ch;
}

.cart-form {
  display: grid;
  gap: 16px;
}

.cart-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cart-form__field {
  display: grid;
  gap: 8px;
}

.cart-form__field--full {
  grid-column: 1 / -1;
}

.cart-form__field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.cart-form__status {
  min-height: 22px;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.cart-form__submit {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.10);
}

body.cart-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .cart-drawer,
  .cart-drawer__panel {
    width: 100%;
  }

  .cart-drawer__header {
    padding: 16px 16px 14px;
  }

  .cart-drawer__body {
    padding: 14px 16px 24px;
    gap: 14px;
  }

  .cart-block {
    border-radius: 20px;
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item__media {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .cart-item__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item__line-total {
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cart-promo__row {
    grid-template-columns: 1fr;
  }

  .cart-promo__apply {
    width: 100%;
  }

  .cart-form__grid {
    grid-template-columns: 1fr;
  }

  .cart-form__field--full {
    grid-column: auto;
  }

  .cart-toggle {
    margin-left: auto;
  }

  .cart-toggle__label {
    display: none;
  }

  .cart-summary__row {
    gap: 10px;
    align-items: flex-start;
  }

  .cart-summary__row strong {
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .cart-drawer__title {
    font-size: 1.35rem;
  }

  .cart-drawer__close {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .cart-toggle {
    padding: 10px 12px;
  }

  .cart-toggle__count {
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }

  .cart-summary__row,
  .cart-item__price,
  .cart-item__line-total,
  .cart-item__name {
    font-size: 0.93rem;
  }
}

@media (max-width: 390px) {
  .cart-drawer__header,
  .cart-drawer__body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cart-block {
    padding: 10px;
  }

  .cart-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .cart-item__media {
    width: 56px;
    height: 56px;
  }

  .cart-item__name,
  .cart-item__price,
  .cart-item__line-total,
  .cart-summary__row {
    font-size: 0.84rem;
  }

  .cart-drawer__title {
    font-size: 1.15rem;
    line-height: 1.1;
  }
}
/* Скрываем корзину полностью */
.cart-toggle,
.cart-overlay,
.cart-drawer {
  display: none !important;
}