:root{
  --bg: #fbfaf7;
  --card: #ffffff;
  --text: #121514;
  --muted: #6d746f;
  --border: rgba(18,21,20,.08);
  --shadow: 0 22px 60px rgba(18,21,20,.10);
  --soft: 0 10px 30px rgba(18,21,20,.08);

  --green: #4a6f5a;
  --green-2: #3f624f;

  --radius: 18px;
  --radius-lg: 26px;

  /* Типографика (единая шкала) */
  --fs-body: 16px;
  --lh-body: 1.65;

  --fs-small: 13px;
  --lh-small: 1.45;

  --fs-caption: 12px;
  --lh-caption: 1.35;

  --fs-micro: 11px;
  --lh-micro: 1.3;

  --fs-h1: clamp(34px, 3.2vw, 52px);
  --lh-h1: 1.06;

  --fs-h2: clamp(22px, 2.0vw, 30px);
  --lh-h2: 1.15;

  --fs-card-title: 18px;
  --lh-card-title: 1.2;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background:
    radial-gradient(800px 500px at 18% 10%, rgba(74,111,90,.12), transparent 60%),
    radial-gradient(800px 500px at 85% 15%, rgba(167,138,88,.14), transparent 60%),
    var(--bg);
}

/* чуть крупнее на десктопе для читаемости */
@media (min-width: 981px){
  body{ font-size: 17px; }
}

img{ max-width:100%; display:block; }

.container{ width:min(1120px, calc(100% - 48px)); margin:0 auto; }

.muted{ color:var(--muted); }
.divider{ height:1px; background: var(--border); margin:18px 0; }

/* =========================
   HEADER / FOOTER
   ========================= */

.site-header{
  position: sticky;
  top:0;
  z-index: 30;
  background: rgba(251,250,247,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{ height:74px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:800; letter-spacing:-.02em; }
.brand-mark{
  width:36px; height:36px; border-radius:999px;
  display:grid; place-items:center;
  background: rgba(74,111,90,.12);
  border: 1px solid var(--border);
  font-weight:800;
}
.nav{ display:flex; gap:18px; }
.nav-link{ color:var(--text); text-decoration:none; opacity:.85; font-weight:600; }
.nav-link:hover{ opacity:1; }

.header-actions{ display:flex; gap:10px; align-items:center; }

.site-main{ padding: 36px 0 60px; }

.site-footer{
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  background: rgba(255,255,255,.40);
}
.footer-grid{ display:grid; gap:22px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-title{ font-weight:800; margin-bottom:10px; font-size: 16px; }
.footer-bottom{ margin-top: 26px; display:flex; justify-content:space-between; gap:18px; }

.list{ margin:0; padding-left:18px; color:var(--muted); }
.list li{ margin: 6px 0; }

/* =========================
   UI: BUTTONS / INPUTS
   ========================= */

.btn{
  appearance:none;
  border:1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.btn:hover{ box-shadow: var(--soft); }
.btn-primary{
  background: var(--green);
  border-color: rgba(74,111,90,.25);
  color:#fff;
}
.btn-primary:hover{ background: var(--green-2); }
.btn-ghost{ background: rgba(255,255,255,.55); }
.btn-invert{ background: #ffffff; color: var(--text); border-color: rgba(255,255,255,.40); }
.btn-wide{ width:100%; padding: 14px 18px; }

.input{
  width:100%;
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
.label{
  display:block;
  font-weight:900;
  margin: 12px 0 8px;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(18,21,20,.55);
}
.req{ color:#c92b2b; }

.field-error,
.field__error{
  margin-top:6px;
  color:#b42318;
  font-size: 12px;
  line-height: 1.35;
}

.alert{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.6);
  font-size: 14px;
}
.alert-error{
  border-color: rgba(201,43,43,.25);
  background: rgba(201,43,43,.06);
}

.form-alert{
  border: 1px solid rgba(180,35,24,.25);
  background: rgba(180,35,24,.06);
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.form-alert__item{
  color:#7a271a;
  font-size: 13px;
  line-height: 1.45;
}

/* FIX: убрать стрелочки (spinner) у number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type="number"]{
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* =========================
   HOME: HERO / GRID / CTA
   ========================= */

.hero{ padding: 18px 0 40px; }
.hero-grid{ display:grid; gap: 26px; grid-template-columns: 1.05fr .95fr; align-items:center; }
.eyebrow{ color: var(--green); font-weight:900; letter-spacing:.10em; text-transform:uppercase; font-size: 12px; line-height: 1.2; }
.hero-title{ font-size: clamp(34px, 4vw, 56px); line-height:1.02; margin: 10px 0 10px; letter-spacing:-.03em; }
.hero-sub{ font-size: 16px; line-height:1.65; color: var(--muted); max-width: 52ch; }
.hero-actions{ margin-top: 16px; display:flex; gap:12px; flex-wrap: wrap; }

.hero-badges{ margin-top: 22px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card{
  background: rgba(255,255,255,.62);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--soft);
}
.mini-card-title{ font-weight:900; margin-bottom:6px; font-size: 15px; line-height: 1.25; }
.mini-card-text{ color: var(--muted); font-size: 13px; line-height:1.55; }

.hero-right{ display:grid; gap: 14px; }
.hero-image{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-image img{ width:100%; height: 320px; object-fit: cover; }
.hero-right-card{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--soft);
}
.hero-right-title{ font-weight:900; font-size: 18px; margin-bottom:8px; line-height: 1.2; }
.hero-right-facts{ margin-top: 14px; display:grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.fact{ background: rgba(255,255,255,.75); border:1px solid var(--border); border-radius: 14px; padding: 10px; }
.fact-title{ font-weight:900; font-size: 14px; line-height: 1.2; }

.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin: 30px 0 18px; }
.section-title{ margin:0; font-size: 26px; letter-spacing:-.02em; line-height: 1.15; }

.chips{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
}
.chip-active{ background: rgba(74,111,90,.12); color: var(--green-2); }

.grid{ display:grid; gap: 18px; }
.grid-products{ grid-template-columns: repeat(3, 1fr); }

.product-card{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--soft);
}
.product-media{ position:relative; display:block; text-decoration:none; color:inherit; }
.product-media img{ width:100%; height: 240px; object-fit: cover; }
.pill{
  position:absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.pill-strong{ background: rgba(74,111,90,.12); color: var(--green-2); border-color: rgba(74,111,90,.18); }
.product-body{ padding: 14px 14px 16px; }
.product-title{ font-weight: 900; font-size: 17px; letter-spacing:-.01em; line-height: 1.2; }
.product-desc{ color: var(--muted); margin: 8px 0 10px; line-height:1.6; font-size: 14px; min-height: 46px; }
.product-actions{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.price-from{ color: var(--green-2); font-weight: 900; font-size: 15px; }

.cta{ margin-top: 40px; }
.cta-box{
  border-radius: var(--radius-lg);
  background: rgba(74,111,90,.88);
  color:#fff;
  padding: 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.cta-title{ font-weight: 900; font-size: 22px; letter-spacing:-.02em; margin-bottom: 6px; line-height: 1.15; }
.cta-form{ display:flex; gap:10px; min-width: 360px; }
.cta-form .input{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.20); color:#fff; }
.cta-form .input::placeholder{ color: rgba(255,255,255,.70); }

/* =========================
   PRODUCT DETAIL
   ========================= */

.breadcrumbs{
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.breadcrumbs a{ color: var(--muted); text-decoration:none; }
.breadcrumbs .sep{ margin: 0 8px; opacity:.6; }

.product-grid{
  display:grid;
  gap: 22px;
  grid-template-columns: 1.05fr .95fr;
  align-items:start;
}
.product-left{ min-width:0; }
.product-right{ min-width:0; align-self:start; }

.gallery{
  background: rgba(255,255,255,.6);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--soft);
}
.gallery-main{ border-radius: 18px; overflow:hidden; border: 1px solid var(--border); }
.gallery-main img{ width:100%; height: 380px; object-fit: cover; }
.gallery-thumbs{ display:grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 10px; }
.thumb{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--border);
  padding:0;
  background:#fff;
  cursor:pointer;
  opacity:.85;
}
.thumb.is-active{ outline: 2px solid rgba(74,111,90,.35); opacity:1; }
.thumb img{ width:100%; height: 84px; object-fit: cover; }

.product-h1{
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  margin: 18px 0 10px;
  letter-spacing:-.03em;
}
.product-status-row{ display:flex; align-items:center; gap: 12px; flex-wrap:wrap; }

.product-lead{
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
  margin: 12px 0 0;
}

.trust-row{ display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 16px; }
.trust-item{ background: rgba(255,255,255,.62); border:1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--soft); }
.trust-title{ font-weight: 900; margin-bottom: 6px; font-size: 15px; line-height: 1.25; }

.content-cards{ margin-top: 18px; display:grid; gap: 14px; }
.content-card{ background: rgba(255,255,255,.65); border:1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--soft); }

.content-card-title{
  font-weight: 900;
  font-size: var(--fs-card-title);
  line-height: var(--lh-card-title);
  margin-bottom: 10px;
}

.prose{
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.specs{ display:grid; gap: 10px; }
.spec{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.7);
  border:1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.35;
}

.faq details{ border: 1px solid var(--border); background: rgba(255,255,255,.7); border-radius: 14px; padding: 12px 14px; }
.faq details + details{ margin-top: 10px; }
.faq summary{ cursor:pointer; font-weight: 900; font-size: 15px; line-height: 1.25; }

/* =========================
   ORDER CARD (ЧИСТО + БЕЗ ВНУТРЕННЕГО СКРОЛЛА)
   ========================= */

.order-card{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);

  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
}

@media (min-width: 981px) and (min-height: 920px){
  .order-card{
    position: sticky;
    top: 92px;
  }
}

.order-title{ font-weight: 900; font-size: 22px; letter-spacing:-.02em; margin-bottom: 6px; }

.tier-list{ margin-top: 10px; display:grid; gap: 8px; }
.tier{
  display:flex; justify-content:space-between; gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
}
.tier-left{ color: var(--muted); font-weight: 900; }
.tier-right{ font-weight: 900; }

.qty-row{ margin-top: 12px; }
.qty-controls{
  display:grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items:center;
}
.qty-btn{
  height: 42px; width: 42px;
  border-radius: 14px;
  border: 1px solid rgba(18,21,20,.06);
  background: rgba(232,236,231,.35);
  font-weight: 900;
  cursor:pointer;
}
.qty-btn:hover{ background: rgba(255,255,255,.85); }

.qty-input{
  width: 72px;
  height: 42px;
  line-height: 42px;
  padding: 0 12px;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  border-radius: 999px;
  background: rgba(232,236,231,.38);
  border: 1px solid rgba(18,21,20,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  outline: none;
}

.order-card .input{
  border-radius: 999px;
  height: 44px;
  line-height: 44px;
  padding: 0 14px;
  background: rgba(232,236,231,.38);
  border: 1px solid rgba(18,21,20,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  font-size: 16px;
}
.order-card .input::placeholder{ color: rgba(18,21,20,.42); }

.order-card .input:focus{
  outline: none;
  background: rgba(255,255,255,.85);
  border-color: rgba(74,111,90,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 0 0 4px rgba(74,111,90,.12);
}

.order-card textarea.input{
  border-radius: 18px;
  min-height: 92px;
  height: auto;
  line-height: 1.5;
  padding: 12px 14px;
  resize: vertical;
}

.order-form .field{ margin-top: 8px; }
.form-note{ font-size: 12px; line-height: 1.45; margin-top: 10px; }

/* =========================
   калькулятор: ОДНА КОЛОНКА
   ========================= */

.calc-box{
  margin-top: 10px;
  border: 1px solid rgba(18,21,20,.06);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(232,236,231,.26);

  display: flex;
  flex-direction: column;
  gap: 0;
}

.calc-row{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 0;
}

.calc-row + .calc-row{
  border-top: 1px solid rgba(18,21,20,.06);
}

.calc-label{
  color: rgba(18,21,20,.65);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calc-value{
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}

.calc-row--total{
  padding-top: 12px;
}

.calc-label--total{
  color: rgba(18,21,20,.85);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calc-total{
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
}

@media (max-height: 820px){
  .order-card .form-note{ display:none; }
}

/* =========================
   SIDEBLOCK
   ========================= */

.mini-side{ margin-top: 14px; }
.mini-side-item{
  background: rgba(255,255,255,.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--soft);
}
.mini-side-title{ font-weight: 900; margin-bottom: 6px; font-size: 15px; line-height: 1.25; }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-badges{ grid-template-columns: 1fr; }
  .grid-products{ grid-template-columns: repeat(2, 1fr); }

  .footer-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr; }

  .order-card{
    position: static;
    top: auto;
  }

  .trust-row{ grid-template-columns: 1fr; }
  .cta-form{ min-width: 0; width:100%; }
}

@media (max-width: 560px){
  .container{ width: calc(100% - 28px); }
  .grid-products{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .hero-image img{ height: 240px; }
  .gallery-main img{ height: 280px; }
}

/* === HARD FIX: НИКАКОГО sticky справа === */
.product-right,
.product-right aside,
.product-right .order-card,
.order-card{
  position: static !important;
  top: auto !important;
  bottom: auto !important;
}

.product-right .order-card,
.order-card{
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* старые/резервные классы (оставлены, если где-то используются) */
.price-box { border: 1px solid rgba(18,21,20,.08); border-radius: 18px; padding: 14px 16px; background: #fff; }
.price-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 10px 0; border-top: 1px solid rgba(18,21,20,.06); }
.price-row:first-child { border-top: 0; }
.price-row__label { color: rgba(18,21,20,.65); }
.price-row__value { font-weight: 600; white-space: nowrap; }
.price-row--total .price-row__value { font-size: 18px; }

.qty { display:flex; align-items:center; gap:10px; }
.qty__btn { width:40px; height:40px; border-radius: 12px; border:1px solid rgba(18,21,20,.10); background:#fff; cursor:pointer; }
.qty__input { width: 120px; text-align:center; }

.input--error { border-color: rgba(180,35,24,.5) !important; box-shadow: 0 0 0 4px rgba(180,35,24,.08); }
