:root {
  color-scheme: dark;
  --bg: #10161d;
  --panel: #192129;
  --field: #212a32;
  --text: #f5f7fa;
  --muted: #d3d9e1;
  --outline: #515c67;
  --outline-soft: #3b4650;
  --accent: #ff681c;
  --accent-hover: #ff8649;
  --on-accent: #1b1008;
  --error: #ffb7ab;
  --success: #a8e6bc;
  --radius: 16px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f7;
  --panel: #fff;
  --field: #f5f7f9;
  --text: #172029;
  --muted: #475562;
  --outline: #7d8894;
  --outline-soft: #c5ccd3;
  --accent: #ce4800;
  --accent-hover: #ad3c00;
  --on-accent: #fff;
  --error: #a32418;
  --success: #17663d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 60% 18%, #57637515, transparent 55%), var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 Inter, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 750; letter-spacing: -.028em; }
h2 { font-size: clamp(1.65rem, 3.25vw, 2.42rem); }
button, select, input { font: inherit; }
section[id], h2[id] { scroll-margin-top: 26px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(100% - 64px, 1250px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; transform: translateY(-180%); padding: 12px; background: var(--panel); border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-intro { display: none; }
.draft-banner { position: sticky; top: 0; z-index: 6; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 22px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--outline); color: var(--text); font-size: .9rem; }
.draft-banner a { color: var(--accent); text-decoration: underline; }
.draft-banner ~ .site-intro { display: none; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header { min-height: 82px; border-bottom: 1px solid var(--outline-soft); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; line-height: 1; }
.brand img { flex: 0 0 auto; }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 2.05rem; font-weight: 850; letter-spacing: -.04em; }
.brand small { margin-top: 4px; font-size: .56rem; font-weight: 700; letter-spacing: .28em; color: var(--muted); }
.nav, .header-actions { display: flex; align-items: center; }
.nav { gap: clamp(20px, 4vw, 54px); font-weight: 600; white-space: nowrap; }
.nav a:hover, .grades a:hover { color: var(--accent); }
.header-actions { gap: clamp(12px, 2.7vw, 32px); }

.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 10px 22px; border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-weight: 750; line-height: 1.2;
  text-align: center; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s;
}
.button:hover { background: var(--accent-hover); }
.button:disabled { cursor: wait; opacity: .75; }
.button-small { min-height: 44px; }
.button-outline { background: transparent; color: var(--text); border-color: var(--outline); }
.button-outline:hover { background: var(--panel); border-color: var(--accent); color: var(--accent); }
.theme {
  display: flex; flex: 0 0 auto; align-items: center; gap: 2px; height: 38px; padding: 2px;
  border: 1px solid var(--outline); border-radius: 30px; background: transparent; color: var(--muted); cursor: pointer;
}
.theme span { display: grid; width: 36px; height: 32px; place-items: center; border-radius: 25px; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .moon, [data-theme="light"] .sun { background: var(--field); color: var(--text); }

.hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 66px); align-items: center; margin-block: 30px; }
.hero-copy { padding-block: 8px; }
.location { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; font-size: 1rem; font-weight: 550; }
.location svg { flex: 0 0 23px; width: 23px; height: 23px; color: var(--accent); }
.hero h1 { font-size: clamp(2.15rem, 3.9vw, 3.48rem); letter-spacing: -.044em; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-description { margin-top: 13px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.29rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 27px; }
.grades {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  width: min(100%, 338px); margin-top: 24px; padding: 3px;
  border: 1px solid var(--outline-soft); border-radius: 12px; background: var(--panel); color: var(--muted);
  --grade-start: 0; --grade-width: .2941; --grade-opacity: 0;
}
.grades[data-selected="summer"], .grades[data-selected="midseason"], .grades[data-selected="winter"] { --grade-opacity: 1; }
.grades[data-selected="midseason"] { --grade-start: .2941; --grade-width: .4118; }
.grades[data-selected="winter"] { --grade-start: .7059; }
.grades::before {
  content: ""; position: absolute; z-index: -1; inset-block: 3px;
  left: calc(3px + (100% - 6px) * var(--grade-start)); width: calc((100% - 6px) * var(--grade-width));
  border: 1px solid var(--accent); border-radius: 8px; background: var(--field); opacity: var(--grade-opacity);
}
.grades a { padding: 7px 4px; border-radius: 8px; font-size: .94rem; text-align: center; white-space: nowrap; }
.grades a[aria-current="true"] { color: var(--text); font-weight: 700; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: 20px; background: var(--panel); }

.panel { background: linear-gradient(130deg, #ffffff03, transparent 75%), var(--panel); border: 1px solid var(--outline); border-radius: var(--radius); }
.quote { padding: 19px 26px 17px; }
.quote h2 { margin-bottom: 15px; font-size: clamp(1.65rem, 3vw, 2.13rem); }
.form-grid { display: grid; align-items: end; gap: 13px; grid-template-columns: .95fr .86fr 1.35fr 1.1fr max-content; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; font-weight: 600; min-width: 0; }
.form-grid input, .form-grid select {
  display: block; width: 100%; min-width: 0; min-height: 46px; padding: 9px 13px;
  border: 1px solid var(--outline); background: var(--field); color: var(--text); border-radius: 9px;
  font-size: 1rem; font-weight: 400;
}
.form-grid input::placeholder { color: var(--muted); opacity: .88; }
.form-grid input[name="volume"] { appearance: textfield; }
.form-grid input::-webkit-inner-spin-button, .form-grid input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 17px; width: 8px; height: 8px; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.form-grid select { appearance: none; padding-right: 35px; }
.form-grid .submit { min-height: 46px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.quote-hint, .form-status { margin-top: 11px; font-size: .9rem; color: var(--muted); }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="success"]::before {
  content: ""; display: inline-block; width: 7px; height: 11px; margin: 0 9px 2px 3px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); vertical-align: -1px;
}

.services, .process { margin-top: 34px; }
.services h2, .process h2 { margin-bottom: 20px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { overflow: clip; }
.service img { width: 100%; height: auto; aspect-ratio: 1.74; object-fit: cover; background: var(--field); }
.service-copy { padding: 12px 21px 17px; }
.service h3 { margin-bottom: 6px; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.service p, .steps p { color: var(--muted); line-height: 1.35; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 15px; padding-inline: clamp(16px, 3.2vw, 46px) 10px; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--outline); }
.steps svg { flex: 0 0 44px; width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { font-size: 1.24rem; margin-bottom: 3px; }
.steps p { font-size: .93rem; }

.coverage { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 230px; margin-top: 35px; }
.coverage-copy { position: relative; padding: 30px 31px; }
.coverage h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
.coverage p { color: var(--muted); margin-top: 8px; font-size: clamp(1.05rem, 2vw, 1.31rem); }
.coverage .button { margin-top: 21px; }
.coverage .map { position: absolute; z-index: -1; inset: 0 0 0 auto; height: 100%; width: 64%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 18%, #000); }
[data-theme="light"] .coverage .map { filter: grayscale(1) invert(1); opacity: .48; }

.footer { min-height: 81px; margin-top: 24px; padding-block: 15px; border-top: 1px solid var(--outline-soft); }
.footer .brand strong { font-size: 1.66rem; }
.footer .brand small { font-size: .46rem; }
.footer .nav { gap: clamp(18px, 3.3vw, 42px); font-size: .92rem; }
.footer p { color: var(--muted); font-size: .9rem; text-align: right; }
.footer-phone:not([hidden]) { display: block; margin-bottom: 3px; color: var(--text); font-size: 1rem; font-weight: 700; }
.footer-phone:hover { color: var(--accent); }
[data-content] { overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 20px; }
  .hero h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
  .button { padding-inline: 16px; }
  .form-grid { gap: 10px; }
  .form-grid input, .form-grid select { font-size: .93rem; }
}

@media (max-width: 900px) {
  .brand img { width: 43px; height: 43px; }
  .brand strong { font-size: 1.65rem; }
  .brand small { font-size: .46rem; }
  .header { gap: 14px; }
  .header .nav { font-size: .9rem; gap: 16px; }
  .theme span { width: 30px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .submit { justify-self: start; }
  .service-copy { padding-inline: 14px; }
}

@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header { min-height: 0; padding-block: 14px 10px; flex-wrap: wrap; gap: 12px; }
  .header .brand img { width: 38px; height: 38px; }
  .header .brand strong { font-size: 1.48rem; }
  .header .brand small { font-size: .42rem; }
  .header .nav { order: 1; flex: 0 0 100%; justify-content: space-between; padding-block: 4px 2px; }
  .header-actions { gap: 8px; }
  .header .button { min-height: 39px; padding-inline: 8px; font-size: .82rem; }
  .theme { width: 38px; height: 38px; justify-content: center; }
  .theme span { width: 31px; }
  [data-theme="dark"] .theme .sun, [data-theme="light"] .theme .moon { display: none; }
  .hero { grid-template-columns: 1fr; gap: 19px; margin-block: 22px; }
  .hero h1 { font-size: clamp(2.18rem, 7.1vw, 3rem); }
  .hero-description { margin-top: 12px; }
  .hero-actions { margin-top: 20px; gap: 9px; }
  .hero-actions .button { flex: 1 1 auto; padding-inline: 10px; font-size: .89rem; }
  .grades { margin-top: 19px; }
  .hero-photo { border-radius: 14px; }
  .quote { padding: 18px; }
  .form-grid { gap: 12px 9px; }
  .form-grid label:has([name="address"]), .form-grid label:has([name="phone"]), .form-grid .submit { grid-column: 1 / -1; }
  .form-grid .submit { justify-self: stretch; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-copy { padding: 14px 16px 16px; }
  .steps { grid-template-columns: 1fr; gap: 13px; }
  .steps li { min-height: 63px; padding: 0; }
  .steps li + li { padding-top: 12px; border-left: 0; border-top: 1px solid var(--outline-soft); }
  .coverage { flex-direction: column; align-items: stretch; min-height: 0; }
  .coverage-copy { padding: 20px; order: -1; }
  .coverage .map { position: static; margin-top: -25px; width: 100%; height: auto; min-height: 124px; mask-image: linear-gradient(180deg, transparent, #000 24%); }
  .footer { flex-wrap: wrap; gap: 13px; }
  .footer .nav { flex: 0 0 100%; gap: 20px; }
  .footer p { text-align: left; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  .brand { gap: 6px; }
  .header .brand img { width: 35px; height: 35px; }
  .header .brand strong { font-size: 1.32rem; }
  .header .brand small { font-size: .37rem; }
  .header-actions { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-intro {
    position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; pointer-events: none;
    background: radial-gradient(ellipse at center, #212a32, #10161d 62%);
    color: #f5f7fa; animation: intro-exit .28s .64s ease-in both;
  }
  .intro-content { width: min(calc(100% - 64px), 265px); }
  .intro-brand {
    display: flex; justify-content: center; gap: 12px;
    animation: enter .42s cubic-bezier(.2, .65, .25, 1) both;
  }
  .intro-brand img { width: 58px; height: 58px; }
  .intro-brand strong { font-size: clamp(1.8rem, 8vw, 2.32rem); }
  .intro-brand small { font-size: .58rem; color: #d3d9e1; }
  .intro-track { height: 3px; margin-top: 24px; overflow: hidden; border-radius: 4px; background: #44515c; }
  .intro-track::before {
    content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: #ff681c;
    transform-origin: left; animation: intro-fill .60s cubic-bezier(.24, .72, .24, 1) both;
  }
  .hero-copy { animation: enter .56s .56s cubic-bezier(.2, .65, .25, 1) both; }
  .hero-photo { animation: hero-image .70s .49s cubic-bezier(.2, .65, .25, 1) both; }
  .hero h1 em { animation: enter .50s .66s cubic-bezier(.2, .65, .25, 1) both; }
  .grades::before { transition: left .29s cubic-bezier(.18, .76, .26, 1), width .29s cubic-bezier(.18, .76, .26, 1), opacity .16s; }
  .has-revealed { animation: enter .48s var(--stagger, 0s) cubic-bezier(.2, .65, .25, 1) both; }
  .service:nth-child(2), .steps li:nth-child(2) { --stagger: .07s; }
  .service:nth-child(3), .steps li:nth-child(3) { --stagger: .14s; }
  .form-status[data-state="success"]:not([hidden])::before { animation: check-pop .28s ease-out both; }
  .button { transition: background-color .18s, border-color .18s, color .18s, transform .18s; }
  .button:not(:disabled):active { transform: translateY(1px) scale(.98); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:not(:disabled):hover { transform: translateY(-2px); }
  .button:not(:disabled):active { transform: translateY(1px) scale(.98); }
  .service { transition: border-color .22s ease-out; }
  .service img { transition: scale .36s ease-out; transform-origin: center bottom; }
  .service:hover { border-color: var(--accent); }
  .service:hover img { scale: 1.025; }
}

@keyframes intro-exit {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes intro-fill {
  from { transform: scaleX(.04); }
  to { transform: scaleX(1); }
}

@keyframes enter {
  from { opacity: .3; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image {
  from { opacity: .35; transform: translateY(8px) scale(.986); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes check-pop {
  from { opacity: 0; transform: rotate(45deg) scale(.4); }
  72% { opacity: 1; transform: rotate(45deg) scale(1.14); }
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}
