/* Партнёрский сайт АО «ГСК «Югория». Mobile-first: базовые стили — для телефона, расширения — от 760px и 1040px. */
:root {
  --blue: #0052e0;
  --blue-d: #003db0;
  --blue-dd: #062a78;
  --blue-l: #e8f0ff;
  --bg: #f3f6fc;
  --card: #ffffff;
  --ink: #0d1b3e;
  --ink-2: #4a5878;
  --line: #dbe3f3;
  --accent: #ff8a1f;
  --accent-d: #f07400;
  --pink: #e94fd0;
  --ok: #14a05a;
  --err: #d92d3a;
  --r: 16px;
  --r-s: 12px;
  --shadow: 0 6px 24px rgba(13, 43, 110, .08);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-h: 'Unbounded', 'Montserrat', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; padding-bottom: 76px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 16px; font-weight: 600; font-family: var(--font); line-height: 1.3; }
p { margin: 0 0 12px; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.45; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- Шапка ---------- */
.hdr { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 30; }
.hdr__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; position: relative; z-index: 1; }
.hdr__logo img { height: 28px; width: auto; }
.hdr__badge { font-size: 11px; line-height: 1.25; opacity: .85; margin-right: auto; }
.hdr__burger { flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.hdr__burger i, .hdr__burger i::before, .hdr__burger i::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, background .2s; }
.hdr__burger i { position: relative; }
.hdr__burger i::before, .hdr__burger i::after { content: ""; position: absolute; left: 0; }
.hdr__burger i::before { top: -6px; }
.hdr__burger i::after { top: 6px; }
.hdr.open .hdr__burger i { background: transparent; }
.hdr.open .hdr__burger i::before { transform: translateY(6px) rotate(45deg); }
.hdr.open .hdr__burger i::after { transform: translateY(-6px) rotate(-45deg); }
/* Меню. До 1040px — белая шторка под шапкой с затемнением страницы, на ПК — строка в шапке (см. конец файла). */
.nav a { text-decoration: none; font-weight: 600; }
.menu-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(4, 16, 48, .62); opacity: 0; pointer-events: none; transition: opacity .2s; }
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
@media (max-width: 1039.98px) {
  .menu-open { overflow: hidden; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 24px 48px rgba(4, 16, 48, .35); }
  .hdr.open .nav { display: flex; animation: menu-in .18s ease-out; }
  .nav a { color: var(--ink); font-size: 17px; padding: 14px 16px; border-radius: 14px; background: var(--bg); min-height: 54px; display: flex; align-items: center; justify-content: space-between; }
  .nav a:not(.nav__phone)::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid #9db0d6; border-top: 2px solid #9db0d6; transform: rotate(45deg); margin-right: 4px; }
  .nav a[aria-current="page"] { background: var(--blue-l); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
  .nav a[aria-current="page"]::after { border-color: var(--blue); }
  .nav a.nav__phone { margin-top: 8px; background: var(--accent); color: #fff; justify-content: center; gap: 8px; font-weight: 700; white-space: nowrap; }
  .nav a.nav__phone::before { content: ""; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h3l2 5-2.500 1.500a11 11 0 006 6L16 13l5 2v3a3 3 0 01-3 3A16 16 0 013 6a3 3 0 013-3z'/%3E%3C/svg%3E") center/18px no-repeat; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* ---------- Первый экран ---------- */
.hero { background: var(--blue); color: #fff; position: relative; overflow: hidden; padding: 20px 0 32px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -160px; top: -140px; }
.hero::after { width: 300px; height: 300px; right: 60px; bottom: -200px; border: 56px solid rgba(255,255,255,.06); background: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero__tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.hero__lead { font-size: 16px; margin: 12px 0 18px; max-width: 34em; opacity: .95; }
.hero__art { position: relative; width: 190px; height: 150px; margin: 4px auto 0; }
.hero__art .a-house { position: absolute; right: 0; top: 0; width: 160px; }
.hero__art .a-shield { position: absolute; left: 0; bottom: 0; width: 78px; filter: drop-shadow(0 8px 16px rgba(0,20,80,.35)); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; }
.fact { background: rgba(255,255,255,.12); border-radius: var(--r-s); padding: 10px 10px; }
.fact b { display: block; font-family: var(--font-h); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.fact span { font-size: 11.5px; line-height: 1.25; display: block; margin-top: 3px; opacity: .9; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 0; font: 700 16px/1.2 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-d); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-d); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; }
.btn--line { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--line); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn--block { width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Секции и карточки ---------- */
.sec { padding: 32px 0; }
.sec--white { background: #fff; }
.sec__sub { color: var(--ink-2); margin: -8px 0 18px; max-width: 46em; }
.grid { display: grid; gap: 12px; }
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.sec--white .card { box-shadow: none; background: var(--bg); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; margin-bottom: 12px; }
.card__ico svg { width: 24px; height: 24px; }
.ticks li { position: relative; padding-left: 26px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 8.2l2.4 2.4 5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dots li { position: relative; padding-left: 18px; margin: 6px 0; }
.dots li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #9db0d6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--blue-l); color: var(--blue-dd); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.eg { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* Программы */
.plans { display: grid; gap: 12px; }
.plan { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); border: 2px solid transparent; display: flex; flex-direction: column; gap: 10px; }
.plan--hit { border-color: var(--blue); position: relative; }
.plan--hit::after { content: "Рекомендуем"; position: absolute; top: -11px; left: 16px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan__sum { font-family: var(--font-h); font-size: 22px; font-weight: 600; white-space: nowrap; }
.plan__rows { font-size: 14px; color: var(--ink-2); flex: 1; }
.plan__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.plan__rows b { color: var(--ink); white-space: nowrap; flex: none; min-width: 7.6em; text-align: right; }
.plan__price { font-weight: 700; font-size: 18px; }
.plan__price small { font-weight: 500; color: var(--ink-2); font-size: 13px; }

/* Шаги «как оформить» */
.how { counter-reset: how; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.how li { counter-increment: how; position: relative; padding: 2px 0 2px 48px; min-height: 36px; }
.how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.how b { display: block; }
.note { background: var(--blue-l); border-radius: var(--r-s); padding: 12px 14px; font-size: 14px; color: var(--blue-dd); }
.note--warn { background: #fff4e5; color: #7a4300; }

/* Аккордеон */
.acc { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.sec--white .acc { box-shadow: inset 0 0 0 1px var(--line); }
.acc details + details { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; position: relative; min-height: 52px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc__body { padding: 0 18px 18px; color: var(--ink-2); font-size: 15px; }
.acc__body h4 { margin: 14px 0 4px; color: var(--ink); font-size: 14px; }
.acc__body p { margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 14px; }
.kv span:nth-child(even) { font-weight: 700; color: var(--ink); text-align: right; }

/* ---------- Оформление (мастер) ---------- */
.wz { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px 16px 20px; scroll-margin-top: 72px; }
.wz__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.wz__bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.wz__bar i.on { background: var(--blue); }
.wz__step { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.wz__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 8px; }
.wz__back { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 8px; margin-left: -4px; border: 0; border-radius: 999px; background: var(--blue-l); color: var(--blue); font: 600 14px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s; }
.wz__back:hover { background: #d6e4ff; }
.wz__title { font-family: var(--font-h); font-size: 19px; font-weight: 600; margin-bottom: 16px; line-height: 1.2; }
.wz__nav { display: flex; gap: 10px; margin-top: 20px; }
.wz__nav .btn--back { flex: none; padding: 12px 16px; }
.wz__nav .btn--next { flex: 1; }
.wz__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.wz__total b { font-family: var(--font-h); font-size: 20px; font-weight: 600; white-space: nowrap; }
.grp { margin-bottom: 18px; }
.grp__l { font-weight: 700; margin-bottom: 8px; display: block; }
.grp__h { font-size: 13px; color: var(--ink-2); margin: -4px 0 8px; }

.fld { display: block; margin-bottom: 14px; }
.fld__l { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.fld__l em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; font: 500 16px/1.3 var(--font); color: var(--ink); background: #fff; appearance: none; -webkit-appearance: none; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230052e0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat; padding-right: 36px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,82,224,.15); }
.fld__h { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.fld__e { display: none; font-size: 13px; color: var(--err); margin-top: 5px; font-weight: 400; }
.is-err .fld__e { display: block; }
.is-err input, .is-err select, .is-err textarea { border-color: var(--err); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld--addr { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); max-height: 260px; overflow: auto; margin-top: -2px; }
.sugg button { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: none; font: 500 15px/1.3 var(--font); color: var(--ink); cursor: pointer; }
.sugg button + button { border-top: 1px solid var(--line); }
.sugg button:hover { background: var(--blue-l); }

/* Плитки выбора */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts--1 { grid-template-columns: 1fr; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.opts--3 .opt__b { padding: 10px 8px; font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.opts--3 .opt__b small { font-size: 11.5px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt__b { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); font-weight: 600; font-size: 15px; line-height: 1.25; background: #fff; transition: border-color .15s, background .15s; }
.opt__b small { font-weight: 500; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.opt input:checked + .opt__b { border-color: var(--blue); background: var(--blue-l); box-shadow: inset 0 0 0 1px var(--blue); }
.opt input:focus-visible + .opt__b { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt--plan .opt__b { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.opt--plan .opt__b > span { display: flex; flex-direction: column; }
.opt--plan .opt__p { font-family: var(--font-h); font-size: 16px; white-space: nowrap; color: var(--blue); }

/* Чекбоксы и переключатели */
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 14.5px; line-height: 1.4; }
.chk input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.chk.is-err span { color: var(--err); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; }
.sw i { flex: none; width: 48px; height: 28px; border-radius: 14px; background: #c5d0e6; position: relative; transition: background .15s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw input:checked + i { background: var(--blue); }
.sw input:checked + i::after { transform: translateX(20px); }
.sw input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Конструктор «Комфорт Квартира» */
.cov { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.cov.on { border-color: var(--blue); }
.cov__t { display: block; font-weight: 700; }
.cov__d { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.cov .sw { position: relative; }
.cov__body { margin-top: 12px; }
.cov__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cov__sum input { width: 150px; border: 0; border-bottom: 1.5px dashed var(--line); font: 600 18px/1.2 var(--font-h); color: var(--ink); padding: 4px 0; background: none; }
.cov__sum input:focus { outline: none; border-bottom-color: var(--blue); }
.cov__sum span { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.cov input[type=range] { width: 100%; height: 32px; margin: 6px 0 0; accent-color: var(--blue); }
.cov__mm { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }

/* Итог перед оплатой */
.sum { background: var(--bg); border-radius: var(--r-s); padding: 14px; margin-bottom: 14px; }
.sum h4 { margin: 0 0 8px; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum h4 button { border: 0; background: none; color: var(--blue); font: 600 13px var(--font); cursor: pointer; padding: 0; }
.sum dl { margin: 0; display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.sum dt { color: var(--ink-2); }
.sum dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.done { text-align: center; padding: 16px 0 4px; }
.done__ico { width: 64px; height: 64px; border-radius: 50%; background: #e3f6ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.done__ico svg { width: 32px; height: 32px; }

/* Липкая кнопка на телефоне */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; box-shadow: 0 -4px 20px rgba(13,43,110,.12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transition: transform .2s; }
.sticky.off { transform: translateY(110%); }
.sticky__t { flex: 1; font-size: 12.5px; line-height: 1.25; color: var(--ink-2); }
.sticky__t b { display: block; font-size: 16px; color: var(--ink); white-space: nowrap; }
.sticky .btn { min-height: 48px; }

/* Подвал */
.ftr { background: var(--blue-dd); color: #c9d6f5; padding: 28px 0 24px; font-size: 13px; line-height: 1.5; }
.ftr a { color: #fff; }
.ftr__logo { height: 32px; width: auto; margin: 0 0 14px; }
.ftr__cols { display: grid; gap: 18px; margin-bottom: 18px; }
.ftr h4 { color: #fff; margin: 0 0 6px; font-size: 14px; }
.ftr__legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; font-size: 12px; opacity: .85; }

/* ---------- Планшет и ПК ---------- */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; margin-bottom: 20px; }
  .wrap { padding: 0 24px; }
  .hdr__top { height: 68px; }
  .hdr__logo img { height: 36px; }
  .hero { padding: 44px 0 52px; }
  .hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 32px; }
  .hero__lead { font-size: 18px; }
  .hero__art { width: 100%; max-width: 380px; height: 300px; margin: 0 0 0 auto; }
  .hero__art .a-house { width: 320px; }
  .hero__art .a-shield { width: 150px; }
  .hero__cta { flex-direction: row; }
  .fact { padding: 14px 16px; }
  .fact b { font-size: 20px; }
  .fact span { font-size: 13px; }
  .sec { padding: 52px 0; }
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
  .wz { padding: 28px 32px 30px; max-width: 720px; margin: 0 auto; }
  .wz__title { font-size: 22px; }
  .sticky { display: none; }
  .ftr__cols { grid-template-columns: 1.2fr 1fr 1fr; }
  .opts--obj { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  h1 { font-size: 46px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .how { grid-template-columns: repeat(4, 1fr); }
  .how li { padding: 48px 0 0; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}
@media (max-width: 359px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.ftr a[data-partner] { display: block; margin-top: 4px; }
section[id] { scroll-margin-top: 68px; }
@media (min-width: 760px) { section[id] { scroll-margin-top: 76px; } }

/* Выпадающий список */
.dd { position: relative; }
.dd__btn { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 12px 40px 12px 14px; font: 500 16px/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230052e0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-tap-highlight-color: transparent; }
.dd__btn.is-ph { color: #8793ad; }
.dd.open .dd__btn, .dd__btn:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,82,224,.15); }
.is-err .dd__btn { border-color: var(--err); }
.dd__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 8; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 12px 32px rgba(13,43,110,.18); padding: 6px; max-height: 280px; overflow: auto; }
.dd__list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 12px; border-radius: 8px; font-weight: 500; cursor: pointer; }
.dd__list li:hover, .dd__list li:focus { background: var(--blue-l); outline: none; }
.dd__list li[aria-selected="true"] { color: var(--blue); font-weight: 700; }
.dd__list li[aria-selected="true"]::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.500l3.200 3.200L13 5' fill='none' stroke='%230052e0' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Страницы без липкой кнопки, страница оформления и «спасибо» */
body.no-sticky { padding-bottom: 0; }
.sec--page { padding-top: 20px; min-height: 60vh; }
.crumb { margin: 0 auto 10px; max-width: 720px; font-size: 14px; font-weight: 600; }
.crumb a { text-decoration: none; }
.pg-h { font-size: 22px; text-align: center; margin-bottom: 16px; }
.thanks { max-width: 560px; margin: 0 auto; }
.thanks .pg-h { margin-bottom: 8px; }

/* Призыв в конце страницы продукта */
.cta-band { background: var(--blue); color: #fff; border-radius: 20px; padding: 24px 20px; display: grid; gap: 16px; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .92; }

/* Карточки продуктов на главной */
.prods { display: grid; gap: 12px; }
.prod { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); border: 2px solid transparent; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.prod:hover { border-color: var(--blue); transform: translateY(-2px); }
.prod .card__ico { margin-bottom: 4px; }
.prod p { margin: 0; flex: 1; font-size: 15px; }
.prod__price { font-weight: 700; font-size: 17px; margin: 6px 0 4px; }
@media (min-width: 760px) {
  .pg-h { font-size: 30px; }
  .prods { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 32px 36px; }
}
@media (min-width: 1040px) { .prods { grid-template-columns: repeat(4, 1fr); } }
/* Шапка на ПК: меню строкой и телефон справа */
@media (min-width: 1040px) {
  .hdr .wrap { display: flex; align-items: center; gap: 24px; }
  .hdr__top { flex: none; }
  .hdr__burger, .menu-backdrop { display: none; }
  .nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: flex-end; }
  .nav a { color: #fff; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); }
  .nav a[aria-current="page"] { background: #fff; color: var(--blue); }
  .nav a.nav__phone { margin-left: 14px; padding: 8px 0; background: none; font-size: 17px; font-weight: 700; white-space: nowrap; }
}
/* Иллюстрация первого экрана одной картинкой (страницы продуктов) */
.hero__art--one { width: 250px; height: auto; margin: 8px auto -8px; }
.hero__art--one img { width: 100%; filter: drop-shadow(0 16px 28px rgba(0, 20, 80, .3)); }
@media (min-width: 760px) { .hero__art--one { width: 100%; max-width: 440px; height: auto; margin: 0 0 0 auto; } }

/* Готовые наборы в калькуляторе квартиры */
.sets { display: grid; gap: 10px; }
.set { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.set input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.set__b { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 14px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, background .15s; }
.set input:checked + .set__b { border-color: var(--blue); background: var(--blue-l); box-shadow: inset 0 0 0 1px var(--blue); }
.set input:focus-visible + .set__b { outline: 3px solid var(--accent); outline-offset: 2px; }
.set__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.set__top > b { font-family: var(--font-h); font-size: 16px; font-weight: 600; padding-left: 30px; position: relative; }
.set__top > b::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid #b4c1dc; background: #fff; }
.set input:checked + .set__b .set__top > b::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 45%, #fff 50%); }
.set__tag { font-style: normal; font-size: 11px; font-weight: 700; background: var(--blue); color: #fff; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.set__d { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.set__list { display: grid; gap: 5px; font-size: 13.5px; line-height: 1.3; flex: 1; align-content: start; padding-top: 8px; border-top: 1px solid var(--line); }
.set input:checked + .set__b .set__list, .set input:checked + .set__b .set__price { border-color: #c5d6f7; }
.set__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.set__row i { font-style: normal; color: var(--ink-2); }
.set__row b { white-space: nowrap; }
.set__price { font-family: var(--font-h); font-weight: 600; font-size: 17px; color: var(--blue); padding-top: 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.set__price small { font: 500 12.5px var(--font); color: var(--ink-2); }
.set--custom .set__b { border-style: dashed; }
.set--custom input:checked + .set__b { border-style: solid; }
.set__gear { flex: none; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052e0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E") center/22px no-repeat; }
.linkbtn { display: inline-block; margin-top: 10px; padding: 6px 0; border: 0; background: none; color: var(--blue); font: 600 14px var(--font); cursor: pointer; border-bottom: 1.5px dashed currentColor; }
#covers { scroll-margin-top: 72px; }
@media (min-width: 760px) {
  .sets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .set--custom { grid-column: 1 / -1; }
  .set__row { flex-direction: column; gap: 0; }
}

/* Широкий калькулятор на ПК (квартира): на шаге с наборами карточки одинаковой ширины, названия в одну строку.
   На остальных шагах ширина обычная, чтобы поля формы не растягивались. */
@media (min-width: 1040px) {
  .wz--wide[data-step="0"] { max-width: 960px; }
  .crumb--wide { max-width: 960px; }
  .wz--wide[data-step="0"] .set__row i { white-space: nowrap; }
  .wz--wide[data-step="0"] .set__b { padding: 18px 18px 14px; }
  .wz--wide[data-step="0"] #covers, .wz--wide[data-step="0"] .grp:last-of-type { max-width: 656px; }
}

/* В карточке набора на любом экране: название объекта, под ним — страховая сумма */
.set__list { gap: 9px; }
.set__row { flex-direction: column; align-items: flex-start; gap: 1px; }
.set__row b { font-size: 15px; }

/* Карандаш «изменить набор» — только в выбранной карточке */
.set__side { display: inline-flex; align-items: center; gap: 8px; }
.set__edit { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; margin: -6px -4px -6px 0; border: 0; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
.set__edit:hover { background: var(--blue); color: #fff; }

/* Описание под заголовком: каждое предложение с новой строки, с небольшим отступом, без точек */
.hero__lead .ln { display: block; height: 7px; }

/* Цена/условие в карточке продукта на главной — по центру, над кнопкой */


/* Карточка продукта на главной: иконка и название по центру */

/* Карточки продуктов на главной: на телефоне всё по левому краю, от планшета и на ПК — по центру */
@media (min-width: 760px) {
  .prod .card__ico { align-self: center; }
  .prod h3, .prod p, .prod__price { text-align: center; }
}

/* Вторая кнопка первого экрана («Что покрывает» / «От чего защищает») нужна только на телефоне */
@media (min-width: 760px) { .hero__cta .btn--ghost { display: none; } }

/* Карточка программы «АнтиДрон»: название объекта в одну строку, страховая сумма — справа */
.plan__rows div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; }
.plan__rows span { white-space: nowrap; }
.plan__rows b { min-width: 0; text-align: right; font-size: 15px; }

/* Карточка программы: стоимость слева */
.plan__price { text-align: left; }

/* Узкие телефоны: карточка программы не должна распирать страницу по ширине */
html, body { overflow-x: clip; }
.plans { grid-template-columns: minmax(0, 1fr); }
.plan { min-width: 0; }
.plan__rows span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 399px) {
  .plan { padding: 16px 14px; }
  .plan__rows { font-size: 13px; }
  .plan__rows b { font-size: 14px; }
  .plan__rows div { gap: 8px; }
}
@media (max-width: 339px) {
  .plan__rows span { white-space: normal; overflow: visible; }
}
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Строки программы: сумма справа там, где помещается в одну строку с названием;
   на очень узких телефонах и на планшетах/небольших экранах ПК — сумма под названием (во всех трёх карточках одинаково) */
.plan__rows span { overflow: visible; text-overflow: clip; }
@media (max-width: 359px), (min-width: 760px) and (max-width: 1119px) {
  .plan__rows div { flex-direction: column; align-items: flex-start; gap: 1px; }
  .plan__rows b { text-align: left; }
  .plan__rows span { white-space: nowrap; }
}
@media (min-width: 1120px) { .plan__rows b { font-size: 14px; } .plan__rows div { gap: 8px; } }
@media (min-width: 760px) and (max-width: 859px) { .plan__rows span { white-space: normal; } }

/* Подсказки адреса: пустой результат и строка «ввести вручную» */
.sugg { z-index: 9; margin-top: 4px; }
.sugg button:focus { background: var(--blue-l); outline: none; }
.sugg__empty { padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.sugg .sugg__manual { color: var(--blue); font-weight: 600; font-size: 14px; background: var(--bg); border-top: 1px solid var(--line); }

/* Плашки с цифрами в первом экране на телефоне: ширина по содержимому; если три в ряд не помещаются — третья уходит на вторую строку */
@media (max-width: 759px) {
  .facts--wrap { display: flex; flex-wrap: wrap; }
  .facts--wrap .fact { flex: 1 1 auto; min-width: 0; }
}

/* Строка «ввести вручную» всегда видна внизу списка подсказок, даже когда он прокручивается */
.sugg .sugg__manual { position: sticky; bottom: 0; }
.sugg { max-height: 300px; }

/* Адрес по частям (ручной ввод): город, улица, дом, квартира */
.addrp { margin-bottom: 4px; }
.addrp__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.addrp__h .grp__l { margin: 0; }
.addrp__sw { border: 0; background: none; padding: 0; font: 600 14px/1.3 var(--font); color: var(--blue); cursor: pointer; white-space: nowrap; }
.addrp__sw:hover { text-decoration: underline; }
/* ---------- Экран загрузки перед оплатой и индикатор расчёта цены ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.pay { text-align: center; padding: 28px 0 8px; }
.pay .wz__title { margin-bottom: 10px; }
.pay__spin { width: 52px; height: 52px; margin: 0 auto 22px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--blue); animation: spin .9s linear infinite; }
.pay__cmp { display: flex; justify-content: center; gap: 22px; margin: 14px 0 20px; font-size: 17px; white-space: nowrap; }
.pay__cmp s { color: var(--ink-2); }
.ld { display: inline-block; width: 20px; height: 20px; vertical-align: -3px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite; }
.wz__total .wz__later { font: 500 14px/1.3 var(--font); color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .pay__spin, .ld { animation-duration: 2.5s; } }

/* ---------- Стоимость и кнопка закреплены внизу экрана ---------- */
@media (max-width: 767.98px) {
  .wz__foot--stick { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 12px; background: #fff; margin: 16px -16px -20px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: 0 -6px 16px rgba(13,43,110,.08); }
  .wz__foot--stick .wz__total { display: block; flex: 0 1 auto; min-width: 0; max-width: 46%; margin: 0; padding: 0; border: 0; font-size: 12.5px; line-height: 1.25; color: var(--ink-2); }
  .wz__foot--stick .wz__total .wz__later { display: block; white-space: normal; font-size: 13px; line-height: 1.2; }
  .wz__foot--stick .wz__nav { min-width: 0; }
  .wz__foot--stick .wz__total b { display: block; font-size: 17px; color: var(--ink); min-height: 22px; }
  .wz__foot--stick .wz__total br, .wz__foot--stick .wz__total .small { display: none; }
  .wz__foot--stick .wz__nav { flex: 1; margin: 0; }
  .wz__foot--stick .btn--back { display: none; }
  .wz__foot--stick .btn--next { min-height: 48px; padding-left: 12px; padding-right: 12px; }
  .wz__foot--stick.wz__foot--last .wz__total { display: none; }
}
@media (min-width: 768px) {
  /* Содержимое панели — по центру и одной ширины на всех шагах (как у обычного шага 720px), даже когда карточка шире:
     кнопка «Продолжить» всегда одного размера и на одном месте. */
  .wz__foot--stick { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 20px; background: #fff; margin: 20px -32px -30px; padding: 14px max(32px, calc((100% - 592px) / 2)); border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: 0 -6px 16px rgba(13,43,110,.08); }
  .wz__foot--stick .wz__total { display: block; flex: 0 0 150px; margin: 0; padding: 0; border: 0; font-size: 13px; line-height: 1.25; color: var(--ink-2); }
  .wz__foot--stick .wz__total b { display: block; font-size: 20px; color: var(--ink); min-height: 26px; }
  .wz__foot--stick .wz__nav { flex: 1; margin: 0; }
  .wz__foot--stick .wz__ph { display: block; visibility: hidden; }
}
.wz__ph { display: none; }