/* СТРОЙ КОМФОРТНО — самописный сайт, версия 1.4.0 */

:root {
  --blue: #0b78b8;
  --blue-dark: #075f9b;
  --blue-deep: #073653;
  --blue-soft: #eaf6fd;
  --ink: #122738;
  --muted: #607384;
  --line: #d8e6ef;
  --surface: #ffffff;
  --soft: #f3f8fb;
  --danger: #b73838;
  --shadow: 0 18px 55px rgba(22, 69, 98, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body.admin-bar .header { top: 32px; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: white; border-radius: 9px; background: var(--blue-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.article-width { width: min(780px, calc(100% - 32px)); }
.narrow-copy { max-width: 880px; }
.site-main { min-height: 65vh; }
.muted { color: var(--muted); }

.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(216, 230, 239, .88); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-copy { display: grid; gap: 1px; }
.brand-mark { display: block; flex: 0 0 46px; width: 46px; height: 46px; object-fit: contain; }
.logo { display: flex; align-items: baseline; gap: 6px; color: var(--blue-deep); font-size: 20px; font-weight: 950; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.logo b { color: var(--blue); font-size: inherit; }
.tagline { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 14px; font-weight: 800; }
.nav a { position: relative; padding: 27px 0; }
.nav a::after { position: absolute; right: 0; bottom: 20px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 4px; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--blue-deep); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone { color: var(--blue-deep); font-size: 14px; font-weight: 900; white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; color: white; border: 1px solid transparent; border-radius: 13px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: 0 10px 24px rgba(21,151,229,.18); font-size: 14px; font-weight: 900; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.button:hover { filter: brightness(.96); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; filter: grayscale(.25); opacity: .5; transform: none; }
.button-small { min-height: 40px; padding: 0 14px; border-radius: 10px; }
.button-light { color: var(--blue-dark); border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.93); box-shadow: none; }
.button-outline { color: var(--blue-dark); border-color: var(--blue); background: transparent; box-shadow: none; }
.button-soft { color: var(--blue-dark); background: var(--blue-soft); box-shadow: none; }
.max-button { color: #fff; border-color: transparent; background: linear-gradient(135deg, #5146d5 0%, #5c45d7 45%, #7935b6 100%); box-shadow: 0 10px 24px rgba(81,70,213,.25); }
.call-button { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0b7c3d, #05612e); box-shadow: 0 10px 24px rgba(5,97,46,.24); }
a.button[href^="tel:"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0b7c3d, #05612e); box-shadow: 0 10px 24px rgba(5,97,46,.24); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue-dark); font-size: 14px; font-weight: 900; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.related-reading { margin-top: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: white; background: linear-gradient(90deg, rgba(4,38,60,.92) 0%, rgba(6,66,102,.75) 48%, rgba(11,86,128,.22) 100%), url('../images/hero-whitebox.webp') center/cover no-repeat; }
.hero::after { position: absolute; inset: auto 0 0; height: 160px; content: ""; background: linear-gradient(transparent, rgba(3,35,55,.42)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .62fr); gap: 52px; align-items: end; padding-block: 92px; }
.eyebrow { margin-bottom: 14px; color: var(--blue-dark); font-size: 12px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow, .section-dark .eyebrow, .page-hero .eyebrow { color: #aee2ff; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.01; letter-spacing: -.052em; }
h1 span { color: #80d0ff; }
h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
h3 { line-height: 1.22; }
.lead { max-width: 750px; margin-bottom: 30px; color: inherit; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; opacity: .92; }
.hero-actions, .inline-actions, .calc-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 40px; color: #dff3ff; font-size: 14px; font-weight: 800; }
.hero-points span::before { margin-right: 8px; content: "✓"; color: #87d6ff; }
.hero-card { padding: 28px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); background: rgba(255,255,255,.13); box-shadow: 0 30px 70px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.hero-card-label { display: block; margin-bottom: 13px; color: #b9e7ff; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-card strong { display: block; font-size: 25px; line-height: 1.2; }
.hero-card p { margin: 14px 0 20px; color: #e2f3fc; }
.hero-card .text-link { color: white; }
.hero-explain-link { display: inline-flex; margin-top: 16px; color: #dff3ff; border-bottom: 1px dashed rgba(223,243,255,.62); font-size: 14px; font-weight: 850; }
.hero-explain-link:hover { color: white; border-bottom-color: white; }
.hero-package-list { display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; color: #e2f3fc; list-style: none; }
.hero-package-list li { position: relative; padding-left: 30px; }
.hero-package-list li::before { position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 21px; height: 21px; content: "✓"; color: var(--blue-deep); border-radius: 7px; background: #aee2ff; font-size: 11px; font-weight: 950; }
.hero-card-steps { display: grid; gap: 9px; margin: 18px 0 22px; padding: 0; color: #e2f3fc; list-style: none; counter-reset: hero-step; }
.hero-card-steps li { position: relative; padding-left: 30px; counter-increment: hero-step; }
.hero-card-steps li::before { position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 21px; height: 21px; content: counter(hero-step); color: var(--blue-deep); border-radius: 7px; background: #aee2ff; font-size: 10px; font-weight: 950; }

.section { padding: 88px 0; }
.section-compact { padding: 48px 0; }
.section-soft { border-block: 1px solid var(--line); background: var(--soft); }
.section-dark { color: white; background: linear-gradient(135deg, var(--blue-deep), #074f7a); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-heading > p, .section-heading > div > p { max-width: 600px; margin-bottom: 2px; color: var(--muted); }
.compact-heading { align-items: flex-start; margin-bottom: 0; }
.section-actions { margin-top: 30px; text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { display: flex; flex-direction: column; min-height: 310px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 35px rgba(20,69,98,.06); scroll-margin-top: 96px; transition: transform .2s ease, border-color .2s ease; }
.service-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.service-card-media { display: block; height: 142px; margin: -10px -10px 0; overflow: hidden; border-radius: 14px; background: #dcecf5; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-card-media img { transform: scale(1.035); }
.service-card > .service-number { position: relative; z-index: 1; margin: -22px 0 20px 8px; border: 4px solid white; box-shadow: 0 8px 20px rgba(3,35,55,.16); }
.object-proof-section { overflow: hidden; }
.object-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.object-gallery-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.object-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 14px 36px rgba(20,69,98,.08); }
.object-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #dcecf5; transition: transform .35s ease; }
.object-photo:hover img { transform: scale(1.025); }
.object-photo figcaption { display: grid; gap: 5px; padding: 17px 18px 19px; }
.object-photo figcaption strong { color: var(--ink); font-size: 17px; line-height: 1.25; }
.object-photo figcaption span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.real-photo-badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 7px 10px; color: white; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(3,54,83,.88); box-shadow: 0 8px 22px rgba(3,35,55,.2); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(7px); }
.object-gallery-note { max-width: 730px; margin: 26px auto 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: center; }
.object-proof-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.service-number { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 28px; color: white; border-radius: 14px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); font-size: 13px; font-weight: 950; }
.service-card h3 { margin-bottom: 13px; font-size: 22px; }
.service-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; }
.whitebox-overview { padding-top: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f4fbff, #fff); }
.whitebox-intro { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 6vw, 76px); align-items: center; }
.whitebox-intro-copy p { max-width: 590px; }
.whitebox-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.whitebox-value-grid article { min-height: 225px; padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 12px 34px rgba(20,69,98,.06); }
.whitebox-value-grid span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; color: white; border-radius: 12px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); font-size: 11px; font-weight: 950; }
.whitebox-value-grid strong { display: block; margin-bottom: 8px; font-size: 18px; line-height: 1.25; }
.whitebox-value-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.split-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(40px, 7vw, 94px); align-items: center; }
.large-copy { color: var(--muted); font-size: 18px; }
.process-list { margin: 0; padding: 0; list-style: none; counter-reset: process; }
.process-list li { position: relative; display: grid; gap: 3px; min-height: 92px; padding: 14px 10px 18px 70px; border-bottom: 1px solid var(--line); counter-increment: process; }
.process-list li::before { position: absolute; top: 12px; left: 0; display: grid; place-items: center; width: 48px; height: 48px; content: counter(process, decimal-leading-zero); color: var(--blue-dark); border-radius: 14px; background: white; box-shadow: var(--shadow); font-size: 12px; font-weight: 950; }
.process-list b { font-size: 18px; }
.process-list span { color: var(--muted); }
.calculator-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg, #f3fbff, white); box-shadow: var(--shadow); }
.calculator-promo > div:first-child { max-width: 780px; }
.calculator-promo p { margin-bottom: 0; color: var(--muted); }
.calculator-promo > .button { justify-self: end; }
.plan-cta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(34px, 6vw, 78px); align-items: center; padding: 42px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.plan-cta-copy { max-width: 720px; }
.plan-cta-copy p { color: var(--muted); font-size: 18px; }
.plan-cta-note { padding: 26px; color: white; border-radius: 19px; background: linear-gradient(145deg, var(--blue-deep), var(--blue-dark)); }
.plan-cta-note strong { display: block; margin-bottom: 12px; font-size: 20px; }
.plan-cta-note ul { display: grid; gap: 7px; margin: 0; padding-left: 19px; color: #d9edf8; }
.estimate-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.estimate-steps-three { grid-template-columns: repeat(3, 1fr); }
.estimate-steps li { min-height: 250px; padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 12px 34px rgba(20,69,98,.05); }
.estimate-steps li > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 40px; color: white; border-radius: 12px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); font-size: 11px; font-weight: 950; }
.estimate-steps-three li > span { width: auto; min-width: 62px; padding-inline: 12px; justify-self: start; letter-spacing: .06em; }
.estimate-steps strong { display: block; margin-bottom: 9px; font-size: 18px; line-height: 1.25; }
.estimate-steps p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.estimate-path-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.trust-copy { color: #dff1fb; font-size: 18px; }
.commitment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.commitment-grid article { min-height: 150px; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: rgba(255,255,255,.08); }
.commitment-grid strong { display: block; margin-bottom: 8px; color: white; font-size: 18px; line-height: 1.25; }
.commitment-grid span { display: block; color: #d8edf8; font-size: 14px; line-height: 1.55; }
.acceptance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.acceptance-grid article { min-height: 245px; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 12px 34px rgba(20,69,98,.05); }
.acceptance-grid article > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 30px; color: var(--blue-dark); border-radius: 12px; background: var(--blue-soft); font-size: 11px; font-weight: 950; }
.acceptance-grid strong { display: block; margin-bottom: 9px; font-size: 19px; }
.acceptance-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 90px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.faq-list details[open] { border-color: #b9ddf4; background: var(--blue-soft); }
.faq-list summary { position: relative; padding: 20px 38px 20px 0; font-weight: 900; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 18px; right: 0; display: grid; place-items: center; width: 28px; height: 28px; content: "+"; color: var(--blue-dark); border-radius: 9px; background: white; font-size: 18px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin-bottom: 20px; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.post-card h2, .post-card h3 { margin: 12px 0; font-size: 22px; }
.post-card p { color: var(--muted); }
.post-date { color: var(--blue-dark); font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px; color: white; border-radius: 24px; background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark)); box-shadow: var(--shadow); }
.cta h2 { margin-bottom: 8px; }
.cta p { margin-bottom: 0; color: #d5edfa; }
.cta-light { color: var(--ink); border: 1px solid var(--line); background: white; }
.cta-light p { color: var(--muted); }

.page-hero { padding: 92px 0 74px; color: white; background: linear-gradient(135deg, var(--blue-deep), #0c78ba); }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.page-hero .lead { margin-bottom: 0; color: #e3f4fd; }
.page-hero .inline-actions { margin-top: 26px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .65fr; gap: 55px; align-items: end; }
.page-hero-note { padding: 24px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: rgba(255,255,255,.11); color: #e6f5fd; }
.service-hero .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr); align-items: center; }
.service-hero-media { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 22px; background: #0a4e76; box-shadow: 0 24px 58px rgba(3,35,55,.28); }
.service-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-media figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 3px; padding: 66px 22px 20px; color: #eaf7ff; background: linear-gradient(180deg, transparent 0%, rgba(3,35,55,.92) 78%); }
.service-hero-media figcaption strong { color: white; font-size: 15px; }
.service-hero-media figcaption span { font-size: 13px; line-height: 1.45; }
.catalog-list { display: grid; gap: 18px; }
.catalog-row { display: grid; grid-template-columns: 180px 1fr 1.05fr auto; gap: 26px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(20,69,98,.05); }
.catalog-row .service-number { margin: 0; }
.catalog-thumb { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 15px; background: #dcecf5; }
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-thumb:hover img { transform: scale(1.035); }
.catalog-thumb .service-number { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; color: white; box-shadow: 0 8px 20px rgba(3,35,55,.24); }
.catalog-row h2 { margin-bottom: 8px; font-size: 26px; }
.catalog-row p { margin-bottom: 0; color: var(--muted); }
.catalog-row ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.service-detail-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 70px; align-items: start; }
.large-list { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: item; }
.large-list li { position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--line); counter-increment: item; font-size: 18px; font-weight: 800; }
.large-list li::before { position: absolute; top: 15px; left: 0; display: grid; place-items: center; width: 38px; height: 38px; content: counter(item, decimal-leading-zero); color: var(--blue-dark); border-radius: 11px; background: var(--blue-soft); font-size: 11px; }
.service-scope-note { margin-top: 24px; padding: 21px 22px; color: var(--blue-deep); border: 1px solid #b9ddf4; border-radius: 15px; background: var(--blue-soft); }
.service-scope-note strong { display: block; margin-bottom: 6px; font-size: 18px; }
.service-scope-note p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.request-card { padding: 30px; border-radius: 22px; background: var(--blue-deep); color: white; box-shadow: var(--shadow); }
.request-card > span { color: #aadefb; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.request-card h3 { margin: 12px 0 20px; font-size: 26px; }
.request-card ul { margin: 0 0 24px; padding-left: 20px; color: #d9edf8; }
.request-hint { margin: -7px 0 22px; padding: 12px 14px; color: #dff3ff; border-radius: 12px; background: rgba(255,255,255,.09); font-size: 13px; }
.service-factors div { min-height: 132px; align-content: start; }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quality-grid div { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.quality-grid strong { color: var(--blue); font-size: 12px; }
.whitebox-definition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: clamp(42px, 7vw, 90px); align-items: start; }
.whitebox-definition .large-copy { margin-bottom: 24px; }
.whitebox-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.whitebox-checklist li { position: relative; padding: 15px 18px 15px 50px; border: 1px solid var(--line); border-radius: 14px; background: white; font-weight: 800; }
.whitebox-checklist li::before { position: absolute; top: 14px; left: 16px; display: grid; place-items: center; width: 24px; height: 24px; content: "✓"; color: white; border-radius: 8px; background: var(--blue); font-size: 12px; }
.whitebox-result-card { padding: 30px; color: white; border-radius: 22px; background: linear-gradient(145deg, var(--blue-deep), var(--blue-dark)); box-shadow: var(--shadow); }
.whitebox-result-card span { color: #aee2ff; font-size: 12px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.whitebox-result-card h2 { margin: 14px 0 12px; font-size: clamp(28px, 3vw, 39px); }
.whitebox-result-card p { color: #dceff9; }
.whitebox-package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.whitebox-package-grid.package-grid-five { grid-template-columns: repeat(5, 1fr); }
.whitebox-package-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.whitebox-package-grid .service-number { margin-bottom: 22px; }
.whitebox-package-grid h3 { margin-bottom: 10px; font-size: 20px; }
.whitebox-package-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.whitebox-materials { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; padding: 26px 30px; color: var(--blue-deep); border: 1px solid #b9ddf4; border-radius: 18px; background: var(--blue-soft); }
.whitebox-materials strong { font-size: 22px; }
.whitebox-materials p { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.whitebox-boundaries { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.whitebox-boundaries article { padding: 30px; border-radius: 20px; }
.whitebox-boundaries article:first-child { border: 1px solid #b9ddf4; background: var(--blue-soft); }
.whitebox-boundaries article:last-child { border: 1px solid var(--line); background: white; }
.whitebox-boundaries h3 { font-size: 25px; }
.whitebox-boundaries ul { margin-bottom: 0; padding-left: 20px; color: var(--muted); }

.calculator-shell { position: relative; z-index: 2; display: grid; gap: 20px; margin-top: -32px; padding-bottom: 76px; }
.calc-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.calc-grid { display: grid; gap: 16px; }
.calc-grid + .calc-grid { margin-top: 16px; }
.calc-grid-four { grid-template-columns: repeat(4, 1fr); }
.calc-panel label { display: grid; gap: 7px; color: #385266; font-size: 13px; font-weight: 850; }
.calc-panel input, .calc-panel select { width: 100%; min-height: 48px; padding: 0 13px; color: var(--ink); border: 1px solid #c7dce8; border-radius: 12px; background: white; outline: none; }
.calc-panel input:focus, .calc-panel select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,151,229,.13); }
.calc-panel input.is-invalid { border-color: var(--danger); background: #fff8f8; }
.field-error { color: var(--danger); font-size: 12px; font-weight: 750; }
.field-error[hidden] { display: none; }
.layout-choice { margin-top: 18px; }
.layout-choice > strong { display: block; margin-bottom: 10px; color: #385266; font-size: 13px; }
.layout-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.layout-card { display: flex; min-height: 252px; padding: 0; overflow: hidden; flex-direction: column; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; background: white; text-align: left; cursor: pointer; }
.layout-card:hover { border-color: var(--blue); background: white; transform: translateY(-1px); }
.layout-card.is-active { color: white; border-color: var(--blue-dark); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: 0 9px 22px rgba(21,151,229,.18); }
.layout-card b { font-size: 14px; }
.layout-card-plan { display: grid; width: 100%; min-height: 158px; place-items: center; padding: 9px; border-bottom: 1px solid var(--line); background: #f7fbfd; }
.layout-card-plan img { width: 100%; height: 148px; object-fit: contain; }
.layout-card-copy { display: grid; width: 100%; gap: 3px; padding: 13px 14px 14px; }
.layout-card-copy > span { color: var(--muted); font-size: 12px; }
.layout-card.is-active .layout-card-plan { border-bottom-color: #b9ddf4; background: white; }
.layout-card.is-active .layout-card-copy > span { color: #dff3ff; }
.layout-empty { grid-column: 1 / -1; margin-bottom: 0; padding: 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; background: var(--soft); }
.new-build-area-prompt { display: grid; gap: 5px; margin-top: 30px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--blue-soft); }
.new-build-area-prompt[hidden] { display: none; }
.new-build-area-prompt strong { font-size: 19px; }
.new-build-area-prompt span { color: var(--muted); font-size: 14px; }
.calc-check { display: flex !important; align-items: center; gap: 9px !important; padding-top: 22px; }
.calc-check input { width: 18px; min-height: 18px; }
.calc-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.calc-metric { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 30px rgba(20,69,98,.06); }
.calc-metric span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.calc-metric strong { display: block; margin-top: 7px; font-size: 27px; line-height: 1.15; }
.calc-metric small { display: block; margin-top: 9px; font-size: 11px; font-weight: 750; line-height: 1.4; }
.calc-primary { color: white; border-color: transparent; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.calc-primary span { color: #d9f2ff; }
.calc-primary small { color: #d9f2ff; }
.calc-content-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; }
.calc-card h2 { font-size: 30px; }
.plan-frame { display: grid; place-items: center; min-height: 360px; margin: 18px 0; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; }
.plan-frame img { max-height: 510px; object-fit: contain; }
.plan-empty { max-width: 360px; color: var(--muted); text-align: center; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.fact { padding: 14px; border-radius: 13px; background: var(--blue-soft); }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact strong { display: block; margin-top: 3px; }
.calc-warning { padding: 16px; border-radius: 14px; background: #fff4d9; color: #704b04; }
.calc-estimate h2 { margin-bottom: 6px; font-size: 32px; }
.calc-table-wrap { overflow-x: auto; margin-top: 18px; }
.calc-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.calc-table th, .calc-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.calc-table th { color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.calc-table td input { min-height: 40px; }
.calc-table th:first-child, .calc-table td:first-child { width: 34%; min-width: 280px; }
.service-total { white-space: nowrap; font-weight: 900; }
.remove-service { min-height: 36px; padding: 0 10px; color: var(--danger); border: 0; border-radius: 9px; background: #fff0f0; font-size: 12px; font-weight: 850; cursor: pointer; }
.service-picker { position: relative; z-index: 25; flex: 0 0 auto; }
.service-menu { position: absolute; top: calc(100% + 10px); right: 0; display: grid; width: min(440px, calc(100vw - 40px)); max-height: min(60vh, 480px); padding: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 22px 55px rgba(7, 54, 83, .18); }
.service-menu[hidden] { display: none; }
.service-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; width: 100%; padding: 13px 12px; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.service-option:last-child { border-bottom: 0; }
.service-option:hover, .service-option:focus-visible { border-radius: 10px; background: var(--blue-soft); outline: none; }
.service-option strong { font-size: 14px; line-height: 1.35; }
.service-option span { flex: 0 1 52%; color: var(--blue-dark); font-size: 12px; font-weight: 850; line-height: 1.35; text-align: right; }
.service-option-custom strong { color: var(--blue-dark); }
.calc-actions { margin-top: 18px; }
.calc-action-note { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.calc-sum { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 22px; font-size: 18px; }
.calc-sum strong { color: var(--blue-dark); font-size: 30px; }
.calc-status { min-height: 22px; margin-top: 8px; color: var(--blue-dark); font-weight: 800; text-align: right; }
.calc-method { box-shadow: none; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.method-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.method-grid strong { display: block; margin-bottom: 8px; }
.method-grid code { display: inline-block; padding: 7px 9px; border-radius: 8px; background: #edf4f8; }
.method-grid p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.whitebox-calculator { max-width: 1180px; }
.calculator-intro { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.calculator-intro h2, .layout-choice h2 { margin-bottom: 0; font-size: clamp(25px, 3vw, 35px); }
.calculator-intro .eyebrow, .layout-choice .eyebrow { margin-bottom: 6px; }
.calculator-badge { display: inline-flex; min-height: 36px; align-items: center; padding: 0 13px; color: var(--blue-dark); border-radius: 999px; background: var(--blue-soft); font-size: 12px; font-weight: 900; white-space: nowrap; }
.house-type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.house-type-card { display: grid; gap: 5px; min-height: 92px; padding: 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: white; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.house-type-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.house-type-card.is-active { color: white; border-color: var(--blue-dark); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: 0 12px 28px rgba(21,151,229,.2); }
.house-type-card strong { font-size: 17px; }
.house-type-card span { color: var(--muted); font-size: 13px; }
.house-type-card.is-active span { color: #dff3ff; }
.whitebox-calculator .layout-choice { margin-top: 30px; padding-top: 27px; border-top: 1px solid var(--line); }
.layout-disclaimer { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.whitebox-calculator .layout-cards { margin-top: 14px; }
.whitebox-calculator .layout-card { min-height: 252px; }
.whitebox-calculator .layout-card em { margin-top: 7px; color: var(--blue-dark); font-size: 14px; font-style: normal; font-weight: 950; }
.whitebox-calculator .layout-card.is-active em { color: white; }
.whitebox-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-top: 24px; }
.area-note { display: grid; align-content: center; align-self: stretch; min-height: 78px; padding: 14px 17px; border: 1px solid #bddff3; border-radius: 14px; background: var(--blue-soft); }
.area-note strong { color: var(--blue-dark); font-size: 14px; line-height: 1.35; }
.area-note span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.calc-step-word { color: var(--blue-dark); font-size: 14px; letter-spacing: .15em; }
.calc-step-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 4px 6px 0; }
.calc-step-intro h2 { margin: 0; font-size: clamp(25px, 3vw, 35px); }
.calc-step-intro .eyebrow { margin-bottom: 6px; }
.calc-step-intro p { max-width: 410px; margin: 0; color: var(--muted); }
.whitebox-results .calc-metric strong { font-size: clamp(19px, 2vw, 27px); }
.whitebox-results .calc-primary strong { font-size: clamp(25px, 2.8vw, 34px); }
.calc-included { border-color: #b9ddf4; background: linear-gradient(145deg, #f7fcff, var(--blue-soft)); }
.calc-included strong { color: var(--blue-dark); }
.calc-included-button { display: inline-flex; margin-top: 12px; padding: 0; color: var(--blue-dark); border: 0; border-bottom: 1px dashed currentColor; background: transparent; font-size: 12px; font-weight: 900; line-height: 1.45; cursor: pointer; }
.calc-included-button:hover, .calc-included-button:focus-visible { color: var(--blue); outline: none; }
.package-card { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 30px; align-items: center; }
.package-card[hidden] { display: none; }
.package-copy h2 { margin-bottom: 10px; font-size: clamp(27px, 3vw, 38px); }
.package-copy p { margin-bottom: 0; color: var(--muted); }
.included-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.included-services article { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.included-services span { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: white; border-radius: 11px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); font-size: 11px; font-weight: 950; }
.included-services strong { font-size: 14px; line-height: 1.35; }
.package-card .included-services > article:nth-child(5) { grid-column: 1 / -1; }
.included-services .included-materials { grid-column: 1 / -1; border-color: #b9ddf4; background: var(--blue-soft); }
.included-waste small, .included-materials small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.empty-extras { margin-top: 18px; padding: 22px; color: var(--muted); border: 1px dashed #bdd3df; border-radius: 14px; background: var(--soft); text-align: center; }
.estimate-summary { display: grid; gap: 0; max-width: 520px; margin: 24px 0 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.estimate-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.estimate-summary > div:last-child { border-bottom: 0; }
.estimate-summary span { color: var(--muted); font-size: 13px; font-weight: 800; }
.estimate-summary strong { color: var(--blue-dark); font-size: 18px; }
.estimate-summary .estimate-grand { color: white; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.estimate-summary .estimate-grand span, .estimate-summary .estimate-grand strong { color: white; }
.estimate-summary .estimate-grand strong { font-size: 28px; }
.whitebox-method { display: grid; grid-template-columns: minmax(0, .75fr) minmax(420px, 1.25fr); gap: 30px; align-items: start; }
.whitebox-method h2 { margin-bottom: 0; font-size: clamp(25px, 3vw, 36px); }
.whitebox-method p { margin-bottom: 0; color: var(--muted); }
.calculation-explanation { display: grid; gap: 14px; }
.inspection-details { padding-top: 13px; border-top: 1px solid var(--line); }
.inspection-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--blue-dark); font-size: 14px; font-weight: 900; line-height: 1.45; cursor: pointer; list-style: none; }
.inspection-details summary::-webkit-details-marker { display: none; }
.inspection-details summary::after { content: "+"; display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--blue-soft); font-size: 19px; }
.inspection-details[open] summary::after { content: "−"; }
.inspection-details-content { margin-top: 16px; }
.inspection-details-content > p:first-child { font-size: 13px; line-height: 1.55; }
.inspection-factors { display: grid; gap: 9px; margin: 14px 0; padding: 0; list-style: none; }
.inspection-factors li { display: grid; grid-template-columns: minmax(145px, .42fr) minmax(0, 1fr); gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.inspection-factors strong { color: var(--ink); font-size: 13px; }
.inspection-factors span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.inspection-guarantee { padding: 13px 14px; color: var(--blue-deep) !important; border-radius: 12px; background: var(--blue-soft); font-size: 13px; font-weight: 800; line-height: 1.5; }

.article-hero { padding-bottom: 60px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; color: #dff3ff; font-size: 13px; font-weight: 750; }
.article-meta span::before { margin-right: 20px; content: "•"; color: #8ed7ff; }
.article-content { color: #283f50; font-size: 18px; }
.article-content h2, .article-content h3 { margin-top: 38px; }
.article-content a { color: var(--blue-dark); text-decoration: underline; }
.inline-content-link { color: var(--blue-dark); font-weight: 850; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content img { height: auto; border-radius: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; }
.article-content li { margin-bottom: 9px; }
.article-callout { margin: 32px 0; padding: 24px; color: var(--blue-deep); border: 1px solid #b9ddf4; border-radius: 17px; background: var(--blue-soft); }
.article-callout strong { display: block; margin-bottom: 6px; font-size: 20px; }
.breadcrumbs { padding: 18px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 7px; content: "→"; color: #8aa0b0; }
.breadcrumbs a { color: var(--blue-dark); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 22px; }
.contact-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 28px; }
.contact-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.contact-list a { color: var(--blue-dark); font-weight: 900; }
.contact-checklist li { position: relative; padding-left: 28px; }
.contact-checklist li::before { position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 20px; height: 20px; content: "✓"; color: white; border-radius: 7px; background: var(--blue); font-size: 10px; font-weight: 950; }
#contacts { scroll-margin-top: 96px; }
.mobile-contact-bar { display: none; }
.empty-state { grid-column: 1 / -1; padding: 48px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.pagination { margin-top: 30px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 10px; color: var(--blue-dark); border-radius: 9px; background: var(--blue-soft); font-weight: 900; }
.page-numbers.current { color: white; background: var(--blue-dark); }

.footer { padding: 54px 0 26px; color: #d5e8f3; background: #052f49; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer .logo { color: white; }
.footer .logo b { color: #75cfff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 44px; height: 44px; padding: 3px; border-radius: 10px; background: white; }
.brand-domain { font-weight: 900; letter-spacing: .02em; }
.footer h4 { margin: 0 0 14px; color: white; }
.footer p { margin-bottom: 8px; color: #bcd4e1; font-size: 14px; }
.footer a:hover { color: white; }
.copy { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #8fb0c2; font-size: 12px; }
.footer-meta { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); }
.footer-owner { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 0 0 15px; }
.footer-owner strong { color: white; }
.footer-owner span, .footer-owner a { color: #bcd4e1; }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px 30px; }
.footer-copy { flex: 0 0 auto; margin: 0 !important; color: #8fb0c2 !important; font-size: 13px !important; }
.footer-docs { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 22px; }
.footer-docs a { color: #bcd4e1; font-size: 13px; text-decoration: underline; text-decoration-color: rgba(188,212,225,.45); text-underline-offset: 3px; }
.footer-note { margin: 12px 0 0 !important; color: #8fb0c2 !important; font-size: 12px !important; }

.cookie-banner { position: fixed; z-index: 120; right: 20px; bottom: 20px; left: 20px; display: none; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; max-width: 1060px; margin: auto; padding: 20px; border: 1px solid #b9d8eb; border-radius: 20px; background: white; box-shadow: 0 24px 70px rgba(5,47,73,.25); }
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { display: grid; }
.cookie-banner-copy strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 18px; }
.cookie-banner-copy p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cookie-banner-copy a { color: var(--blue-dark); font-size: 14px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner-actions .button { min-height: 46px; white-space: nowrap; }

.legal-page { background: var(--soft); }
.legal-page .page-hero { padding-bottom: 46px; }
.legal-content { max-width: 960px; margin: 0 auto; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.legal-content h2 { margin-top: 38px; scroll-margin-top: 110px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { margin-top: 24px; font-size: 21px; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content a { color: var(--blue-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { display: inline-flex; margin-bottom: 26px; padding: 7px 11px; color: var(--blue-dark) !important; border-radius: 999px; background: var(--blue-soft); font-size: 13px; font-weight: 850; }
.legal-callout { margin: 26px 0; padding: 20px; border: 1px solid #b9ddf4; border-radius: 16px; background: var(--blue-soft); }
.legal-callout p:last-child { margin-bottom: 0; }
.requisites-list { display: grid; gap: 0; margin: 24px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.requisites-row { display: grid; grid-template-columns: minmax(190px,.7fr) minmax(0,1.3fr); gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.requisites-row:last-child { border-bottom: 0; }
.requisites-row dt { color: var(--muted); font-weight: 750; }
.requisites-row dd { margin: 0; color: var(--ink); font-weight: 850; overflow-wrap: anywhere; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 1051px) and (max-width: 1180px) {
  .header-inner { gap: 14px; }
  .tagline, .header-actions .phone { display: none; }
  .nav { gap: 12px; font-size: 13px; }
}

@media (max-width: 1050px) {
  .header-inner { position: relative; }
  .menu-toggle { display: flex; flex: 0 0 42px; }
  .nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; max-height: calc(100dvh - 76px); overflow-y: auto; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: white; box-shadow: 0 22px 50px rgba(7,54,83,.16); }
  .nav.is-open { display: flex; }
  .nav > a { padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .nav > a::after { display: none; }
  .nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }
  .nav-mobile-actions .button { padding: 0 14px; border-bottom: 0; }
  .nav-mobile-actions a::after { display: none; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .object-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid, .whitebox-package-grid, .whitebox-package-grid.package-grid-five, .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-row { grid-template-columns: 150px 1fr auto; }
  .catalog-thumb { grid-row: 1 / 3; height: 100%; min-height: 190px; aspect-ratio: auto; }
  .catalog-row ul { grid-column: 2 / 4; }
  .calc-grid-four { grid-template-columns: 1fr 1fr; }
  .estimate-steps { grid-template-columns: 1fr 1fr; }
  .estimate-steps-three { grid-template-columns: repeat(3, 1fr); }
  .acceptance-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body.admin-bar .header { top: 46px; }
  .phone { display: none; }
  .hero { min-height: auto; }
  .hero-grid, .page-hero-grid, .split-grid, .trust-grid, .service-detail-grid, .calc-content-grid, .whitebox-intro, .whitebox-definition, .faq-layout, .contact-grid, .plan-cta { grid-template-columns: 1fr; }
  .service-hero .page-hero-grid { grid-template-columns: 1fr; }
  .service-hero-media { width: min(100%, 620px); }
  .catalog-row { grid-template-columns: 140px 1fr; }
  .catalog-thumb { grid-row: 1 / 4; min-height: 230px; }
  .catalog-row ul, .catalog-row .button { grid-column: 2; }
  .catalog-row .button { justify-self: start; }
  .hero-grid { gap: 30px; padding-block: 72px; }
  .hero { background-image: linear-gradient(90deg, rgba(4,38,60,.94), rgba(6,66,102,.82)), url('../images/hero-whitebox.webp'); }
  .hero-card { max-width: 580px; }
  .section { padding: 68px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .estimate-steps-three { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .calculator-promo { grid-template-columns: 1fr; gap: 24px; }
  .calculator-promo > .button { justify-self: start; }
  .calc-results { grid-template-columns: 1fr 1fr; }
  .package-card, .whitebox-method { grid-template-columns: 1fr; }
  .whitebox-value-grid, .whitebox-package-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .container, .article-width { width: min(100% - 16px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand-copy { min-width: 0; overflow: hidden; }
  .menu-toggle { flex: 0 0 42px; margin-left: auto; }
  .nav { max-height: calc(100dvh - 66px); overflow-y: auto; }
  .tagline { display: none; }
  .logo { font-size: 16px; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .header-actions .button { min-height: 38px; }
  .header-actions .max-button { display: none; }
  .header-actions { display: none; }
  .header-inner { gap: 12px; }
  .brand { min-width: 0; }
  h1 { font-size: 37px; }
  .page-hero { padding: 50px 0 42px; }
  .page-hero-grid { gap: 20px; }
  .page-hero h1 { font-size: clamp(32px, 9.5vw, 38px); overflow-wrap: anywhere; }
  .page-hero .lead { font-size: 17px; line-height: 1.45; }
  .page-hero-note { padding: 18px; font-size: 14px; }
  .hero-actions .button, .cta-actions .button { width: 100%; min-height: 54px; padding-block: 11px; line-height: 1.3; text-align: center; }
  .service-grid, .calc-grid-four, .calc-results, .method-grid, .quality-grid, .whitebox-value-grid, .whitebox-package-grid, .whitebox-package-grid.package-grid-five, .whitebox-boundaries { grid-template-columns: 1fr; }
  .object-gallery, .object-gallery-two { grid-template-columns: 1fr; }
  .object-photo { border-radius: 17px; }
  .object-photo figcaption { padding: 15px 16px 17px; }
  .real-photo-badge { top: 10px; left: 10px; }
  .whitebox-fields, .included-services { grid-template-columns: 1fr; }
  .site-main, .whitebox-calculator, .calculator-shell, .calc-panel { min-width: 0; max-width: 100%; }
  .whitebox-calculator { width: calc(100% - 16px); }
  .calculator-shell { gap: 14px; margin-top: -14px; padding-bottom: 52px; }
  .calc-panel { min-width: 0; padding: 16px; border-radius: 17px; }
  .calculator-intro h2, .layout-choice h2, .calc-step-intro h2, .calc-estimate h2 { font-size: 27px; line-height: 1.15; overflow-wrap: anywhere; }
  .calculator-badge { max-width: 100%; white-space: normal; text-align: center; }
  .house-type-cards, .whitebox-calculator .layout-cards { display: grid; grid-template-columns: 1fr; gap: 10px; padding-bottom: 0; overflow: visible; }
  .house-type-card { width: 100%; min-height: 76px; padding: 14px; }
  .whitebox-calculator .layout-choice { margin-top: 22px; padding-top: 20px; }
  .whitebox-calculator .layout-card { width: 100%; min-height: 0; }
  .whitebox-calculator .layout-card-plan { min-height: 152px; }
  .whitebox-calculator .layout-card-plan img { height: 144px; }
  .new-build-area-prompt { margin-top: 20px; padding: 16px; }
  .calc-metric, .included-services strong { min-width: 0; overflow-wrap: anywhere; }
  .calc-metric { padding: 16px; }
  .whitebox-results .calc-metric strong, .whitebox-results .calc-primary strong { font-size: 25px; overflow-wrap: anywhere; }
  .service-card { min-height: 270px; }
  .whitebox-value-grid article { min-height: auto; }
  .whitebox-materials { align-items: flex-start; flex-direction: column; padding: 23px; }
  .calculator-promo { grid-template-columns: 1fr; padding: 25px; }
  .calculator-promo > .button { width: 100%; }
  .catalog-row { grid-template-columns: 1fr; }
  .catalog-thumb { grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .catalog-row ul { grid-column: auto; }
  .catalog-row .button { grid-column: auto; width: 100%; }
  .cta { align-items: stretch; flex-direction: column; padding: 28px; }
  .calc-check { padding-top: 0; }
  .calc-sum { align-items: flex-end; flex-direction: column; }
  .calc-actions .button { width: 100%; }
  .calc-table { min-width: 0; }
  .calc-table thead { display: none; }
  .calc-table, .calc-table tbody, .calc-table tr, .calc-table td { display: block; width: 100%; }
  .calc-table tr { display: grid; gap: 8px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
  .calc-table td { display: grid; grid-template-columns: 1fr; gap: 4px; align-items: center; padding: 0; border: 0; }
  .calc-table td::before { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
  .calc-table td:nth-child(1)::before { content: "Услуга"; }
  .calc-table td:nth-child(2)::before { content: "Количество"; }
  .calc-table td:nth-child(3)::before { content: "Единица"; }
  .calc-table td:nth-child(4)::before { content: "Цена"; }
  .calc-table td:nth-child(5)::before { content: "Стоимость"; }
  .calc-table td:nth-child(6)::before { content: ""; }
  .calc-table th:first-child, .calc-table td:first-child { width: 100%; min-width: 0; }
  .calc-table td:nth-child(6) { grid-template-columns: 1fr; }
  .remove-service { min-height: 42px; }
  .service-picker, .service-picker > .button { width: 100%; }
  .service-menu { right: auto; left: 0; width: 100%; }
  .service-option { flex-direction: column; gap: 4px; }
  .service-option span { max-width: none; text-align: left; }
  .calculator-intro { align-items: stretch; flex-direction: column; }
  .calc-step-intro { align-items: start; flex-direction: column; gap: 8px; }
  .inspection-factors li { grid-template-columns: 1fr; gap: 4px; }
  .calculator-badge { align-self: flex-start; }
  .estimate-summary { max-width: none; }
  .estimate-summary > div { align-items: flex-start; flex-wrap: wrap; gap: 5px 14px; }
  .estimate-summary span { flex: 1 1 190px; }
  .estimate-summary strong { margin-left: auto; overflow-wrap: anywhere; }
  .calc-status { text-align: left; }
  .estimate-steps { grid-template-columns: 1fr; }
  .estimate-steps li { min-height: auto; }
  .estimate-steps li > span { margin-bottom: 24px; }
  .estimate-steps-three { grid-template-columns: 1fr; }
  .commitment-grid, .acceptance-grid { grid-template-columns: 1fr; }
  .acceptance-grid article { min-height: auto; }
  .plan-cta { padding: 25px; }
  .estimate-path-actions .button { width: 100%; }
  .article-meta { flex-direction: column; gap: 2px; }
  .article-meta span::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-docs { justify-content: flex-start; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-banner-actions .button { width: 100%; }
  body.cookie-consent-open .mobile-contact-bar { display: none; }
  .legal-content { padding: 24px 18px; border-radius: 18px; }
  .requisites-row { grid-template-columns: 1fr; gap: 4px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-contact-bar { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(245,249,252,.96); backdrop-filter: blur(14px); }
  .mobile-contact-bar .button { min-height: 48px; padding: 0 12px; }
  .mobile-contact-bar .call-button { background: linear-gradient(135deg, #0b7c3d, #05612e); }
  body:has(input:focus, select:focus, textarea:focus) .mobile-contact-bar { display: none; }
}

@media (max-width: 400px) {
  h1 { font-size: 34px; }
  .logo { font-size: 14px; }
  .nav-mobile-actions { grid-template-columns: 1fr; }
  .mobile-contact-bar .button { padding-inline: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Service catalogue 1.5.0 */
.service-group-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.service-group-grid .service-card { display:flex; flex-direction:column; min-width:0; }
.service-group-grid .service-card > .text-link { margin-top:auto; padding-top:16px; }
.service-group-grid .service-card h3 a { color:inherit; text-decoration:none; }
.service-group-grid .service-card h3 a:hover { color:var(--blue-dark); }
.service-kicker { display:block; color:var(--blue-dark); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; margin:0 0 14px; }
.service-jump-nav { display:flex; flex-wrap:wrap; gap:10px; padding-top:20px; padding-bottom:8px; }
.service-jump-nav a { display:inline-flex; align-items:center; min-height:44px; border:1px solid var(--line); border-radius:12px; padding:10px 16px; background:var(--blue-soft); font-weight:700; }
.service-jump-nav a:hover { background:#d6edfc; }
.service-catalog-section { scroll-margin-top:100px; }
.standalone-service-link { margin-top:20px; }
.standalone-package-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:1050px) {
 .service-group-grid, .standalone-package-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
 .service-group-grid, .standalone-package-grid { grid-template-columns:minmax(0,1fr); }
 .service-jump-nav { gap:8px; }
 .service-jump-nav a { flex:1 1 100%; }
 .service-catalog-section { scroll-margin-top:85px; }
}

.service-card-media { position:relative; }
.service-photo-label { position:absolute; left:10px; bottom:10px; max-width:calc(100% - 20px); padding:5px 9px; color:white; background:rgba(7,54,83,.88); border-radius:7px; font-size:11px; line-height:1.35; font-weight:700; }
.service-scope-note > ul { margin-bottom:0; }
