:root {
  --ink: #20261f;
  --muted: #667064;
  --forest: #2f4a36;
  --forest-deep: #203428;
  --leaf: #6f8248;
  --clay: #a94f2c;
  --ochre: #d5a84e;
  --cream: #f5f0e5;
  --paper: #fffdf7;
  --line: #d9d2c3;
  --soft-line: #e9e3d7;
  --danger: #9f342b;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px rgba(39, 47, 36, .12);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(32, 52, 40, .12);
  background: rgba(245, 240, 229, .94);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-deep);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50% 46% 52% 44%;
  color: var(--paper);
  background: var(--forest);
  font-family: Georgia, serif;
}
.brand-accent { color: var(--clay); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a,
.header-phone {
  color: var(--forest-deep);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.main-nav a:hover { color: var(--clay); }
.header-phone {
  padding: 10px 15px;
  border: 1px solid var(--forest);
  border-radius: 999px;
}

.hero {
  min-height: 650px;
  padding-block: 76px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--forest-deep);
  font-size: clamp(3.6rem, 7.7vw, 7.2rem);
  line-height: .91;
}
.hero-lead {
  max-width: 630px;
  margin: 0;
  color: #495347;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.quantity-button:focus-visible,
.quantity-presets button:focus-visible {
  outline: 3px solid rgba(213, 168, 78, .65);
  outline-offset: 3px;
}
.button-primary {
  color: white;
  background: var(--clay);
  box-shadow: 0 9px 24px rgba(169, 79, 44, .2);
}
.button-primary:hover { background: #913e21; }
.button-quiet { color: var(--forest); border: 1px solid var(--line); background: transparent; }
.quick-facts {
  margin: 50px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.quick-facts div { min-width: 145px; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.quick-facts div:last-child { border: 0; }
.quick-facts dt { color: var(--muted); font-size: .76rem; }
.quick-facts dd { margin: 3px 0 0; color: var(--forest-deep); font-weight: 780; }

.product-label {
  min-height: 440px;
  min-width: 0;
  padding: 30px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: var(--forest-deep);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.label-topline,
.label-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.label-topline { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.2); }
.label-topline span,
.label-footer span { min-width: 0; overflow-wrap: anywhere; }
.label-main { align-self: center; min-width: 0; padding: 36px 10px; }
.label-main p { margin: 0 0 5px; color: rgba(255,255,255,.62); }
.label-main h2 { max-width: 100%; margin-bottom: 28px; color: var(--paper); font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 1; overflow-wrap: anywhere; }
.label-price { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.label-price strong { color: var(--ochre); font: 500 clamp(4.5rem, 8vw, 7rem)/.8 Georgia, serif; }
.label-price span { color: rgba(255,255,255,.75); font-weight: 700; line-height: 1.1; }
.label-footer { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }

.terms-section { color: var(--paper); background: var(--forest); }
.terms-layout { padding-block: 84px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.terms-section .eyebrow { color: #dfbd78; }
.terms-section h2 { max-width: 420px; margin-bottom: 0; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.02; }
.terms-list { margin: 0; }
.terms-list > div {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.terms-list > div:first-child { padding-top: 0; }
.terms-list dt { color: #dfbd78; font-family: Georgia, serif; }
.terms-list dd { margin: 0; display: flex; justify-content: space-between; gap: 30px; }
.terms-list strong { font-size: 1.03rem; }
.terms-list span { max-width: 330px; color: rgba(255,255,255,.68); text-align: right; }

.order-section { padding-block: 100px; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
.order-intro { position: sticky; top: 118px; }
.order-intro h2,
.contacts-section h2 { margin-bottom: 22px; color: var(--forest-deep); font-size: clamp(2.6rem, 4.5vw, 4.6rem); line-height: 1; }
.order-intro > p:not(.eyebrow),
.contacts-section p { color: var(--muted); font-size: 1.05rem; }
.contact-note { margin-top: 36px; padding-top: 22px; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); }
.contact-note span { color: var(--muted); font-size: .82rem; }
.contact-note a { color: var(--clay); font-weight: 750; }
.order-form { padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.form-alert { margin-bottom: 28px; padding: 16px 18px; color: var(--danger); border: 1px solid rgba(159, 52, 43, .28); border-radius: var(--radius-sm); background: #fff2ef; }
.form-alert ul { margin: 6px 0 0; padding-left: 20px; }
.form-row { display: grid; gap: 18px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.field { display: block; margin-bottom: 22px; }
.field > span,
.choice-field legend,
.quantity-heading label { display: block; margin-bottom: 8px; color: var(--forest-deep); font-size: .86rem; font-weight: 750; }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 74, 54, .1); }
.choice-field { margin: 0 0 22px; padding: 0; border: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 78px; padding: 15px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.segmented strong { color: var(--forest-deep); }
.segmented small { margin-top: 2px; color: var(--muted); }
.segmented input:checked + span { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #f1f5ee; }
.segmented input:focus-visible + span { outline: 3px solid rgba(213, 168, 78, .65); outline-offset: 3px; }
.is-hidden { display: none; }
.quantity-block { margin-bottom: 25px; }
.quantity-heading { display: flex; justify-content: space-between; align-items: baseline; }
.quantity-heading span { color: var(--muted); font-size: .76rem; }
.quantity-control { display: grid; grid-template-columns: 50px 1fr 50px; }
.quantity-control input { min-width: 0; height: 52px; color: var(--forest-deep); border: solid var(--line); border-width: 1px 0; text-align: center; font-weight: 800; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.quantity-button { min-width: 50px; border: 1px solid var(--line); color: var(--forest); background: #f5f2e9; cursor: pointer; font-size: 1.35rem; }
.quantity-button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.quantity-button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quantity-presets { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.quantity-presets button { min-height: 36px; padding: 6px 12px; color: var(--muted); border: 1px solid var(--soft-line); border-radius: 999px; background: transparent; cursor: pointer; }
.quantity-presets button:hover { color: var(--forest); border-color: var(--forest); }
.calculation { margin: 28px 0 22px; padding: 20px; border-radius: var(--radius-md); background: #f0ede3; }
.calculation div { padding: 6px 0; display: flex; justify-content: space-between; gap: 20px; }
.calculation span { color: var(--muted); }
.calculation-total { margin-top: 7px; padding-top: 14px !important; border-top: 1px solid var(--line); }
.calculation-total strong { font-size: 1.18rem; }
.calculation-prepay strong { color: var(--clay); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-bottom: 20px; color: var(--muted); font-size: .8rem; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--forest); }
.consent a { color: var(--forest); }
.submit-button { width: 100%; border-radius: var(--radius-sm); }
.secure-note { margin: 10px 0 0; color: var(--muted); font-size: .74rem; text-align: center; }

.contacts-section { padding-block: 90px; border-top: 1px solid var(--line); background: #e9e2d4; }
.contacts-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-list article { padding: 26px; border-top: 3px solid var(--forest); background: var(--paper); }
.contact-list article:last-child { border-color: var(--clay); }
.contact-list span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list h3 { margin: 13px 0 4px; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.contact-list a { display: block; color: var(--forest-deep); font-weight: 700; text-decoration: none; }
.contact-list .text-link { margin-top: 16px; color: var(--clay); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { padding-block: 34px; color: rgba(255,255,255,.72); background: var(--forest-deep); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 30px; }
.footer-brand,
.seller-details { display: flex; flex-direction: column; }
.footer-inner strong { color: white; font-size: 1.05rem; }
.footer-inner span { font-size: .78rem; }
.seller-details { color: rgba(255,255,255,.72); font-size: .78rem; }
.seller-details strong { font-size: .82rem; }
.seller-details a { color: white; }
.footer-links { display: flex; gap: 24px; font-size: .78rem; }

.payment-page { min-height: 100vh; padding: 50px 0; display: grid; place-items: center; }
.payment-card { width: min(620px, calc(100% - 32px)); padding: clamp(25px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.payment-card .brand { margin-bottom: 34px; }
.payment-card h1 { margin-bottom: 12px; font-size: clamp(2.5rem, 8vw, 4.5rem); }
.payment-card > p { color: var(--muted); }
.qr-wrap { margin: 28px 0; display: grid; place-items: center; }
.qr-wrap img { width: 260px; max-width: 100%; height: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.payment-summary { padding: 18px 0; border-block: 1px solid var(--line); }
.payment-summary div { padding: 4px 0; display: flex; justify-content: space-between; }
.payment-summary .due strong { color: var(--clay); font-size: 1.3rem; }
.payment-actions { display: grid; gap: 10px; margin-top: 24px; }
.payment-help { margin-top: 24px; color: var(--muted); font-size: .84rem; }

.legal-page { padding-block: 60px 90px; }
.legal-document { max-width: 780px; padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.legal-document h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.legal-document h2 { margin-top: 38px; font-size: 1.55rem; letter-spacing: -.02em; }
.legal-warning { padding: 14px 16px; color: #744817; border: 1px solid #d9b274; background: #fff5df; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 60px; }
  .product-label { width: min(540px, 100%); min-height: 380px; }
  .terms-layout,
  .order-section,
  .contacts-layout { grid-template-columns: 1fr; gap: 48px; }
  .order-intro { position: static; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { min-height: 64px; }
  .header-phone { padding: 0; border: 0; font-size: 0; }
  .header-phone::after { content: "Позвонить"; font-size: .82rem; }
  .hero { padding-top: 46px; gap: 45px; }
  h1 { font-size: clamp(3rem, 14vw, 4rem); overflow-wrap: anywhere; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .quick-facts { display: grid; grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .quick-facts div { min-width: 0; padding-right: 14px; margin-right: 14px; }
  .quick-facts div:nth-child(2) { border: 0; }
  html { scroll-padding-top: 80px; }
  .product-label { min-height: 340px; padding: 24px; border-radius: 20px; }
  .label-main { padding-inline: 0; }
  .label-footer { flex-direction: column; gap: 4px; }
  .terms-layout { padding-block: 64px; }
  .terms-list dd { flex-direction: column; gap: 3px; }
  .terms-list span { text-align: left; }
  .order-section { padding-block: 70px; }
  .order-form { padding: 22px 18px; border-radius: var(--radius-md); }
  .two-columns,
  .segmented,
  .contact-list { grid-template-columns: 1fr; }
  .contacts-section { padding-block: 65px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-links { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
