:root {
  --bg: oklch(98% 0.005 250);
  --surface: oklch(100% 0 0);
  --surface-strong: oklch(94% 0.009 250);
  --fg: oklch(22% 0.02 240);
  --muted: oklch(50% 0.018 240);
  --border: oklch(84% 0.012 240);
  --accent: oklch(50% 0.18 242);
  --focus: oklch(46% 0.18 242);
  --error: oklch(58% 0.13 20);
  --font-display: "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "IBM Plex Mono", ui-monospace, monospace;
  --page-width: 1240px;
  --page-gutter: 20px;
  --radius: 6px;
  --space-section: 56px;
  --shadow: 0 18px 42px oklch(22% 0.02 240 / 0.12);
}

* { box-sizing: border-box; }
.is-hidden { display: none; }
html { scroll-behavior: smooth; scroll-padding-top: 67px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 14px; background: var(--fg); color: var(--surface); transform: translateY(-150%); transition: transform 150ms cubic-bezier(0.2, 0, 0, 1); }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2))); margin: 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { margin-bottom: 18px; font-family: var(--font-body); font-size: clamp(32px, 5.5vw, 40px); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; }
h2 { margin-bottom: 16px; font-size: clamp(32px, 6vw, 37px); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h3 { margin-bottom: 7px; font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* Site header */
.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--bg) 94%, transparent); backdrop-filter: blur(12px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 66px; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }
.brand img { display: block; width: 84px; height: auto; }
.phone-link { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: var(--fg); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.header-contact { display: flex; align-items: center; justify-self: center; gap: 8px; }
.header-contact .header-phone { min-height: auto; }
.menu-button { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; justify-self: end; gap: 9px; padding: 0; border: 0; background: transparent; color: var(--fg); font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; }
.menu-icon { position: relative; display: block; width: 22px; height: 16px; flex: 0 0 22px; background: linear-gradient(currentColor, currentColor) center / 22px 2px no-repeat; transition: background-size 150ms cubic-bezier(0.2, 0, 0, 1); }
.menu-icon::before, .menu-icon::after { position: absolute; left: 0; display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; content: ""; transform-origin: center; transition: transform 150ms cubic-bezier(0.2, 0, 0, 1); }
.menu-icon::before { top: 1px; }
.menu-icon::after { bottom: 1px; }
.menu-button[aria-expanded="true"] .menu-icon { background-size: 0 2px; }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.primary-navigation { display: none; position: absolute; top: 66px; right: var(--page-gutter); left: var(--page-gutter); background: var(--surface); box-shadow: var(--shadow); }
.primary-navigation.is-open { display: grid; }
.primary-navigation a { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; text-decoration: none; }
.primary-navigation a:last-child { border-bottom: 0; }
.primary-navigation a:hover { color: var(--fg); background: var(--surface-strong); }

/* Hero */
.hero { position: relative; padding: 42px 0 56px; overflow: hidden; }
#crops { padding-top: 40px; }
.hero-layout { position: relative; display: grid; gap: 34px; }
.hero > .hero-layout { grid-template-areas: "copy" "media" "proofs"; }
.hero > .hero-layout > .hero-copy { grid-area: copy; }
.hero-copy { align-self: end; }
.hero-intro { margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.hero-proof-list { grid-area: proofs; display: grid; gap: 1px; margin: 0; padding: 1px; background: var(--border); list-style: none; }
.hero-proof-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; padding: 16px 18px; background: var(--bg); }
.hero-proof-icon { display: grid; width: 42px; height: 42px; color: var(--accent); place-items: center; }
.hero-proof-icon svg { width: 40px; height: 40px; }
.hero-proof-copy { display: grid; gap: 2px; min-width: 0; }
.hero-proof-copy strong { font-family: var(--font-display); font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.hero-proof-copy small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--fg); border-radius: var(--radius); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; text-align: center; text-decoration: none; transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1), color 150ms cubic-bezier(0.2, 0, 0, 1), border-color 150ms cubic-bezier(0.2, 0, 0, 1), transform 100ms ease; }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.button-primary:hover { border-color: var(--focus); background: var(--focus); color: var(--surface); }
.button:active { transform: translateY(1px); }
.text-action { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.text-action:hover { color: var(--focus); text-decoration-color: var(--focus); }
.hero-media { position: relative; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: var(--fg); box-shadow: var(--shadow); }
.hero > .hero-layout > .hero-media { grid-area: media; }
.hero-media::before, .hero-media::after { content: ""; position: absolute; z-index: 2; width: 20px; height: 20px; pointer-events: none; filter: drop-shadow(0 0 2px oklch(22% 0.02 240 / 0.55)); }
.hero-media::before { top: 14px; left: 14px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.hero-media::after { right: 14px; bottom: 14px; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.hero-video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hero-video[controls] { cursor: pointer; }
.hero-video-play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 72px; height: 72px; padding: 0; border-radius: calc(var(--radius) * 2); border: 1px solid color-mix(in oklch, var(--surface) 70%, transparent); background: color-mix(in oklch, var(--fg) 62%, transparent); color: var(--surface); place-items: center; transform: translate(-50%, -50%); transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1), transform 100ms ease; }
.hero-video-play span { width: 20px; height: 24px; margin-left: 4px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 24%27%3E%3Cpath d=%27M3 3L17 12L3 21Z%27 stroke=%27%23000%27 stroke-width=%273.5%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 24%27%3E%3Cpath d=%27M3 3L17 12L3 21Z%27 stroke=%27%23000%27 stroke-width=%273.5%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-video-play:hover { background: color-mix(in oklch, var(--fg) 82%, transparent); }
.hero-media:has([data-video-facade]) { cursor: pointer; }
.hero-video-play:active { transform: translate(-50%, calc(-50% + 1px)); }

.media-unavailable { position: relative; background: var(--surface-strong); }
.media-unavailable::after { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--muted); content: "Медиафайл недоступен в этом предпросмотре"; font: 600 12px/1.4 var(--font-mono); letter-spacing: 0.02em; text-align: center; }
.media-unavailable > img, .media-unavailable > video { visibility: hidden; }

/* Product process */
.section { padding: var(--space-section) 0; border-top: 1px solid var(--border); }
/* Alternating section backgrounds: assign explicitly per section in document order so
   the rhythm survives reordering. Sections without either class inherit the page's
   base tint from body. Keep neighbouring sections on different classes. */
.bg-tint { background: var(--bg); }
.bg-plain { background: var(--surface); }
.section-heading, .calculation-intro { margin-bottom: 32px; }
.section-heading > p:last-child, .calculation-intro > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.section-heading-compact { margin-bottom: 26px; }
/* Line composition video */
.process-video-row { align-items: stretch; margin-top: 32px; background: var(--surface); }
.process-video-row .hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 17px; }
.process-video-row .hero-copy h3 { margin: 0; font-size: 19px; }
.process-video-row .hero-actions .button { width: 100%; }
.process-video-copy-bottom p { margin: 8px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* How the line is composed: role cards, not tiers */
.role-grid { display: grid; gap: 1px; background: var(--border); }
.role-card { background: var(--surface); }
.role-card-media img { display: block; width: 100%; height: 185px; object-fit: cover; }
.role-card-media-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.role-card-body { padding: 17px; }
.role-card-kicker { display: block; margin-bottom: 8px; color: var(--muted); font: 600 11px/1.3 var(--font-mono); letter-spacing: 0.07em; }
.role-card-body h3 { margin: 0; font-size: 19px; }
.role-card-body p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Subsection labels inside merged sections */
.subsection-label { margin: 34px 0 16px; padding-top: 28px; border-top: 1px solid var(--border); font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.section-heading + .subsection-label, .subsection-label-flush { margin-top: 20px; padding-top: 0; border-top: 0; }

/* Next step: composition CTA */
.next-step-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.next-step-row p { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 15px; }
.next-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* Construction features */
.feature-list { display: grid; gap: 1px; margin: 0; padding: 0; background: var(--border); list-style: none; }
.feature-list li { padding: 16px 18px; background: var(--surface); color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Equipment nodes */
.node-proof-grid { display: grid; gap: 32px; }
.node-proof-group-title { margin: 0 0 11px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.node-proof-row { display: grid; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.node-proof { display: grid; grid-template-rows: auto 1fr; min-width: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.node-proof-media { position: relative; display: block; width: 100%; aspect-ratio: 8 / 5; overflow: hidden; padding: 0; border: 0; background: var(--fg); cursor: zoom-in; }
.node-proof-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 180ms ease; }
.node-proof-media span { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; border: 1px solid color-mix(in oklch, var(--surface) 65%, transparent); background: color-mix(in oklch, var(--fg) 72%, transparent); color: var(--surface); font: 600 12px/1.2 var(--font-body); opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.node-proof-media:hover img { transform: scale(1.025); }
.node-proof-media:hover span, .node-proof-media:focus-visible span { opacity: 1; transform: translateY(0); }
.node-proof-media:focus-visible { z-index: 1; outline: 3px solid var(--focus); outline-offset: -3px; }
.node-proof > div { padding: 18px; }
.node-proof h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.25; }
.node-proof p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.extra-details-gallery { margin-top: 58px; padding-top: 46px; }
.extra-details-heading { display: grid; gap: 10px; margin-bottom: 24px; }
.extra-details-heading h3 { margin: 0; font-size: clamp(22px, 3vw, 28px); }
.extra-details-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.extra-details-gallery .media-gallery { min-height: 0; aspect-ratio: 16 / 9; border: 1px solid var(--border); background: var(--fg); }
.extra-details-gallery .gallery-main, .extra-details-gallery .gallery-main img, .extra-details-gallery .gallery-side { min-height: 0; }
.extra-details-gallery .gallery-main img, .extra-details-gallery .gallery-side img { object-fit: cover; object-position: center; background: var(--fg); }

/* Compact equipment proof: outcomes first, technical detail on demand */
.equipment-benefit-summary { display: grid; gap: 1px; margin-bottom: 30px; border: 1px solid var(--border); background: var(--border); }
.equipment-benefit-summary article { position: relative; padding: 16px 16px 16px 35px; background: var(--surface); }
.equipment-benefit-summary article::before { position: absolute; top: 24px; left: 17px; width: 7px; height: 7px; background: var(--accent); content: ""; }
.equipment-benefit-summary p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.equipment-benefit-summary strong { display: block; margin-bottom: 3px; color: var(--fg); font-size: 16px; line-height: 1.3; }
.equipment-accordion-list { border: 0; }
.equipment-accordion-list-secondary { border-top: 1px solid var(--border); }
.equipment-accordion { border: 0; }
.equipment-accordion + .equipment-accordion { border-top: 1px solid var(--border); }
.equipment-accordion summary { display: grid; grid-template-columns: 1fr 28px; gap: 12px; align-items: center; min-height: 72px; padding: 13px 0; list-style: none; cursor: pointer; }
.equipment-accordion summary::-webkit-details-marker { display: none; }
.equipment-accordion summary > span { display: grid; gap: 3px; }
.equipment-accordion summary strong { font-size: 16px; line-height: 1.25; }
.equipment-accordion summary small { color: var(--muted); font-size: 13px; }
.equipment-accordion summary i { position: relative; width: 28px; height: 28px; }
.equipment-accordion summary i::before { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; content: ""; transform: translate(-50%, -75%) rotate(45deg); transition: transform 160ms ease; }
.equipment-accordion[open] summary i::before { transform: translate(-50%, -25%) rotate(-135deg); }
@media (hover: hover) {
  .equipment-accordion summary:hover strong { color: var(--accent); }
}
.equipment-accordion-body { padding-bottom: 14px; }
.equipment-accordion .node-proof { display: grid; min-height: 82px; grid-template-columns: 96px 1fr; grid-template-rows: none; border: 0; border-top: 1px solid var(--border); background: transparent; }
.equipment-accordion .node-proof-media { width: 96px; height: 100%; min-height: 82px; aspect-ratio: auto; }
.equipment-accordion .node-proof-media span { display: none; }
.equipment-accordion .node-proof > div { align-self: center; padding: 12px 0 12px 14px; }
.equipment-accordion .node-proof h3 { margin-bottom: 4px; font-size: 14px; }
.equipment-accordion .node-proof p { font-size: 12px; line-height: 1.35; }

/* Selection and pricing factors */
.factor-grid { display: grid; gap: 1px; background: var(--border); }
.factor-card { min-height: 140px; padding: 22px 20px; background: var(--surface); }
.factor-card p { margin-bottom: 0; color: var(--muted); }
.factor-card:last-child { grid-column: span 2; }

/* Crops */
.crop-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.crop-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.crop-photo { width: 100%; height: auto; aspect-ratio: 414 / 230; object-fit: cover; }
.crop-card-title { margin: 0; padding: 12px 6px 13px; font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.15; text-align: center; letter-spacing: -0.01em; }
.info-panel { margin-top: 24px; }
.info-panel p { margin-bottom: 0; color: var(--muted); }
.crops-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.crops-footer p { flex: 1 1 auto; margin: 0; color: var(--muted); font-size: 14px; }

/* Customer case */
.customer-case-layout { display: grid; gap: 28px; }
.customer-case-copy { margin: 0; }
.customer-case-copy p { max-width: 680px; }

/* Media gallery (reused for production photos and equipment node close-ups) */
.production-gallery-heading { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.media-gallery { position: relative; display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 1px; min-height: 310px; overflow: hidden; background: var(--border); touch-action: pan-y; }
.gallery-main, .gallery-side { position: relative; min-width: 0; padding: 0; border: 0; overflow: hidden; background: var(--fg); color: var(--surface); }
.gallery-main img, .gallery-side img { width: 100%; height: 100%; object-fit: cover; transition: opacity 160ms ease; }
.gallery-main { min-height: 310px; }
.gallery-main img { min-height: 310px; }
/* Mobile: side columns collapse into a slim arrow overlay on the main image edges (no room for the peek photo); swipe covers the rest. */
.gallery-side { position: absolute; top: 0; bottom: 0; z-index: 1; display: grid; width: 52px; padding: 0; background: transparent; }
.gallery-side img { display: none; }
.gallery-side-prev { left: 0; }
.gallery-side-next { right: 0; }
.gallery-side span { position: absolute; top: 50%; display: grid; width: 30px; height: 30px; place-items: center; color: var(--surface); opacity: 0.6; filter: drop-shadow(0 1px 3px oklch(0% 0 0 / 0.55)); transform: translateY(-50%); transition: opacity 150ms ease; }
.gallery-side span svg { width: 22px; height: 22px; }
.gallery-side:hover span, .gallery-side:focus-visible span { opacity: 0.95; }
.gallery-side-prev span { left: 4px; }
.gallery-side-next span { right: 4px; }
.gallery-open-mark { position: absolute; right: 14px; bottom: 14px; padding: 7px 9px; border: 1px solid color-mix(in oklch, var(--surface) 65%, transparent); background: color-mix(in oklch, var(--fg) 66%, transparent); font: 600 12px/1.2 var(--font-body); }
.gallery-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 14px; }
.gallery-meta p { margin: 0; }
.gallery-meta > p:first-child { color: var(--muted); }
.gallery-counter { flex: none; font: 600 12px/1.4 var(--font-body); }
.gallery-dots { display: flex; justify-content: center; gap: 15px; margin-top: 18px; }
.gallery-dots button { position: relative; width: 9px; height: 9px; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; }
/* The dot stays 9px so the row keeps its look; the tap target around it grows
   to the 24px minimum, and the 15px gap keeps neighbouring targets from overlapping. */
.gallery-dots button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.gallery-dots button[aria-current="true"] { border-color: var(--fg); background: var(--fg); }
/* Production facts */
.production-facts { display: grid; gap: 1px; margin-top: 34px; background: var(--border); }
.production-facts article { min-height: 150px; padding: 22px 20px; background: var(--surface); }
.production-facts p { margin-bottom: 0; color: var(--muted); }

/* Video reviews, per crop */
.review-grid { display: grid; gap: 32px; }
.review-card-title { margin: 14px 0 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* Base price and what changes it */
.price-overview { display: grid; gap: 20px; margin-bottom: 40px; background: var(--surface); }
.price-media { position: relative; aspect-ratio: 1448 / 1086; min-height: 0; margin: 0; overflow: hidden; background: var(--surface); }
.price-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.price-media-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: default; }
@media (min-width: 680px) {
  .price-media-zoom { cursor: zoom-in; }
}
.price-summary { display: flex; flex-direction: column; padding: 28px 22px 22px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); }
.price-headline { margin-bottom: 34px; }
.price-value { margin: 6px 0 10px; font-family: var(--font-display); font-size: clamp(40px, 9vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; white-space: nowrap; }
.price-note { margin: 0; color: var(--muted); font-size: 15px; }
.price-summary-label { margin: auto 0 14px; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.price-feature-list { background: var(--border); }
.price-feature-list li { display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--fg); }
.price-feature-list li::before { width: 8px; height: 8px; flex: 0 0 8px; background: var(--accent); content: ""; }
.price-section .hero-actions { margin: 32px 0 0; }
.price-factor-grid .factor-card:last-child { grid-column: auto; }

/* Calculation form */
.calculation-section { background: var(--surface-strong); }
.calculation-layout { display: grid; gap: 30px; }
.calculation-steps { display: grid; gap: 16px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); list-style: none; }
.calculation-steps li { display: flex; align-items: baseline; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.calculation-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.calculation-steps li p { margin: 0; font-size: 15px; }
.calculation-step-index { flex: none; color: var(--accent); font: 700 13px/1.3 var(--font-body); }
.calculation-direct-call { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.calculation-direct-call a { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.calculation-direct-call a:hover { color: var(--accent); }
.calculation-form-wrap { min-width: 0; padding: 26px 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.calculation-form { display: grid; gap: 18px; }
.form-honeypot { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: 14px; font-weight: 700; }
.form-optional { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-required { color: var(--accent); font-weight: 600; font-size: 12px; }
.form-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.form-error { margin: 0; color: var(--error); font-size: 13px; font-weight: 600; line-height: 1.4; }
.form-error[hidden] { display: none; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid color-mix(in oklch, var(--border) 72%, var(--muted)); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); font-size: 15px; font-weight: 400; opacity: 1; }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field select { appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='rgb(96,107,115)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px; }
.form-field select:has(option[value=""]:checked) { color: var(--muted); font-size: 15px; font-weight: 400; }
.form-field select option { color: var(--fg); font-size: 16px; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--muted); }
.form-phone-input { font-size: 16px; font-weight: 400; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { padding: 8px 11px; border: 2px solid color-mix(in oklch, var(--accent) 55%, var(--border)); outline: 0; }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--error); background-color: var(--surface); }
.form-field input[aria-invalid="true"]:hover, .form-field select[aria-invalid="true"]:hover, .form-field textarea[aria-invalid="true"]:hover { border-color: var(--error); }
.form-field input[aria-invalid="true"]:focus-visible, .form-field select[aria-invalid="true"]:focus-visible, .form-field textarea[aria-invalid="true"]:focus-visible { border-color: var(--error); }
fieldset.form-field { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.form-field legend { padding: 0; font-size: 14px; font-weight: 700; }
.form-choice { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 2px; }
.form-choice-option { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.form-choice-option input[type="checkbox"] { flex: none; width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--accent); }
.form-details summary { position: relative; padding: 4px 30px 4px 0; cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; }
.form-details summary::-webkit-details-marker { display: none; }
.form-details summary::after { position: absolute; top: 7px; right: 4px; content: "+"; font: 400 24px/1 var(--font-body); }
.form-details[open] summary::after { content: "−"; }
.form-details-body { display: grid; gap: 18px; padding-top: 8px; }
.form-field label.form-consent { display: flex; align-items: center; min-height: 44px; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.45; }
.form-consent input { flex: none; width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--accent); }
.form-consent a { color: var(--fg); font-weight: 400; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-consent a:hover { color: var(--accent); }
.form-actions { display: grid; align-items: center; gap: 16px; padding-top: 4px; }
.form-status { max-width: 50ch; margin: 0; color: var(--muted); font-size: 14px; }
.form-status.is-submitted { color: var(--fg); font-weight: 600; }
.form-status.is-error { color: var(--fg); font-weight: 700; }
.form-actions button[disabled] { cursor: wait; opacity: 0.72; }

/* Contacts (closing block, styled like the offer section: dark background, white text) */
.contacts-section { background: var(--fg); color: var(--surface); }
.contacts-layout { display: grid; gap: 40px; align-items: stretch; }
.contacts-info { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.contacts-field { display: flex; flex-direction: column; gap: 6px; }
.contacts-field-label { color: color-mix(in oklch, var(--surface) 65%, transparent); font-size: 14px; font-weight: 600; }
.contacts-phone, .contacts-email { color: var(--surface); font-size: 22px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contacts-phone:hover, .contacts-email:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.contacts-address { margin: 0; color: var(--surface); font-size: 22px; font-weight: 600; white-space: pre-line; }
.contacts-map { position: relative; min-height: 320px; }
.contacts-map-frame { position: relative; overflow: hidden; height: 100%; min-height: 320px; background: color-mix(in oklch, var(--surface) 10%, var(--fg)); }
.contacts-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Site footer */
.site-footer { border-top: 1px solid color-mix(in oklch, var(--surface) 18%, transparent); background: var(--fg); color: var(--surface); }
.site-footer-inner { display: grid; gap: 14px; padding-block: 24px 30px; }
.site-footer p { margin: 0; color: color-mix(in oklch, var(--surface) 68%, transparent); font-size: 14px; }
.site-footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer-legal a { color: var(--surface); font-size: 14px; text-underline-offset: 3px; }
.site-footer-legal a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Mobile call shortcut */
.floating-call { display: none; }

@keyframes floating-call-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 679px) {
  .floating-call:not([hidden]) {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    z-index: 4;
    display: grid;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 10px 28px color-mix(in oklch, var(--accent) 42%, transparent), 0 4px 12px oklch(22% 0.02 240 / 0.16);
    color: var(--surface);
    text-decoration: none;
    place-items: center;
    animation: floating-call-enter 180ms cubic-bezier(0.2, 0, 0, 1);
  }
  .floating-call svg { width: 27px; height: 27px; }
  .floating-call:active { background: var(--focus); transform: translateY(1px); }
}

.dialog-close { position: relative; z-index: 1; display: grid; grid-column: 2; grid-row: 1; width: 28px; min-height: 28px; padding: 0; border: 1px solid color-mix(in oklch, var(--surface) 22%, transparent); border-radius: 6px; background: color-mix(in oklch, var(--fg) 84%, transparent); color: var(--surface); font-size: 0; place-items: center; }
.dialog-close::before, .dialog-close::after { position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; border-radius: 1px; background: currentColor; content: ""; }
.dialog-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dialog-close:hover { background: var(--fg); }

/* Production gallery lightbox */
.gallery-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; background: rgba(10, 14, 20, 0.97); color: var(--surface); overflow: auto; }
.gallery-dialog[open] { display: flex; align-items: center; justify-content: center; }
.gallery-dialog::backdrop { background: rgba(10, 14, 20, 0.97); }
.gallery-dialog-panel { position: relative; width: auto; max-width: 100%; }
.gallery-dialog-panel img { display: block; max-width: 100%; max-height: calc(100dvh - 64px); width: auto; height: auto; object-fit: contain; background: var(--fg); }
.gallery-dialog-panel .gallery-dialog-close { position: absolute; top: 10px; right: 10px; }
.gallery-dialog-panel p { margin: 0; padding-top: 10px; color: color-mix(in oklch, var(--surface) 82%, transparent); font-size: 14px; }

/* Equipment node lightbox */
.node-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: oklch(15% 0.02 240 / 0.97); color: var(--fg); overflow: auto; }
.node-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.node-lightbox::backdrop { background: oklch(15% 0.02 240 / 0.97); }
.node-lightbox-shell { position: relative; overflow: hidden; width: auto; max-width: min(1160px, 100%); max-height: 100%; border: 1px solid color-mix(in oklch, var(--surface) 20%, transparent); background: var(--surface); box-shadow: var(--shadow); }
.node-lightbox figure { display: grid; max-height: calc(100dvh - 34px); margin: 0; overflow: auto; }
.node-lightbox-media { position: relative; }
.node-lightbox-media img { display: block; max-width: 100%; max-height: min(64dvh, 680px); width: auto; height: auto; background: var(--fg); object-fit: contain; }
.node-lightbox figcaption { padding: 22px 62px 24px; }
.node-lightbox figcaption > span { display: block; margin-bottom: 10px; color: var(--accent); font: 700 13px/1.2 var(--font-body); }
.node-lightbox h2 { margin: 0 0 8px; font-size: 24px; }
.node-lightbox p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.node-lightbox-close { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid color-mix(in oklch, var(--surface) 22%, transparent); border-radius: 6px; background: color-mix(in oklch, var(--fg) 84%, transparent); color: var(--surface); font-size: 0; }
.node-lightbox-close::before, .node-lightbox-close::after { position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; border-radius: 1px; background: currentColor; content: ""; }
.node-lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.node-lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.node-lightbox-close:hover { background: var(--fg); }
.node-lightbox-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--surface); opacity: 0.6; transform: translateY(-50%); transition: opacity 150ms ease; }
.node-lightbox-arrow svg { width: 28px; height: 28px; }
.node-lightbox-arrow:hover, .node-lightbox-arrow:focus-visible { background: transparent; opacity: 0.95; }
.node-lightbox-prev { left: 10px; }
.node-lightbox-next { right: 10px; }

@media (min-width: 680px) {
  :root { --page-gutter: 32px; --space-section: 84px; }
  html { scroll-padding-top: 77px; }
  h1 { font-weight: 700; }
  .hero-proof-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .equipment-benefit-summary { grid-template-columns: repeat(3, 1fr); }
  .equipment-accordion-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px 0 0; background: var(--border); }
  .equipment-accordion .node-proof { border: 0; background: var(--surface); }
  .equipment-accordion .node-proof > div { padding-right: 14px; }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .node-proof-row { grid-template-columns: repeat(2, 1fr); }
  .crop-card-title { padding: 15px 17px 18px; font-size: 19px; text-align: left; }
  .factor-grid, .production-facts { grid-template-columns: repeat(2, 1fr); }
  .production-facts article:last-child { grid-column: span 2; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .price-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-media { width: 100%; height: 100%; min-width: 0; aspect-ratio: auto; }
  .price-summary { padding: 34px 30px 30px; }
  .media-gallery { grid-template-columns: 0.16fr 0.68fr 0.16fr; min-height: 430px; }
  .gallery-main, .gallery-main img { min-height: 430px; }
  .gallery-side { position: relative; top: auto; bottom: auto; left: auto; right: auto; z-index: auto; display: block; width: auto; min-height: 430px; opacity: 0.44; }
  .gallery-side:hover { opacity: 0.7; }
  .gallery-side img { display: block; }
  .gallery-side span { width: 56px; height: 56px; }
  .gallery-side span svg { width: 40px; height: 40px; }
  .gallery-side-prev span { left: auto; right: 14px; }
  .gallery-side-next span { right: auto; left: 14px; }
  .calculation-form { grid-template-columns: repeat(2, 1fr); }
  .form-field-wide { grid-column: span 2; }
  .form-actions { grid-template-columns: auto 1fr; }
  .site-footer-inner { grid-template-columns: auto 1fr; align-items: start; gap: 32px; }
  .site-footer-legal { justify-content: flex-end; }
}

@media (min-width: 680px) and (max-width: 899px) {
  /* Two-column price-overview is narrower than the base clamp assumes in this band -
     without this, the max font size wraps "от 592 999 ₽" mid-number. */
  .price-value { font-size: clamp(26px, 5.5vw, 34px); }
}

@media (min-width: 960px) {
  :root { --page-gutter: 48px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 76px; }
  .brand { justify-self: start; }
  .brand img { width: 112px; }
  .menu-button { display: none; }
  .primary-navigation { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; justify-self: center; gap: 8px 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .primary-navigation a { padding: 7px 0; border: 0; font-size: 16px; }
  .primary-navigation a:hover { background: transparent; color: var(--accent); }
  .header-contact { justify-self: end; }
  .header-contact .header-phone { font-size: 17px; }
  .hero { padding: 50px 0 40px; }
  #crops { padding-top: 56px; }
  .hero > .hero-layout { grid-template-areas: "copy media" "proofs proofs"; grid-template-columns: 0.82fr 1.18fr; column-gap: 58px; row-gap: 40px; align-items: center; }
  .hero-proof-list li { min-height: 76px; padding: 12px 22px; }
  /* Text column narrows to ~330-357px right after this 2-column switch (960-1335px) -
     the 40px desktop heading size wraps to 4 lines here, so it steps down and ramps
     back up to the confirmed 40px/37px once the column reaches its max width at 1336px */
  h1 { font-size: clamp(28px, calc(30px + (100vw - 960px) * 0.0266), 40px); }
  h2 { font-size: clamp(26px, calc(28px + (100vw - 960px) * 0.0239), 37px); }
  .hero-copy { align-self: center; padding-bottom: 0; }
  .hero-actions .text-action { margin-left: auto; }
  .process-video-row { grid-template-columns: 1.18fr 0.82fr; }
  .customer-case-layout { grid-template-columns: 0.82fr 1.18fr; gap: 58px; align-items: center; }
  .equipment-accordion-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .equipment-accordion .node-proof { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .equipment-accordion .node-proof-media { width: 100%; height: auto; min-height: 0; aspect-ratio: 8 / 5; }
  .equipment-accordion .node-proof > div { align-self: stretch; padding: 16px; }
  .equipment-accordion .node-proof h3 { font-size: 16px; }
  .equipment-accordion .node-proof p { font-size: 13px; line-height: 1.4; }
  .node-proof-row { grid-template-columns: repeat(4, 1fr); }
  .process-video-row .hero-copy { padding: 24px; }
  .role-card-media img, .role-card-media-duo img { height: 230px; }
  .role-card-body { padding: 24px; }
  .crop-photo { height: 230px; }
  .price-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-summary { padding: 42px 38px 36px; }
  .media-gallery, .gallery-main, .gallery-main img, .gallery-side { min-height: 560px; }
  .factor-grid { grid-template-columns: repeat(4, 1fr); }
  .factor-grid.price-factor-grid { grid-template-columns: repeat(4, 1fr); }
  .production-facts { grid-template-columns: repeat(3, 1fr); }
  .calculation-layout { grid-template-columns: 0.68fr 1.32fr; gap: 70px; }
  .contacts-layout { grid-template-columns: 0.7fr 1.3fr; gap: 58px; }
  .contacts-map { min-height: calc(320px + (var(--space-section) * 2)); margin-block: calc(var(--space-section) * -1); }
  .calculation-heading { margin: 0; }
}

@media (max-width: 479px) {
  .hero { padding-bottom: 36px; }
  .hero > .hero-layout { gap: 24px; }
  .hero-proof-list { margin-top: 12px; }
  .hero-proof-list li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 9px 14px; }
  .hero-proof-icon { width: 34px; height: 34px; }
  .hero-proof-icon svg { width: 32px; height: 32px; }
  .hero-proof-copy strong { font-size: 16px; }
  .hero-proof-copy small { font-size: 13px; }
  .node-proof-media span { opacity: 1; transform: none; }
  .node-lightbox { padding: 8px; }
  .node-lightbox figure { max-height: calc(100dvh - 18px); }
  .node-lightbox-media img { max-height: 54dvh; }
  .node-lightbox figcaption { padding: 18px 20px 22px; }
}

/* Page shell hits its max width (--page-width: 1240px) at this viewport, so the hero
   text column stops growing here too - lock the heading at its confirmed desktop size
   instead of letting the vw-based ramp above keep scaling past the column's real width */
@media (min-width: 1336px) {
  h1 { font-size: 40px; }
  h2 { font-size: 37px; }
}

@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; }
  video.hero-video { display: none; }
  .hero-media { background: url("./assets/images/process-proof-video-poster.jpg") center / cover no-repeat; }
}
