:root {
  color-scheme: light;
  --ink: #14251d;
  --forest: #102a20;
  --deep: #0d231b;
  --green: #255a3c;
  --lime: #d4f378;
  --lime-hover: #e3fa9c;
  --muted: #506056;
  --line: #d5dfd5;
  --paper: #f6f8f3;
  --white: #fff;
  --radius: 16px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.055em; }
h3 { font-size: 1.25rem; letter-spacing: -.025em; }
em { font-style: normal; }
:focus-visible { outline: 3px solid #438751; outline-offset: 3px; }
.hero :focus-visible, .result :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.wrap { width: min(1192px, calc(100% - 72px)); margin-inline: auto; }
.section { padding-block: 76px; }
section[id] { scroll-margin-top: 22px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: absolute; z-index: 3; inset: 8px auto auto 8px; padding: 10px; background: white; }
.site-header { background: var(--white); }
.header-inner, .site-header nav { display: flex; align-items: center; }
.header-inner { min-height: 78px; justify-content: space-between; gap: 22px; }
.site-header nav { gap: clamp(16px, 2.6vw, 36px); }
.site-header nav > a:not(.button) { text-decoration: none; color: #384d41; font-size: .94rem; font-weight: 600; }
.site-header nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.04; font-weight: 800; letter-spacing: .075em; text-decoration: none; font-size: .83rem; }
.brand strong { display: block; font-size: 1.02rem; letter-spacing: .015em; margin-top: 4px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; gap: 3px; background: var(--forest); flex: 0 0 auto; }
.brand-mark i { display: block; width: 4px; height: 17px; border-radius: 2px; background: var(--lime); transform: skewX(-22deg); }
.brand-mark i:first-child { height: 9px; align-self: center; margin-top: 8px; }
.brand-mark i:last-child { height: 23px; margin-top: -5px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 11px 19px; border: 1px solid transparent; border-radius: 8px;
  text-decoration: none; line-height: 1.3; text-align: center; font-weight: 750; font-size: .93rem;
  transition: background-color .15s, border-color .15s;
}
.button-header, .button-outline { color: var(--forest); border-color: #a8b9ab; background: var(--white); }
.button-header:hover, .button-outline:hover { background: #eff5ea; border-color: var(--green); }
.button-lime { color: #172718; background: var(--lime); }
.button-lime:hover { background: var(--lime-hover); }
.button-dark { color: var(--white); background: var(--forest); }
.button-dark:hover { background: var(--green); }
.text-button {
  padding: 5px 0; background: transparent; border: 0; color: #2c6243; font-size: .875rem;
  text-decoration: underline; text-underline-offset: 4px; font-weight: 700;
}
.text-button:hover { color: #173822; }

.hero { background: var(--deep); color: white; position: relative; isolation: isolate; }
.hero-photo {
  position: absolute; inset: 0 0 0 34%; z-index: -1;
  background: linear-gradient(90deg, var(--deep), #0d231b00 42%),
    linear-gradient(0deg, #081d1290, #112b1900 45%),
    #253f32 url("/kas.webp") center 48% / cover no-repeat;
}
.hero-inner { min-height: 515px; display: flex; align-items: center; }
.hero-content { max-width: 675px; padding-block: 58px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; color: #e2edda; font-size: .82rem;
  font-weight: 700; letter-spacing: .105em;
}
.eyebrow span { width: 18px; height: 2px; background: var(--lime); flex: 0 0 auto; }
.hero h1 { font-size: clamp(3rem, 4.8vw, 4.35rem); font-weight: 780; line-height: 1.02; letter-spacing: -.069em; margin: 18px 0 21px; }
.hero h1 em { display: block; color: var(--lime); text-wrap: balance; }
.hero-content > p:not(.eyebrow) { max-width: 465px; color: #e0eae0; font-size: 1.125rem; }
.hero .button { margin-top: 27px; min-height: 50px; padding-inline: 22px; }
.benefits { background: #edf2e8; border-bottom: 1px solid #dfe7da; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { display: flex; align-items: center; gap: 15px; padding: 25px 18px 25px 24px; }
.benefit:first-child { padding-left: 0; }
.benefit + .benefit { border-left: 1px solid #d7e1d4; }
.benefit h2 { font-size: 1rem; letter-spacing: -.018em; margin-bottom: 5px; }
.benefit p { font-size: .875rem; color: var(--muted); }
.benefit-icon {
  align-self: flex-start; background: #dceada; border-radius: 9px; color: #265139; width: 37px; height: 37px;
  display: grid; place-items: center; flex: 0 0 auto; font-size: 1.13rem; font-weight: 750;
}
.benefit-icon.cross { font-size: 1.5rem; }

.section-heading { margin-bottom: 27px; }
.section-heading p, .process-heading p { margin-top: 11px; max-width: 675px; color: var(--muted); font-size: 1.06rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 16px; }
.route {
  display: grid; position: relative; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 83px; padding: 15px 19px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer;
}
.route:has(input:checked) { background: #edf3e4; border-color: #557f50; box-shadow: inset 0 0 0 1px #557f50; }
.route:has(input:focus-visible) { outline: 3px solid #438751; outline-offset: 3px; }
.route:hover { border-color: #557f50; }
.route input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.route strong, .route small { display: block; }
.route strong { font-size: 1.04rem; }
.route small { color: var(--muted); font-size: .875rem; margin-top: 2px; }
.radio-dot { width: 19px; height: 19px; border-radius: 50%; border: 1px solid #869b89; background: white; }
.route input:checked ~ .radio-dot { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 4px #eff6ea; }
.route-icon { position: relative; width: 35px; height: 35px; border-radius: 8px; background: #e2ebdc; color: #38694a; }
.sprout::after, .sprout::before, .building::after, .building::before { content: ""; position: absolute; }
.sprout::before { width: 11px; height: 8px; border: 2px solid; border-radius: 8px 0 8px 0; top: 9px; left: 17px; transform: rotate(-16deg); }
.sprout::after { width: 10px; height: 8px; border: 2px solid; border-radius: 0 7px 0 7px; top: 13px; left: 8px; }
.sprout { background-image: linear-gradient(currentColor, currentColor); background-size: 2px 12px; background-position: center 14px; background-repeat: no-repeat; }
.building::before { width: 19px; height: 15px; border: 2px solid; border-radius: 2px; inset: 10px auto auto 8px; }
.building::after { width: 7px; height: 7px; border: 1px solid; border-bottom: 0; inset: 17px auto auto 14px; }
.calculator, .quote-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 23px 24px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 20px; }
.input-group + .input-group { margin-top: 20px; }
.input-group legend { padding: 0; margin-bottom: 10px; font-size: .97rem; font-weight: 750; }
.ruled { border-top: 1px solid #e3e9e0; padding-top: 17px; }
.grid { display: grid; gap: 13px 12px; min-width: 0; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.extra-fields { margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: .875rem; font-weight: 650; }
.narrow { width: min(100%, 295px); }
.field input, .field select, .field textarea, #quote-text {
  min-width: 0; width: 100%; color: var(--ink); background: white; padding: 9px 10px;
  border: 1px solid #bccabd; border-radius: 7px; font-size: 1rem; font-weight: 450;
}
.field input, .field select { min-height: 45px; }
.field textarea, #quote-text { resize: vertical; }
.field select {
  appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #46624d 50%),
  linear-gradient(135deg, #46624d 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input[aria-invalid=true], .field select[aria-invalid=true] { border-color: #963a29; }
input::placeholder, textarea::placeholder { color: #59695e; opacity: 1; }
.unit-field { display: flex; align-items: stretch; position: relative; border: 1px solid #bccabd; border-radius: 7px; }
.unit-field input { border: 0; background: transparent; min-height: 43px; }
.unit-field:has(input[aria-invalid=true]) { border-color: #963a29; }
.unit-field > span { display: grid; place-items: center; padding-right: 9px; color: #516257; font-weight: 550; white-space: nowrap; }
.help { color: var(--muted); font-size: .875rem; }
.input-group .help { margin-top: 10px; }
.tariff-row { display: flex; gap: 13px; align-items: end; justify-content: space-between; border-top: 1px solid #e3e9e0; margin-top: 17px; padding-top: 17px; }
.error { color: #8b2c1b; background: #fff1ed; border-radius: 7px; padding: 9px 12px; margin-top: 12px; font-size: .925rem; }
.example-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 12px; background: #edf4e6; border-radius: 7px; margin-bottom: 15px; padding: 7px 11px; color: #365443; font-size: .875rem; }

.result { color: #f6f9f1; background: var(--forest); border-color: var(--forest); padding: 23px 24px; }
.result .card-heading { margin-bottom: 17px; }
.result-tag { border-radius: 999px; border: 1px solid #688575; color: #e4efdc; padding: 3px 8px; font-size: .81rem; font-weight: 620; }
.result-message { min-height: 195px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 13px; }
.result-message p { color: #dfeadf; max-width: 32ch; }
.result-visual { height: 42px; width: 65px; display: flex; padding: 6px 5px 4px; border-bottom: 1px solid #87a397; align-items: end; gap: 6px; }
.result-visual i { flex: 1; border-radius: 2px 2px 0 0; background: #78998a; }
.result-visual i:nth-child(1) { height: 45%; }
.result-visual i:nth-child(2) { height: 66%; }
.result-visual i:nth-child(3) { height: 47%; }
.result-visual i:nth-child(4) { height: 90%; background: var(--lime); }
.result-note { color: #e1ece0; padding-top: 14px; border-top: 1px solid #4a6658; margin-top: 17px; font-size: .89rem; }
.method { margin-top: 11px; font-size: .875rem; color: #dfeadf; }
.method summary { cursor: pointer; font-weight: 700; color: #eef7e7; width: fit-content; }
.method p { margin-top: 7px; }
.result-example { margin-bottom: 9px; color: #d6e7d1; font-size: .875rem; }
.result-stat { margin-bottom: 18px; }
.result-stat > span { color: #e6eee6; font-size: .9rem; }
.result-stat > strong { display: block; color: var(--lime); font-size: clamp(1.85rem, 3.7vw, 3rem); line-height: 1.16; letter-spacing: -.055em; overflow-wrap: anywhere; }
.result-stat[data-more=true] > strong { color: #ffd3a4; }
.result-stat p { margin-top: 3px; color: #e4eedc; font-size: .91rem; }
.comparison { margin-top: 11px; }
.comparison-heading { display: flex; justify-content: space-between; gap: 2px 10px; flex-wrap: wrap; font-size: .875rem; }
.track { height: 7px; margin: 4px 0 2px; border-radius: 100px; background: #355245; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: inherit; }
.bar-current { background: #a4bca6; }
.bar-led { background: var(--lime); }
.comparison-cost { color: #cfdfd3; font-size: .875rem; }
.result .button { margin-top: 17px; width: 100%; }

.process { background: #eaf1e7; border-block: 1px solid #dfe7da; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 100px); padding-block: 54px; }
.process h2 { font-size: clamp(1.95rem, 3.4vw, 2.8rem); }
.process-detail p { margin-top: 6px; color: var(--muted); }
.process-detail h3:not(:first-child) { margin-top: 17px; }
.quote-form .card-heading { margin-bottom: 7px; }
.quote-route { font-size: .875rem; font-weight: 700; color: #28553b; background: #edf3e7; border-radius: 999px; padding: 4px 10px; text-underline-offset: 3px; }
.required-note { margin-bottom: 14px; }
.quote-notes { margin-top: 13px; }
.contact-fields { margin-top: 18px; }
.contact-fields h3 { margin-bottom: 12px; }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 17px; }
.quote-preview { background: #eef3eb; }
.quote-preview p { margin-top: 9px; color: var(--muted); }
#quote-calculation { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
#quote-text { margin-top: 12px; display: block; font-size: .91rem; }
.output-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.contact-link { display: inline-block; margin-top: 8px; color: #284f34; font-weight: 700; text-underline-offset: 3px; }
#quote-status:empty { margin: 0; }
.site-footer { background: var(--deep); color: #e4eddf; }
.footer-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.footer-inner p { font-weight: 700; }
.footer-inner a { text-underline-offset: 4px; }

@media (max-width: 1060px) {
  .three-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-photo { left: 27%; background-position: center, center, 55% center; }
}
@media (max-width: 800px) {
  .wrap { width: min(100% - 38px, 640px); }
  .section { padding-block: 50px; }
  .hero-inner { min-height: 455px; }
  .hero-photo { left: 0; background-image: linear-gradient(90deg, #0d231bf7, #0d231b7d 100%), url("/kas.webp"); background-position: center; background-size: cover; }
  .calculator, .quote-grid, .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-grid { gap: 26px; }
  .benefit { padding: 19px 10px; gap: 8px; }
  .benefit-icon { width: 30px; height: 30px; }
  .site-header nav > a:not(.button) { display: none; }
  .result-message { min-height: 115px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 8px; }
  .brand { gap: 8px; font-size: .72rem; }
  .brand strong { font-size: .88rem; white-space: nowrap; }
  .brand-mark { width: 34px; height: 34px; }
  .button-header { font-size: .82rem; padding-inline: 9px; min-height: 41px; }
  .hero-inner { min-height: 435px; }
  .hero-content { padding-block: 43px; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-photo { background-image: linear-gradient(90deg, #0d231bf0, #0d231b9c), url("/kas.webp"); }
  .hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .eyebrow { font-size: .74rem; }
  .benefit-grid { grid-template-columns: 1fr; padding-block: 6px; }
  .benefit, .benefit:first-child { padding: 12px 0; gap: 11px; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid #d7e1d4; }
  .route-grid { grid-template-columns: 1fr; gap: 8px; }
  .route { min-height: 73px; padding: 11px 14px; }
  .card { padding: 17px 15px; }
  .grid { grid-template-columns: 1fr; }
  .tariff-row { flex-direction: column; align-items: stretch; }
  .tariff-row .narrow { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
