/* =========================================================
   Газ в дом — дизайн-система v2 «Тёплый дом»
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fbf7f1;
  --paper: #ffffff;
  --sand: #f4ece0;
  --sand-2: #efe3d1;
  --ink: #1f1a2e;
  --ink-2: #433d55;
  --muted: #7a7388;
  --line: #ebe2d4;
  --accent: #e8643a;
  --accent-2: #f29b38;
  --accent-d: #c94f28;
  --blue: #2c7be5;
  --blue-l: #e8f1fd;
  --plum: #231a37;
  --plum-2: #31264b;
  --green: #1f9d5c;
  --red: #d63c2f;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 24px 60px -28px rgba(31, 26, 46, .35);
  --shadow-sm: 0 8px 24px -14px rgba(31, 26, 46, .3);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Manrope', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--plum); color: #efe9f7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #b9b0c9; }
.accent-text { color: var(--accent); }
.grad-text { background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 14px 30px -12px rgba(232, 100, 58, .7); }
.btn--primary:hover { box-shadow: 0 18px 36px -12px rgba(232, 100, 58, .85); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--wa { background: #25d366; color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(35, 26, 55, .96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.header__inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.header__logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: #e4ddef; text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 10px; background: none; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.nav > li > a:hover, .nav > li > button:hover, .nav > li > a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .fa-chevron-down { font-size: .65rem; opacity: .7; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px); min-width: 300px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transition: all .25s var(--ease); }
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav > li:hover .dropdown, .nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.dropdown a i { width: 30px; height: 30px; border-radius: 9px; background: var(--sand); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.dropdown a:hover { background: var(--bg); }
.dropdown--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { color: #fff; text-decoration: none; font-weight: 800; font-size: .98rem; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.2; }
.header__phone small { font-weight: 500; font-size: .72rem; color: #b9b0c9; }
.header__cta .btn { padding: 11px 20px; font-size: .88rem; }
.lang { color: #f2c48a; font-weight: 700; font-size: .78rem; text-decoration: none; border: 1px solid rgba(242, 196, 138, .4); padding: 5px 10px; border-radius: 999px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- hero (главная) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--plum); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: 70% center; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 18, 40, .95) 0%, rgba(25, 18, 40, .86) 38%, rgba(25, 18, 40, .45) 64%, rgba(25, 18, 40, .15) 100%); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 24px 150px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #ffd39a, var(--accent-2) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { font-size: 1.12rem; color: #e1d9ec; max-width: 560px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero__chips i { color: #ffc47a; }
.hero-notice { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 26px; padding: 10px 12px 10px 18px; border-radius: 16px; background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 14px 34px -12px rgba(214, 60, 47, .75); transition: transform .25s var(--ease); }
.hero-notice:hover { transform: translateY(-2px); }
.hero-notice .hn-phone { font-family: var(--display); font-size: 1.15rem; background: rgba(0, 0, 0, .22); padding: 6px 14px; border-radius: 12px; white-space: nowrap; }
.hero-card { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 26px; padding: 30px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); position: relative; }
.hero-card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.hero-card p { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.hero-card .badge-free { position: absolute; top: -14px; right: 22px; background: var(--green); color: #fff; font-weight: 800; font-size: .75rem; padding: 7px 14px; border-radius: 999px; letter-spacing: .04em; }
.hero-flame { position: absolute; top: -70px; left: 50%; width: 70px; height: 90px; transform: translateX(-50%); }
.hero-flame span { position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 75%, #e1f5fe 0 18%, #4fc3f7 40%, #0288d1 70%, transparent 72%); animation: flicker 1.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 18px #4fc3f7); }
@keyframes flicker { 0% { transform: scale(1, 1); } 50% { transform: scale(.94, 1.06) translateY(-2px); } 100% { transform: scale(1.04, .96); } }
.hero-flame-label { text-align: center; font-family: var(--display); font-weight: 800; margin-bottom: 14px; letter-spacing: .08em; }
.hero-flame-label b { color: var(--accent); }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.hero__wave svg { width: 100%; height: 70px; display: block; }

/* ---------- полоса цифр ---------- */
.stats { position: relative; z-index: 3; margin-top: -110px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--accent); line-height: 1.1; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---------- формы ---------- */
.form { display: grid; gap: 12px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { width: 100%; padding: 15px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font: inherit; font-size: .98rem; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s, background .2s; }
.field:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(232, 100, 58, .12); }
textarea.field { min-height: 110px; resize: vertical; }
.phone-wrap { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); transition: border .2s, box-shadow .2s; }
.phone-wrap:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(232, 100, 58, .12); }
.phone-wrap .code { padding: 0 4px 0 16px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.phone-wrap .code::before { content: ''; width: 20px; height: 14px; border-radius: 3px; background: linear-gradient(#00afca, #00afca); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.phone-wrap .field { border: 0; background: transparent; box-shadow: none; padding-left: 8px; }
.form-note { font-size: .78rem; color: var(--muted); }
.form-note a { color: inherit; }
.form-success { display: none; padding: 14px 16px; border-radius: 14px; background: #e7f7ee; color: #146c3f; font-weight: 700; border: 1px solid #bfe8d2; }
.form-success.show { display: block; }
.section--dark .field, .section--dark .phone-wrap { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.section--dark .phone-wrap .code { color: #e4ddef; }
.section--dark .field::placeholder { color: #a79dbb; }

/* ---------- popup ---------- */
.popup { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 14, 32, .65); backdrop-filter: blur(6px); }
.popup.open { display: flex; animation: fadeIn .25s ease; }
.popup__box { position: relative; width: 100%; max-width: 440px; background: var(--paper); border-radius: 26px; padding: 34px 30px 28px; box-shadow: var(--shadow); animation: popIn .35s var(--ease); }
.popup__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sand); font-size: 1.3rem; cursor: pointer; color: var(--ink-2); }
.popup__box h2 { font-size: 1.45rem; margin-bottom: 6px; }
.popup__box > p { color: var(--muted); margin-bottom: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); border: 1px solid var(--line); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 1.08rem; }
.card__body p { color: var(--muted); font-size: .93rem; flex: 1; }
.card__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--sand); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.card--mini .card__body { padding: 22px; }
.card--feature { padding: 28px; gap: 12px; }
.card--feature h3 { font-size: 1.05rem; }
.card--feature p { color: var(--muted); font-size: .93rem; }

/* ---------- процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; }
.step { position: relative; background: var(--paper); border-radius: var(--r); padding: 30px 26px 26px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); display: block; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- квиз ---------- */
.quiz { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.quiz__intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.quiz__intro p { color: #c9c0d8; margin-bottom: 20px; }
.quiz__perks { list-style: none; display: grid; gap: 10px; }
.quiz__perks li { display: flex; gap: 12px; align-items: center; color: #e4ddef; font-weight: 600; }
.quiz__perks i { width: 34px; height: 34px; border-radius: 10px; background: rgba(242, 155, 56, .15); color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; }
.quiz__box { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 30px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.quiz__progress { height: 6px; background: var(--sand); border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
.quiz__progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 6px; transition: width .4s var(--ease); }
.quiz__step { display: none; }
.quiz__step.active { display: block; animation: fadeIn .35s ease; }
.quiz__q { font-family: var(--display); font-size: 1.2rem; margin-bottom: 4px; }
.quiz__hint { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: .93rem; transition: all .2s; background: var(--bg); min-height: 56px; }
.opt span i { color: var(--accent); width: 18px; text-align: center; }
.opt input:checked + span { border-color: var(--accent); background: #fff4ee; box-shadow: 0 0 0 3px rgba(232, 100, 58, .12); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.quiz__back { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; padding: 10px 0; }
.quiz__count { color: var(--muted); font-size: .85rem; font-weight: 700; }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery figure { border-radius: 20px; overflow: hidden; position: relative; background: var(--sand); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }

/* ---------- районы ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 12px; }
.area { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: all .25s var(--ease); }
.area i { color: var(--accent); }
.area:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.area--static { opacity: .75; }
.area--static:hover { background: var(--paper); color: var(--ink); border-color: var(--line); transform: none; }
.note { margin-top: 20px; color: var(--muted); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.note i { color: var(--accent); margin-top: 4px; }

/* ---------- отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--paper); border-radius: var(--r); padding: 28px; border: 1px solid var(--line); position: relative; }
.review::before { content: '“'; position: absolute; top: 4px; right: 22px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--sand-2); }
.review__stars { color: var(--accent-2); margin-bottom: 12px; letter-spacing: 2px; }
.review p { margin-bottom: 18px; color: var(--ink-2); }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__ava { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.review__who b { display: block; }
.review__who span { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: 18px; border: 1px solid var(--line); transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 1.02rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { content: '–'; background: var(--accent); color: #fff; }
.faq details > div { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- статьи ---------- */
.post-card .card__body .meta { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- SEO-текст ---------- */
.seo-text { columns: 2; column-gap: 48px; color: var(--ink-2); }
.seo-text p { margin-bottom: 14px; break-inside: avoid; }
.seo-text h3 { font-size: 1.05rem; margin: 6px 0 10px; break-after: avoid; }
.seo-more { margin-top: 18px; }
.seo-more summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
.seo-more summary::-webkit-details-marker { display: none; }
.seo-more[open] summary { margin-bottom: 18px; }

/* ---------- контакты ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact__list { display: grid; gap: 14px; margin-top: 8px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; }
.contact__item i { width: 44px; height: 44px; border-radius: 14px; background: var(--paper); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--line); }
.contact__item b { display: block; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact__item a, .contact__item span { font-weight: 700; color: var(--ink); text-decoration: none; }
.contact__form { background: var(--paper); border-radius: 26px; padding: 32px; box-shadow: var(--shadow); }
.contact__form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact__form > p { color: var(--muted); margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; text-decoration: none; font-size: 1.15rem; transition: transform .25s var(--ease), background .25s; }
.socials a:hover { transform: translateY(-3px); background: var(--accent); }

/* ---------- CTA-полоса ---------- */
.cta { position: relative; overflow: hidden; border-radius: 30px; padding: 54px; background: linear-gradient(120deg, var(--plum) 0%, var(--plum-2) 60%, #5a2f3f 100%); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 155, 56, .45), transparent 70%); }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2.1rem); margin-bottom: 10px; }
.cta p { color: #d3cadf; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* ---------- внутренние страницы ---------- */
.page-hero { position: relative; background: var(--plum); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 26, 55, .98) 30%, rgba(35, 26, 55, .55)); }
.page-hero__inner { position: relative; z-index: 2; padding: 56px 24px 90px; max-width: 1200px; margin: 0 auto; }
.crumbs { font-size: .85rem; color: #b9b0c9; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: #f2c48a; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); max-width: 860px; margin-bottom: 16px; }
.page-hero h1 .highlight { background: linear-gradient(120deg, #ffd39a, var(--accent-2) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero .sub { color: #ddd5e8; font-size: 1.08rem; max-width: 720px; margin-bottom: 26px; }
.page-hero .hero__actions { margin-bottom: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-top: 40px; color: var(--ink); }
.prose h3 { font-size: 1.1rem; margin-top: 28px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-d); font-weight: 600; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: #fff0e8; color: var(--accent); font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.prose ol { list-style: none; counter-reset: li; display: grid; gap: 12px; }
.prose ol li { counter-increment: li; position: relative; padding-left: 46px; min-height: 32px; padding-top: 3px; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.prose table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.prose th { background: var(--sand); color: var(--ink); }
.prose .lead { font-size: 1.15rem; color: var(--ink); }
.prose figure { border-radius: 20px; overflow: hidden; }
.prose figure img { width: 100%; max-height: 420px; object-fit: cover; }
.callout { padding: 20px 22px; border-radius: 18px; background: #fff4ee; border: 1px solid #f8d6c4; color: var(--ink-2); }
.callout a { color: var(--accent-d); font-weight: 700; }
.callout--blue { background: var(--blue-l); border-color: #cfe0fa; }
.callout--danger { background: #fdecea; border-color: #f6c6c0; }
.meta-line { font-size: .88rem; color: var(--muted); }
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.aside__card { background: var(--paper); border-radius: 22px; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.aside__card--dark { background: var(--plum); color: #fff; border: 0; }
.aside__card--dark h3 { color: #fff; }
.aside__card--dark p { color: #c9c0d8; }
.aside__card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.aside__card p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.aside__links { display: grid; }
.aside__links a { padding: 10px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; display: flex; justify-content: space-between; gap: 10px; }
.aside__links a:last-child { border-bottom: 0; }
.aside__links a:hover { color: var(--accent); }
.aside__phone { display: block; font-family: var(--display); font-size: 1.25rem; color: #fff; text-decoration: none; margin-bottom: 14px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink-2); transition: all .2s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.gloss { display: grid; gap: 14px; }
.gloss dt { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.gloss dd { color: var(--ink-2); margin: 4px 0 10px; }

/* ---------- подвал ---------- */
.footer { background: #17112a; color: #b9b0c9; padding: 70px 0 30px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__logo img { height: 64px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer a { color: #b9b0c9; text-decoration: none; display: block; padding: 4px 0; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: #ffc47a; }
.footer p { font-size: .92rem; margin-bottom: 10px; }
.footer__phone { font-family: var(--display); color: #fff !important; font-size: 1.15rem !important; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer__counters { display: flex; gap: 10px; align-items: center; }
.footer .socials a { background: rgba(255, 255, 255, .08); }

/* ---------- мобильная панель ---------- */
.mbar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 990; gap: 10px; padding: 8px; border-radius: 20px; background: rgba(35, 26, 55, .92); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); }
.mbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: .92rem; }
.mbar .call { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
.mbar .wa { background: #25d366; color: #fff; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 990; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; text-decoration: none; box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .7); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { animation: none !important; } }

/* ---------- адаптив ---------- */
@media (max-width: 1140px) {
  .header__phone { display: none; }
  .nav > li > a, .nav > li > button { padding: 10px 9px; font-size: .88rem; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .header__logo img { height: 48px; }
  .header__cta { display: none; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 18px 120px; background: var(--plum); overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); margin: 0; }
  .nav.open { transform: none; }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 15px 12px; font-size: 1.02rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .dropdown, .dropdown--wide { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; box-shadow: none; background: rgba(255, 255, 255, .04); border-radius: 14px; margin: 6px 0 10px; grid-template-columns: 1fr; }
  .nav > li.open .dropdown { display: grid; }
  .nav > li:hover .dropdown { transform: none; }
  .dropdown a { color: #e4ddef; }
  .dropdown a:hover { background: rgba(255, 255, 255, .06); }
  .dropdown a i { background: rgba(255, 255, 255, .08); }
  .nav .mobile-only { display: block; }
  .hero__inner { grid-template-columns: 1fr; padding: 48px 24px 140px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(25, 18, 40, .9) 0%, rgba(25, 18, 40, .8) 55%, rgba(25, 18, 40, .7) 100%); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quiz { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px 30px; }
  .seo-text { columns: 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery figure:nth-child(4) { grid-column: span 2; }
}
@media (min-width: 1025px) { .nav .mobile-only { display: none; } }
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }
  .hero__inner { padding: 34px 16px 130px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero-card { padding: 24px 20px; }
  .hero-notice { width: 100%; justify-content: center; text-align: center; }
  .stat { padding: 20px 16px; }
  .steps { grid-template-columns: 1fr; }
  .quiz__opts { grid-template-columns: 1fr; }
  .quiz__box { padding: 22px 18px; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 110px; }
  .mbar { display: flex; }
  .wa-float { display: none; }
  .page-hero__inner { padding: 40px 16px 70px; }
  .contact__form { padding: 24px 18px; }
  .cta { padding: 34px 22px; border-radius: 24px; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
}
.hero .eyebrow { display: flex; }
@media (max-width: 1024px) { .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--plum); } }
