:root {
  color-scheme: light;
  --ink: #242b24;
  --muted: #565e53;
  --white: #fffdf8;
  --forest: #253c33;
  --accent: #9c4228;
  --line: #dcd4c6;
  --heading: Manrope, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-anchor: none; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 Inter, Arial, sans-serif; }
img { display: block; inline-size: 100%; block-size: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #386e98; outline-offset: 4px; }
:where(h1, h2, h3, p, ul, dl, dd, figure) { margin: 0; }
:where(h1, h2, h3) { font-family: var(--heading); line-height: 1.1; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; text-wrap: balance; }
[hidden] { display: none !important; }
.counter { position: absolute; inline-size: 1px; block-size: 1px; }
.wrap { width: min(1200px, calc(100% - 100px)); margin-inline: auto; }

.hero {
  --hero-width: min(1580px, calc(100% - 48px));
}
.hero-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; }
.signature { display: flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; }
.monogram { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--forest); color: var(--white); font: 800 19px var(--heading); }
.signature-role { border-left: 1px solid var(--line); padding-left: 12px; margin-left: 4px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.hero-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: .875rem; font-weight: 600; }
.hero-nav a { text-decoration: none; }
.telegram-link { display: inline-flex; gap: 8px; align-items: center; min-height: 43px; padding: 8px 14px; border-radius: 8px; background: #e8ece2; text-decoration: none; font-size: .875rem; font-weight: 700; }
.hero-nav a:hover, .telegram-link:hover, .footer a:hover { text-decoration: underline; }
.hero-scene { position: relative; isolation: isolate; display: grid; align-items: stretch; width: var(--hero-width); margin-inline: auto; min-height: clamp(510px, 47vw, 670px); overflow: hidden; border-radius: 19px; background: #282b27; color: #fffdf8; }
.hero-image, .hero-image img, .hero-scene::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; }
.hero-image img { object-fit: cover; object-position: 58% 24%; }
.hero-scene::after { content: ''; z-index: -1; background: linear-gradient(90deg, rgb(13 20 16 / .84), rgb(13 20 16 / .50) 38%, rgb(13 20 16 / .07) 66%, transparent 82%); pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 30px; padding: clamp(104px, 11vw, 174px) clamp(36px, 6vw, 84px) clamp(30px, 3.5vw, 48px); }
.hero h1 { width: min(11.2em, 55%); font-size: clamp(2.45rem, 4.7vw, 4.5rem); font-weight: 800; line-height: 1.04; }
.hero h1 span { display: block; }
.hero-copy > div { width: 100%; }
.hero .lead { width: min(42ch, 48%); color: #f2f1e8; font-size: clamp(1rem, 1.5vw, 1.25rem); margin-top: 22px; }
.hero :focus-visible { outline-color: #e2b66d; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; border: 1px solid transparent; border-radius: 9px; padding: 12px 19px; text-align: left; font-size: .9375rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.button span { font-size: 1.125rem; flex: none; }
.hero-button { background: #f5d6a4; color: #382c1d; }
.hero-button:hover { background: #ffe5bb; }
.primary { background: var(--forest); color: #fff; }
.primary:hover { background: #182d24; }
.primary:disabled { cursor: wait; opacity: .75; }
.secondary { border-color: #9eae9e; color: var(--forest); }
.secondary:hover { background: #edf0e9; }

.case { padding-block: clamp(52px, 7vw, 104px); }
.case-wrap { max-width: 1110px; }
.case h2 { margin-bottom: clamp(20px, 3vw, 34px); font-size: clamp(1.9rem, 4vw, 3.25rem); text-wrap: initial; }
.case-panel {
  --case-paper: #f3efe2;
  background: var(--case-paper);
  border: 1px solid #e1d9c4;
  border-radius: 12px;
  overflow: hidden;
}
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.case-details { padding: clamp(22px, 4.2vw, 55px); }
.case-label { color: #6d5236; font-size: .82rem; font-weight: 700; margin-bottom: 12px; }
.case-details h3 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.case-context { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 16px; }
.case-context dt { color: var(--muted); font-size: .76rem; }
.case-context dd { font-size: .9rem; font-weight: 700; }
.case-details > p:not(.case-label) { color: var(--muted); max-width: 39ch; }
.case-result { display: grid; gap: 5px; margin-top: clamp(24px, 3.5vw, 41px); }
.case-result strong { font: 800 clamp(2.8rem, 6.6vw, 5.35rem)/1 var(--heading); color: var(--forest); letter-spacing: -.055em; }
.case-result span { color: var(--ink); font-weight: 600; }
.case-figure {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 310px;
  padding: clamp(15px, 3.1vw, 38px);
  background: linear-gradient(90deg, var(--case-paper), transparent 26%),
              linear-gradient(0deg, rgb(31 36 25 / .22), transparent 44%),
              #43493a url("assets/modular-sauna.webp") center/cover no-repeat;
}
.case-screenshot { width: min(65%, 245px); height: auto; border: 1px solid #ded9cb; border-radius: 7px; box-shadow: 0 3px 18px rgb(18 27 18 / .26); }
.case-footer { display: flex; justify-content: flex-end; border-top: 1px solid #daccb5; padding: 14px clamp(22px, 4.2vw, 55px); }
.case-footer .button { gap: 12px; }

.strategy-frame { width: min(1580px, calc(100% - 48px)); margin-inline: auto; border-radius: 19px; background: #edf0e8; }
.invitation-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(26px, 5vw, 80px); padding-block: clamp(43px, 6vw, 82px); }
.invitation-copy h2 { max-width: 13ch; text-wrap: initial; }
.strategy-steps { display: grid; gap: 15px; padding: 0; margin: 24px 0 0; color: var(--muted); list-style: none; counter-reset: strategy; }
.strategy-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.strategy-steps li::before { counter-increment: strategy; content: counter(strategy); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #dbe5d5; color: var(--forest); font-size: .82rem; font-weight: 700; }
.quiz-card { min-width: 0; scroll-margin-top: 18px; overflow-anchor: none; border: 1px solid #e1e6dc; background: var(--white); border-radius: 15px; padding: clamp(20px, 3.2vw, 36px); }
.quiz-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; }
.step-context { color: var(--muted); }
.direct-contact { padding-block: 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.direct-contact h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.direct-contact p { color: var(--muted); margin-top: 6px; }
.footer { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-block: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); align-items: center; }
.footer span { margin-right: auto; }
.footer a { text-decoration: none; }

html:has(dialog[open]) { overflow: hidden; }
dialog { border: 1px solid var(--line); border-radius: 15px; margin: auto; padding: clamp(20px, 4vw, 36px); background: var(--white); color: var(--ink); width: min(560px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(19 30 25 / .68); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-header p { font-weight: 700; color: var(--muted); }
.dialog-header h2 { font-size: 1.6rem; }
.close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e9ece4; color: var(--forest); font-size: 1.5rem; line-height: 1; }
.close:hover { background: #dbe4d9; }
.step-count { font-weight: 700; color: var(--forest); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 22px; }
.meter span { height: 4px; border-radius: 8px; background: #e6e9e0; }
.meter .filled { background: #41634f; }
.quiz-stage { min-height: 270px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font: 800 clamp(1.4rem, 3.1vw, 1.85rem)/1.14 var(--heading); letter-spacing: -.035em; }
legend:focus { outline: none; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.options button { position: relative; min-width: 0; min-height: 62px; border: 1px solid #ccd5c8; border-radius: 9px; padding: 11px 29px 11px 11px; text-align: left; background: #f7f8f3; color: var(--forest); font-weight: 700; line-height: 1.25; }
.options button::after { content: '→' / ''; position: absolute; top: 11px; right: 10px; font-size: .9rem; }
.options button:hover, .options button[aria-pressed="true"] { border-color: #52745d; background: #e7efe3; }
.capacity-options strong { display: block; font: 800 clamp(1.12rem, 3.5vw, 1.45rem)/1.2 var(--heading); letter-spacing: -.035em; }
.capacity-options small { display: block; color: var(--muted); margin-top: 4px; font-size: .76rem; font-weight: 400; }
.field-help { color: var(--muted); margin-top: 9px; font-size: .9rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.text-field { display: grid; gap: 6px; min-width: 0; font-size: .9rem; font-weight: 600; }
.contact-method { display: grid; justify-items: start; gap: 5px; margin-top: 16px; font-size: .86rem; font-weight: 600; }
.contact-channel { padding: 6px 11px; border: 1px solid #9bb29f; border-radius: 7px; background: #edf4ec; color: var(--forest); }
.contact-step .consent { margin-top: 7px; }
.contact-step .consent a { color: var(--forest); white-space: nowrap; }
.contact-step [data-draft] { display: inline-block; margin-bottom: 9px; font-size: .88rem; }
.text-field input { min-width: 0; width: 100%; min-height: 48px; font-size: 1rem; font-weight: 400; border: 1px solid #b1b9ac; border-radius: 7px; padding: 10px 12px; background: white; color: var(--ink); }
.consent input { margin: 0; width: 18px; height: 18px; flex: none; accent-color: var(--forest); }
.consent { display: flex; gap: 9px; min-height: 44px; align-items: flex-start; padding-block: 10px; font-size: .8125rem; color: var(--muted); cursor: pointer; }
.direct-link { color: var(--forest); font-weight: 600; }
.honeypot { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status:empty { display: none; }
.form-status { margin: 4px 0 9px; color: #8d3425; font-size: .85rem; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.quiz-actions .primary { margin-left: auto; min-height: 48px; }
.back { flex: none; white-space: nowrap; min-height: 44px; border: 0; padding: 7px 4px; background: transparent; color: var(--forest); font-weight: 600; }
.back:hover { text-decoration: underline; text-underline-offset: .2em; }
.success { padding-top: 20px; }
.success h2 { font-size: 2rem; }
.success p, .data-dialog p { margin-block: 14px; }
@media (max-width: 940px) {
  .wrap { width: calc(100% - 62px); }
  .hero h1 { width: 57%; }
  .hero .lead { width: min(32ch, 55%); }
}
@media (max-width: 700px) {
  .wrap { width: min(580px, calc(100% - 32px)); }
  .hero { --hero-width: calc(100% - 20px); }
  .hero-header { min-height: 60px; gap: 11px; }
  .signature-role, .hero-nav { display: none; }
  .telegram-link { min-height: 40px; padding-inline: 10px; }
  .hero-scene { border-radius: 14px; min-height: clamp(440px, 108vw, 565px); }
  .hero-image img { left: 12%; object-position: 60% center; }
  .hero-scene::after { background: linear-gradient(90deg, rgb(9 17 12 / .88), rgb(9 17 12 / .56) 46%, rgb(9 17 12 / .03) 86%), linear-gradient(0deg, rgb(9 17 12 / .40), transparent 30%); }
  .hero-copy { justify-content: space-between; gap: 32px; padding: clamp(52px, 14vw, 88px) 18px 21px; }
  .hero h1 { width: min(69%, 11em); font-size: clamp(1.82rem, 6.85vw, 3.2rem); letter-spacing: -.04em; }
  .hero h1 span { font-size: .81em; color: #f7ead4; }
  .hero .lead { width: min(65%, 25ch); font-size: clamp(.9rem, 3.7vw, 1.075rem); line-height: 1.45; margin-top: 15px; }
  .hero-button { min-height: 48px; }
  .case-grid, .invitation-grid { grid-template-columns: 1fr; }
  .case-figure {
    min-height: 230px;
    padding: 14px;
    background: linear-gradient(0deg, rgb(31 36 25 / .28), transparent 55%),
                #43493a url("assets/modular-sauna.webp") center/cover no-repeat;
  }
  .case-footer .button { width: 100%; }
  .strategy-frame { width: calc(100% - 20px); border-radius: 14px; }
  .invitation-grid { width: calc(100% - 24px); gap: 24px; padding-block: 24px; }
  .invitation-copy { padding-inline: 6px; }
  .invitation-copy h2 { max-width: 19ch; }
  .strategy-steps { gap: 10px; margin-top: 18px; }
  .quiz-card { padding: 18px 15px; scroll-margin-top: 10px; }
  .quiz-stage { min-height: 261px; }
  .contact-fields { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .quiz-actions .primary { padding-inline: 12px; gap: 9px; font-size: .875rem; }
  .direct-contact { flex-direction: column; align-items: flex-start; }
  .footer { gap: 10px 20px; }
  .footer span { width: 100%; }
}
@media (min-width: 701px) and (max-width: 950px) {
  .contact-fields { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .quiz-stage { min-height: 282px; }
  .hero h1 { width: 75%; font-size: 1.63rem; }
  .hero .lead { width: 68%; }
  .hero-copy { padding-inline: 15px; }
  .options button { font-size: .9rem; padding-left: 8px; }
  .quiz-actions .button { padding-inline: 12px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
