@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/GolosText-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/GolosText-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2116, U+2122, U+2212; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/Unbounded-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/Unbounded-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2116, U+2122, U+2212; }

:root {
  --ink: #14211f;
  --sub: #55635f;
  --line: #dfe5e1;
  --paper: #f6f4ef;
  --card: #ffffff;
  --accent: #0f5e57;
  --accent-2: #e5f0ec;
  --sand: #efe4d2;
  --warn: #b5482f;
  --radius: 20px;
  --shadow: 0 1px 0 rgba(20, 33, 31, .04), 0 20px 50px -24px rgba(20, 33, 31, .28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Golos Text', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .logo, .price { font-family: 'Unbounded', 'Golos Text', sans-serif; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sub { color: var(--sub); }

.demo-bar { background: var(--ink); color: #dfe9e5; font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-bar b { color: #fff; }

header { padding: 18px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 700; font-size: 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #2f8c7f); box-shadow: inset 0 -6px 0 rgba(255, 255, 255, .25); }
.head-cta { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.head-cta a { text-decoration: none; font-weight: 600; }

/* герой + квиз */
.hero { padding: 24px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); margin: 18px 0 18px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 18px; color: var(--sub); max-width: 32em; }
.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; background: var(--accent-2); color: var(--accent); border-radius: 99px; padding: 6px 12px; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; transform: translateY(3px); }

.quiz { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 28px; position: relative; min-height: 540px; display: flex; flex-direction: column; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--sub); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-bottom: 24px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.quiz h2 { font-size: 22px; margin-bottom: 6px; }
.quiz .hint { color: var(--sub); font-size: 15px; margin-bottom: 18px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; }
/* радиокнопка невидима и не ловит мышь: клик принимает подпись (label for), иначе при :active-сжатии
   подписи mousedown и mouseup попадали в разные элементы и клик терялся */
.opt input, .chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.opt label { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .1s ease; }
.opt label b { font-weight: 600; }
.opt label small { color: var(--sub); font-size: 13px; }
.opt:hover label { border-color: #b9c6c1; }
.opt input:checked + label { border-color: var(--accent); background: var(--accent-2); }
.opt input:focus-visible + label { outline: 3px solid rgba(15, 94, 87, .35); outline-offset: 2px; }
.opt input:active + label { transform: scale(.985); }

.range { margin: 8px 0 22px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-head output { font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--accent-2); }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.quiz-nav { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; justify-content: space-between; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color .15s ease, transform .1s ease, opacity .15s ease; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #0c4d47; }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.ghost:hover { border-color: #b9c6c1; }

.result .price { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.breakdown { list-style: none; margin: 14px 0 18px; border-top: 1px solid var(--line); }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.breakdown li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.form { display: grid; gap: 10px; }
.form input[type=text], .form input[type=tel] { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; background: #fff; }
.form input:focus { outline: none; border-color: var(--accent); }
.form .row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip label { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 14px; cursor: pointer; }
.chip input:checked + label { border-color: var(--accent); background: var(--accent-2); color: var(--accent); font-weight: 600; }
.chip input:focus-visible + label { outline: 3px solid rgba(15, 94, 87, .35); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--sub); }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.error { color: var(--warn); font-size: 14px; min-height: 1.2em; }

/* секции */
section.block { padding: 72px 0; }
.block h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 rgba(20, 33, 31, .05); }
.card .n { font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--sub); font-size: 15px; }
.prices { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.prices td:last-child, .prices th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); font-weight: 600; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--accent); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--sub); padding-bottom: 18px; max-width: 46em; }
.cta-band { background: var(--accent); color: #fff; border-radius: 28px; padding: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta-band h2 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); }
.cta-band .btn { background: #fff; color: var(--accent); }

footer { background: var(--ink); color: #b9c6c1; padding: 36px 0 44px; margin-top: 40px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
footer a { color: #e6efeb; }
.credit { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #b9c6c1; }
.credit img { width: 160px; height: auto; display: block; }

/* окно предпросмотра заявки */
dialog { border: 0; border-radius: 24px; padding: 28px; max-width: 460px; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(20, 33, 31, .45); }
dialog h3 { font-size: 20px; margin-bottom: 10px; }
.tg { background: #eef3f6; border-radius: 16px; padding: 14px 16px; font-size: 14px; white-space: pre-wrap; margin: 14px 0 18px; font-family: 'Golos Text', sans-serif; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .head-cta .phone { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .quiz { padding: 20px; border-radius: 22px; min-height: 0; }
  .opts { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .prices th, .prices td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
