:root {
  color-scheme: light;
  --ink: #172027;
  --dark: #161e25;
  --dark-panel: #202b34;
  --paper: #f7f6f2;
  --white: #fff;
  --amber: #ffc34e;
  --amber-soft: #fff0cb;
  --muted: #525d64;
  --light-text: #cbd1d3;
  --line: #dedfd9;
  --radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; line-height: 1.5; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1972a2; outline-offset: 3px; }
.hero :focus-visible, .header :focus-visible, .estimate :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: #9cdeff; }
.wrap { width: min(1200px, 100% - clamp(36px, 9.5vw, 128px)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .65rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 5; background: var(--dark); border-bottom: 1px solid #344049; color: var(--white); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; font-size: 1.05rem; font-weight: 760; line-height: 1.1; text-decoration: none; letter-spacing: -.025em; }
.brand-town { display: block; margin-top: .2rem; color: var(--light-text); font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.navigation { display: flex; gap: clamp(16px, 2.3vw, 35px); align-items: center; }
.navigation a { font-size: .94rem; font-weight: 550; color: #e0e4e6; text-decoration: none; white-space: nowrap; }
.navigation a:hover { color: var(--amber); }
.button, .menu-toggle { min-height: 44px; padding: .67rem 1.12rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; line-height: 1.22; text-align: center; text-decoration: none; font-weight: 720; font-size: .92rem; }
.button-main { background: var(--amber); border-color: var(--amber); color: #1d2225; }
.button-main:hover { background: #ffd374; border-color: #ffd374; }
.button-dark, .menu-toggle { background: transparent; color: var(--white); border-color: #6b777d; }
.button-dark:hover, .menu-toggle:hover { background: #ffffff10; border-color: #c9d0d5; }
.button-light { color: var(--ink); background: var(--white); border-color: #b9bfbf; }
.button-light:hover { background: #edf0ed; }

.hero { background: var(--dark); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; padding-block: 2.75rem 3.2rem; }
.hero-copy { padding-block: 1rem; }
.location { display: flex; align-items: center; gap: .45rem; color: #f6d487; font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.location svg { flex: none; }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 5.05rem); line-height: 1.01; letter-spacing: -.062em; }
.hero h1 span { display: block; color: var(--amber); }
.hero-text { max-width: 29rem; color: var(--light-text); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-block: 1.25rem 1.7rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.hero-action { min-height: 50px; }
.hero-image { position: relative; overflow: hidden; min-width: 0; aspect-ratio: 1.34; border: 1px solid #ffffff20; border-radius: 18px; background: #343c3d; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; bottom: 1rem; left: 1rem; display: flex; align-items: center; gap: .6rem; padding: .65rem .82rem; border: 1px solid #ffffff28; border-radius: 10px; background: #161e25ed; line-height: 1.15; }
.hero-caption svg { color: var(--amber); flex: none; }
.hero-caption strong, .hero-caption small { display: block; }
.hero-caption strong { font-size: .94rem; }
.hero-caption small { color: var(--light-text); margin-top: .25rem; font-size: .78rem; }

.section { padding-block: clamp(42px, 5.8vw, 82px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.6rem; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-head p, .section-subtitle { color: var(--muted); margin-top: .65rem; font-size: 1.04rem; }
.text-link { font-weight: 720; font-size: .94rem; text-decoration-color: #b27b12; text-underline-offset: .24em; }
.text-link:hover { color: #7d5104; }
.service-grid, .zones-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(16px, 2vw, 25px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.service-card > svg { box-sizing: content-box; padding: .5rem; margin-bottom: .95rem; background: var(--amber-soft); border-radius: 9px; color: #46340e; }
.service-card h3 { font-size: 1.25rem; }
.service-card p { margin-block: .6rem 1.2rem; color: var(--muted); }
.service-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.service-bottom strong { white-space: nowrap; }

.calc-section { background: #ebeeea; border-block: 1px solid #dfe4df; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.catalog { padding: clamp(14px, 2.4vw, 28px); background: var(--white); border: 1px solid #d9dedb; border-radius: var(--radius); min-width: 0; }
.catalog-fields { display: grid; grid-template-columns: 1fr .8fr; gap: .65rem; }
label { display: block; min-width: 0; font-size: .92rem; font-weight: 700; }
label input, label select, label textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: .32rem; padding: .55rem .65rem; font-size: 1rem; font-weight: 500; color: var(--ink); background: var(--white); border: 1px solid #adb7b9; border-radius: 7px; }
label select { appearance: none; padding-right: 1.7rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23525d64' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .55rem center; text-overflow: ellipsis; }
.catalog-count { color: var(--muted); font-size: .88rem; margin: .9rem 0 .45rem; }
.jump-estimate { display: none; }
.price-list, .cart { margin: 0; padding: 0; list-style: none; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .75rem 0; border-top: 1px solid #eceeea; }
.price-row strong, .price-row small { display: block; }
.price-row strong { font-size: .97rem; }
.price-row small { color: var(--muted); font-size: .875rem; margin-top: .15rem; }
.add { min-height: 38px; min-width: 92px; padding: .42rem .65rem; font-size: .875rem; background: #fff3d8; border-color: #e4c378; }
.add:hover { background: #ffe5a7; }
.more { width: 100%; margin-top: .55rem; }
.estimate { position: sticky; top: 87px; min-width: 0; padding: clamp(16px, 2.5vw, 28px); background: var(--dark-panel); color: var(--white); border-radius: var(--radius); }
.estimate-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.estimate-head h3 { font-size: 1.4rem; }
.link-button { padding: .25rem .05rem; color: #ffda87; font-size: .875rem; text-decoration: underline; text-underline-offset: .16em; background: transparent; border: 0; }
.hint { color: var(--light-text); font-size: .875rem; margin-top: .5rem; }
.estimate-empty { color: #e5e9e9; margin-block: 1rem; padding: .65rem .75rem; background: #ffffff0d; border-radius: 7px; font-size: .92rem; }
.cart { max-height: 245px; overflow: auto; margin-block: .8rem; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .45rem; padding: .51rem .2rem .51rem 0; border-top: 1px solid #ffffff24; font-size: .9rem; }
.cart-row label { font-size: .82rem; font-weight: 520; }
.cart-row input { width: 3.5rem; min-height: 38px; padding: .2rem .3rem; text-align: center; border-radius: 6px; border: 1px solid #91a1ac; }
.remove { min-width: 36px; min-height: 36px; padding: 0; color: var(--white); background: transparent; border: 1px solid #73818a; border-radius: 6px; font-size: 1.15rem; }
.remove:hover { background: #ffffff18; }
.breakdown { font-size: .9rem; padding-top: .45rem; }
.breakdown > div, .total { display: flex; justify-content: space-between; gap: .55rem; }
.breakdown > div { margin-block: .25rem; }
.breakdown dt { color: var(--light-text); }
.breakdown dd { font-weight: 640; }
.total { align-items: baseline; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #ffffff40; }
.total strong { color: var(--amber); font-size: clamp(1.28rem, 2.6vw, 1.9rem); white-space: nowrap; letter-spacing: -.025em; }
.estimate-actions { display: grid; gap: .65rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #6b777d; }
.estimate-actions h4 { margin: 0; font-size: 1rem; }
.estimate-actions .hint { margin: .25rem 0 0; }
.vk-next .button { width: 100%; }
.status { color: #ffda87; }
.status:empty { position: absolute; margin: 0; }

.zone-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(14px, 2vw, 23px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.zone-card h3 { font-size: 1.2rem; }
.zone-card > p { margin: .5rem 0 1.05rem; color: var(--muted); }
.zone-card dl { display: grid; gap: .2rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.zone-card dl > div { display: flex; justify-content: space-between; gap: .35rem; font-size: .88rem; }
.zone-card dd { font-weight: 725; white-space: nowrap; }
.zone-info { display: flex; gap: .65rem; align-items: start; margin-top: 1rem; padding: .85rem 1rem; background: #fff0cd; border-radius: 10px; }
.zone-info svg { flex: none; margin-top: 1px; }
.faq-section { background: var(--white); border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: .7rem; min-height: 54px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: #85621c; font-size: 1.35rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding-bottom: .85rem; color: var(--muted); }
.contact, .footer { color: var(--white); background: var(--dark); }
.contact-inner { padding-block: clamp(38px, 5.5vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: center; }
.contact-inner p { margin-top: .65rem; color: var(--light-text); }
.contact-actions, .footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.contact-actions { justify-content: flex-end; }
.footer { border-top: 1px solid #344049; }
.footer-inner { justify-content: space-between; min-height: 74px; gap: .8rem 1.1rem; padding-block: .8rem; }
.footer-inner p, .footer-inner > a:not(.brand) { color: var(--light-text); font-size: .875rem; }

@media (max-width: 1050px) {
  .service-grid, .zones-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
  html { scroll-padding-top: 70px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; gap: .7rem; }
  .header-action { display: none; }
  .navigation { gap: .9rem; }
  .hero-grid { gap: 1rem; padding-block: 1.8rem; }
  .hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
  .hero-text { margin-block: .8rem 1rem; }
  .calculator { grid-template-columns: minmax(0, 1fr); }
  .jump-estimate { display: inline-flex; margin-top: .8rem; }
  .estimate { position: static; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; }
  .header .menu-toggle:not([hidden]) { display: inline-flex; }
  .navigation { width: 100%; order: 2; flex-wrap: wrap; padding-bottom: .7rem; }
  .navigation a { min-height: 36px; display: inline-flex; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 1.6rem 1.3rem; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(2rem, 9.25vw, 3.55rem); }
  .location { font-size: .875rem; margin-bottom: .65rem; }
  .hero-image { aspect-ratio: 1.6; }
  .hero-caption { bottom: .6rem; left: .6rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 435px) {
  .service-grid, .zones-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .catalog-fields { grid-template-columns: minmax(0, 1fr); }
  .hero-action { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
