:root {
  --green: #123d3a;
  --green-deep: #071f1d;
  --terracotta: #a45135;
  --terracotta-dark: #843e29;
  --sand: #f5efe4;
  --cream: #fbfaf7;
  --ink: #172825;
  --muted: #596966;
  --white: #fff;
  --line: rgba(23, 40, 37, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 1rem/1.6 Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 18px; top: 12px; padding: 11px 16px; color: white; background: var(--green); transform: translateY(-160%); transition: transform .2s ease; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #d8a84e; outline-offset: 3px; }
.wrap { width: calc(100% - 64px); max-width: var(--max); margin-inline: auto; }

.estimate-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 14px 38px; border-bottom: 1px solid var(--line); background: var(--cream); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--green); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::before { content: ""; width: 23px; height: 17px; border: 3px solid var(--sand); border-top: 0; transform: translateY(4px); }
.brand-mark::after { content: ""; position: absolute; width: 19px; height: 19px; border-left: 3px solid var(--terracotta); border-top: 3px solid var(--terracotta); transform: translateY(-3px) rotate(45deg); }
.brand-mark span { position: absolute; bottom: 7px; width: 3px; height: 12px; z-index: 2; background: #d8a84e; }
.brand-text { display: flex; flex-direction: column; font-family: Manrope, Arial, sans-serif; line-height: 1; }
.brand-text strong { font-size: .97rem; letter-spacing: -.02em; }
.brand-text small { margin-top: 5px; color: var(--terracotta); font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
.header-tools, .language-links { display: flex; align-items: center; }
.header-tools { gap: 24px; }
.language-links { gap: 10px; }
.language-link { color: var(--terracotta); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.language-link:not(.is-active) { color: var(--ink); opacity: .55; }
.home-link { font-size: .82rem; font-weight: 800; }
.home-link:hover { color: var(--terracotta); }
.quick-whatsapp { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; color: white; background: #1f7a55; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.quick-whatsapp:hover { background: #176143; }

.breadcrumbs { min-height: 54px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--terracotta); font-weight: 800; }
.estimate-intro { padding: 52px 0 44px; border-bottom: 1px solid var(--line); background: var(--sand); }
.eyebrow { margin: 0 0 16px; color: var(--terracotta); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Manrope, Arial, sans-serif; }
h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(2.8rem, 6vw, 5.9rem); line-height: .96; letter-spacing: -.06em; }
.estimate-intro-copy { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.06rem; }
.privacy-strip { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--terracotta); background: rgba(255,255,255,.72); font-size: .86rem; }
.privacy-strip strong { display: block; margin-bottom: 2px; font-family: Manrope, Arial, sans-serif; }
.privacy-strip p { margin: 0; color: var(--muted); }

.estimate-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 40px; align-items: start; padding-block: 58px 96px; }
.estimate-form { min-width: 0; }
.form-section { padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.section-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-number { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--green); font: 800 .76rem/1 Manrope, Arial, sans-serif; }
.section-kicker h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .group-label { font-weight: 800; font-size: .88rem; }
.field small, .field-note { color: var(--muted); font-size: .76rem; }
.field-guide-link { display: inline-flex; align-items: center; gap: 10px; margin: 10px 0 20px; color: var(--terracotta); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.field-guide-link:hover { color: var(--terracotta-dark); }
.planning-note { margin: -8px 0 20px; }
.area-source-help { min-height: 58px; display: block; padding: 10px 12px; border-left: 2px solid var(--terracotta); background: var(--sand); line-height: 1.45; }
.area-source-help.is-warning { color: #7b251d; border-left-color: #b63f32; background: #fff0ec; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; background: white; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:user-invalid, .field select:user-invalid { border-color: #b63f32; }
.unit-input { position: relative; }
.unit-input input { padding-right: 46px; }
.unit-input span { position: absolute; top: 50%; right: 14px; color: var(--muted); transform: translateY(-50%); font-size: .78rem; font-weight: 700; }
.location-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.secondary-button { min-height: 50px; padding: 0 18px; border: 1px solid var(--green); color: var(--green); background: transparent; font-weight: 800; }
.secondary-button:hover { color: white; background: var(--green); }
.map-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
.map-detection { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; padding: 14px 15px; border-left: 3px solid var(--green); background: #edf6f1; }
.map-detection[hidden] { display: none; }
.map-detection-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }
.map-detection strong { display: block; font-size: .82rem; }
.map-detection p { margin: 2px 0 0; color: var(--muted); font-size: .74rem; }
.satellite-link { color: var(--terracotta); font-size: .76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.location-status { min-height: 24px; margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
.location-status.is-success { color: #236148; }
.location-status.is-error { color: #9b3429; }
.conditional-fields[hidden] { display: none; }
.surface-panel { display: grid; margin-top: 20px; }
.facade-scope-field,
.interior-scope-field { margin-top: 18px; }
.interior-detail-grid { margin-top: 18px; }
.interior-detail-grid[hidden] { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 54px; padding: 13px; border: 1px solid var(--line); background: white; }
.choice:has(input:checked) { border-color: var(--terracotta); box-shadow: inset 0 0 0 1px var(--terracotta); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--terracotta); }
.choice span { display: block; font-size: .86rem; line-height: 1.35; }
.choice small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.treatment-panel { display: grid; gap: 14px; margin-top: 20px; padding: 20px; border: 1px solid var(--line); background: var(--sand); }
.treatment-panel .choice { min-height: 64px; background: white; }
.details-field { margin-top: 20px; }
.consent { display: flex; align-items: flex-start; gap: 11px; padding: 16px; border: 1px solid var(--line); background: var(--sand); font-size: .8rem; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--terracotta); }
.consent a { color: var(--terracotta); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.consent-note { margin: 0; }
.consent-note > span:first-child { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--green); font: 800 .72rem/1 Manrope, Arial, sans-serif; }

.result-card { position: sticky; top: 24px; overflow: hidden; color: white; background: var(--green-deep); box-shadow: 0 24px 70px rgba(7,31,29,.18); }
.result-top { padding: 28px; border-bottom: 1px solid rgba(255,255,255,.15); background: linear-gradient(145deg, var(--green), var(--green-deep)); }
.result-top .eyebrow { color: #f2c6a8; }
.request-reference { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -3px 0 22px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.65); font-size: .76rem; }
.request-reference strong { color: #f2c6a8; font-family: Manrope, Arial, sans-serif; letter-spacing: .05em; }
.result-price { display: block; max-width: 12ch; margin: 20px 0 8px; font: 800 clamp(1.8rem, 3.8vw, 3.2rem)/1 Manrope, Arial, sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.result-area { display: block; margin: 22px 0 5px; font: 800 clamp(1.35rem, 2.5vw, 2rem)/1 Manrope, Arial, sans-serif; letter-spacing: -.035em; }
.result-label { color: rgba(255,255,255,.68); font-size: .8rem; }
.price-facts { display: grid; gap: 9px; margin-top: 22px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.price-facts div { display: flex; justify-content: space-between; gap: 18px; color: rgba(255,255,255,.68); font-size: .78rem; }
.price-facts strong { max-width: 58%; min-width: 0; color: white; text-align: right; line-height: 1.35; overflow-wrap: anywhere; }
.confidence { display: flex; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }
.confidence strong { max-width: 56%; min-width: 0; color: #f2c6a8; text-align: right; line-height: 1.35; overflow-wrap: anywhere; }
.readiness { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.readiness-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; color: rgba(255,255,255,.68); font-size: .78rem; }
.readiness-heading strong { max-width: 56%; min-width: 0; color: #f2c6a8; text-align: right; line-height: 1.35; overflow-wrap: anywhere; }
.readiness-track { height: 6px; margin-top: 11px; overflow: hidden; background: rgba(255,255,255,.14); }
.readiness-track span { display: block; width: 0; height: 100%; background: #f2c6a8; transition: width .2s ease; }
.readiness p { margin: 10px 0 0; color: rgba(255,255,255,.62); font-size: .72rem; line-height: 1.45; }
.missing-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.missing-details-heading { display: grid; gap: 5px; }
.missing-details-heading strong { color: white; font: 800 .86rem/1.35 Manrope, Arial, sans-serif; }
.missing-details-heading small { color: rgba(255,255,255,.62); font-size: .76rem; line-height: 1.45; }
.missing-details ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.missing-details li { position: relative; padding-left: 21px; color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.4; }
.missing-details li::before { content: ""; position: absolute; top: .25em; left: 0; width: 10px; height: 10px; border: 1px solid rgba(242,198,168,.65); border-radius: 50%; }
.missing-details a { color: #f2c6a8; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.missing-details a:hover { color: white; }
.missing-details li.is-complete { color: white; font-weight: 700; }
.missing-details li.is-complete::before { border-color: #f2c6a8; background: #f2c6a8; box-shadow: inset 0 0 0 3px var(--green); }
.result-body { padding: 28px; }
.result-body h3 { margin-bottom: 12px; font-size: 1.05rem; }
.result-notes { margin: 0 0 26px; padding-left: 20px; color: rgba(255,255,255,.68); font-size: .8rem; }
.result-notes li + li { margin-top: 7px; }
.request-preview { margin: 0 0 16px; border: 1px solid rgba(255,255,255,.2); }
.request-preview summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; cursor: pointer; color: #f2c6a8; font-size: .8rem; font-weight: 800; list-style: none; }
.request-preview summary::-webkit-details-marker { display: none; }
.request-preview summary::after { content: "+"; font-size: 1rem; }
.request-preview[open] summary::after { content: "−"; }
.request-preview pre { max-height: 280px; margin: 0; padding: 14px; overflow: auto; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); background: rgba(0,0,0,.16); font: 500 .78rem/1.55 Inter, Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.primary-button { width: 100%; min-height: 56px; border: 0; color: white; background: var(--terracotta); font-weight: 800; }
.primary-button:hover { background: var(--terracotta-dark); }
.copy-summary-button { width: 100%; min-height: 48px; margin-top: 10px; border: 1px solid rgba(255,255,255,.3); color: white; background: transparent; font-weight: 800; }
.copy-summary-button:hover { border-color: #f2c6a8; color: #f2c6a8; }
.copy-summary-status { min-height: 18px; margin: 7px 0 0; color: #f2c6a8; text-align: center; font-size: .72rem; }
.result-quick-link { display: block; margin-top: 14px; padding: 11px 6px; color: #f2c6a8; text-align: center; font-size: .78rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.result-disclaimer { margin: 14px 0 0; color: rgba(255,255,255,.52); font-size: .7rem; }
.form-error { margin: 0 0 14px; padding: 12px 14px; color: #7b251d; background: #fff0ec; border-left: 3px solid #b63f32; font-size: .82rem; }
.form-error[hidden] { display: none; }

.how-it-works { padding-block: 86px; background: var(--sand); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.how-card { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.how-card span { color: var(--terracotta); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.how-card h3 { margin: 42px 0 9px; font-size: 1.08rem; }
.how-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.estimate-faq { padding-block: 86px; background: white; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(42px, 8vw, 110px); align-items: start; }
.faq-layout h2 { margin: 10px 0 18px; }
.faq-layout > div:first-child > p:last-child { max-width: 42ch; margin: 0; color: var(--muted); font-size: 1rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 2px; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--terracotta); font-size: 1.25rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 66ch; margin: -3px 0 22px; color: var(--muted); font-size: 1rem; }
.estimate-footer { padding: 38px 0; color: white; background: #051816; }
.footer-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer-row p { margin: 0; color: rgba(255,255,255,.55); font-size: .77rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; font-size: .77rem; }
.legal-line { padding-top: 18px; margin-top: 22px !important; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48) !important; font-size: .72rem !important; }

@media (max-width: 900px) {
  .estimate-workspace { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 0; }
  .how-card h3 { margin-top: 24px; }
  .faq-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .estimate-header { min-height: 70px; padding: 12px 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .home-link { display: none; }
  .header-tools { gap: 12px; }
  .quick-whatsapp { min-height: 38px; padding-inline: 11px; }
  .estimate-intro { padding-block: 40px 34px; }
  h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  html[lang="ru"] h1 { font-size: clamp(2.35rem, 10.8vw, 3.45rem); }
  .estimate-workspace { gap: 32px; padding-block: 34px 72px; }
  .field-grid, .field-grid.three, .choice-grid { grid-template-columns: 1fr; }
  .location-row { grid-template-columns: 1fr; }
  .map-detection { grid-template-columns: auto 1fr; }
  .satellite-link { grid-column: 2; white-space: normal; }
  .form-section { padding-bottom: 34px; margin-bottom: 34px; }
  .result-top, .result-body { padding: 23px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 370px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
  .readiness-track span { transition: none; }
}
