:root {
  color-scheme: dark;
  --bg: #141518;
  --line: #393b40;
  --muted: #b3b5b9;
  --ink: #f2f1ec;
  --accent: #ffbb63;
  --wrap: min(100% - 7rem, 1312px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 "Inter", "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: var(--wrap); margin-left: auto; margin-right: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; padding: .75rem; background: #fff; color: #171719; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 4; background: #141518f5; border-bottom: 1px solid var(--line); }
html { scroll-padding-top: 79px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.header-inner, .footer-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: .85rem; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.brand b { color: var(--accent); }
.mark { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; }
.mark i { width: 13px; height: 13px; border: 1px solid var(--accent); border-radius: 50%; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); color: var(--muted); font-size: .9rem; }
nav a:hover, .footer a:hover { color: var(--accent); }
.header-cta { border: 1px solid #77716a; padding: .62rem 1rem; font-size: .88rem; white-space: nowrap; }
.header-cta:hover { background: var(--accent); color: #1c160d; border-color: var(--accent); }
.intro { position: relative; isolation: isolate; display: grid; border-bottom: 1px solid var(--line); }
.intro-grid, .scene { grid-area: 1 / 1; }
.intro-grid { position: relative; z-index: 1; pointer-events: none; }
.intro-panel { display: flex; align-items: center; min-height: 67vh; min-height: 67svh; padding-block: 3.5rem 7rem; }
.intro-panel > div { min-width: 0; max-width: min(45vw, 43rem); pointer-events: auto; }
.hero { min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.15rem; color: var(--accent); text-transform: uppercase; letter-spacing: .115em; font-size: .81rem; font-weight: 750; }
.eyebrow > span { width: 19px; height: 1px; background: currentColor; flex-shrink: 0; }
h1, h2, h3 { margin: 0; line-height: 1.04; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 4.35vw, 4.75rem); letter-spacing: -.064em; text-wrap: balance; }
h1 em { display: block; color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2.4rem, 4.8vw, 4.5rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.036em; }
p { margin: 1.2rem 0 0; }
.intro-panel p:not(.eyebrow), .section p:not(.eyebrow) { max-width: 39ch; }
.intro-panel p:not(.eyebrow) { color: var(--muted); }
.hero-terms { display: flex; align-items: baseline; gap: .65rem; }
.hero-terms strong { color: var(--ink); font-size: 1.3rem; white-space: nowrap; }
.hero-copy { font-size: clamp(1rem, 1.45vw, 1.18rem); }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; margin-top: 1.8rem; padding: .76rem 1.25rem; background: var(--accent); color: #22170d; border: 1px solid transparent; border-radius: 2px; font-weight: 750; cursor: pointer; }
.button:hover { background: #ffd191; }
.button:focus-visible { outline-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.35rem; margin-top: 1.8rem; }
.hero-actions .button { margin: 0; }
.secondary-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; }
.secondary-link:hover { color: var(--accent); }
.scene { position: sticky; top: 0; align-self: start; margin: 0; min-width: 0; height: 100vh; height: 100svh; pointer-events: none; }
.scene-frame { position: absolute; inset: 0; overflow: hidden; background: #111214; }
.scene-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #111214 0%, #111214f7 15%, #111214bd 32%, #11121419 55%, transparent 66%); }
.camera { position: absolute; width: min(84%, 148vh); width: min(84%, 148svh); aspect-ratio: var(--hero-ratio, 1.5); right: 0; top: 49%; transform: translateY(-50%) scale(var(--scale, 1)); transform-origin: 75% 50%; }
.pipe { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.pipe.dirty { background-image: url(assets/hero-coated.webp); }
.pipe.clean { display: none; background-image: url(assets/hero-clean.webp); }
.camera { mask-image: linear-gradient(90deg, transparent, black 13%, black 97%, transparent), linear-gradient(0deg, transparent, black 10%, black 90%, transparent); mask-composite: intersect; }
.scene.is-animated .clean {
  display: block;
  -webkit-clip-path: inset(0 var(--clip-right, 100%) 0 0);
  clip-path: inset(0 var(--clip-right, 100%) 0 0);
}
@supports (mask-image: linear-gradient(black, transparent)) or (-webkit-mask-image: linear-gradient(black, transparent)) {
  .scene.is-animated .clean {
    -webkit-clip-path: none;
    clip-path: none;
    -webkit-mask-image: linear-gradient(to right, black var(--cleared, -5%), transparent var(--edge, 0%));
    mask-image: linear-gradient(to right, black var(--cleared, -5%), transparent var(--edge, 0%));
  }
}
.rim-light {
  position: absolute;
  left: 57.2%;
  top: 4.3%;
  width: 39.4%;
  height: 85.2%;
  border-radius: 50%;
  opacity: var(--rim-opacity, 0);
  background: conic-gradient(from var(--rim-angle, 0deg), transparent 2%, #e6f2ffb0 12%, #ffeaca 16%, transparent 26%);
  -webkit-mask-image: radial-gradient(ellipse closest-side, transparent 95%, black 97.5%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, transparent 95%, black 97.5%, transparent 100%);
  mix-blend-mode: screen;
}
.scene-caption { position: absolute; right: max(1rem, calc((100% - 1312px) / 2)); bottom: clamp(1.5rem, 6vh, 4rem); z-index: 1; width: min(12rem, 30%); color: #ccc; font-size: .75rem; }
.track { display: none; height: 2px; background: #5c5d5e; margin-top: .5rem; }
.scene.is-animated .track { display: block; }
.track span { display: block; height: 100%; transform: scaleX(var(--progress, 0)); transform-origin: left center; background: var(--accent); }
.intro-panel { scroll-margin-top: 1rem; }
.intro-panel p:not(.eyebrow), .intake dd { color: #d6d7d7; }
.hero > div { animation: enter .65s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
.intake { margin: 1.6rem 0 0; }
.intake > div { display: grid; grid-template-columns: minmax(6rem, 25%) 1fr; gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.intake dt { font-weight: 740; }
.intake dd { margin: 0; color: var(--muted); }
.section { padding-block: clamp(3.6rem, 8vw, 7.5rem); scroll-margin-top: 1rem; }
.section-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: clamp(2rem, 6vw, 7rem); }
.result, .logistics { background: #eeece6; color: #191a1c; color-scheme: light; }
.result .eyebrow, .logistics .eyebrow { color: #765329; }
.equipment { background: #1b1c1f; }
.equipment .section-grid { align-items: center; }
.machine-media { margin: 0; padding: clamp(1.25rem, 3vw, 3rem); background: #24262a; border-left: 2px solid var(--accent); }
.machine-media .secondary-link { gap: .45rem; margin-top: 1rem; color: var(--accent); }
.machine-media :is(img, video) { display: block; width: 100%; height: auto; }
.machine-media figcaption { margin-top: .65rem; font-size: .8rem; color: var(--muted); }
.result-heading { display: flex; gap: 2rem; justify-content: space-between; align-items: end; margin-bottom: clamp(1.5rem, 4vw, 3.5rem); }
.result-heading h2 { max-width: 12ch; }
.result-heading p { color: #454440; margin: 0; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2px; row-gap: .75rem; margin: 0; }
.comparison img { display: block; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.comparison span { display: block; margin: .6rem 0 0 clamp(1rem, 3vw, 3rem); font-size: clamp(.95rem, 1.6vw, 1.3rem); font-weight: 650; }
.comparison figcaption { grid-column: 1 / -1; margin-inline: clamp(1rem, 3vw, 3rem); color: #5a5852; font-size: .8rem; }
.pricing { background: #222326; }
.factors { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.logistics .factors, .logistics li { border-color: #bdbab0; }
.factors ul { list-style: none; padding: 0; margin: 1.15rem 0 0; }
.factors li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.contacts { background: #eee9dd; color: #1a1a19; color-scheme: light; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 7vw, 7rem); }
.contact-intro .eyebrow { color: #785020; }
.contact-intro > p:not(.eyebrow) { color: #514b42; }
.hero-phone { white-space: nowrap; }
.contact-list { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 84px; padding: .85rem clamp(.9rem, 2.65vw, 1.65rem); border: 1px solid #9a9181; background: #f8f4e9; }
.contact-list .contact-primary { color: #fff; background: #222326; border-color: #222326; }
.contact-list a:hover { color: #22170d; background: var(--accent); border-color: #785020; }
.contact-label { display: block; font-size: .83rem; margin-bottom: .15rem; }
.contact-list strong { display: block; font-size: clamp(1.1rem, 2.25vw, 1.65rem); overflow-wrap: anywhere; }
.contact-arrow { font-size: 1.35rem; }
.contact-avito { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; margin-top: .45rem; text-decoration: underline; text-underline-offset: .2em; }
.mobile-contact { display: none; }
.service-questions { border-top: 1px solid var(--line); }
.service-answers > div { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.service-answers p { margin-top: .55rem; color: var(--muted); }
.footer { border-top: 1px solid var(--line); }
.footer p { margin: 0; color: var(--muted); }
@media (max-width: 1020px) {
  :root { --wrap: calc(100% - 3.5rem); }
}
@media (max-width: 900px) {
  nav { display: none; }
}
@media (max-width: 760px) {
  :root { --wrap: calc(100% - 2rem); }
  .header-inner { min-height: 60px; gap: .5rem; }
  .header-cta { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .65rem; }
  html { scroll-padding-top: 61px; }
  .intro-panel > div { max-width: 34rem; }
  .intro-panel { min-height: 90vh; min-height: 90svh; align-items: end; padding-block: min(41vh, 70vw) 2.4rem; padding-block: min(41svh, 70vw) 2.4rem; }
  .hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); }
  h1 { font-size: clamp(2.5rem, 8.8vw, 4rem); }
  .camera { width: min(100%, 78vh); width: min(100%, 78svh); top: 60px; right: 0; transform: scale(var(--scale, 1)); }
  .scene-frame::after { background: linear-gradient(0deg, #111214 0, #111214ed 48%, transparent 72%); }
  .scene-caption { top: 70px; bottom: auto; left: 1rem; width: 7.8rem; font-size: .68rem; }
  .hero-terms { flex-wrap: wrap; }
  .hero-actions { margin-top: 1rem; }
  .result-heading { display: block; }
  .result-heading p { margin-top: 1rem; }
  .section-grid, .contact-panel, .comparison { grid-template-columns: minmax(0, 1fr); }
  .comparison { row-gap: 1.3rem; }
  .comparison figcaption { margin-top: -.7rem; }
  .mobile-contact:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; position: fixed; z-index: 3; right: 1rem; bottom: 1rem; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); min-height: 48px; padding: .65rem 1.1rem; background: #ffbb63; color: #20170e; font-weight: 750; border-radius: 3px; box-shadow: 0 .25rem 1rem #1116; }
  body.has-mobile-contact .header-cta, body.at-contacts .header-cta { visibility: hidden; }
  a { scroll-margin-bottom: 4.5rem; }

  .footer-inner { padding-block: 1rem; flex-wrap: wrap; gap: .75rem 1rem; }
  .footer p { order: 3; width: 100%; }
}
@media (max-width: 360px) {
  .header-inner .brand { gap: .4rem; font-size: .75rem; letter-spacing: .05em; }
  .intake > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  h1 { font-size: clamp(1.9rem, 10vw, 2.25rem); }
}
@media (orientation: landscape) and (max-height: 540px) {
  .intro-panel { padding-block: 2rem 3rem; }
  .intro-panel > div { max-width: 56%; }
  .camera { width: min(67%, 128vh); top: 50%; transform: translateY(-50%) scale(var(--scale, 1)); }
  .scene-caption { top: auto; bottom: 1rem; left: auto; right: 1rem; }
  .scene-frame::after { background: linear-gradient(90deg, #111214 8%, #111214dc 34%, #11121477 56%, transparent 76%); }
  h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero > div { animation: none; }
  .camera { --scale: 1 !important; }
  .scene.is-animated .clean, .rim-light, .scene.is-animated .track { display: none; }
}
