:root {
  --green: #397aa9;
  --green-dark: #2f6c98;
  --green-pale: #e6f0f7;
  --ink: #202b33;
  --muted: #526d81;
  --line: #d8e3eb;
  --soft: #f5f8fb;
  --white: #fff;
  --shadow: 0 12px 32px rgba(26,45,58, .12);
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.5; }
main, .site-header, .site-footer, .final-cta { max-width: 100%; overflow-x: clip; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img, input, select { max-width: 100%; }
img { display: block; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 40px)); }
.container, .narrow, .hero-grid, .two-columns, .calculator-shell, .cta-grid, .comparison-grid, .team-grid, .benefit-grid, .contacts-grid, .offer-grid, .guarantee-grid, .process-list { min-width: 0; }

.site-header { position: relative; z-index: 3; background: #fff; }
.header-main { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; width: clamp(165px, 21vw, 230px); height: clamp(48px, 5vw, 64px); flex: 0 0 auto; align-items: center; gap: 10px; overflow: hidden; }
.brand img { width: 47px; height: 47px; object-fit: contain; }
.brand .brand-logo-full { width: 125%; max-width: none; height: auto; max-height: none; flex: 0 0 125%; object-fit: contain; transform: translate(-10.5%, 0); }
.brand strong { display: block; font-size: 22px; letter-spacing: -.8px; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: #4f5357; font-size: 12px; }
.header-contacts { display: flex; align-items: center; gap: 8px; }
.phone { display: inline-flex; align-items: center; gap: 7px; color: #5684a6; font-size: 18px; font-weight: 750; white-space: nowrap; }
.messenger-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d4e1ea; border-radius: 8px; background: #fff; color: #2d3c46; font-weight: 650; }
.messenger-button img { width: 18px; height: 18px; object-fit: contain; }
.messenger-button.compact { padding: 8px 14px; font-size: 14px; }
.quick-nav { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 20px; background: var(--green); }
.quick-nav .button { min-height: 42px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; line-height: 1.15; text-align: center; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 15px rgba(0, 0, 0, .13); }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green); }
.button.light { min-height: 32px; padding: 7px 14px; border-color: rgba(0,0,0,.06); background: #fff; color: #172630; font-size: 14px; }
.button.large { min-height: 42px; margin-top: 28px; font-size: 16px; }
.button.wide { width: 100%; }
.button.whatsapp { margin-top: 10px; background: #eef5fa; border-color: #b8d0e2; color: #275475; }
.button.telegram { margin-top: 10px; border-color: #b9ddef; background: #eff9ff; color: #1976a4; }
.calculation-messenger { gap: 8px; }
.calculation-messenger img { width: 19px; height: 19px; object-fit: contain; }
.button.dark { background: #fff; color: #3b6d92; }
.call-button { gap: 7px; }
.calc-button { gap: 7px; }
.calculator-icon { position: relative; display: inline-block; width: 18px; height: 22px; flex: 0 0 18px; border: 2px solid currentColor; border-radius: 3px; color: var(--green); }
.calculator-icon::before { position: absolute; top: 3px; right: 3px; left: 3px; height: 4px; border-radius: 1px; background: currentColor; content: ''; }
.calculator-icon::after { position: absolute; top: 10px; left: 3px; width: 3px; height: 3px; border-radius: 1px; background: currentColor; box-shadow: 5px 0 currentColor, 0 5px currentColor, 5px 5px currentColor; content: ''; }
.button.primary .calculator-icon { color: #fff; }
.phone-icon { display: inline-block; width: 17px; height: 25px; flex: 0 0 17px; background: var(--green); -webkit-mask: url("/assets/phone-handset-mask.png") center / contain no-repeat; mask: url("/assets/phone-handset-mask.png") center / contain no-repeat; }

.hero { overflow: hidden; padding: 64px 0 58px; background: linear-gradient(118deg, #f0f6fb 0%, #f9fbfc 58%, #eff4f8 100%); }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 58px; }
.hero-copy { padding: 1px 0 34px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(37px, 4.1vw, 58px); line-height: 1.12; letter-spacing: -2.3px; }
h1 em { color: var(--green); font-style: normal; }
.lead { max-width: 600px; margin-bottom: 30px; color: #374151; font-size: 18px; line-height: 1.65; }
.lead-sm { color: var(--muted); font-size: 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 25px; color: #4e5964; font-size: 15px; }
.hero-stats span:first-child { color: #3f4b53; }
.hero-side { position: relative; }
.hero-media { position: relative; }
.hero-photo { width: 100%; height: 430px; object-fit: cover; object-position: center; border-radius: 16px; box-shadow: var(--shadow); }
.hero-photo.hero-brand-card { height: auto; aspect-ratio: 1734 / 907; object-fit: cover; object-position: center; }
.lead-card { position: relative; z-index: 1; display: grid; width: calc(100% - 44px); margin: -54px auto 0; padding: 24px 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; border: 1px solid #dce6ee; border-radius: 14px; background: #fff; box-shadow: 0 20px 45px rgba(22,45,61,.17); }
body[data-form-page="Квартиры"] .lead-card { margin-top: -28px; }
.lead-card > h2, .lead-card .form-comment, .lead-card .consent, .lead-card .button { grid-column: 1 / -1; }
.lead-card h2 { margin-bottom: 17px; font-size: 21px; }
label { display: block; color: #3d454d; font-size: 13px; font-weight: 650; }
input, select { width: 100%; height: 42px; margin: 5px 0 11px; padding: 9px 12px; border: 1px solid #dce3e8; border-radius: 6px; outline: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56,122,169,.14); }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 1px 0 14px; color: #66707a; font-size: 11px; font-weight: 500; line-height: 1.35; }
.consent input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: var(--green); }

.section { padding: 82px 0; }
.soft { background: var(--soft); }
.section-heading { margin-bottom: 36px; }
.section-heading.centered { text-align: center; }
.section-heading.centered > p { max-width: 760px; margin-right: auto; margin-left: auto; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(29px, 3vw, 40px); line-height: 1.15; letter-spacing: -1.25px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; }
.comparison-grid { display: grid; width: 100%; margin-right: auto; margin-left: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: center; justify-items: stretch; gap: 16px; }
.comparison { position: relative; width: 100%; min-height: 0; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #dae2e8; box-shadow: 0 5px 16px rgba(18,32,42,.09); }
.comparison::after { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 5px; background: var(--green); content: ""; transform: translateX(-50%); }
.comparison-panel { position: absolute; inset: 0; min-width: 0; min-height: 0; overflow: hidden; }
.comparison-panel.after-panel { z-index: 1; left: 50%; }
.comparison-panel img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.comparison-panel.after-panel img { position: absolute; top: 0; right: 0; width: 200%; max-width: none; object-position: right center; }
.comparison-label { position: absolute; z-index: 3; top: 13px; padding: 5px 8px; border-radius: 4px; background: rgba(9,15,20,.7); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .9px; }
.comparison-label.before { left: 12px; }
.comparison-label.after-label { right: 12px; background: var(--green); }

.gallery-shell { position: relative; }
.gallery-track { display: flex !important; width: 100%; max-width: 100%; margin: 0; padding: 4px 2px 18px; overflow-x: auto; grid-template-columns: none; justify-content: flex-start; justify-items: initial; gap: 16px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track .comparison { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.gallery-arrow { position: absolute; z-index: 5; top: 50%; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #cfd9e1; border-radius: 50%; background: #fff; color: var(--green-dark); box-shadow: 0 7px 18px rgba(25,42,54,.16); font-size: 20px; transform: translateY(-50%); transition: opacity .2s, transform .2s, background .2s; }
.gallery-arrow:hover { background: var(--green-pale); transform: translateY(-50%) scale(1.04); }
.gallery-arrow:disabled { opacity: .34; cursor: default; }
.gallery-prev { left: -22px; }
.gallery-next { right: -22px; }
.gallery-status { min-height: 18px; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

.problem-section { padding: 76px 0; background: var(--green); color: #fff; }
.two-columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; }
.align-center { align-items: center; }
.problem-section .eyebrow { color: #deecf6; }
.problem-section h2 { font-size: 38px; letter-spacing: -1px; }
.problem-list { display: grid; gap: 13px; max-width: 655px; padding: 0; list-style: none; color: #f4f9fd; }
.problem-list li { position: relative; padding-left: 28px; }
.problem-list li::before { content: "×"; position: absolute; left: 0; top: -2px; color: #e78f7d; font-size: 22px; }
.promise-card { padding: 32px; border: 1px solid rgba(255,255,255,.45); border-radius: 14px; background: #f5fafe; box-shadow: var(--shadow); }
.promise-card h3 { font-size: 22px; line-height: 1.3; }
.promise-card h3 { color: var(--ink); }
.promise-card p { color: var(--muted); }
.promise-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 16px; border-radius: 50%; background: #fff; color: var(--green); font-weight: 900; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { position: relative; overflow: hidden; padding-bottom: 19px; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(25,45,59,.1); }
.team-card img { width: 100%; height: 260px; object-fit: cover; }
.team-card span { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 5px; background: #ffc400; color: #4b3800; font-size: 11px; font-weight: 800; }
.team-card h3, .team-card p, .team-card small { margin-right: 16px; margin-left: 16px; }
.team-card h3 { margin-top: 17px; margin-bottom: 1px; font-size: 18px; }
.team-card p { margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.team-card small { color: var(--green); font-weight: 700; }

.calculator-section { background: linear-gradient(130deg, #f3f8fb, #f8fafb); }
.calculator-shell { display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.calculator-panel { padding: 32px; }
.calculator-panel h3 { margin-bottom: 25px; font-size: 23px; }
.field-caption { margin-bottom: 10px; color: #57606b; font-size: 13px; font-weight: 700; }
.cleaning-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cleaning-type { min-height: 122px; padding: 14px; border: 1px solid #d9e1e6; border-radius: 9px; background: #fff; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.cleaning-type:hover { transform: translateY(-2px); }
.cleaning-type.selected { border: 2px solid var(--green); background: var(--green-pale); }
.cleaning-type strong, .cleaning-type small { display: block; }
.cleaning-type strong { margin-bottom: 7px; color: var(--ink); font-size: 14px; }
.cleaning-type small { color: #65707a; font-size: 11px; line-height: 1.4; }
.calculator-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 25px; }
.calculator-controls label { font-size: 13px; }
.range-label { grid-column: 1 / -1; }
.range-label span { display: flex; justify-content: space-between; }
input[type="range"] { height: auto; margin: 12px 0 2px; padding: 0; accent-color: var(--green); }
.switch { display: flex; align-items: center; gap: 7px; padding-top: 9px; }
.switch input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.calculator-total { display: grid; align-content: center; padding: 34px 28px; background: var(--green); color: #fff; }
.calculator-total label { color: #f5fafe; }
.calculator-total input { border-color: #c5dbeb; background: #fff; }
.calculator-total .consent { color: #e4f0f8; }
.calculator-total .button.primary { border-color: #fff; background: #fff; color: var(--green-dark); box-shadow: 0 6px 16px rgba(16,50,75, .22); }
.calculator-total .button.primary:hover { background: #eff5fa; box-shadow: 0 8px 18px rgba(16,50,75, .28); }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-grid article { padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: box-shadow .2s, transform .2s; }
.benefit-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit-grid i { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 13px; border-radius: 8px; background: var(--green-pale); color: var(--green); font-size: 21px; font-style: normal; font-weight: 850; }
.benefit-grid h3 { margin-bottom: 7px; font-size: 17px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.center-action { margin: 33px 0 0; text-align: center; }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; list-style: none; counter-reset: process; }
.process-list li { position: relative; text-align: center; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: calc(50% + 43px); width: calc(100% - 68px); border-top: 2px dashed #b9cbd8; }
.process-list b { position: relative; z-index: 1; display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 13px; border-radius: 50%; background: var(--green); color: #fff; font-size: 18px; }
.process-list h3 { margin-bottom: 5px; font-size: 17px; }
.process-list p { min-height: 62px; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.process-list small { color: var(--green); font-weight: 750; }

.review-slider { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 12px; }
.review-slider blockquote { min-height: 116px; margin: 0; padding: 25px 32px; border-radius: 12px; background: #fff; box-shadow: 0 4px 15px rgba(25,42,54, .09); color: #38424c; font-size: 17px; font-style: italic; text-align: center; }
.slider-arrow { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #cfd9e1; border-radius: 50%; background: #fff; color: var(--green); font-size: 20px; }
.review-author { margin-top: 14px; color: #59626c; font-size: 14px; text-align: center; }
.review-author strong { color: var(--ink); }

.guarantee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.guarantee-grid article { padding: 22px 16px; border-radius: 10px; background: var(--soft); text-align: center; }
.guarantee-grid span { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 12px; border: 2px solid var(--green); border-radius: 50%; color: var(--green); font-size: 19px; font-weight: 900; }
.guarantee-grid h3 { margin-bottom: 6px; font-size: 16px; }
.guarantee-grid p { margin: 0; color: var(--muted); font-size: 12px; }

.green-background { background: var(--green); }
.inverse h2, .inverse p { color: #fff; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.offer-grid article { padding: 30px; border-radius: 12px; background: #fff; box-shadow: 0 9px 20px rgba(8,36,57,.17); text-align: center; }
.offer-grid article > span { display: block; color: #5b798e; font-size: 13px; }
.offer-grid b { display: block; margin: 7px 0; color: var(--green); font-size: 31px; letter-spacing: -1px; }
.offer-grid p { min-height: 40px; margin-bottom: 20px; color: #354653; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.faq-list summary { position: relative; padding: 17px 48px 17px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 19px; top: 11px; color: var(--green); font-size: 26px; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: -3px 20px 18px; color: var(--muted); font-size: 14px; }

.about-section h2 { margin-bottom: 6px; font-size: 38px; letter-spacing: -1px; }
.about-section h3 { margin: 28px 0 8px; font-size: 20px; }
.about-section p { color: #59646d; }
.number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.number-grid div { padding: 18px; border-radius: 9px; background: #fff; box-shadow: 0 4px 10px rgba(22,42,57,.05); }
.number-grid b, .number-grid span { display: block; }
.number-grid b { color: var(--green); font-size: 30px; line-height: 1.1; letter-spacing: -1px; }
.number-grid span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.check-list { display: grid; gap: 8px; padding: 0; list-style: none; color: #4c5860; font-size: 14px; }
.check-list li { padding-left: 23px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contacts-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 11px; text-align: center; }
.contacts-grid i { display: grid; width: 39px; height: 39px; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: 20px; font-style: normal; font-weight: 800; }
.contacts-grid .contact-phone-icon { display: block; width: 29px; height: 40px; flex-basis: 29px; margin: 0 auto 12px; }
.contact-messenger-icons { display: flex; justify-content: center; gap: 7px; margin: 0 auto 12px; }
.contact-messenger-icons img { width: 31px; height: 31px; padding: 5px; border-radius: 50%; background: var(--green-pale); object-fit: contain; }
.contacts-grid h3 { margin-bottom: 6px; font-size: 17px; }
.contacts-grid a { color: var(--green-dark); font-weight: 700; }
.contacts-grid p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.final-cta { padding: 60px 0; background: var(--green); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 55px; align-items: center; }
.final-cta h2 { margin-bottom: 6px; font-size: 38px; line-height: 1.1; letter-spacing: -1.2px; }
.final-cta p { margin: 0; color: #e1eef8; font-size: 18px; }
.final-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.final-form input { margin: 0; border: 0; }
.final-form .consent { grid-column: 1 / -1; margin: 2px 0 2px; color: #ecf5fc; }
.final-form .button, .final-form small { grid-column: 1 / -1; }
.final-form small { color: #e4f0f9; text-align: center; }

.contacts-section { background: #eff4f8; }
.site-footer { padding: 50px 0 0; background: var(--green); color: #e7f1f9; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.footer-brand { color: #fff; font-size: 25px; font-weight: 800; letter-spacing: -.8px; }
.site-footer h3 { color: #fff; font-size: 17px; }
.site-footer p { margin-bottom: 8px; color: #e1edf6; font-size: 13px; }
.site-footer a { color: #fff; font-weight: 700; }
.copyright { margin-top: 35px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.25); color: #d9e7f1; font-size: 12px; }

.mobile-action-bar { display: none; }

.toast { position: fixed; z-index: 110; right: 22px; bottom: 22px; max-width: min(390px, calc(100% - 44px)); padding: 14px 18px; border: 1px solid #b8cfdf; border-radius: 8px; background: #eff5fa; color: #354d5f; box-shadow: 0 12px 28px rgba(57,91,116,.18); font-size: 14px; opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

body.modal-open { overflow: hidden; }
.lead-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lead-modal.is-open { opacity: 1; pointer-events: auto; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(12,24,33, .52); backdrop-filter: blur(4px); }
.lead-modal__dialog { position: relative; z-index: 1; width: min(620px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 34px; border: 1px solid #cfdee8; border-radius: 18px; background: #fff; box-shadow: 0 26px 70px rgba(11,24,34, .28); }
.lead-modal__dialog > .form-kicker { margin-bottom: 7px; }
.lead-modal__dialog > h2 { margin: 0 36px 9px 0; font-size: clamp(26px, 4vw, 37px); line-height: 1.12; letter-spacing: -1.1px; }
.lead-modal__dialog > p:not(.form-kicker) { margin: 0 0 22px; color: var(--muted); }
.lead-modal__close { position: absolute; top: 16px; right: 16px; display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #d7e1e8; border-radius: 50%; background: #f4f8fb; color: var(--green-dark); font-size: 25px; line-height: 1; }
.modal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.modal-form .consent, .modal-form .button { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .hero-grid, .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-copy { max-width: 760px; padding-bottom: 0; }
  .hero-photo { height: min(60vw, 480px); }
  .hero-side { max-width: 760px; }
  .lead-card { width: calc(100% - 44px); }
  .two-columns { gap: 38px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison { min-height: 0; width: 100%; aspect-ratio: 1 / 1; }
  .comparison img { min-height: 0; height: 100%; }
  .gallery-track .comparison { flex-basis: calc((100% - 16px) / 2); }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .header-contacts .messenger-button { display: none; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-action-bar { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #cfdde7; background: rgba(251,253,254,.97); box-shadow: 0 -6px 20px rgba(62,94,117,.13); backdrop-filter: blur(10px); }
  .mobile-action-bar a, .mobile-action-bar button { display: grid; place-items: center; align-content: center; gap: 3px; padding: 6px 2px; border: 0; background: transparent; color: #436d8c; font-size: 10px; font-weight: 750; }
  .mobile-action-bar img { width: 21px; height: 21px; object-fit: contain; }
  .mobile-action-bar .phone-icon { width: 17px; height: 25px; flex-basis: 17px; }
  .toast { right: 14px; bottom: 78px; max-width: calc(100% - 28px); }
  .lead-modal { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .container, .narrow { width: min(100% - 28px, 1200px); }
  .header-main { min-height: 63px; gap: 8px; }
  .brand img { width: 39px; height: 39px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 10px; }
  .header-contacts { min-width: 0; }
  .phone { min-width: 0; gap: 4px; font-size: 14px; }
  .quick-nav { gap: 8px; padding-right: 8px; padding-left: 8px; }
  .quick-nav .button { min-width: 0; padding-right: 10px; padding-left: 10px; font-size: 12px; white-space: normal; }
  .hero { padding: 39px 0 42px; }
  h1 { font-size: 37px; letter-spacing: -1.6px; }
  .lead { font-size: 16px; }
  .hero-stats { gap: 9px 16px; font-size: 13px; }
  .hero-photo { height: 300px; }
  .lead-card { width: calc(100% - 20px); margin-top: -28px; padding: 21px; grid-template-columns: 1fr; }
  .lead-modal__dialog { padding: 27px 21px; border-radius: 15px; }
  .modal-form { grid-template-columns: 1fr; }
  .section { padding: 57px 0; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2, .about-section h2 { font-size: 30px; }
  .section-heading p { font-size: 15px; }
  .comparison-grid, .benefit-grid, .contacts-grid, .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .comparison { min-height: 0; width: 100%; aspect-ratio: 1 / 1; }
  .comparison img { min-height: 0; height: 100%; }
  .gallery-track .comparison { flex-basis: min(86vw, 380px); }
  .gallery-track { gap: 12px; padding-right: 10px; padding-left: 10px; scroll-padding-left: 10px; }
  .gallery-prev { left: -4px; }
  .gallery-next { right: -4px; }
  .gallery-arrow { width: 40px; height: 40px; background: rgba(255,255,255,.94); }
  .two-columns, .calculator-shell { grid-template-columns: minmax(0, 1fr); }
  .problem-section h2 { font-size: 30px; }
  .promise-card { padding: 23px; }
  .team-grid { gap: 12px; }
  .team-card img { height: 185px; }
  .team-card h3, .team-card p, .team-card small { margin-left: 12px; margin-right: 12px; }
  .calculator-panel { padding: 21px; }
  .cleaning-types { grid-template-columns: 1fr; }
  .cleaning-type { min-height: 84px; }
  .calculator-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; }
  .calculator-total { padding: 26px 21px; }
  .benefit-grid article { padding: 19px; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 27px 16px; }
  .process-list li:not(:last-child)::after { display: none; }
  .process-list p { min-height: 0; }
  .guarantee-grid { gap: 10px; }
  .guarantee-grid article { padding: 16px 9px; }
  .guarantee-grid h3 { font-size: 14px; }
  .guarantee-grid p { font-size: 11px; }
  .about-section h3 { margin-top: 21px; }
  .final-cta { padding: 45px 0; }
  .final-cta h2 { font-size: 31px; }
  .final-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .review-slider { grid-template-columns: 35px 1fr 35px; gap: 5px; }
  .review-slider blockquote { padding: 21px 15px; font-size: 14px; }
  .slider-arrow { width: 34px; height: 34px; }
  .mobile-action-bar a, .mobile-action-bar button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  html, .gallery-track { scroll-behavior: auto; }
}

@media (max-width: 390px) {
  .container, .narrow { width: calc(100% - 24px); }
  .brand { gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 9px; }
  .phone { font-size: 12px; }
  .phone-icon { width: 16px; height: 23px; flex-basis: 16px; }
  .quick-nav { gap: 5px; }
  .quick-nav .button { padding-right: 7px; padding-left: 7px; font-size: 11px; }
  h1 { font-size: 32px; }
  .hero-stats { gap: 7px 10px; font-size: 12px; }
  .lead-card, .calculator-panel, .calculator-total { padding-right: 16px; padding-left: 16px; }
  .mobile-action-bar a, .mobile-action-bar button { font-size: 9px; }
}
