/* Ритуал-Сервис, Губкинский.
   «Ночь»: графитовый камень, луна и облака, ангел в лунном свете.
   Заголовки антиквой Cormorant Garamond, текст крупным Golos Text для пожилых.
   Один акцент (шалфей), острые углы у всего: радиус 2px. */
:root {
  --bg: #0e1110;
  --bg-2: #131716;
  --bg-3: #191e1c;
  --ink: #ece9e3;
  --ink-2: #c9cbc6;
  --muted: #979c97;
  --line: rgba(236, 233, 227, .1);
  --line-2: rgba(236, 233, 227, .22);
  --accent: #b9cfc0;
  --accent-2: #dbe8de;
  --on-light: #0e1110;
  --wrap: 1240px;
  --r: 2px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--bg); overflow-x: clip; }
body { margin: 0; background: var(--bg) url("/assets/stone.webp") center top / 1600px auto repeat-y; color: var(--ink); font: 400 18px/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-light); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.ac { color: var(--accent); }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 60; }
.ph { color: inherit; text-decoration: underline dotted rgba(234, 160, 110, .8); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.demo-bar { position: relative; z-index: 41; background: var(--accent); color: var(--on-light); font-size: 13px; text-align: center; padding: 6px 16px; font-weight: 500; }
.u { border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
a.u:hover { border-color: var(--accent); color: var(--accent-2); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 40; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(14, 17, 16, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { flex: none; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: 0; display: block; line-height: 1; }
.brand small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.nav { display: flex; flex: 1; justify-content: center; gap: 2px; }
.nav a { position: relative; font-size: 15.5px; padding: 8px 10px; color: var(--ink-2); white-space: nowrap; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-call { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; line-height: 1.2; }
.top-call a { font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.top-call a:hover { color: var(--accent); }
.menu-btn { display: none; }

/* Кнопки: светлый камень и контур */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: var(--r); font-weight: 600; font-size: 17px; border: 1px solid var(--line-2); overflow: hidden; isolation: isolate; transition: border-color .3s, color .3s, transform .12s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
.btn-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn-main:hover::before { transform: none; }
.btn-main:hover { border-color: var(--accent); }

/* Ночное небо: облака и луна над рамкой */
.night { position: absolute; inset: 0 0 auto; height: 760px; z-index: 0; pointer-events: none; overflow: hidden; }
.night::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
.night .clouds { position: absolute; left: 50%; top: -40px; width: max(1500px, 120vw); max-width: none; transform: translateX(-50%); opacity: .5; animation: sky-in 2.4s var(--ease) both; }
.night .moon { position: absolute; left: 50%; top: 40px; width: 300px; transform: translateX(-12%); filter: drop-shadow(0 0 60px rgba(220, 228, 222, .22)); animation: sky-in 2.2s .2s var(--ease) both; }
@keyframes sky-in { from { opacity: 0; } }

/* Первый экран: рамка из камня, ангел выходит за её верхний край */
.hero { position: relative; margin-top: -77px; padding: 215px 0 60px; overflow-x: clip; }
.stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 440px) 1fr 270px; grid-template-rows: 1fr auto; gap: 40px 24px; min-height: 620px; padding: 56px 48px 44px;
  background: linear-gradient(180deg, rgba(25, 30, 28, .92), rgba(16, 20, 19, .96)), url("/assets/stone.webp") center / cover; border: 1px solid var(--line); }
.stage .angel { position: absolute; z-index: 1; left: calc(48px + 440px + 24px + (100% - 48px * 2 - 440px - 270px - 48px) / 2); bottom: -40px; height: 740px; width: auto; max-width: none; transform: translate3d(-40%, var(--y, 0px), 0); pointer-events: none; animation: sky-in 1.8s .1s var(--ease) both; }
.stage-text { position: relative; z-index: 2; grid-column: 1; grid-row: 1; align-self: center; }
.hero h1 { font-size: clamp(54px, 5.4vw, 80px); font-weight: 500; line-height: .98; letter-spacing: -.015em; margin: 0 0 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
.hero h1 .dim { color: #8e938e; }
@keyframes rise { from { transform: translateY(105%); } }
.fade-in { animation: fadein 1.2s .45s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 22em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stage-links { position: relative; z-index: 2; grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 30px; text-align: right; align-self: start; }
.stage-links small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.stage-links a { display: block; width: fit-content; margin: 0 0 6px auto; font-size: 16px; line-height: 1.35; color: var(--ink-2); border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s; }
.stage-links a:hover { color: var(--ink); border-color: var(--accent); }
.stage-foot { position: relative; z-index: 2; grid-column: 1; grid-row: 2; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 15px; color: var(--muted); }
.stage-foot svg { width: 18px; height: 18px; color: var(--accent); }
.stage-foot a { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: .01em; flex-basis: 100%; }
.stage-foot a:hover { color: var(--accent); }
.stage-cards { position: relative; z-index: 2; grid-column: 2 / 4; grid-row: 2; justify-self: end; align-self: end; display: grid; grid-template-columns: repeat(2, 236px); gap: 14px; margin-bottom: -82px; }
.stage-cards a { display: grid; gap: 6px; padding: 20px 20px 18px; background: rgba(30, 36, 34, .94); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .3s, transform .5s var(--ease); }
.stage-cards a:hover { border-color: var(--accent); transform: translateY(-3px); }
.stage-cards b { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.05; }
.stage-cards span { color: var(--accent); font-weight: 600; font-size: 17px; }
.stage-cards i { font-style: normal; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.stage-cards i svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.stage-cards a:hover i svg { transform: translateX(4px); }

.stage .moon { position: absolute; z-index: 0; left: calc(48px + 440px + 24px + (100% - 48px * 2 - 440px - 270px - 48px) / 2); top: -200px; width: 300px; transform: translateX(-38%); filter: drop-shadow(0 0 70px rgba(220, 228, 222, .2)); pointer-events: none; animation: sky-in 2.2s .2s var(--ease) both; }

/* Появление при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* Секции */
.sec { position: relative; padding: 130px 0; }
.sec-head { max-width: 760px; margin-bottom: 60px; }
.sec-head h2 { font-size: clamp(42px, 5vw, 76px); }
.sec-head > p { color: var(--ink-2); margin: 22px 0 0; max-width: 36em; }

/* С чего начать: шаги строками, слева время, справа действие; линия слева заполняется при прокрутке */
.now { position: relative; padding: 120px 0 110px; }
.now h2 { font-size: clamp(40px, 4.6vw, 70px); max-width: 13em; }
.now-grid { position: relative; margin-top: 64px; border-left: 1px solid var(--line); }
.now-step { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 48px; padding: 34px 0 34px 40px; }
.now-step + .now-step { border-top: 1px solid var(--line); }
.now-step .when { grid-row: 1 / 3; font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--accent); line-height: 1.15; padding-top: 2px; }
.now-step h3 { grid-column: 2; font-family: var(--sans); font-size: 23px; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; }
.now-step p { grid-column: 2; color: var(--ink-2); margin: 0; max-width: 40em; }

/* Услуги: указатель антиквой */
.index { border-top: 1px solid var(--line-2); }
.index a { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 420px) 56px; gap: 32px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.index a::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px 150px at var(--mx, 50%) 50%, rgba(185, 207, 192, .1), transparent 70%); }
.index a:hover::before { opacity: 1; }
.index h3 { font-size: clamp(32px, 4vw, 58px); transition: transform .6s var(--ease), color .4s; }
.index a:hover h3 { transform: translateX(16px); color: var(--accent-2); }
.index p { margin: 0; color: var(--ink-2); font-size: 17px; }
.index .go { width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: var(--r); display: grid; place-items: center; transition: background .4s, border-color .4s, color .4s; }
.index .go svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.index a:hover .go { background: var(--ink); border-color: var(--ink); color: var(--on-light); }
.index a:hover .go svg { transform: rotate(-45deg); }

/* Пауза: фраза в лунном свете */
.pause { text-align: center; padding: 150px 0; position: relative; overflow: hidden; }
.pause::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(220, 228, 222, .1), transparent 62%); }
.pause p { position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.1; max-width: 17em; margin: 0 auto; }

/* География: три колонки без плашек */
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.places li { padding: 32px 32px 8px 0; }
.places li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.places svg { width: 24px; height: 24px; color: var(--accent); }
.places b { display: block; margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3vw, 44px); line-height: 1; }
.places small { display: block; margin-top: 8px; font-size: 15px; color: var(--accent); }
.places span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 17px; }

/* Как работаем: крупные утверждения */
.vow { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.vow h3 { font-size: clamp(30px, 3vw, 44px); }
.vow p { color: var(--ink-2); margin: 6px 0 0; max-width: 32em; }

/* Вопросы */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 70px 26px 0; position: relative; font-weight: 500; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.3; transition: color .3s; }
.faq summary:hover { color: var(--accent-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details > div { padding: 0 70px 30px 0; color: var(--ink-2); max-width: 820px; }
.faq details[open] > div { animation: fadein .6s var(--ease); }
.faq details > div p:last-child { margin: 0; }
.faq a, .prose a:not(.btn) { border-bottom: 1px solid rgba(185, 207, 192, .45); }
.faq a:hover, .prose a:not(.btn):hover { color: var(--accent-2); border-color: var(--accent); }

/* Звонок: луна за номерами */
.cta { position: relative; padding: 130px 0 120px; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; right: -140px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); background: url("/assets/moon.webp") center / contain no-repeat; opacity: .16; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(38px, 4vw, 60px); max-width: 15em; }
.cta p { color: var(--ink-2); margin: 18px 0 0; max-width: 34em; }
.cta .bigs { display: flex; flex-wrap: wrap; gap: 8px 56px; margin-top: 48px; }
.cta .big { display: block; font-weight: 600; font-size: clamp(34px, 5vw, 76px); line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; transition: color .3s; }
.cta .big:hover { color: var(--accent); }
.cta .meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 30px; color: var(--muted); font-size: 16px; align-items: center; }

/* Внутренние страницы */
.page-head { position: relative; margin-top: -77px; padding: 77px 0 90px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .night { height: 520px; }
.page-head .night .moon { width: 220px; left: auto; right: max(24px, calc(50% - 600px)); transform: none; top: 50px; }
.page-head .night .clouds { opacity: .32; top: -120px; }
.page-head .angel { position: absolute; z-index: 1; right: max(-10px, calc(50% - 650px)); bottom: -30px; height: 440px; width: auto; max-width: none; transform: translate3d(0, var(--y, 0px), 0); animation: sky-in 1.8s var(--ease) both; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.page-head .wrap { position: relative; z-index: 2; }
.crumbs { font-size: 15px; color: var(--muted); padding-top: 40px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 10px; opacity: .5; }
.page-head h1 { font-size: clamp(46px, 6vw, 90px); font-weight: 500; line-height: 1; margin: 34px 0 30px; max-width: 12em; }
.ph-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; max-width: calc(100% - 300px); }
.page-head .lead { font-size: 20px; color: var(--ink-2); max-width: 32em; margin: 0; }
.head-calls { display: flex; flex-direction: column; gap: 10px; }

.body { padding: 96px 0 120px; }
.body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; }
.body.no-side .wrap { grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 740px; }
.prose > h2 { font-size: clamp(32px, 3.2vw, 46px); margin: 72px 0 22px; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose b { color: var(--ink); font-weight: 500; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); margin: 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 9px; height: 1px; background: var(--accent); }
.prose ol { list-style: none; counter-reset: o; padding: 0; margin: 0 0 1.4em; }
.prose ol li { counter-increment: o; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--line); margin: 0; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: 10px; font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.prose .note { margin: 40px 0; padding: 28px 30px; background: var(--bg-3); border-left: 1px solid var(--accent); color: var(--ink); font-size: 19px; line-height: 1.55; }
.side-call { position: sticky; top: 110px; align-self: start; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.side-call b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.side-call p { color: var(--ink-2); font-size: 16px; margin: 10px 0 18px; }
.side-call .side-tel { display: block; font-size: 23px; font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line); }
.side-call .side-tel:hover { color: var(--accent); }
.side-call .side-addr { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* Прайс: название, отточие, цена */
.price { list-style: none; margin: 0 0 12px; padding: 0; }
.prose .price li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prose .price li::before { display: none; }
.price .dots { border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
.price .nm { color: var(--ink); }
.price .nm small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.price .pr { font-weight: 600; color: var(--accent); white-space: nowrap; }

/* Ещё по теме */
.other { padding: 90px 0; }
.other h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 28px; }
.other nav { display: flex; flex-wrap: wrap; gap: 10px; }
.other nav a { padding: 12px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 16px; transition: background .3s, color .3s, border-color .3s; }
.other nav a:hover { background: var(--ink); color: var(--on-light); border-color: var(--ink); }

/* Подвал */
.foot { position: relative; padding: 96px 0 0; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; font-size: 16px; color: var(--ink-2); }
.foot h3 { font-family: var(--sans); font-size: 16px; color: var(--ink); font-weight: 600; margin-bottom: 18px; line-height: 1.4; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a:hover { color: var(--accent); }
.foot .legal { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13.5px; color: var(--muted); padding: 30px 32px; margin-top: 64px; border-top: 1px solid var(--line); }
.flora { position: absolute; z-index: 0; color: var(--accent); pointer-events: none; }
.foot-flora { width: 340px; right: max(-30px, calc(50% - 700px)); bottom: -70px; opacity: .14; transform: scaleX(-1) rotate(-4deg); }
.foot .wrap { position: relative; z-index: 1; }

.callbar { display: none; }

/* Заголовки по словам, прайс строками, линия шагов (site.js); только transform и opacity */
.split.rv { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 45ms); }
.split.in .w > span { transform: none; }
.js-motion .now-grid::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: top; }
.js-motion .price li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js-motion .price .dots { transform: translateY(-5px) scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + .2s); }
.js-motion .price.in li { opacity: 1; transform: none; }
.js-motion .price.in .dots { transform: translateY(-5px); }
.index a.rv { border-bottom-color: transparent; }
.index a.rv::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
.index a.rv.in::after { transform: none; }

@media (max-width: 1220px) {
  body { overflow-x: clip; }
  html.menu-open { overflow-y: hidden; }
  .menu-open .top { background: var(--bg); backdrop-filter: none; transition: none; }
  .nav { display: none; }
  .nav.open {
    --callbar-height: 0px;
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100vh - 100% - var(--callbar-height));
    height: calc(100dvh - 100% - var(--callbar-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    padding: 34px 28px 40px;
    justify-content: flex-start;
    gap: 0;
  }
  .nav.open a { flex: none; font-family: var(--serif); font-size: 32px; padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .nav.open a[aria-current="page"] { color: var(--accent); }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 16px; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; }
  .menu-btn i { width: 16px; height: 6px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s; }
  .menu-btn[aria-expanded="true"] i { transform: scaleY(0); }
  .top-call { order: 3; }
}

/* Планшет: ангел справа, ссылки и карточки под текстом */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; padding: 48px 40px 40px; }
  .stage .angel { left: auto; right: -30px; bottom: auto; top: -150px; height: 560px; transform: translate3d(0, var(--y, 0px), 0); }
  .stage-text { grid-column: 1; grid-row: 1; }
  .stage-links { grid-column: 1 / 3; grid-row: 2; flex-direction: row; gap: 40px; text-align: left; border-top: 1px solid var(--line); padding-top: 28px; }
  .stage-links a { margin: 0 0 6px; }
  .stage-foot { grid-column: 1; grid-row: 3; }
  .stage-cards { grid-column: 2; grid-row: 3; margin: 0; grid-template-columns: 1fr; width: 100%; }
  .ph-row { max-width: none; }
}

@media (max-width: 900px) {
  body { font-size: 17.5px; padding-bottom: 84px; background-size: 900px auto; }
  .wrap { padding: 0 20px; }
  .top .wrap { min-height: 64px; gap: 12px; }
  .nav.open {
    --callbar-height: calc(75px + env(safe-area-inset-bottom, 0px));
    padding-top: 46px;
  }
  .top-call, .brand small { display: none; }
  .brand b { font-size: 24px; }
  .hero, .page-head { margin-top: -65px; }
  .hero { padding: 65px 0 40px; }
  .night { height: 560px; }
  .night .clouds { width: 1300px; top: -60px; opacity: .45; }
  .night .moon { width: 190px; top: 74px; transform: translateX(-30%); }
  /* телефон: ангел под луной в потоке, затем текст, кнопки, телефоны, карточки, ссылки */
  .stage { display: flex; flex-direction: column; gap: 0; padding: 0; background: none; border: 0; }
  .stage .moon { left: 50%; top: 22px; width: 190px; transform: translateX(-40%); }
  .stage .angel { position: relative; inset: auto; order: 0; align-self: center; height: auto; width: min(62vw, 300px); margin: 64px auto -30px; transform: translate3d(0, var(--y, 0px), 0); -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
  .stage-text { order: 1; }
  .hero h1 { font-size: clamp(42px, 12vw, 60px); margin-bottom: 16px; }
  .hero .lead { font-size: 18px; }
  .hero-actions { margin-top: 18px; }
  .hero .lead { margin-bottom: 0; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stage-foot { order: 2; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
  .stage-cards { order: 3; margin: 28px 0 0; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; justify-self: stretch; }
  .stage-cards a { padding: 16px 14px; }
  .stage-cards b { font-size: 22px; }
  .stage-links { order: 4; flex-direction: column; gap: 22px; margin-top: 32px; padding-top: 26px; }
  .sec { padding: 88px 0; }
  .sec-head { margin-bottom: 40px; }
  .now { padding: 90px 0 70px; }
  .now-grid { margin-top: 40px; }
  .now-step { grid-template-columns: 1fr; padding: 26px 0 26px 24px; }
  .now-step .when { grid-row: auto; font-size: 24px; margin-bottom: 8px; }
  .now-step h3, .now-step p { grid-column: 1; }
  .now-step h3 { font-size: 21px; }
  .index a { grid-template-columns: 1fr 46px; gap: 10px 16px; padding: 26px 0; }
  .index p { grid-column: 1 / -1; grid-row: 2; }
  .index .go { width: 46px; height: 46px; grid-row: 1; grid-column: 2; }
  .index a:hover h3 { transform: none; }
  .places { grid-template-columns: 1fr; }
  .places li, .places li + li { padding: 24px 0; border-left: 0; }
  .places li + li { border-top: 1px solid var(--line); }
  .vow { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  .pause { padding: 100px 0; }
  .pause::before { width: 360px; height: 360px; }
  .faq summary { padding-right: 46px; }
  .faq details > div { padding-right: 0; }
  .cta { padding: 90px 0 80px; }
  .cta::before { width: 300px; height: 300px; right: -120px; top: 90px; transform: none; }
  .cta .big { font-size: clamp(30px, 9vw, 52px); }
  .page-head { padding: 65px 0 56px; }
  .page-head .night { height: 380px; }
  .page-head .night .moon { width: 150px; right: -48px; top: 70px; opacity: .4; }
  .page-head .angel { display: none; }
  .crumbs { padding-top: 24px; }
  .page-head h1 { margin: 26px 0 22px; }
  .ph-row { grid-template-columns: 1fr; gap: 24px; }
  .head-calls { flex-direction: row; flex-wrap: wrap; }
  .body { padding: 60px 0 80px; }
  .body .wrap { grid-template-columns: 1fr; gap: 0; }
  .side-call { position: static; margin-top: 48px; }
  .prose > h2 { margin-top: 52px; }
  .prose .note { padding: 22px 20px; }
  .prose .price li { grid-template-columns: 1fr auto; }
  .price .dots { display: none; }
  .foot { padding-top: 70px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot .legal { padding: 24px 20px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(14, 17, 16, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border-radius: var(--r); font-weight: 600; font-size: 16px; border: 1px solid var(--line-2); color: var(--ink); background: var(--bg-3); }
  .callbar a:first-child { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
  .callbar span { display: flex; flex-direction: column; line-height: 1.15; }
  .callbar small { font-size: 12.5px; font-weight: 500; opacity: .8; }
  .callbar svg { width: 20px; height: 20px; flex: none; }
}
@media (max-width: 380px) {
  .stage-cards { grid-template-columns: 1fr; }
  .callbar a { gap: 7px; font-size: 15px; }
  .callbar small { font-size: 11.5px; }
  .callbar svg { width: 17px; height: 17px; }
  .hero-actions .btn { padding: 15px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
