:root {
  --ink: #102522;
  --muted: #647571;
  --line: #dfe8e5;
  --paper: #ffffff;
  --soft: #f2f7f5;
  --teal: #0f766e;
  --teal-dark: #0a554f;
  --lime: #d9f99d;
  --coral: #ff7358;
  --shadow: 0 22px 60px rgba(19, 60, 54, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfdfc; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 78px; max-width: 1220px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--teal); color: white; border-radius: 12px; }
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 650; }
nav > a:not(.nav-cta) { color: #4c5f5b; }
.nav-cta { padding: 11px 17px; border-radius: 12px; background: var(--ink); color: white; }

.hero {
  min-height: 640px; padding: 84px max(28px, calc((100vw - 1164px) / 2)) 90px;
  display: grid; grid-template-columns: 1.05fr .82fr; align-items: center; gap: 86px;
  background:
    radial-gradient(circle at 82% 8%, rgba(217,249,157,.55), transparent 25%),
    linear-gradient(145deg, #f8fbfa 0%, #eef7f3 100%);
  border-block: 1px solid #e3ece9;
}
.eyebrow, .section-kicker { color: var(--teal); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 30px; height: 2px; background: var(--coral); }
h1 { max-width: 740px; margin: 20px 0 22px; font-size: clamp(46px, 5.3vw, 74px); line-height: .99; letter-spacing: -.065em; }
h1 em { color: var(--teal); font-style: normal; }
.hero-lead { max-width: 620px; color: #4f625e; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin: 32px 0; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; padding: 0 20px; font-weight: 760; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--teal); box-shadow: 0 12px 26px rgba(15,118,110,.2); }
.button-ghost { background: white; border: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 24px; color: #5e706c; font-size: 13px; }
.trust-row b { color: var(--teal); }

.hero-card { position: relative; padding: 22px; border: 1px solid rgba(15,118,110,.14); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(14px); transform: rotate(1.4deg); }
.hero-card::before { content: ""; position: absolute; inset: 15px -18px -18px 18px; border-radius: 24px; border: 1px solid rgba(15,118,110,.18); z-index: -1; }
.mini-window-bar { display: flex; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mini-window-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #cbd8d5; }
.mini-window-bar span:first-child { background: var(--coral); }
.mini-window-bar small { margin-left: auto; color: var(--muted); }
.mini-service { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 20px 0; }
.mini-service > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.mini-service span { color: var(--muted); font-size: 12px; }
.mini-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e0f2ee; color: var(--teal); font-weight: 850; }
.mini-status { padding: 6px 9px; border-radius: 999px; background: #ecfccb; color: #3f6212 !important; font-weight: 750; }
.mini-price { display: flex; flex-direction: column; padding: 22px; border-radius: 18px; background: var(--teal); color: white; }
.mini-price span, .mini-price small { opacity: .75; }
.mini-price strong { margin: 5px 0; font-size: 34px; letter-spacing: -.045em; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.mini-grid div { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 13px; background: var(--soft); }
.mini-grid span, .margin-label span { color: var(--muted); font-size: 11px; }
.positive { color: var(--teal); }
.margin-line { height: 7px; background: #e3eeeb; border-radius: 99px; overflow: hidden; }
.margin-line span { display: block; height: 100%; background: var(--coral); border-radius: inherit; }
.margin-label { display: flex; justify-content: space-between; margin-top: 6px; }

.problem-strip { max-width: 1164px; margin: -38px auto 0; position: relative; display: grid; grid-template-columns: repeat(3,1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 36px rgba(31,76,69,.08); }
.problem-strip article { display: flex; gap: 15px; padding: 26px; }
.problem-strip article + article { border-left: 1px solid var(--line); }
.problem-strip article > span { color: var(--coral); font-weight: 850; font-size: 12px; }
.problem-strip strong { display: block; margin-bottom: 5px; }
.problem-strip p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }

.calculator-section, .how-section { max-width: 1164px; margin: 0 auto; padding: 118px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-heading h2, .closing-section h2 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.05em; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.65; }
.calculator-shell { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(330px,.72fr); align-items: start; gap: 24px; }
.calculator-form { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 10px 35px rgba(31,76,69,.05); }
.form-progress { display: flex; gap: 6px; margin-bottom: 30px; }
.form-progress span { height: 4px; flex: 1; border-radius: 99px; background: var(--teal); }
.form-progress span:nth-child(2) { opacity: .55; } .form-progress span:nth-child(3) { opacity: .25; }
fieldset { padding: 0; margin: 0 0 32px; border: 0; }
fieldset:last-child { margin-bottom: 0; }
legend { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 20px; font-size: 17px; font-weight: 800; }
legend span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #e7f3f0; color: var(--teal); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; color: #344944; font-size: 13px; font-weight: 680; }
.field-wide { grid-column: 1 / -1; }
.field > span small { color: var(--muted); font-weight: 500; }
.field input, .field select { width: 100%; min-height: 48px; border: 1px solid #d5e2de; border-radius: 11px; background: #fbfdfc; padding: 0 13px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.input-unit { position: relative; }
.input-unit input { padding-right: 55px; }
.input-unit i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 12px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; }
.stepper input { text-align: center; border-radius: 0; border-inline: 0; appearance: textfield; }
.stepper button { border: 1px solid #d5e2de; background: #f5f9f7; color: var(--teal); font-size: 20px; cursor: pointer; }
.stepper button:first-child { border-radius: 11px 0 0 11px; } .stepper button:last-child { border-radius: 0 11px 11px 0; }
.range-row { display: grid; grid-template-columns: 1fr 58px; gap: 12px; align-items: center; }
.range-row input { min-height: auto; height: 7px; padding: 0; border: 0; accent-color: var(--teal); }
.range-row output { padding: 9px 8px; border-radius: 9px; background: var(--soft); text-align: center; color: var(--teal); font-weight: 800; }
.field-help { color: var(--muted); font-weight: 450; line-height: 1.45; }

.result-panel { position: sticky; top: 20px; padding: 26px; border-radius: 22px; background: #102c28; color: white; box-shadow: var(--shadow); }
.result-topline { display: flex; justify-content: space-between; align-items: center; font-weight: 750; font-size: 14px; }
.result-badge { padding: 6px 10px; border-radius: 999px; background: var(--lime); color: #365314; font-size: 11px; }
.result-main { display: flex; flex-direction: column; padding: 32px 0 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.result-main > span, .result-main small { color: #adc2bd; font-size: 12px; }
.result-main strong { margin: 6px 0; font-size: 40px; letter-spacing: -.05em; }
.result-breakdown { padding: 18px 0; }
.result-breakdown div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 12px; }
.result-breakdown span { color: #a8bbb7; }
.result-total { margin-top: 8px; padding-top: 14px !important; border-top: 1px dashed rgba(255,255,255,.16); font-size: 14px !important; }
.profit-card { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.08); }
.profit-card > div:first-child { display: flex; justify-content: space-between; }
.profit-card span { color: #b6c7c3; font-size: 12px; }
.profit-card strong { color: var(--lime); }
.profit-chart { display: flex; height: 7px; margin: 14px 0 8px; overflow: hidden; border-radius: 99px; }
.profit-chart span { background: #7ba39b; } .profit-chart i { background: var(--lime); }
.profit-card small { display: flex; gap: 6px; align-items: center; color: #a8bbb7; font-size: 10px; }
.cost-dot, .profit-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #7ba39b; }
.profit-dot { margin-left: 6px; background: var(--lime); }
.variants { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 20px 0; }
.variants > span { grid-column: 1/-1; color: #a8bbb7; font-size: 11px; }
.variants button { display: flex; flex-direction: column; gap: 5px; padding: 10px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: transparent; color: white; cursor: pointer; }
.variants button.selected { border-color: var(--lime); background: rgba(217,249,157,.09); }
.variants small { color: #a8bbb7; font-size: 9px; }
.variants strong { font-size: 12px; }
.button-light { background: white; color: var(--ink); }
.button-full { width: 100%; }
.result-note { margin: 14px 0 0; color: #8fa8a2; text-align: center; font-size: 9px; line-height: 1.5; }

.how-section { padding-top: 34px; }
.section-heading.centered { display: block; max-width: 670px; margin: 0 auto 50px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.steps article { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 36px; border-radius: 14px; background: #e4f2ef; color: var(--teal); font-weight: 850; }
.steps h3 { margin: 0 0 10px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.pro-section { max-width: 1164px; margin: 0 auto 34px; padding: 58px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; border: 1px solid #cee2dc; border-radius: 26px; background: linear-gradient(135deg, #eff8f5, #f8fcef); }
.pro-copy h2 { margin: 9px 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.05em; }
.pro-copy p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.7; }
.pro-copy ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 25px 0 0; padding: 0; list-style: none; color: #38534e; font-size: 13px; font-weight: 700; }
.pro-copy li::before { content: "✓"; margin-right: 7px; color: var(--teal); }
.pro-card { padding: 28px; border-radius: 20px; background: white; box-shadow: 0 16px 45px rgba(19,60,54,.11); }
.pro-card > span { color: var(--teal); text-transform: uppercase; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.pro-price { display: flex; align-items: end; gap: 9px; margin: 8px 0; }
.pro-price strong { font-size: 42px; line-height: 1; letter-spacing: -.055em; }
.pro-price small { padding-bottom: 4px; color: var(--muted); }
.pro-card p { margin: 17px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.pro-contact { display: block; margin-top: 11px; color: var(--muted); text-align: center; font-size: 9px; }
.closing-section { max-width: 1164px; margin: 20px auto 90px; padding: 54px; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-radius: 26px; background: var(--teal); color: white; }
.section-kicker.light { color: var(--lime); }
.button-white { flex: 0 0 auto; background: white; color: var(--teal-dark); }
footer { max-width: 1164px; margin: 0 auto; padding: 26px 0 38px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; }

dialog { width: min(940px, calc(100% - 24px)); max-height: 94vh; padding: 0; border: 0; border-radius: 20px; background: #eef3f1; box-shadow: 0 30px 100px rgba(3,29,25,.3); }
dialog::backdrop { background: rgba(7,27,24,.72); backdrop-filter: blur(4px); }
.dialog-toolbar { position: sticky; top: 0; z-index: 2; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #102c28; color: white; }
.dialog-toolbar > div { display: flex; gap: 10px; align-items: center; }
.dialog-toolbar > div:first-child { align-items: start; flex-direction: column; gap: 2px; }
.dialog-toolbar span { color: #a8bbb7; font-size: 11px; }
.dialog-toolbar button:not(.button) { border: 0; background: transparent; color: white; cursor: pointer; }
.offer-sheet { width: 760px; min-height: 980px; margin: 28px auto; padding: 55px; background: white; color: #1a2c29; box-shadow: 0 12px 40px rgba(23,61,55,.12); }
.offer-header { max-width: none; margin: 0; padding: 0 0 28px; border-bottom: 2px solid #173b35; font-size: 12px; }
.offer-header div { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.offer-logo { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--teal); color: white; }
.offer-title { padding: 42px 0 28px; }
.offer-title > span { color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.offer-title h2 { margin: 10px 0; font-size: 38px; letter-spacing: -.04em; }
.offer-title p { margin: 0; color: var(--muted); }
.offer-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 35px; }
.offer-details div { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--soft); }
.offer-details span, .offer-price-box span { color: var(--muted); font-size: 11px; }
.offer-scope { padding: 0 0 30px; }
.offer-scope h3 { margin: 0 0 14px; font-size: 16px; }
.offer-scope ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.offer-scope li::before { content: "✓"; margin-right: 10px; color: var(--teal); font-weight: 850; }
.offer-scope li { color: #52635f; font-size: 13px; }
.offer-price-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.offer-price-box div { display: flex; justify-content: space-between; padding: 17px 20px; }
.offer-price-box div:nth-child(2) { border-left: 1px solid var(--line); }
.offer-price-box .offer-gross { grid-column: 1/-1; padding: 22px 20px; background: var(--teal); color: white; }
.offer-gross span { color: #cfebe6; }
.offer-gross strong { font-size: 22px; }
.offer-validity { margin: 24px 0 70px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.offer-footer { max-width: none; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

@media (max-width: 900px) {
  nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 55px; padding-block: 66px 95px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .trust-row { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-card { width: min(480px,100%); margin: auto; transform: none; }
  .problem-strip { margin-inline: 20px; grid-template-columns: 1fr; }
  .problem-strip article + article { border-left: 0; border-top: 1px solid var(--line); }
  .calculator-section, .how-section { padding-inline: 20px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 15px; }
  .calculator-shell { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .steps { grid-template-columns: 1fr; }
  .pro-section { margin-inline: 20px; grid-template-columns: 1fr; gap: 35px; }
  .closing-section { margin-inline: 20px; align-items: start; flex-direction: column; }
  body > footer { margin-inline: 20px; }
}

@media (max-width: 580px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  nav { display: none; }
  .hero { padding-inline: 20px; padding-top: 54px; }
  h1 { font-size: 45px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .trust-row { display: grid; text-align: left; }
  .problem-strip { margin-top: -46px; }
  .calculator-section { padding-top: 90px; }
  .calculator-form, .result-panel { padding: 20px; border-radius: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .result-main strong { font-size: 36px; }
  .variants { grid-template-columns: 1fr; }
  .variants > span { grid-column: auto; }
  .variants button { flex-direction: row; justify-content: space-between; padding: 12px; }
  .closing-section { padding: 34px 25px; }
  .pro-section { padding: 34px 25px; }
  .pro-copy ul { display: grid; }
  .closing-section h2 { font-size: 34px; }
  body > footer { align-items: start; flex-direction: column; gap: 14px; }
  .dialog-toolbar { align-items: start; flex-direction: column; }
  .offer-sheet { width: 760px; transform-origin: top left; }
  dialog { overflow: auto; }
}

@media print {
  body > *:not(dialog), .no-print { display: none !important; }
  dialog, dialog[open] { display: block; position: static; width: auto; max-height: none; padding: 0; background: white; box-shadow: none; }
  .offer-sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  @page { size: A4; margin: 15mm; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
