/* ============================================================
   РайАгро — интернет-магазин семян
   Палитра: #17372C, #1D6B4F, фон #FBFCFB, линии #E3E8E4
   ============================================================ */

:root {
  --green-900: #17372C;
  --green-800: #1B4A3A;
  --green-700: #1D6B4F;
  --green-100: #E7F1EA;
  --green-50: #F2F6F3;
  --bg: #FBFCFB;
  --line: #E3E8E4;
  --line-soft: #EEF2EF;
  --text: #17372C;
  --muted: #5B6660;
  --white: #FFFFFF;
  --danger: #B3261E;
  --radius: 16px;
  --shadow-card: 0 18px 38px -26px rgba(23, 55, 44, 0.4);
  --shadow-float: 0 28px 70px -24px rgba(15, 39, 30, 0.45);
  --font: "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  --container: 1220px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, dt, figure { margin: 0; }
h1, h2, h3 { font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--green-900);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid rgba(29, 107, 79, 0.4);
  outline-offset: 2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-outline {
  background: var(--white);
  color: var(--green-900);
  border-color: #CBD8CF;
}
.btn-outline:hover { background: var(--green-50); border-color: var(--green-700); }
.btn-lg { height: 50px; font-size: 14.5px; border-radius: 12px; padding: 0 24px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-900);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.icon-btn:hover { background: var(--green-50); border-color: #C9D6CD; }
.icon-btn svg { width: 18px; height: 18px; }

.link-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--green-900); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23, 55, 44, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--green-900);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--green-900);
  border-radius: 10px;
  color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; stroke-width: 1.8; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
}
.brand-text small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-actions { display: flex; align-items: center; gap: 24px; }

.max-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.max-button:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.7); }
.max-icon { width: 18px; height: 18px; flex: none; }

.back-to-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.back-to-site:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.back-icon { width: 18px; height: 18px; flex: none; }

.footer-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #A8E6C0;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.footer-back:hover { color: #fff; text-decoration: underline; }

.header-phone {
  display: flex;
  flex-direction: column;
  text-align: right;
  text-decoration: none;
  line-height: 1.25;
}
.header-phone span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.header-phone strong { font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em; color: #fff; }
.header-phone:hover strong { color: #A8E6C0; }

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  background: #fff;
  color: var(--green-900);
  border: 0;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  transition: background-color 0.18s ease;
}
.cart-button:hover { background: var(--green-100); }
.cart-button .cart-icon { width: 19px; height: 19px; }
.cart-count { opacity: 0.78; font-variant-numeric: tabular-nums; }
.cart-button-sum {
  padding-left: 11px;
  margin-left: 1px;
  border-left: 1px solid rgba(23, 55, 44, 0.16);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(23, 55, 44, 0.72);
  font-variant-numeric: tabular-nums;
}

/* ---------- Интро ---------- */
.intro { padding: 58px 0 40px; }
.intro-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 26px;
}
.intro-copy .eyebrow { margin-bottom: 18px; }
.intro h1 {
  font-size: clamp(24px, 3.05vw, 42px);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: none;
  white-space: nowrap;   /* на десктопе заголовок в одну строку */
}

@media (max-width: 900px) {
  .intro h1 { white-space: normal; font-size: 28px; }
}
.intro-lead {
  margin-top: 20px;
  max-width: 620px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.intro-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.intro-stats > div:first-child { border-left: 0; padding-left: 0; }
.intro-stats dd {
  font-size: 30px;
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green-900);
}
.intro-stats dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

/* ---------- Блок доверия ---------- */
.trust { background: var(--green-900); color: #fff; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 0;
  min-height: 84px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 21px; height: 21px; color: #B9DCC7; }
.trust-phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 0 20px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  text-align: right;
}
.trust-phone span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.trust-phone strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.trust-phone:hover strong { color: #B9DCC7; }

/* ---------- Каталог ---------- */
.catalog { padding: 52px 32px 84px; scroll-margin-top: 92px; }
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.catalog-head .eyebrow { margin-bottom: 10px; }
.catalog h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.result-count {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 28px;
}
.chips {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.chip:hover { background: var(--green-50); color: var(--green-900); }
.chip.is-active { background: var(--green-900); color: #fff; }
.chip-count {
  font-size: 10.5px;
  font-weight: 700;
  color: inherit;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.toolbar-right { display: flex; align-items: center; gap: 10px; }

.reset-filters {
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--green-700);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.select-wrap { position: relative; display: block; }
.select-wrap select {
  height: 44px;
  min-width: 176px;
  padding: 0 38px 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-900);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.select-wrap select:hover { border-color: #C9D6CD; }
.select-wrap select:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(29, 107, 79, 0.13); }
.select-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search { position: relative; display: block; }
.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px; height: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 238px;
  height: 44px;
  padding: 0 14px 0 39px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search input::placeholder { color: #6B756F; }
.search input:hover { border-color: #C9D6CD; }
.search input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(29, 107, 79, 0.13); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- Сетка и карточки ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.loading { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: #C9D8CE;
  box-shadow: var(--shadow-card);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 22px;
  background: #FFFFFF;
  border: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 20px 18px rgba(23, 55, 44, 0.13));
}
.card:hover .card-media img { transform: scale(1.045); }

.card-line {
  position: absolute;
  z-index: 2;
  top: 14px; left: 14px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(227, 232, 228, 0.9);
  border-radius: 999px;
  color: var(--green-700);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  text-align: center;
  color: var(--green-700);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.media-fallback strong { font-size: 16px; font-weight: 700; line-height: 1.2; }
.media-fallback small { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.card-media.img-error img { opacity: 0; }
.card-media.img-error .media-fallback { opacity: 1; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.card-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-kicker .culture { color: var(--green-700); font-weight: 700; }
.card-kicker .dot { opacity: 0.5; }
.card h3 { margin: 7px 0 14px; font-size: 21px; font-weight: 720; letter-spacing: -0.02em; }

.card-specs { border-top: 1px solid var(--line-soft); }
.card-specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.card-specs dt { font-size: 11.5px; color: var(--muted); }
.card-specs dd {
  max-width: 62%;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--green-900);
}

.card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 15px;
}
.card-price .price-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-price .price-value {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--green-900);
}
.card-price .price-value.is-request { font-size: 15px; color: var(--green-700); }
.card-price .price-note { font-size: 10.5px; color: var(--muted); }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.catalog-empty {
  padding: 68px 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed #C9D8CE;
  border-radius: var(--radius);
}
.catalog-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 16px;
  background: var(--green-50);
  border-radius: 50%;
  color: var(--green-700);
}
.catalog-empty h3 { font-size: 20px; margin-bottom: 6px; }
.catalog-empty p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Оформление ---------- */
#checkout-view { padding: 34px 0 90px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
.back-link:hover { color: var(--green-900); }

.checkout-head { margin: 26px 0 34px; }
.checkout-head .eyebrow { margin-bottom: 14px; }
.checkout-head h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; }
.checkout-lead { margin-top: 12px; max-width: 620px; color: var(--muted); font-size: 14.5px; }

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.78fr);
  align-items: start;
  gap: 26px;
}

.order-form { display: flex; flex-direction: column; gap: 14px; }
.form-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.form-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.form-card-head h2 { font-size: 18px; letter-spacing: -0.01em; }
.form-card-head p { font-size: 11px; color: var(--muted); white-space: nowrap; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 650; color: var(--green-900); }
.req { color: var(--danger); font-weight: 700; }
.field input,
.field textarea {
  width: 100%;
  padding: 0 14px;
  background: #FDFEFD;
  border: 1px solid #D7DFD9;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.field input { height: 47px; }
.field textarea { padding: 11px 14px; resize: vertical; min-height: 84px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #6B756F; }
.field input:hover,
.field textarea:hover { border-color: #BFCFC4; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(29, 107, 79, 0.13);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.field-error { font-size: 11.5px; line-height: 1.35; color: var(--danger); }

.form-consent { margin-top: 20px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.submit-order { margin-top: 2px; }
.submit-note { margin-top: -4px; text-align: center; font-size: 11px; color: var(--muted); }

.form-alert {
  padding: 13px 16px;
  background: #FCF1F0;
  border: 1px solid #EAC9C6;
  border-radius: 10px;
  color: #8C1D17;
  font-size: 13px;
  line-height: 1.5;
}
.form-alert strong { font-weight: 700; }

/* ---------- Сводка заказа ---------- */
.summary {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.summary-head h2 { font-size: 18px; letter-spacing: -0.01em; }
.summary-count { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.summary-items { max-height: 300px; overflow-y: auto; }
.summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.summary-item-name { font-size: 13px; font-weight: 650; line-height: 1.3; }
.summary-item-meta { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.summary-item-price { font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.summary-item-price.is-request { font-size: 10.5px; font-weight: 600; color: var(--muted); }

.summary-total {
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}
.summary-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.summary-total-row span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.summary-total-row strong { font-size: 22px; font-weight: 780; letter-spacing: -0.02em; }
.summary-total-row strong.is-request { font-size: 15px; color: var(--green-700); letter-spacing: 0; }
.summary-total-note { margin-top: 6px; font-size: 10.5px; color: var(--muted); text-align: right; }

.summary-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  background: var(--green-50);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.summary-note svg { width: 15px; height: 15px; margin-top: 1px; color: var(--green-700); }

.summary-phone {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--green-900);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.summary-phone:hover { color: var(--green-700); }

.summary-empty {
  padding: 26px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.summary-empty .btn { margin-top: 14px; }

/* ---------- Успешная заявка ---------- */
.checkout-empty {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 48px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}
.checkout-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  margin-bottom: 20px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-700);
}
.checkout-empty-icon svg { width: 26px; height: 26px; }
.checkout-empty h2 { font-size: 26px; margin-bottom: 10px; }
.checkout-empty p { max-width: 400px; margin: 0 auto 22px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.checkout-empty-phone {
  display: block;
  margin-top: 16px;
  color: var(--green-700);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.checkout-empty-phone:hover { text-decoration: underline; text-underline-offset: 3px; }

.success-card {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 48px 44px 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: 24px;
  background: var(--green-100);
  border-radius: 50%;
  color: var(--green-700);
}
.success-icon svg { width: 30px; height: 30px; stroke-width: 2; }
.success-card .eyebrow { justify-content: center; margin-bottom: 12px; }
.success-card .eyebrow::before { display: none; }
.success-card h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.success-lead { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.order-number {
  display: inline-block;
  margin-top: 22px;
  padding: 9px 16px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.order-number strong { color: var(--green-900); font-weight: 700; letter-spacing: 0.02em; }
.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* ---------- Футер ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, 0.72); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 38px;
}
.brand--footer { color: #fff; margin-bottom: 16px; }
.brand--footer .brand-mark { background: rgba(255, 255, 255, 0.12); }
.brand--footer .brand-text small { color: rgba(255, 255, 255, 0.5); }
.footer-brand p { max-width: 300px; font-size: 12.5px; line-height: 1.6; }
.footer-col h3 {
  margin-bottom: 14px;
  color: #9FC3AE;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer-col a,
.footer-col span,
.footer-col p {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.5;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-col .footer-phone { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.footer-legal p { max-width: 240px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Корзина ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 39, 30, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(432px, 100vw);
  background: var(--bg);
  box-shadow: var(--shadow-float);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.25, 1), visibility 0s linear 0.28s;
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 20px; letter-spacing: -0.02em; }
.drawer-count { color: var(--muted); font-weight: 600; }

.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  min-height: 340px;
  text-align: center;
}
.drawer-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-700);
}
.drawer-empty-icon svg { width: 26px; height: 26px; }
.drawer-empty h3 { font-size: 18px; }
.drawer-empty p { max-width: 260px; color: var(--muted); font-size: 12.5px; }
.drawer-empty .btn { margin-top: 4px; }

.cart-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  padding: 6px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb .media-fallback { padding: 4px; gap: 2px; }
.cart-thumb .media-fallback strong { font-size: 9px; }
.cart-thumb .media-fallback small { display: none; }
.cart-info { min-width: 0; }
.cart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-top h3 { font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  margin: -4px -4px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
}
.cart-remove:hover { background: #FCF1F0; color: var(--danger); }
.cart-remove svg { width: 16px; height: 16px; }
.cart-meta { margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--green-900);
}
.stepper button:hover:not(:disabled) { background: var(--green-50); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper button svg { width: 14px; height: 14px; }
.stepper input {
  width: 36px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  text-align: center;
  font-size: 12.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid rgba(29, 107, 79, 0.4); outline-offset: -2px; }
.cart-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.cart-price.is-request { font-size: 10.5px; font-weight: 600; color: var(--muted); }

.drawer-foot {
  flex: none;
  padding: 18px 24px 22px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cart-total-row span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cart-total-row strong { font-size: 22px; font-weight: 780; letter-spacing: -0.02em; }
.cart-total-row strong.is-request { font-size: 15px; color: var(--green-700); letter-spacing: 0; }
.cart-foot-note { margin-top: 6px; font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.drawer-foot .btn { margin-top: 14px; }

/* ---------- Модалка товара ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 39, 30, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: 43% 57%;
  width: min(1040px, 100%);
  height: min(88vh, 920px);
  max-height: min(88vh, 920px);
  grid-template-rows: minmax(0, 1fr);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.24s ease;
}
.modal.is-open .modal-shell { transform: none; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(23, 55, 44, 0.12);
}

.modal-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px 18px 24px;
  background: #FFFFFF;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.modal-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 26px 24px rgba(23, 55, 44, 0.14));
}
.modal-media.img-error img { opacity: 0; }
.modal-media.img-error .media-fallback { opacity: 1; }
.modal-media .media-fallback strong { font-size: 22px; }
.modal-line {
  position: absolute;
  top: 22px; left: 24px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(227, 232, 228, 0.9);
  border-radius: 999px;
  color: var(--green-700);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.modal-pack {
  position: absolute;
  left: 24px; bottom: 22px;
  z-index: 2;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 232, 228, 0.9);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.modal-content {
  min-height: 0;
  padding: 38px 36px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-kicker {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-kicker .culture { color: var(--green-700); font-weight: 700; }
.modal-content h2 { margin: 8px 0 12px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; }
.modal-desc { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.modal-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 20px 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.modal-price .price-value { font-size: 24px; font-weight: 780; letter-spacing: -0.02em; }
.modal-price .price-value.is-request { font-size: 18px; color: var(--green-700); }
.modal-price .price-note { font-size: 11px; color: var(--muted); }

.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.modal-actions .btn { flex: 1 1 auto; }

.modal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.modal-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 10px;
  background: var(--green-50);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
}
.modal-chip b { font-weight: 650; color: var(--green-900); }

.modal-section { margin-top: 28px; }
.modal-section h3 {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.param-table { width: 100%; border-collapse: collapse; }
.param-table tr { border-top: 1px solid var(--line-soft); }
.param-table tr:last-child { border-bottom: 1px solid var(--line-soft); }
.param-table th,
.param-table td { padding: 8px 0; vertical-align: top; text-align: left; }
.param-table th { width: 47%; font-size: 12px; font-weight: 400; color: var(--muted); }
.param-table td { font-size: 12px; font-weight: 600; color: var(--green-900); }

.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.profile-item { min-width: 0; }
.profile-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.profile-row span { font-size: 11.5px; color: var(--muted); }
.profile-row b { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.profile-track { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.profile-fill { height: 100%; background: linear-gradient(90deg, var(--green-700), #3E8F6D); border-radius: 99px; }

.modal-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.modal-source svg { width: 14px; height: 14px; }
.modal-source:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  background: var(--green-900);
  color: #fff;
  border-radius: 11px;
  box-shadow: 0 18px 40px -18px rgba(15, 39, 30, 0.6);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1120px) {
  .container { padding: 0 24px; }
  .catalog { padding-left: 24px; padding-right: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { flex-wrap: wrap; }
  .toolbar-right { flex: 1; justify-content: flex-end; }
  .search { flex: 1; max-width: 280px; }
  .search input { width: 100%; }
  .trust-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-phone { display: none; }
  .intro-inner { gap: 32px; }
}

@media (max-width: 980px) {
  .intro { padding: 44px 0 34px; }
  .intro-inner { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .intro-stats { max-width: 480px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .summary-items { max-height: none; }
  .modal { padding: 18px; }
  .modal-shell { grid-template-columns: 40% 60%; }
  .modal-media { min-height: 340px; padding: 18px 14px 22px; }
  .modal-content { padding: 32px 26px 28px; }
  .profile { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
  .footer-legal { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 68px; gap: 12px; }
  .header-phone span { display: none; }
  .max-button { height: 40px; padding: 0 12px; }
  .max-button-label { display: none; }
  .back-to-site { height: 40px; padding: 0 8px; }
  .back-label { display: none; }
  .header-phone strong { font-size: 13.5px; }
  .header-actions { gap: 12px; }
  .cart-button { height: 42px; padding: 0 12px; gap: 7px; }
  .cart-button .cart-word { display: none; }
  .cart-button-sum { font-size: 11.5px; padding-left: 8px; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 14px 12px; font-size: 11.5px; }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .trust-item svg { width: 18px; height: 18px; }
  .catalog { padding-top: 38px; padding-bottom: 60px; }
  .catalog-head { align-items: center; }
  .toolbar { margin: 20px 0 22px; gap: 10px; }
  .chips { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { padding: 9px 12px; font-size: 12.5px; }
  .toolbar-right { flex-wrap: wrap; }
  .select-wrap { flex: 0 0 170px; }
  .select-wrap select { width: 100%; min-width: 0; }
  .search { max-width: none; flex: 1 1 160px; }
  .grid { gap: 16px; }
  .modal { padding: 0; align-items: stretch; }
  .modal-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    transform: translateY(20px);
  }
  .modal-media { flex: none; min-height: 0; height: 34vh; padding: 34px 26px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-media img { max-height: 100%; }
  .modal-line { top: 14px; left: 16px; }
  .modal-pack { left: 16px; bottom: 12px; }
  .modal-close { position: fixed; top: 12px; right: 12px; }
  .modal-content { flex: 1 1 auto; padding: 24px 20px 32px; }
  .modal-content h2 { font-size: 28px; }
  .modal-actions .btn { flex: 1 1 100%; }
  .profile { grid-template-columns: 1fr 1fr; }
  .success-card { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 5px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .catalog { padding-left: 16px; padding-right: 16px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-text strong { font-size: 17px; letter-spacing: 0.1em; }
  .brand-text small { font-size: 8.5px; letter-spacing: 0.12em; }
  .header-phone strong { font-size: 12.5px; }
  .cart-button { padding: 0 10px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card-media { aspect-ratio: 5 / 4; padding: 26px; }
  .card h3 { font-size: 22px; }
  .card-specs > div { padding: 7px 0; }
  .intro h1 { font-size: 32px; }
  .intro-lead { font-size: 14px; }
  .intro-stats dd { font-size: 26px; }
  .intro-stats dt { font-size: 9px; }
  .form-card { padding: 20px 16px; border-radius: 14px; }
  .fields { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-card-head { flex-direction: column; gap: 4px; align-items: flex-start; }
  .summary { padding: 20px 16px; border-radius: 14px; }
  .success-actions .btn { width: 100%; }
  .profile { grid-template-columns: 1fr; }
  .trust-item { font-size: 11px; padding: 13px 8px; gap: 8px; }
  .drawer-head { padding: 16px 18px; }
  .drawer-body { padding: 4px 18px; }
  .drawer-foot { padding: 16px 18px 18px; }
}

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding: 10px 16px 12px;
    gap: 8px 12px;
  }
  .header-actions { display: contents; }
  .brand { order: 1; }
  .header-phone { order: 2; margin-left: auto; }
  .cart-button {
    order: 3;
    width: 100%;
    height: 42px;
    padding: 0 13px;
    justify-content: flex-start;
  }
  .cart-button .cart-word { display: inline; }
  .cart-button-label { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
  .cart-button-sum {
    display: block;
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
    font-size: 12.5px;
    color: rgba(23, 55, 44, 0.72);
  }
  #catalog { scroll-margin-top: 108px; }
}

@media (max-width: 420px) {
  .header-inner { gap: 8px 10px; }
  .brand { gap: 8px; }
  .brand-text strong { font-size: 15.5px; letter-spacing: 0.08em; }
  .brand-text small { font-size: 7.5px; }
  .brand-mark { width: 28px; height: 28px; }
  .header-phone strong { font-size: 11.5px; }
  .cart-button { height: 40px; gap: 5px; }
  .cart-button .cart-icon { width: 17px; height: 17px; }
  .cart-button-label { font-size: 12px; }
  .catalog-head h2 { font-size: 26px; }
  .result-count { font-size: 10.5px; padding: 6px 10px; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .card-actions .btn { padding: 0 10px; font-size: 12.5px; }
  .modal-content { padding: 20px 16px 28px; }
  .modal-media { height: 30vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}


/* ============================================================
   MAX MINI APP и мобильный телефон
   ============================================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .cart-drawer, .modal-panel, .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* Внутри MAX убираем лишний вертикальный воздух и увеличиваем зоны нажатия */
.in-max .intro { padding-top: 28px; padding-bottom: 8px; }
.in-max .intro h1 { font-size: clamp(26px, 8vw, 34px); }
.in-max .intro-stats { gap: 14px; }
.in-max .catalog { padding-top: 24px; }

@media (max-width: 760px) {
  .in-max .site-header { position: sticky; }
  .in-max .card-actions .btn,
  .in-max .chip,
  .in-max .cart-button { min-height: 44px; }  /* палец, а не курсор */
  .in-max .card-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .card { border-radius: 14px; }
  .card-media { padding: 14px; }
  .card-body { padding: 14px 14px 16px; }
  .card-specs { font-size: 12.5px; }
  .card-price .price-value { font-size: 20px; }
  .modal-content { padding: 20px 16px 18px; border-radius: 16px 16px 0 0; }
  .modal-actions { grid-template-columns: 1fr; gap: 10px; }
  .toolbar-right { width: 100%; }
  .search { width: 100%; }
  .summary, .checkout-side { border-radius: 14px; }
  .cart-drawer { width: 100%; }
}

.success-mail {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--green-700);
  font-weight: 600;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.consent-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green-700);
  flex: 0 0 auto;
}
.consent-check a { color: var(--green-700); text-decoration: underline; }
