/* Второй лендинг: украшение домов гирляндами. Светлая «зимняя открытка»: бумага, хвоя, клюква, лампа. */

@font-face { font-family: 'Literata'; src: url('../assets/fonts/literata-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('../assets/fonts/literata-500i.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-cyrillic-wght.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-latin-wght.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f6f0e4;
  --card: #fffaf1;
  --sand: #ece2cf;
  --ink: #1c2621;
  --muted: #56635b;
  --line: rgba(28, 38, 33, .14);
  --fir: #17392f;
  --fir-2: #0f2a22;
  --fir-line: rgba(246, 240, 228, .16);
  --red: #b8323a;
  --red-d: #9a2830;
  --lamp: #f3c460;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --r: 20px;
  --gut: clamp(16px, 4vw, 40px);
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; font-variant-numeric: lining-nums; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; }
em { font-style: italic; font-weight: 500; color: var(--red); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

/* --- Кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(184, 50, 58, .7); }
.btn--red:hover { background: var(--red-d); }
.btn--red:disabled { background: #c9b9b0; box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--text { background: none; border: 0; padding: 0 8px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .93rem; }
.btn--wide { width: 100%; }

/* --- Шапка --- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(246, 240, 228, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; }
.brand__sub { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); }
.top__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.top__tel { font-weight: 800; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.top__hours { font-size: .76rem; color: var(--muted); }
@media (max-width: 1080px) { .nav { display: none; } .top__contact { margin-left: auto; } }
@media (max-width: 640px) {
  :root { --head-h: 62px; }
  .top__in { gap: 12px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.15rem; }
  .brand__sub, .top__hours, .top__cb { display: none; }
  .top__tel { font-size: .95rem; }
}

/* --- Гирлянда: лампочки мигают вразнобой (яркость и масштаб), раз в 8 секунд по цепочке бежит «волна» ореолов.
   Анимируются только filter, transform и opacity ореола - вёрстка не пересчитывается. Вне экрана - пауза (класс is-off ставит app.js) --- */
.garland { position: absolute; left: 0; top: 0; width: 100%; height: 70px; pointer-events: none; }
.garland-bulbs { position: absolute; left: 0; right: 0; top: 0; height: 190px; overflow: hidden; pointer-events: none; }
.garland-bulbs i { --glow: rgba(255, 214, 120, .9); position: absolute; width: 11px; height: 15px; margin: -1px 0 0 -5.5px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: var(--lamp); box-shadow: 0 0 12px 4px rgba(243, 196, 96, .6); animation: bulb 1.7s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.53s); }
.garland-bulbs i::before { content: ''; position: absolute; left: 3px; top: -4px; width: 5px; height: 5px; border-radius: 1px; background: #2c3a33; }
.garland-bulbs i::after { content: ''; position: absolute; left: 50%; top: 55%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0, transparent 68%); opacity: 0; pointer-events: none; animation: wave 8s ease-out infinite; animation-delay: calc(var(--i, 0) * .12s + 1.5s); }
.garland-bulbs i:nth-child(3n+2) { --glow: rgba(255, 110, 100, .85); background: #e2524f; box-shadow: 0 0 12px 4px rgba(226, 82, 79, .55); animation-duration: 2.3s; }
.garland-bulbs i:nth-child(3n) { --glow: rgba(150, 230, 190, .85); background: #7fc6a4; box-shadow: 0 0 12px 4px rgba(127, 198, 164, .55); animation-duration: 1.3s; }
.garland-bulbs i:nth-child(4n) { animation-duration: 2.9s; }
.garland-bulbs i:nth-child(5n+1) { animation-duration: 1.1s; }
.garland-bulbs.is-off i, .garland-bulbs.is-off i::after { animation-play-state: paused; }
@keyframes bulb { from { filter: brightness(.5) saturate(.75); transform: scale(.88); } 55% { filter: brightness(1); transform: scale(1); } to { filter: brightness(1.18); transform: scale(1.06); } }
@keyframes wave { 0%, 100% { opacity: 0; } 2.5% { opacity: 1; } 10% { opacity: 0; } }
/* Мерцание гирлянды и огней - часть оформления (только яркость и прозрачность), по просьбе заказчика работает и при reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes bulb-soft { from { filter: brightness(.75); } to { filter: brightness(1.05); } }

/* --- Первый экран --- */
.hero { position: relative; padding: 72px 0 44px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text pic" "facts pic"; column-gap: clamp(28px, 4vw, 64px); row-gap: 28px; align-items: center; }
.hero__text { grid-area: text; align-self: end; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--sand); font-size: .86rem; font-weight: 700; color: var(--fir); }
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 4.1rem); margin: 22px 0 20px; }
.hero__sub { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hero__pic { grid-area: pic; margin: 0; position: relative; }
.hero__frame { position: relative; overflow: hidden; isolation: isolate; border-radius: 50% 50% var(--r) var(--r) / 34% 34% var(--r) var(--r); box-shadow: 0 30px 60px -30px rgba(15, 42, 34, .55); background: #2b3f63; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 600px) { .hero__img { aspect-ratio: 16 / 11; } }
/* Слои мерцания: та же геометрия, что у фото (5:4, cover), поэтому точки ложатся ровно на лампочки.
   Анимируется только opacity, и только пока фото на экране (is-live ставит app.js) */
/* Слой = кадр 5:4 по ширине рамки, по центру по высоте: так же, как object-fit: cover у фото (рамка 4:3 и 16:11 шире 5:4) */
.hero__tw { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 5 / 4; transform: translateY(-50%); pointer-events: none; }
.hero__tw::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 7% at 45% 48%, rgba(255, 196, 110, .24), transparent 70%); opacity: 0; animation: glow 4.6s ease-in-out infinite alternate paused; }
.tw { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity .8s ease; }
.tw.is-ready { opacity: .12; animation: tw 2.2s ease-in-out infinite alternate paused; }
.tw.is-ready:nth-child(2) { animation-duration: 2.9s; animation-delay: -1.1s; }
.tw.is-ready:nth-child(3) { animation-duration: 1.6s; animation-delay: -2.3s; }
/* Переливание фигур: по слою свечения бежит светлая полоса (mask-position), приглушённый слой с обратной маской
   гасит лампочки вне полосы. Слои маленькие (размер фигуры), координаты - доли кадра 1280x1024 из make_photos.py */
.twf { position: absolute; max-width: none; opacity: 0; transition: opacity .8s ease;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 45%, #000 55%, transparent 72%); mask-image: linear-gradient(90deg, transparent 28%, #000 45%, #000 55%, transparent 72%);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; }
.twf--d { -webkit-mask-image: linear-gradient(90deg, #000 26%, transparent 44%, transparent 56%, #000 74%); mask-image: linear-gradient(90deg, #000 26%, transparent 44%, transparent 56%, #000 74%); }
.twf--deer { left: 20.62%; top: 59.18%; width: 11.25%; height: 19.92%; }
.twf--snow { left: 65.31%; top: 58.01%; width: 9.69%; height: 19.53%;
  -webkit-mask-image: linear-gradient(0deg, transparent 28%, #000 45%, #000 55%, transparent 72%); mask-image: linear-gradient(0deg, transparent 28%, #000 45%, #000 55%, transparent 72%);
  -webkit-mask-size: 100% 200%; mask-size: 100% 200%; }
.twf--snow.twf--d { -webkit-mask-image: linear-gradient(0deg, #000 26%, transparent 44%, transparent 56%, #000 74%); mask-image: linear-gradient(0deg, #000 26%, transparent 44%, transparent 56%, #000 74%); }
/* Маска повторяется плиткой 200%: сдвиг на 200% = ровно одна плитка, волна идёт без скачка. Олень - от хвоста к голове, снеговик - снизу вверх */
.twf.is-ready { opacity: 1; animation: run-x 2.4s linear infinite paused; }
.twf--snow.is-ready { animation-name: run-y; animation-duration: 2.8s; animation-delay: -.9s; }
@keyframes run-x { from { -webkit-mask-position: 200% 0; mask-position: 200% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
@keyframes run-y { from { -webkit-mask-position: 0 0%; mask-position: 0 0%; } to { -webkit-mask-position: 0 200%; mask-position: 0 200%; } }
.hero__frame.is-live .tw.is-ready, .hero__frame.is-live .twf.is-ready, .hero__frame.is-live .hero__tw::after { animation-play-state: running; }
@keyframes tw { from { opacity: .05; } to { opacity: 1; } }
@keyframes glow { from { opacity: .2; } to { opacity: 1; } }
@keyframes tw-soft { from { opacity: .3; } to { opacity: .75; } }
.hero__pic figcaption { position: absolute; z-index: 1; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(246, 240, 228, .92); font-size: .84rem; font-weight: 700; }
/* На телефоне кадр 16:11 низкий, подпись внизу закрыла бы оленя и снеговика - ставим её под фото */
@media (max-width: 600px) { .hero__pic figcaption { position: static; display: inline-block; margin-top: 10px; padding: 6px 12px; background: var(--sand); font-size: .8rem; } }
.facts { grid-area: facts; align-self: start; list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 34px; }
.facts b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.15; white-space: nowrap; }
.facts span { font-size: .86rem; color: var(--muted); }
@media (max-width: 959px) {
  .hero { padding: 60px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "text" "pic" "facts"; }
  .hero__frame { border-radius: 46% 46% var(--r) var(--r) / 30% 30% var(--r) var(--r); }
}
@media (max-width: 560px) {
  .hero h1 { margin: 16px 0 14px; }
  .hero__sub { font-size: 1.02rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .facts li:first-child { grid-column: 1 / -1; }
  .facts b { font-size: 1.25rem; }
}

/* --- Секции --- */
.sec { padding: clamp(40px, 5vw, 64px) 0; position: relative; }
.sec--sand { background: var(--sand); }
.sec--fir { background: var(--fir); color: var(--paper); }
.head { max-width: 760px; margin-bottom: clamp(22px, 3vw, 34px); }
.head--row { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; }
@media (max-width: 860px) { .head--row { grid-template-columns: 1fr; } }
.kicker { font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 9px; height: 12px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: currentColor; box-shadow: 0 0 10px 1px currentColor; }
.kicker--light { color: var(--lamp); }
.head__lead { margin-top: 14px; font-size: 1.02rem; color: var(--muted); }
.head--row .head__lead { margin-top: 0; }

/* --- Что украшаем: компактные карточки, фото слева --- */
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.zone { background: var(--card); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 40% minmax(0, 1fr); border: 1px solid var(--line); }
.zone picture { display: block; min-height: 100%; }
.zone img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.zone__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.zone h3 { font-size: 1.08rem; }
.zone__body p { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.zone__body .zone__price { margin-top: auto; padding-top: 8px; color: var(--red); font-weight: 800; font-size: .95rem; }
@media (max-width: 1000px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* На телефоне карточки и галерея листаются вбок, чтобы не растягивать страницу */
@media (max-width: 600px) {
  .zones, .gal { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
  .zones::-webkit-scrollbar, .gal::-webkit-scrollbar { display: none; }
  .zone, .gal__item { flex: 0 0 82%; scroll-snap-align: start; }
  .zone { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .zone img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  p.swipe-hint { display: block; }
}
.swipe-hint { display: none; margin: -10px 0 12px; font-size: .86rem; color: var(--muted); }

/* --- Квиз --- */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.calc__intro h2 { color: #fff; }
.calc__intro > p { margin-top: 18px; color: rgba(246, 240, 228, .78); font-size: 1.06rem; }
.calc__terms { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.calc__terms li { padding: 14px 0 0 0; border-top: 1px solid var(--fir-line); color: rgba(246, 240, 228, .72); font-size: .95rem; }
.calc__terms b { display: block; color: var(--lamp); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 2px; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } .calc__terms { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
/* На телефоне условия квиза не дублируем: они есть в первом экране и в самом квизе */
@media (max-width: 640px) { .calc__terms { display: none; } .calc { gap: 22px; } }

.quiz { background: var(--paper); color: var(--ink); border-radius: 26px; padding: clamp(22px, 3.4vw, 40px); position: relative; min-height: 470px; display: flex; flex-direction: column; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.quiz__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz__count { font-weight: 800; font-size: .9rem; color: var(--red); }
.quiz__bar { display: flex; gap: 6px; }
.quiz__bar i { width: 28px; height: 6px; border-radius: 3px; background: var(--sand); transition: background .3s; }
.quiz__bar i.is-on { background: var(--red); }
.quiz__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.quiz__step.is-on { display: block; animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.quiz legend { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; padding: 0; margin-bottom: 20px; outline: none; }
.quiz legend small { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--muted); margin-top: 6px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts--wide { grid-template-columns: 1fr; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span { display: block; min-height: 56px; padding: 15px 16px 15px 50px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); font-weight: 600; line-height: 1.35; position: relative; transition: border-color .2s, background .2s; }
.opt > span::before { content: ''; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9ad97; background: #fff; transition: all .2s; }
.opt input[type="checkbox"] + span::before { border-radius: 6px; }
.opt > span small { display: block; font-weight: 500; font-size: .86rem; color: var(--muted); margin-top: 3px; }
.opt:hover > span { border-color: #c8b99f; }
.opt input:checked + span { border-color: var(--red); background: #fff; }
.opt input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 4px #fff; }
.opt input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.opt input:focus-visible + span { outline: 3px solid var(--lamp); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt--chip > span { min-height: 44px; padding: 10px 16px 10px 40px; border-radius: 999px; }
.opt--chip > span::before { left: 14px; top: 12px; width: 16px; height: 16px; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 26px; }
.quiz__nav [data-next] { margin-left: auto; min-width: 160px; }
.quiz.is-sent .quiz__step, .quiz.is-sent .quiz__nav, .quiz.is-sent .quiz__head { display: none; }

.field { margin-bottom: 16px; }
.field label, .field__label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.field input { width: 100%; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 1.1rem; font-weight: 600; }
.field input:focus { border-color: var(--fir); outline: none; box-shadow: 0 0 0 3px rgba(243, 196, 96, .6); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__err { color: var(--red); font-size: .88rem; font-weight: 600; margin-top: 6px; min-height: 0; }
.field__err:empty { display: none; }

.agree { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; align-items: start; margin: 4px 0 18px; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); cursor: pointer; }
.agree label { cursor: pointer; }
.agree a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.agree .field__err { grid-column: 1 / -1; }

.done { text-align: center; padding: 30px 6px; outline: none; }
.done__mark { display: block; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px no-repeat; box-shadow: 0 0 0 8px rgba(184, 50, 58, .15); }
.done__t { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 8px; }
.done .msgs { justify-content: center; margin-top: 18px; }

/* --- Мессенджеры --- */
.msgs { display: flex; flex-wrap: wrap; gap: 10px; }
.msgs--col { flex-direction: column; }
.msg { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; transition: border-color .2s; }
.msg::before { content: ''; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.msg:hover { border-color: var(--ink); }
.msg--tg::before { background: #2aabee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 11.8l11.6-4.6c.5-.2 1 .1.8.9l-2 9.3c-.1.6-.5.8-1.1.5l-3-2.2-1.4 1.4c-.2.2-.3.3-.6.3l.2-3.1 5.6-5.1c.2-.2 0-.3-.4-.1l-6.9 4.4-3-.9c-.6-.2-.6-.6.2-.8z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat; }
.msg--wa::before { background: #25d366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5.5a6.5 6.5 0 0 0-5.6 9.8L5.5 18.5l3.3-.9A6.5 6.5 0 1 0 12 5.5zm3.4 8.9c-.2.4-.9.8-1.3.8-.3 0-.8.1-2.5-.6-2.1-.9-3.4-3-3.5-3.1-.1-.2-.8-1.1-.8-2.1s.5-1.5.7-1.7c.2-.2.4-.2.5-.2h.4c.1 0 .3 0 .4.3l.6 1.4c0 .1.1.3 0 .4l-.2.3-.3.3c-.1.1-.2.2-.1.4.1.2.6 1 1.3 1.6.9.8 1.6 1 1.8 1.1.2.1.3.1.4-.1l.6-.7c.1-.2.3-.2.4-.1l1.3.6c.2.1.3.1.4.2.1.1.1.5-.1.9z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat; }
.msg--max::before { background: linear-gradient(135deg, #4f8dff, #9b5cff); }
.msg--plain { background: none; border: 0; min-height: 0; padding: 0; color: inherit; margin-right: 14px; }

/* --- Галерея: дома вечером --- */
.gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gal__item--big { grid-column: span 2; grid-row: span 2; }
.gal figure { margin: 0; position: relative; height: 100%; border-radius: 16px; overflow: hidden; background: #2b3f63; }
.gal picture { display: block; height: 100%; }
.gal img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gal__item--big img { aspect-ratio: auto; }
.gal figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 11px; border-radius: 999px; background: rgba(15, 42, 34, .82); color: var(--paper); font-size: .78rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 1000px) and (min-width: 601px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gal__item--big { grid-row: auto; } .gal__item--big img { aspect-ratio: 3 / 2; } }
@media (max-width: 600px) { .gal { display: flex; } .gal__item--big img { aspect-ratio: 3 / 2; } }

/* --- Как работаем: этапы, безопасность, договор --- */
.work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .95fr); gap: 20px; align-items: stretch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; position: relative; }
.steps::before { content: ''; position: absolute; left: 20px; top: 22px; bottom: 30px; border-left: 2px dashed #cbbd9f; }
.steps li { position: relative; padding-left: 58px; min-height: 42px; }
.steps__n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 2px solid var(--fir); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--fir); }
.steps li:last-child .steps__n { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(184, 50, 58, .14); }
.steps b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card { background: var(--card); border-radius: var(--r); padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); }
.card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.card--fir { background: var(--fir); color: var(--paper); border: 0; display: flex; flex-direction: column; }
.card--fir .btn { margin-top: auto; align-self: flex-start; white-space: normal; text-align: center; line-height: 1.25; padding: 10px 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; line-height: 1.5; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks--light { margin-bottom: 22px; }
.ticks--light li::before { background-color: var(--lamp); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2317392f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 1080px) {
  .work { grid-template-columns: 1fr 1fr; }
  .steps { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .work { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { padding-left: 52px; }
  .steps p, .ticks { font-size: .9rem; }
  .card h3 { font-size: 1.18rem; margin-bottom: 10px; }
  .ticks { gap: 8px; }
}

/* --- Вопросы --- */
.faqgrid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 0; position: relative; font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%231c2621' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--lamp); }
.faq details p { padding: 0 44px 18px 0; color: var(--muted); }
@media (max-width: 900px) { .faqgrid { grid-template-columns: 1fr; } }

/* --- Заявка --- */
.sec--lead { padding-top: clamp(84px, 9vw, 112px); overflow: hidden; }
.leadbox { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.leadbox h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.leadbox > div > p { margin-top: 16px; color: rgba(246, 240, 228, .78); font-size: 1.08rem; max-width: 30em; }
.msgs--lead { margin-top: 20px; }
.msgs--lead .msg { background: rgba(246, 240, 228, .08); border-color: var(--fir-line); color: var(--paper); }
.msgs--lead .msg:hover { border-color: var(--paper); }
.lead__tel { margin-top: 18px; color: rgba(246, 240, 228, .78); }
.lead__tel a { color: #fff; font-weight: 800; white-space: nowrap; }
.form { background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(22px, 3vw, 34px); }
.form.is-sent .form__body { display: none; }
@media (max-width: 900px) { .leadbox { grid-template-columns: 1fr; } }

/* --- Подвал --- */
.foot { background: #12201a; color: rgba(246, 240, 228, .72); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .92rem; }
.foot__grid { display: grid; grid-template-columns: 1.1fr .9fr 1.4fr; gap: 28px 48px; }
.foot p + p { margin-top: 6px; }
.foot__brand { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--paper); }
.foot__tel { font-weight: 800; font-size: 1.1rem; color: var(--paper); text-decoration: none; }
.foot__legal { font-size: .84rem; }
.foot__legal a, .foot__msgs a { color: rgba(246, 240, 228, .86); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; gap: 18px; } .foot { padding-top: 36px; padding-bottom: 100px; } nav.foot__legal { display: none; } }

/* --- Нижняя панель на телефоне --- */
.bar { display: none; }
@media (max-width: 720px) {
  .bar { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; transition: transform .3s, opacity .3s; }
  .bar .btn { flex: 1; min-height: 52px; }
  .bar__tel { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fir); color: var(--paper); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .6); }
  .bar__tel svg { width: 22px; height: 22px; }
  .bar.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* --- Окно звонка --- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(460px, calc(100vw - 24px)); width: 100%; color: var(--ink); }
.modal::backdrop { background: rgba(10, 24, 19, .62); backdrop-filter: blur(3px); }
.modal__box { position: relative; padding: 34px 28px 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.modal__box h2 { font-size: 1.7rem; padding-right: 36px; }
.modal__lead { color: var(--muted); margin: 10px 0 20px; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' stroke='%231c2621' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; cursor: pointer; }

/* --- Cookie --- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: 380px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); font-size: .84rem; }
.cookie[hidden] { display: none; }
@media (max-width: 720px) { .cookie { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; } }

/* --- Появление при прокрутке --- */
.rv-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv-on .rv.is-in { opacity: 1; transform: none; }

/* --- Документы --- */
.doc { max-width: 820px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 24px; }
.doc h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.doc p, .doc li { color: #2e3a34; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 1.2em; }
.doc .back { display: inline-block; margin-bottom: 28px; font-weight: 700; }
