/* DoorPro — основной стиль сайта. Гамма DoorHan: синий #003E7E + оранжевый #F39208. Основа — прототип этапа 3. */
:root {
  --blue: #003e7e;
  --blue-dark: #043261;
  --blue-deep: #00264d;
  --blue-light: #004d9d;
  --blue-50: #eaf1f9;
  --orange: #f39208;
  --orange-dark: #d97f00;
  --orange-50: #fff4e5;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --line: #dfe5ec;
  --text: #1f2933;
  --muted: #5b6876;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 38, 77, .08);
  --container: 1240px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--blue-deep); }
h1 { font-size: clamp(28px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { padding: 64px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 88px 0; } }
.section--soft { background: var(--bg-soft); }
.section--blue { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section__head p { color: var(--muted); max-width: 640px; margin: 0; }
.section--blue .section__head p { color: #c9d8ea; }
.eyebrow { display: inline-block; font: 700 13px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 2px solid transparent; font: 700 15px/1.2 var(--font-head); cursor: pointer; transition: .2s; text-align: center; }
.btn--primary { background: var(--orange); color: #1b1200; }
.btn--primary:hover { background: var(--orange-dark); color: #1b1200; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-light); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--blue); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* Placeholder image */
.ph { position: relative; background: repeating-linear-gradient(135deg, #dde6f0 0 12px, #e8eef5 12px 24px); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #5d7590; font: 600 13px/1.3 var(--font-head); text-align: center; padding: 12px; min-height: 160px; }
.ph::before { content: "🖼  " attr(data-ph); }
.ph--dark { background: repeating-linear-gradient(135deg, #0d3b6b 0 14px, #10467e 14px 28px); color: #9fbbdb; }

/* Top bar & header */
.topbar { background: var(--blue-deep); color: #c9d8ea; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar__badge { color: var(--orange); font-weight: 700; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; color: var(--blue-deep); }
.logo b { font: 900 26px/1 var(--font-head); letter-spacing: .02em; }
.logo b span { color: var(--orange); }
.logo small { font-size: 11px; color: var(--muted); margin-top: 4px; max-width: 190px; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 10px 12px; border-radius: 8px; color: var(--text); font: 600 15px/1 var(--font-head); }
.nav a:hover, .nav a.is-active { background: var(--blue-50); color: var(--blue); }
.header__contacts { display: none; text-align: right; line-height: 1.2; }
.header__phone { font: 800 19px/1.2 var(--font-head); color: var(--blue-deep); white-space: nowrap; }
.header__hours { font-size: 12px; color: var(--muted); }
.header__cta { display: none; }
.burger { margin-left: auto; width: 44px; height: 44px; border: 0; background: var(--blue-50); border-radius: 10px; font-size: 22px; color: var(--blue); cursor: pointer; }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__contacts { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 16px 16px; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }

@media (min-width: 1100px) and (max-width: 1360px) {
  .header .container { gap: 14px; }
  .nav a { padding: 10px 8px; font-size: 14px; }
  .logo small { display: none; }
  .header__phone { font-size: 17px; }
}
@media (max-width: 559px) {
  .hero__actions .btn, .cat-hero__price .btn { width: 100%; }
}
/* Mega menu hint */
.nav__catalog { background: var(--blue) !important; color: #fff !important; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(243,146,8,.18), transparent 60%), linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 60%, var(--blue-light) 100%); color: #fff; padding: 48px 0 56px; overflow: hidden; }
.hero .container { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hero { padding: 80px 0; } .hero .container { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { font-size: 18px; color: #d6e3f2; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .hero__trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__trust div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 12px; font-size: 13px; color: #d6e3f2; }
.hero__trust b { display: block; font: 800 16px/1.2 var(--font-head); color: #fff; margin-bottom: 2px; }
.hero__media { position: relative; }
.hero__media .ph { min-height: 300px; }
@media (min-width: 1024px) { .hero__media .ph { min-height: 440px; } }
.hero__badge { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--blue-deep); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; max-width: 260px; }
.hero__badge b { display: block; font: 800 22px/1.1 var(--font-head); color: var(--orange-dark); }

/* Segment tabs & category cards */
.tabs { display: inline-flex; background: var(--bg-soft); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 12px 20px; border-radius: 9px; font: 700 15px/1 var(--font-head); color: var(--muted); cursor: pointer; }
.tabs button.is-active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c8d4e2; }
.card .ph { border-radius: 0; min-height: 180px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; font-size: 18px; }
.card__body p { margin: 0; color: var(--muted); font-size: 14px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.price { font: 800 18px/1.1 var(--font-head); color: var(--blue-deep); white-space: nowrap; }
.price small { font: 500 12px/1 var(--font-body); color: var(--muted); display: block; margin-bottom: 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--orange-50); color: var(--orange-dark); }
.tag--blue { background: var(--blue-50); color: var(--blue); }
.link-arrow { font: 700 14px/1 var(--font-head); color: var(--blue); }
.link-arrow::after { content: " →"; }

/* Quiz inline teaser */
.quiz-teaser { display: grid; gap: 24px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); color: var(--text); }
@media (min-width: 900px) { .quiz-teaser { grid-template-columns: .9fr 1.1fr; padding: 40px; align-items: center; } }
.quiz-teaser h2 { color: var(--blue-deep); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.choice { border: 2px solid var(--line); border-radius: 12px; padding: 14px 12px; background: #fff; cursor: pointer; font: 600 14px/1.3 var(--font-head); color: var(--text); text-align: left; display: flex; flex-direction: column; gap: 6px; transition: .15s; }
.choice span { font-size: 24px; }
.choice:hover, .choice.is-selected { border-color: var(--orange); background: var(--orange-50); }

/* Why us */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-50); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.stat { text-align: center; padding: 16px 8px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.stat b { display: block; font: 900 36px/1 var(--font-head); color: var(--orange); }
.stat span { font-size: 13px; color: #c9d8ea; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.step { position: relative; padding: 24px 20px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font: 900 34px/1 var(--font-head); color: var(--orange); display: block; margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 16px; font: 600 14px/1 var(--font-head); color: var(--text); cursor: pointer; }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.project .card__body { gap: 4px; }
.project__meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* Service split */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Reviews */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review__stars { color: var(--orange); letter-spacing: 2px; }
.review__who { font-weight: 700; color: var(--blue-deep); }
.review__src { font-size: 13px; color: var(--muted); }
.rating-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.rating-badge { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; background: #fff; font-size: 14px; }
.rating-badge b { font: 800 22px/1 var(--font-head); color: var(--blue-deep); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font: 700 16px/1.4 var(--font-head); color: var(--blue-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Lead form */
.lead { display: grid; gap: 32px; }
@media (min-width: 960px) { .lead { grid-template-columns: 1fr 1fr; align-items: center; } }
.form { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); color: var(--text); display: grid; gap: 14px; }
@media (min-width: 640px) { .form { padding: 32px; } }
.form label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
.form input, .form textarea, .form select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 15px/1.4 var(--font-body); color: var(--text); background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px var(--blue-50); }
.form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented label { flex: 1; min-width: 130px; display: flex; flex-direction: row; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 14px; cursor: pointer; }
.segmented input { width: auto; }
.consent { font-size: 12px; color: var(--muted); font-weight: 400 !important; display: flex !important; grid-template-columns: none !important; flex-direction: row; gap: 8px; align-items: flex-start; }
.consent input { width: auto; margin-top: 3px; }

/* Contacts */
.contacts { display: grid; gap: 24px; }
@media (min-width: 960px) { .contacts { grid-template-columns: 1fr 1.4fr; } }
.contact-list { display: grid; gap: 16px; }
.contact-list div b { display: block; font-family: var(--font-head); color: var(--blue-deep); }
.map.ph { min-height: 360px; }

/* Footer */
.footer { background: var(--blue-deep); color: #a9bfd8; padding: 56px 0 24px; font-size: 14px; }
.footer a { color: #dbe6f3; }
.footer a:hover { color: var(--orange); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logo, .footer .logo b { color: #fff; }
.footer .logo small { color: #a9bfd8; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }

/* Floating messengers + mobile bar */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: none; flex-direction: column; gap: 10px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 13px/1 var(--font-head); box-shadow: var(--shadow); }
.fab .wa { background: #25d366; } .fab .tg { background: #2aabee; } .fab .max { background: #5b3df5; }
@media (min-width: 900px) { .fab { display: flex; } }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.mobile-bar a, .mobile-bar button { min-height: 46px; border-radius: 10px; font: 700 14px/1 var(--font-head); display: flex; align-items: center; justify-content: center; border: 0; }
.mobile-bar .call { background: var(--blue-50); color: var(--blue); }
.mobile-bar .wa { background: #e8f9ef; color: #128c4a; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 70px; } }

/* Quiz modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 20, 45, .6); }
.modal.is-open { display: flex; }
.modal__box { background: #fff; border-radius: 20px; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; position: relative; }
@media (min-width: 640px) { .modal__box { padding: 36px; } }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); font-size: 22px; cursor: pointer; }
.progress { height: 6px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin: 16px 0 24px; }
.progress div { height: 100%; background: var(--orange); width: 20%; transition: width .3s; }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.range-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .range-row { grid-template-columns: 1fr 1fr; } }
.quiz-gift { background: var(--orange-50); border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }

/* Breadcrumbs & category */
.crumbs { font-size: 13px; color: #a9bfd8; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.crumbs a { color: #dbe6f3; }
.crumbs span::before { content: "/"; margin-right: 6px; opacity: .5; }
.cat-hero { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; padding: 32px 0 48px; }
.cat-hero .container { display: grid; gap: 32px; }
@media (min-width: 1024px) { .cat-hero .container { grid-template-columns: 1.15fr .85fr; align-items: center; } .cat-hero { padding: 48px 0 64px; } }
.cat-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 44px); }
.cat-hero__lead { color: #d6e3f2; font-size: 17px; }
.cat-hero__price { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 20px 0; }
.cat-hero__price .price { color: #fff; font-size: 30px; }
.cat-hero__price .price small { color: #a9bfd8; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips-row span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 6px 12px; font-size: 13px; color: #e3ecf6; }
.cat-hero .ph { min-height: 280px; }
.subnav { position: sticky; top: 76px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav .container { display: flex; gap: 4px; white-space: nowrap; }
.subnav a { padding: 16px 14px; font: 600 14px/1 var(--font-head); color: var(--muted); border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--blue); border-bottom-color: var(--orange); }
@media (max-width: 1099px) { .subnav { top: 76px; } }
.model { display: grid; gap: 0; }
@media (min-width: 900px) { .model { grid-template-columns: 1fr 1.2fr; } .model .ph { min-height: 100%; } }
.model .card__body { padding: 24px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.specs td:last-child { text-align: right; font-weight: 600; color: var(--blue-deep); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { background: var(--blue-50); font-family: var(--font-head); color: var(--blue-deep); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.swatch { font-size: 12px; color: var(--muted); text-align: center; }
.swatch i { display: block; height: 64px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.designs .ph { min-height: 110px; font-size: 12px; }
.callout { display: grid; gap: 20px; background: var(--orange-50); border: 1px solid #fbd9a6; border-radius: 20px; padding: 24px; }
@media (min-width: 900px) { .callout { grid-template-columns: 1fr auto; align-items: center; padding: 32px 40px; } }
.callout h3 { margin-bottom: 4px; }
.options { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.option--accent { border: 2px solid var(--orange); position: relative; }
.option--accent::before { content: "Популярно"; position: absolute; top: -12px; left: 20px; background: var(--orange); color: #1b1200; font: 700 12px/1 var(--font-head); padding: 6px 10px; border-radius: 99px; }
.seo-text { columns: 1; color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .seo-text { columns: 2; column-gap: 48px; } }
.seo-text.is-collapsed { max-height: 180px; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }

/* ================= Дополнения для живого сайта ================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card__img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-soft); }
.card__img--contain { object-fit: contain; padding: 12px; background: #fff; }
.hero__img, .cat-hero__img { width: 100%; height: 100%; min-height: 300px; max-height: 460px; object-fit: cover; border-radius: var(--radius); }

/* Выпадающий каталог в шапке */
.nav__item { position: relative; }
.nav__drop { display: none; position: absolute; top: 100%; left: 0; z-index: 70; width: min(760px, 90vw); background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 38, 77, .18); padding: 24px; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { display: grid; }
.nav__drop h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-dark); margin: 0 0 8px; }
.nav__drop ul { list-style: none; margin: 0; padding: 0; }
.nav__drop a { display: block; padding: 7px 8px; border-radius: 8px; font: 600 14px/1.3 var(--font-body); color: var(--text); white-space: normal; }
.nav__drop a:hover { background: var(--blue-50); color: var(--blue); }
.nav__drop-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.mobile-menu .sub { padding-left: 16px; font-weight: 500; font-size: 15px; }

/* Шапка простых страниц */
.page-hero { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; padding: 32px 0 40px; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 8px; }
.page-hero p { color: #d6e3f2; max-width: 760px; margin: 0; font-size: 17px; }

/* Текст из редактора */
.content { max-width: 860px; font-size: 17px; }
.content--wide { max-width: none; }
.content h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.6em 0 .6em; }
.content h3 { margin: 1.4em 0 .5em; }
.content h2:first-child, .content h3:first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1em; }
.content li { margin-bottom: .35em; }
.content img { border-radius: 12px; height: auto; margin: 1em 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15px; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th { background: var(--blue-50); color: var(--blue-deep); font-family: var(--font-head); }
.content blockquote { margin: 1.2em 0; padding: 16px 20px; border-left: 4px solid var(--orange); background: var(--orange-50); border-radius: 0 12px 12px 0; }
.content a { text-decoration: underline; text-underline-offset: 3px; }
.page-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .page-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.aside-box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; display: grid; gap: 12px; }
.aside-box h3 { margin: 0; font-size: 18px; }
.aside-box .header__phone { font-size: 22px; }

/* Галерея */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 10, 25, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }

/* Пагинация */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; color: var(--text); }
.pagination .active a, .pagination .active span { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Хлебные крошки на светлом фоне */
.crumbs--light { color: var(--muted); padding-top: 20px; }
.crumbs--light a { color: var(--blue-light); }

/* Формы: ошибки и ответы */
.form .is-invalid { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.form [data-error] { color: #d93025; font-size: 12px; font-weight: 600; min-height: 0; }
.form [data-error]:empty { display: none; }
.form-msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.form-msg--ok { background: #e8f7ee; color: #146c3a; }
.form-msg--err { background: #fdecea; color: #b3261e; }
.form button[disabled] { opacity: .7; cursor: wait; }
.hp-field { position: absolute; left: -9999px; }

/* Статьи */
.article-meta { color: #a9bfd8; font-size: 14px; margin-top: 8px; }
.article-cover { border-radius: var(--radius); margin-bottom: 32px; width: 100%; max-height: 460px; object-fit: cover; }

/* Документы (PDF) */
.docs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.doc { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; color: var(--text); }
.doc:hover { border-color: var(--orange); }
.doc__icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: #d93025; color: #fff; font: 800 12px/52px var(--font-head); text-align: center; }

/* Карта */
.map-frame { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); background: var(--bg-soft); }

/* Пустые фото (до загрузки реальных) */
.ph--img { min-height: 200px; border-radius: 0; }

.section--blue .callout h3, .section--blue .callout h2 { color: var(--blue-deep); }

/* Контент, перенесённый со старого сайта (сетка Bootstrap -> .c-row/.c-col) */
.content .c-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 1em 0 1.5em; align-items: start; }
.content .c-col > :first-child { margin-top: 0; }
.content .c-col img { width: 100%; height: auto; margin: 0 0 8px; border-radius: 10px; background: #fff; }
.content .c-col h3, .content .c-col h4 { font-size: 16px; margin: 4px 0 0; text-align: center; }
.content .c-col p { font-size: 15px; }
.content img { max-width: 100%; height: auto; }
.content .video { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; border-radius: 12px; overflow: hidden; background: #000; }
.content .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content h2 { text-transform: none; }
.content table td:first-child { color: var(--muted); }

/* ================= SVG-иконки (спрайт dp.icons) ================= */
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.feature__icon { color: var(--blue); }
.feature__icon .ico { width: 28px; height: 28px; stroke-width: 1.7; }
.feature:hover .feature__icon { background: var(--blue); color: #fff; transition: .2s; }
.choice span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); font-size: inherit; }
.choice span .ico { width: 26px; height: 26px; }
.choice:hover span, .choice.is-selected span { background: var(--orange); color: #fff; }
.tabs button .ico { margin-right: 4px; }
.option h3 { display: flex; align-items: center; gap: 10px; }
.option h3 .ico { width: 28px; height: 28px; color: var(--orange-dark); }
.chips-row span { display: inline-flex; align-items: center; gap: 6px; }
.chips-row .ico { color: var(--orange); }
.topbar .ico, .project__meta .ico, .article-meta .ico { color: var(--orange); }
.nav__catalog { display: inline-flex !important; align-items: center; gap: 6px; }
.burger { display: inline-flex; align-items: center; justify-content: center; }
.burger .ico { width: 24px; height: 24px; }
@media (min-width: 1100px) { .burger { display: none; } }
.nav__drop h4 { display: flex; align-items: center; gap: 6px; }
.mobile-bar a, .mobile-bar button { gap: 6px; }
.fab a .ico { width: 26px; height: 26px; }
.quiz-done { display: flex; justify-content: center; color: #1f9d55; margin-bottom: 8px; }
.quiz-done .ico { width: 72px; height: 72px; stroke-width: 1.5; }

/* ================= Цифры: анимированные круговые диаграммы ================= */
.stats-section { padding: 64px 0; }
.stats-sub { text-align: center; color: #c9d8ea; margin: -8px 0 0; }
.stats { gap: 20px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px 20px; }
.stat__ring { position: relative; width: 132px; height: 132px; }
.stat__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg, .ring__val { fill: none; stroke-width: 10; }
.ring__bg { stroke: rgba(255, 255, 255, .12); }
.ring__val { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.6s cubic-bezier(.22, .8, .3, 1); filter: drop-shadow(0 0 6px rgba(243, 146, 8, .45)); }
.stat__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.stat__center .stat__num, .stat b.stat__num { font: 900 34px/1 var(--font-head); color: #fff; display: block; }
.stat__pct { margin-top: 6px; font: 700 13px/1 var(--font-head); color: var(--orange); }
.stat__label { font-size: 14px; color: #c9d8ea; text-align: center; line-height: 1.35; }
@media (max-width: 767px) { .stat__ring { width: 112px; height: 112px; } .stat__center .stat__num { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .ring__val { transition: none; } }

/* ================= Первый экран: слайдшоу (плавная смена + медленный наезд) ================= */
.hero__slider { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--blue-dark); box-shadow: 0 24px 60px rgba(0, 20, 45, .35); }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-active img { animation: dp-kenburns 7s ease-out forwards; }
@keyframes dp-kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.hero__slide figcaption { position: absolute; right: 12px; top: 12px; background: rgba(0, 38, 77, .72); color: #fff; font: 600 12px/1.3 var(--font-head); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(4px); max-width: 70%; }
.hero__dots { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 6px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: .2s; }
.hero__dots button.is-active { background: var(--orange); width: 26px; border-radius: 6px; }
.hero__media .hero__badge { z-index: 4; }
@media (prefers-reduced-motion: reduce) { .hero__slide.is-active img { animation: none; } .hero__slide { transition: none; } }
/* SEO-текст: одна колонка (в две колонки свёрнутый текст читался вразнобой) */
.seo-text, .seo-text.content--wide { columns: 1 !important; max-width: 920px; }
.seo-text h2 { font-size: clamp(22px, 2.4vw, 28px); }

/* Перенесённый контент: подпись без картинки -> карточка; инфографика */
.content .c-col--tag { display: flex; align-items: center; gap: 10px; background: var(--blue-50); border-radius: 12px; padding: 16px 18px; font: 700 15px/1.3 var(--font-head); color: var(--blue-deep); }
.content .c-col--tag .ico { color: var(--orange); width: 22px; height: 22px; }
.content .infographic svg { width: 100%; height: auto; display: block; border-radius: 16px; margin: 8px 0 16px; }

/* одиночная колонка в строке — на всю ширину */
.content .c-row > .c-col:only-child { grid-column: 1 / -1; }

.content .infographic { max-width: 560px; }
.card__img[src$='.svg'] { object-fit: cover; object-position: center; background: var(--blue); }

/* Кнопка отправки неактивна до согласия на обработку ПД */
.form button[type="submit"]:disabled { background: #c9d2dc; color: #6b7785; cursor: not-allowed; opacity: 1; box-shadow: none; }
.form .consent input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }

/* Карта (Leaflet + OSM, без рекламы) */
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); display: flex; flex-direction: column; }
.map-canvas { flex: 1; min-height: inherit; width: 100%; z-index: 1; }
.map-actions { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 8px; }
.map-btn-light { background: #fff; }
.map-pin { background: none; border: 0; }
.map-pin svg { width: 40px; height: 52px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.leaflet-popup-content { font: 14px/1.4 var(--font-body); }
.leaflet-container a.btn { color: inherit; }

/* Мессенджер MAX (цветная иконка) */
.ico-max { width: 1.4em; height: 1.4em; display: inline-block; vertical-align: middle; flex: none; }
.header__max { display: none; width: 44px; height: 44px; border-radius: 12px; transition: transform .2s; }
.header__max .ico-max { width: 44px; height: 44px; }
.header__max:hover { transform: translateY(-2px); }
@media (min-width: 1100px) { .header__max { display: inline-flex; } }
.fab a.max { background: transparent; padding: 0; overflow: hidden; }
.fab a.max .ico-max { width: 56px; height: 56px; }
.mobile-bar .maxbtn { background: #f1edff; color: #5b4bff; }
.mobile-bar .maxbtn .ico-max { width: 26px; height: 26px; }
.footer__max, .contact-max { display: inline-flex; align-items: center; gap: 8px; }
.contact-max { font-weight: 600; }

/* Плавающие кнопки: мессенджеры — слева внизу, «Наверх» — справа внизу */
.fab { right: auto; left: 20px; }
.ico-max { object-fit: contain; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top .ico { width: 24px; height: 24px; transform: rotate(-90deg); stroke-width: 2.2; }
.to-top:hover { background: var(--orange); color: #1b1200; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 899px) { .to-top { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 46px; height: 46px; } }
.fab a.max { border-radius: 14px; }

/* «Полезное» — компактное выпадающее меню */
.nav__drop--small { width: 240px; grid-template-columns: 1fr; padding: 12px; }
.nav__caret { font-size: 11px; margin-left: 2px; opacity: .7; }
.nav__item > a { display: inline-flex; align-items: center; }
/* шапка от 1361 px: меньше отступы, чтобы всё помещалось */
@media (min-width: 1361px) {
  .header .container { gap: 16px; }
  .nav a { padding: 10px 9px; }
  .header__cta { padding: 8px 14px; }
  .logo small { max-width: 170px; }
}
