/* Melanna Decor - новый дизайн главной. Цвета приходят из /theme.css (брендбук в админке). */
:root {
  --cream: #faf6f0; --surface: #f3e7e2; --ink: #2b2222; --accent: #8e4453; --olive: #4b5638;
  --muted: color-mix(in srgb, var(--ink) 68%, var(--cream));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --card: #fffdfa;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Marck Script', cursive;
  --radius: 18px;
  --shadow: 0 18px 50px -24px color-mix(in srgb, var(--ink) 40%, transparent);
  --header: 76px;
}
*, *::before, *::after { box-sizing: border-box; }

/* Скроллбар в цветах бренда: тонкая винная «пилюля» на кремовой дорожке */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, var(--cream)); border: 3px solid var(--cream); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); border-width: 2px; }
::-webkit-scrollbar-corner { background: var(--cream); }
/* Firefox не знает ::-webkit-scrollbar - ему стандартные свойства (Chrome их бы предпочёл и сбросил стили выше) */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--cream)) var(--cream); }
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; margin-top: 28px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Типографика */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.eyebrow::after { content: ''; width: 56px; height: 1px; background: currentColor; opacity: .5; flex: none; }
.section__head--center .eyebrow, .benefits .eyebrow, .works .eyebrow { justify-content: center; }
.section__head--center .eyebrow::before, .benefits .eyebrow::before, .works .eyebrow::before { content: ''; width: 56px; height: 1px; background: currentColor; opacity: .5; flex: none; }
.title { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; margin-bottom: 22px; letter-spacing: -.01em; }
.title--small { font-size: clamp(28px, 3.4vw, 38px); }
.script { font-family: var(--script); font-weight: 400; color: var(--accent); display: block; font-size: .82em; line-height: 1.15; letter-spacing: 0; margin-top: .08em; }
.section__text { color: var(--muted); max-width: 60ch; }
.price { font-family: var(--serif); font-size: 24px; color: var(--accent); margin-bottom: 8px; }

/* Кнопки */
/* ===== Бренд-бук кнопок - живые примеры на /admin/brandbook =====
   Открытие поп-апа  .btn                 оливковая заливка: главное действие «связаться»
   Отправка формы    .btn.btn--submit     ягодная заливка, стрелка уезжает вправо
   Навигация         .btn.btn--nav        ягодный контур (якоря, «Показать ещё», «Назад»)
                     .arrow-link          текст + стрелка (переход на страницу)
   Слайдер           .slider__arrow, .slider__dot
   Тарифы            .btn.btn--trace      светлый контур с бегущим бликом (боковые тарифы)
                     .btn.btn--glow       мягкая оливковая заливка (средний тариф)
   На тёмном фоне    .btn.btn--light      кремовая заливка
   Контакты-иконки   .round               кружок с контуром
   Размер            .btn--small          42 px вместо 52 px
   Чёрных кнопок нет: тёмный цвет - только для текста. */
.btn { --b: var(--olive); --b-hover: color-mix(in srgb, var(--olive) 78%, #10140a);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 999px;
  border: 1px solid var(--b); background: var(--b); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--b) 90%, transparent);
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); background: var(--b-hover); border-color: var(--b-hover); color: #fff; box-shadow: 0 16px 28px -14px color-mix(in srgb, var(--b) 90%, transparent); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn--submit { --b: var(--accent); --b-hover: color-mix(in srgb, var(--accent) 80%, #24070e); }
.btn--submit .icon { transition: transform .25s; }
.btn--submit:hover .icon { transform: translateX(4px); }
.btn--nav { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: none; }
.btn--nav:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--accent); box-shadow: 0 14px 28px -16px rgb(0 0 0 / .55); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--accent); }
.btn--small { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.arrow-link:hover { background-size: calc(100% - 26px) 1px; }
.arrow-link .icon { width: 18px; height: 18px; transition: transform .25s; }
.arrow-link:hover .icon { transform: translateX(5px); }
.round { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); color: var(--accent); transition: background .2s, color .2s, border-color .2s; }
.round:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(0,0,0,.35); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header); }
.header__logo { text-decoration: none; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); line-height: 1; }
.logo__mark { width: 46px; height: 46px; flex: none; overflow: visible; }
.logo__wax { fill: color-mix(in srgb, var(--accent) 92%, #3a0f1a); stroke: color-mix(in srgb, var(--accent) 70%, #2a0a12); stroke-width: 1; stroke-linejoin: round; }
.logo__ring { fill: none; stroke: rgb(255 225 225 / .45); stroke-width: 1.5; }
.logo__m { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 28px; fill: #fdecee; }
.logo__petals { opacity: .92; }
.logo__text { position: relative; padding: 0 16px 13px 0; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.005em; }
.logo__text span { position: absolute; right: 0; bottom: -3px; font-family: var(--script); font-size: 21px; font-weight: 400; color: var(--accent); rotate: -6deg; }
.logo--light { color: #fff; }
.logo--light .logo__text span { color: #e3b7c0; }
.nav { display: flex; align-items: center; gap: 22px; flex: 1; font-size: 14.5px; font-weight: 500; }
/* «Меню» прижато к лого, остальные пункты - по центру свободного места */
.nav > .nav__group:first-child { margin-right: auto; }
.nav > a:last-of-type { margin-right: auto; }
.nav > a, .nav__more { text-decoration: none; padding: 6px 0; background: none; border: 0; cursor: pointer; position: relative; }
.nav > a::after, .nav__more::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.nav > a:hover::after, .nav__more:hover::after, .nav__more[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__more { display: inline-flex; align-items: center; gap: 4px; }
.nav__more::before { content: ''; order: 2; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.nav__group { position: relative; }
.nav__menu { position: absolute; top: calc(100% + 14px); left: -20px; min-width: 260px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: none; }
.nav__menu.is-open { display: grid; }
.nav__menu a { padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.nav__menu a:hover { background: var(--surface); }
.nav__contacts { display: none; }
/* «Меню» - навигация по разделам главной: значок из трёх линий, панель в две колонки */
.nav__more--page { gap: 9px; }
.nav__more--page::before { display: none; }
.nav__lines { position: relative; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; }
.nav__lines::before, .nav__lines::after { content: ''; position: absolute; left: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: width .25s, transform .25s; }
.nav__lines::before { top: -5px; width: 16px; } .nav__lines::after { top: 5px; width: 10px; }
.nav__more--page:hover .nav__lines::after, .nav__more--page[aria-expanded="true"] .nav__lines::after { width: 16px; }
.nav__menu--page { min-width: 430px; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 6px; padding: 12px; }
.nav__menu--page a { position: relative; padding-left: 28px; }
.nav__menu--page a::before { content: ''; position: absolute; left: 13px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-50%); transition: background .2s; }
.nav__menu--page a:hover::before { background: var(--accent); }
.nav__menu { transform-origin: top left; }
.nav__menu.is-open { animation: menu-in .22s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.header__call.btn--trace { box-shadow: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { font-weight: 600; text-decoration: none; font-size: 15px; margin-right: 6px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before, .burger span::after { content: ''; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Мессенджеры */
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.messenger { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s; }
.messenger:hover { border-color: var(--accent); color: var(--accent); }
.messengers--light .messenger { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.messengers--light .messenger:hover { border-color: #fff; color: #fff; }

/* Секции */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow-x: clip; isolation: isolate; }
.section > .wrap { position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
/* плавные переходы между секциями: цветной фон растворяется в кремовом сверху и снизу */
.section--surface { --fade: clamp(56px, 8vw, 120px); background: linear-gradient(180deg, transparent 0, var(--surface) var(--fade), var(--surface) calc(100% - var(--fade)), transparent 100%); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section__head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.card { background: var(--card); border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
/* Фото в рамке: мягкие углы и тонкий контур со сдвигом */
.frame { position: relative; isolation: isolate; border-radius: 22px; }
.frame::before { content: ''; position: absolute; inset: 14px -12px -12px 14px; z-index: -1; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 26px; transition: transform .6s ease; }
.frame img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--surface); }
/* Декор: пятна румянца, веточки, рукописные подписи */
.blob { position: absolute; z-index: -1; width: min(620px, 70vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 11%, transparent), transparent); }
.blob--right { right: -220px; top: -80px; }
.blob--left { left: -260px; bottom: -60px; }
.blob--center { left: 50%; top: 18%; translate: -50% 0; width: min(900px, 90vw); }
.deco-sprig { z-index: -1; }
.deco-script { position: absolute; margin: 0; font-family: var(--script); color: var(--accent); opacity: .5; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; transform: rotate(-7deg); pointer-events: none; }
.sprig { position: absolute; width: 120px; height: 240px; pointer-events: none; }
.sprig .stem { fill: none; stroke: var(--olive); stroke-width: 1.4; opacity: .55; }
.sprig .leaf { fill: color-mix(in srgb, var(--olive) 22%, transparent); stroke: var(--olive); stroke-width: .9; opacity: .7; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.ticks--big li { font-weight: 500; }

/* Первый экран */
.btn .icon { width: 18px; height: 18px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 clamp(12px, 2.4vh, 22px); }
.hero-eyebrow .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; opacity: .8; }
.hero-eyebrow::after { content: ''; width: 56px; height: 1px; background: currentColor; opacity: .5; }
.hero-lead { font-size: clamp(15px, 1.25vw, 17.5px); color: var(--muted); max-width: 44ch; margin-bottom: clamp(18px, 3.4vh, 32px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(18px, 3.4vh, 30px); }
.hero-direct { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero-direct > span { font-size: 13px; color: var(--muted); margin-right: 6px; max-width: 20ch; line-height: 1.35; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features li { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; line-height: 1.35; padding: 4px 22px; }
.features li + li { border-left: 1px solid var(--line); }
.features__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.features__icon .icon { width: 22px; height: 22px; }
.features li > span:last-child { text-wrap: balance; }
.features--card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px 8px; }

.hero1 { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(20px, 3vh, 36px);
  background: radial-gradient(50% 70% at 0% 40%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 70%), var(--cream); }
.hero1__inner { min-height: clamp(400px, calc(100svh - var(--header) - 130px), 680px); display: flex; align-items: center; padding-block: clamp(24px, 5vh, 64px); }
.hero1__copy { max-width: 620px; }
.hero1__copy .hero-lead { max-width: 46ch; }
.hero1__title { font-family: var(--serif); font-size: clamp(42px, min(5.4vw, 9vh), 78px); line-height: 1; letter-spacing: -.02em; margin-bottom: clamp(14px, 2.6vh, 24px); }
.hero1__title em { font-style: normal; color: var(--accent); display: block; }

/* Фото со сменой кадров: справа, мягко растворяется в фоне слева и снизу */
.hero1 { --photo-w: min(46%, 820px); }
.hero1__photo { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: var(--photo-w); overflow: hidden; background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .08) 8%, rgb(0 0 0 / .3) 17%, rgb(0 0 0 / .62) 27%, rgb(0 0 0 / .88) 37%, #000 46%), linear-gradient(180deg, transparent 0%, #000 9%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .08) 8%, rgb(0 0 0 / .3) 17%, rgb(0 0 0 / .62) 27%, rgb(0 0 0 / .88) 37%, #000 46%), linear-gradient(180deg, transparent 0%, #000 9%); }
/* Вуаль на стыке: мягкие «облака» сливочного цвета разной высоты, чтобы граница не читалась прямой линией */
.hero1__veil { position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(var(--photo-w) - 220px); width: 380px; pointer-events: none;
  background: radial-gradient(42% 22% at 40% 12%, var(--cream) 0%, transparent 100%), radial-gradient(48% 28% at 30% 48%, color-mix(in srgb, var(--cream) 85%, transparent) 0%, transparent 100%),
    radial-gradient(40% 20% at 46% 82%, var(--cream) 0%, transparent 100%), radial-gradient(60% 14% at 55% 66%, color-mix(in srgb, var(--surface) 60%, transparent) 0%, transparent 100%); }
.hero1__sprig { z-index: 0; right: calc(var(--photo-w) - 150px); bottom: 110px; width: 110px; height: 220px; transform: rotate(-24deg); }
.hero1__sprig--top { right: auto; bottom: auto; left: max(-30px, calc((100vw - 1180px) / 2 - 150px)); top: -40px; transform: rotate(160deg) scale(.8); opacity: .55; }
.hero1__blush { position: absolute; z-index: -2; left: -12vw; bottom: -18vh; width: 46vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 9%, transparent), transparent); }
.hero1__script { position: absolute; z-index: 0; right: calc(var(--photo-w) - 40px); top: clamp(24px, 6vh, 60px); margin: 0; font-family: var(--script); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1;
  color: var(--accent); opacity: .75; transform: rotate(-7deg); text-align: right; pointer-events: none; }
.hero1__photo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--cream) 0%, transparent 26%), linear-gradient(270deg, rgb(20 14 12 / .42), transparent 34%); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-side { position: absolute; z-index: 1; right: clamp(20px, 3vw, 40px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0 0 0 16px;
  border-left: 1px solid rgb(255 255 255 / .55); display: grid; gap: 12px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.hero-count { position: absolute; z-index: 1; right: clamp(20px, 3vw, 40px); bottom: clamp(150px, 20vh, 190px); display: flex; align-items: center; gap: 12px; color: #fff; font-size: 13px; letter-spacing: .1em; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.hero-count button { border: 1px solid rgb(255 255 255 / .7); background: rgb(255 255 255 / .08); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; backdrop-filter: blur(4px); }
.hero-count button:hover { background: #fff; color: var(--ink); }
.hero-count button:first-child .icon { transform: scaleX(-1); }
.hero-count .icon { width: 16px; height: 16px; }

/* Формы */
.lead-form { display: grid; gap: 14px; }
.lead-form__title { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 0 0 4px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.field small { font-weight: 400; }
.field input, .field textarea { width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; transition: border-color .2s, background .2s; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink) 42%, transparent); }
.field textarea { border-radius: 16px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field input:user-invalid { border-color: #b3261e; }
.field__error { margin: -6px 0 0; font-size: 13px; line-height: 1.4; color: #b3261e; text-align: left; }
.field--inline { margin-top: 12px; }
.consent { display: flex; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.45; align-items: flex-start; }
.consent input { margin-top: 1px; accent-color: var(--olive); width: 16px; height: 16px; flex: none; }
.lead-form .btn { width: 100%; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chip input, .option input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip input:focus-visible + span, .option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-form--off { color: var(--muted); }

/* Преимущества */
.benefits .title { text-align: center; }
.benefits__grid { display: grid; grid-template-columns: 1fr minmax(340px, 1.35fr) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(32px, 5vw, 56px); }
.benefits__col { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(28px, 4vw, 44px); }
.benefits__col li { display: flex; gap: 18px; align-items: flex-start; }
.benefits__col--left li { flex-direction: row-reverse; text-align: right; }
.benefits__col p { margin: 0; font-size: 15.5px; line-height: 1.55; }
@media (min-width: 1260px) {
  .benefits__col li:nth-child(2) { translate: clamp(-28px, -2vw, 0px) 0; }
  .benefits__col--right li:nth-child(2) { translate: clamp(0px, 2vw, 28px) 0; }
}
.bubble { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent); flex: none; position: relative; transition: background .3s, color .3s, transform .3s; }
.bubble::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); }
.bubble .icon { width: 24px; height: 24px; }
.benefits__col li:hover .bubble { background: var(--accent); color: #fff; transform: rotate(-8deg); }

/* Полароиды в центре */
.benefits__art { position: relative; height: clamp(460px, 36vw, 580px); }
.polaroid { position: absolute; margin: 0; padding: 10px 10px 0; background: #fff; border-radius: 4px; box-shadow: 0 22px 44px -26px rgb(60 30 30 / .55), 0 2px 6px rgb(60 30 30 / .06); transition: transform .5s ease; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font-family: var(--script); color: var(--ink); font-size: 19px; text-align: center; padding: 8px 4px 12px; line-height: 1.1; }
.polaroid::before { content: ''; position: absolute; z-index: 1; top: -12px; left: 50%; width: 92px; height: 26px; translate: -50% 0; rotate: -4deg;
  background: color-mix(in srgb, var(--accent) 22%, rgb(255 255 255 / .55)); box-shadow: 0 1px 2px rgb(0 0 0 / .05); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.polaroid--a { width: 58%; left: 8%; top: 0; transform: rotate(-5deg); }
.polaroid--b { width: 40%; right: 6%; bottom: 0; transform: rotate(6deg); }
.polaroid--b::before { background: color-mix(in srgb, var(--olive) 22%, rgb(255 255 255 / .6)); rotate: 5deg; }
.benefits__art:hover .polaroid--a { transform: rotate(-3deg) translateY(-6px); }
.benefits__art:hover .polaroid--b { transform: rotate(3deg) translateY(-4px); }
.stamp { position: absolute; z-index: 2; right: 8%; top: 8%; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--accent); box-shadow: 0 10px 26px -16px rgb(60 30 30 / .5); }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp text { font: 600 9.2px var(--sans); letter-spacing: .14em; fill: currentColor; }
.stamp .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; animation: beat 2.4s ease-in-out infinite; }
.benefits__note { position: absolute; left: -2%; bottom: 0; margin: 0; font-family: var(--script); color: var(--accent); font-size: 21px; line-height: 1.1; text-align: center; rotate: -8deg; }
.benefits__note::before { content: ''; display: block; width: 46px; height: 30px; margin: 0 0 6px auto; border-right: 1.3px solid currentColor; border-top: 1.3px solid currentColor; border-radius: 0 40px 0 0; opacity: .6; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes beat { 0%, 100% { scale: 1; } 12% { scale: 1.18; } 24% { scale: 1; } 36% { scale: 1.12; } 48% { scale: 1; } }

/* Лента через весь сайт: путь строит front.js, при прокрутке она «разматывается» */
#main { position: relative; }
#main > section { position: relative; z-index: 1; }
.ribbon { position: absolute; left: 0; top: 0; pointer-events: none; overflow: hidden; }
.ribbon--under { z-index: 0; }
.ribbon--over { z-index: 0; } /* текст и карточки блоков всегда поверх ленты */
.ribbon path { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.ribbon__shadow { stroke: rgb(80 55 35 / .1); stroke-width: 17; translate: 0 3px; }
.ribbon__edge { stroke: #e3d1bd; stroke-width: 15; }
.ribbon__satin { stroke: #fffdf9; stroke-width: 13; }
.ribbon__trim { stroke: #efe3d6; stroke-width: 9; }
.ribbon__core { stroke: #fffdf9; stroke-width: 7.5; }
.ribbon .ribbon__cloth { fill: #fffdf9; stroke: #d9c3ac; stroke-width: 1.1; }
.ribbon .ribbon__fold { fill: none; stroke: #e6d6c4; stroke-width: 1.2; stroke-linecap: round; }
.ribbon__bow { filter: drop-shadow(0 3px 4px rgb(80 55 35 / .14)); }
.ribbon__bow > * { transform-box: view-box; animation: bow-sway 5s ease-in-out infinite; }
.ribbon__sprig { opacity: 0; transition: opacity .9s ease; }
.ribbon__sprig.is-on { opacity: .85; }
.ribbon .ribbon__end { fill: var(--accent); opacity: 0; transition: opacity .6s; }
.ribbon.is-done .ribbon__end { opacity: 1; }
@keyframes bow-sway { 50% { rotate: -4deg; } }
/* Эскизная свадебная арка в начале ленты */
.ribbon .arch__line { fill: none; stroke: #cdb59c; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s cubic-bezier(.4, 0, .2, 1); }
.ribbon .arch__line--sketch { stroke-width: .8; opacity: .6; transition-delay: .5s; }
.ribbon__arch.is-on .arch__line { stroke-dashoffset: 0; }
.ribbon__arch .arch__fill { opacity: 0; transition: opacity 1.6s ease 1.4s; }
.ribbon__arch.is-on .arch__fill { opacity: 1; }
.ribbon .arch__leaf { fill: rgb(169 176 140 / .3); stroke: #a3ab86; stroke-width: .9; }
.ribbon .arch__rose { fill: #fffaf6; stroke: #d2b0a2; stroke-width: 1; }
.ribbon .arch__petal { fill: none; stroke: #c4968a; stroke-width: .9; stroke-linecap: round; }
.ribbon .arch__bud { fill: color-mix(in srgb, var(--accent) 30%, #fff); }
.ribbon .arch__veil { fill: rgb(255 253 249 / .75); stroke: #e3d1bd; stroke-width: 1; }
/* Свадебные мелочи на ленте */
.ribbon__charm { opacity: 0; transition: opacity .9s ease; }
.ribbon__charm.is-on { opacity: 1; }
.charm__body { transform-box: fill-box; transform-origin: 50% 0; animation: charm-sway 6s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgb(80 55 35 / .16)); }
.ribbon__charm:nth-child(2n) .charm__body { animation-delay: -3s; }
.charm__body { stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.ribbon .charm__line path, .ribbon path.charm__line { fill: none; stroke: #c9a36a; }
.ribbon .charm__glass { fill: rgb(255 253 249 / .85); stroke: #b99a7a; }
.ribbon .charm__wine { fill: #f1dfb8; stroke: none; }
.ribbon .charm__dot { fill: #fff; stroke: none; }
.ribbon .charm__veil { fill: rgb(255 253 249 / .95); stroke: #c4a688; }
.ribbon .charm__fold { fill: none; stroke: #dcc6ae; }
.ribbon .charm__comb { fill: none; stroke: #c9a36a; stroke-width: 3; }
.ribbon .charm__pearl { fill: #fffdf9; stroke: #d9c3ac; }
.ribbon .charm__tie { fill: var(--ink); stroke: var(--ink); }
.ribbon .charm__shine { fill: none; stroke: rgb(255 255 255 / .28); }
.ribbon .charm__knot { fill: color-mix(in srgb, var(--ink) 80%, #fff); stroke: var(--ink); }
.ribbon .charm__candle { fill: #fffdf9; stroke: #c4a688; }
.ribbon .charm__flame { fill: #f2b96a; stroke: #e39a4a; stroke-width: 1; }
.ribbon .charm__glow { fill: rgb(242 185 106 / .2); stroke: none; }
.ribbon .charm__ring { fill: none; stroke: #c9a36a; stroke-width: 3.4; }
.ribbon .charm__gem { fill: #fffdf9; stroke: #b99a7a; }
@keyframes charm-sway { 50% { rotate: 3deg; } }

/* Падающие лепестки */
.petals { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.petals span { position: absolute; top: -30px; width: 14px; height: 11px; border-radius: 0 80% 0 80%; opacity: 0;
  background: linear-gradient(135deg, #f6d3d3, color-mix(in srgb, var(--accent) 45%, #f3c6c6)); animation: petal 16s linear infinite; }
.petals span:nth-child(1) { left: 8%; animation-delay: 0s; }
.petals span:nth-child(2) { left: 22%; animation-delay: -5s; animation-duration: 19s; width: 10px; height: 8px; }
.petals span:nth-child(3) { left: 37%; animation-delay: -11s; }
.petals span:nth-child(4) { left: 48%; animation-delay: -2s; animation-duration: 21s; width: 12px; }
.petals span:nth-child(5) { left: 61%; animation-delay: -8s; animation-duration: 17s; }
.petals span:nth-child(6) { left: 72%; animation-delay: -14s; width: 9px; height: 7px; }
.petals span:nth-child(7) { left: 84%; animation-delay: -4s; animation-duration: 20s; }
.petals span:nth-child(8) { left: 93%; animation-delay: -10s; width: 11px; }
.petals span:nth-child(9) { left: 55%; animation-delay: -16s; animation-duration: 23s; width: 8px; height: 6px; }
@keyframes petal {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: .85; }
  50% { transform: translate(40px, 50vh) rotate(200deg); }
  90% { opacity: .7; }
  100% { transform: translate(-20px, 110vh) rotate(400deg); opacity: 0; }
}

/* Каталог */
/* Слайдер направлений */
.catalog__track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px 2px 30px; margin: 0 -2px; scroll-padding-inline: 2px; overscroll-behavior-x: contain; cursor: grab; }
.catalog__track::-webkit-scrollbar { display: none; }
.catalog__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.catalog__track.is-dragging .offer { pointer-events: none; }
/* Карточка-арка: свадебная арка сверху, двойная тонкая рамка */
.offer { position: relative; flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; padding: 12px; background: linear-gradient(180deg, #fffdf9 0%, var(--card) 60%); border: 1px solid var(--line); border-radius: 50% 50% 30px 30px / 170px 170px 30px 30px; box-shadow: 0 22px 44px -32px rgb(80 40 40 / .5); transition: transform .5s ease, box-shadow .5s ease; }
.offer::before { content: ''; position: absolute; inset: 5px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: inherit; pointer-events: none; }
.offer:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -34px rgb(80 40 40 / .6); }
.offer__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 50% 50% 20px 20px / 158px 158px 20px 20px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
.offer__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(40 25 20 / .28), transparent 28%, transparent 72%, rgb(40 25 20 / .22)); pointer-events: none; }
.offer__photo img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; transition: transform 1s ease; }
.offer__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.offer:hover .offer__alt { opacity: 1; }
.offer:hover .offer__photo img { transform: scale(1.04); }
.offer__num { position: absolute; z-index: 1; left: 50%; top: 22px; translate: -50% 0; display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 21px; color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .35); letter-spacing: .08em; }
.offer__num::before, .offer__num::after { content: ''; width: 18px; height: 1px; background: rgb(255 255 255 / .8); }
.offer__price { position: absolute; z-index: 1; left: 50%; bottom: 14px; translate: -50% 0; white-space: nowrap; padding: 7px 14px 6px; border-radius: 999px; background: rgb(255 251 246 / .92); backdrop-filter: blur(6px); font-family: var(--serif); font-size: 19px; line-height: 1; color: var(--accent); box-shadow: 0 6px 16px -10px rgb(60 30 30 / .5); }
.offer__body { display: flex; flex-direction: column; flex: 1; padding: 22px 16px 12px; }
.offer h3 { font-family: var(--serif); font-size: 27px; line-height: 1.1; margin-bottom: 10px; text-align: center; }
.offer h3::after { content: ''; display: block; width: 7px; height: 7px; margin: 12px auto 0; rotate: 45deg; border: 1px solid var(--accent); box-shadow: -16px 16px 0 -3px color-mix(in srgb, var(--accent) 45%, transparent), 16px -16px 0 -3px color-mix(in srgb, var(--accent) 45%, transparent); }
.offer__text { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; text-align: center; }
.offer__incl { margin-bottom: 22px; }
.offer__label::before { content: ''; flex: 1; height: 1px; background: var(--line); }
.offer__label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.offer__label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.offer__incl ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; line-height: 1.45; }
.offer__incl li { position: relative; padding-left: 22px; }
.offer__incl li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px dotted color-mix(in srgb, var(--accent) 70%, transparent); background: radial-gradient(circle, var(--accent) 0 1.5px, transparent 2px); }
.offer__actions { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.offer__actions .btn { flex: 1; padding-inline: 16px; }
.offer__or { display: none; }
.offer { min-width: 0; }
.offer__actions .round { flex: none; color: var(--olive); }
.offer__actions .round:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
/* Слайдер: стрелки по бокам, снизу точки-тире и счётчик справа */
.slider { position: relative; }
.slider__bar { position: relative; display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 6px; }
.slider__dots { display: flex; align-items: center; gap: 4px; }
.slider__dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: width .45s cubic-bezier(.4, 0, .2, 1); }
.slider__dot::before { content: ''; width: 8px; height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, var(--cream)); transition: width .45s cubic-bezier(.4, 0, .2, 1), background .3s; }
.slider__dot:hover::before { background: color-mix(in srgb, var(--accent) 50%, var(--cream)); }
.slider__dot.is-active { width: 44px; }
.slider__dot.is-active::before { width: 36px; background: var(--accent); }
.slider__count { position: absolute; right: 0; top: 50%; translate: 0 -50%; margin: 0; font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.slider__count b { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--ink); }
.slider__arrow { position: absolute; z-index: 2; top: calc((100% - 52px) / 2 - 27px); width: 54px; height: 54px; background: var(--card); box-shadow: 0 10px 26px -14px rgb(80 40 40 / .5); transition: background .2s, color .2s, opacity .3s, translate .3s; }
.slider__arrow--prev { left: -82px; }
.slider__arrow--next { right: -82px; }
.slider__arrow--prev .icon { rotate: 180deg; }
.slider__arrow:not(:disabled) { cursor: pointer; }
.slider__arrow:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 55%, transparent); }
.slider__arrow:hover:not(:disabled) { translate: var(--nudge, 3px) 0; }
.slider__arrow--prev:hover:not(:disabled) { --nudge: -3px; }
.slider__arrow:disabled { opacity: .3; cursor: default; background: var(--card); color: var(--ink); }
@media (max-width: 1360px) {
  .slider__arrow--prev { left: -14px; }
  .slider__arrow--next { right: -14px; }
  .slider__arrow:disabled { opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) { .slider__arrow { display: none; } }

/* Почему мы */
.why__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
/* свой акварельный эскиз арки (SVG без фона) - просто картинка, без рамок */
.why__photo { position: sticky; top: calc(var(--header) + 24px); }
.why__photo img { display: block; width: 100%; height: auto; }
.questions__art img { width: 100%; mix-blend-mode: multiply; }
.why__script { left: 6%; bottom: 60px; }
.why__subtitle { font-family: var(--serif); font-size: 28px; margin: 34px 0 16px; }
/* решения: номера-медальоны на пунктирной «нити», мягкая подсветка пункта при наведении */
.solutions { --medal: 52px; position: relative; list-style: none; padding: 0; margin: 0 0 0 -12px; display: grid; gap: 4px; }
.solutions::before { content: ''; position: absolute; left: calc(12px + var(--medal) / 2); top: 40px; bottom: 40px; width: 1px;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent) 40%, transparent) 0 5px, transparent 5px 10px); }
.solutions li { position: relative; display: grid; grid-template-columns: var(--medal) 1fr; gap: 20px; align-items: start; padding: 14px 18px 14px 12px; border-radius: 26px; transition: background .35s ease, box-shadow .35s ease; }
.solutions li:hover { background: color-mix(in srgb, var(--card) 72%, transparent); box-shadow: 0 18px 36px -30px rgb(80 40 40 / .55); }
.solutions__num { position: relative; z-index: 1; display: grid; place-items: center; width: var(--medal); height: var(--medal); border-radius: 50%; background: var(--card); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 0 0 5px var(--surface), 0 10px 20px -14px rgb(80 40 40 / .5); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1; color: var(--accent); transition: background .35s, color .35s, box-shadow .35s; }
.solutions li:hover .solutions__num { background: var(--accent); color: var(--card); box-shadow: 0 0 0 5px color-mix(in srgb, var(--card) 72%, var(--surface)), 0 12px 22px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.solutions h4 { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; margin: 4px 0 4px; }
.solutions p { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .solutions { --medal: 44px; margin-left: -8px; }
  .solutions li { gap: 14px; padding: 12px 12px 12px 8px; }
  .solutions::before { left: calc(8px + var(--medal) / 2); }
  .solutions__num { font-size: 18px; }
  .solutions h4 { font-size: 20px; }
}

/* Работы */
.works .title { text-align: center; margin-bottom: 44px; }
.works .eyebrow, .benefits .eyebrow { text-align: center; }
.section__head .title { margin-bottom: 0; }
/* галерея-мозаика: крупный кадр, вертикали и панорамы в ритме из 9 фото; плотная укладка без дыр */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 18px); }
.mosaic__item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; border-radius: 18px; overflow: hidden; isolation: isolate; box-shadow: 0 18px 36px -28px rgb(60 30 30 / .55); }
.mosaic__item:nth-child(9n + 1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(9n + 3), .mosaic__item:nth-child(9n + 7) { grid-row: span 2; }
.mosaic__item:nth-child(9n + 6) { grid-column: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s; }
/* тонкая рамка-паспарту и мягкая вуаль при наведении */
.mosaic__item::before { content: ''; position: absolute; inset: 10px; z-index: 1; border: 1px solid rgb(255 255 255 / .7); border-radius: 12px; opacity: 0; transform: scale(1.03); transition: opacity .5s, transform .5s; pointer-events: none; }
.mosaic__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(43 34 34 / .5)); opacity: 0; transition: opacity .5s; }
.mosaic__zoom { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgb(255 253 250 / .9); color: var(--accent); font: 300 30px/1 var(--serif); transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 10px 24px -12px rgb(60 30 30 / .6); }
.mosaic__item:hover img, .mosaic__item:focus-visible img { transform: scale(1.06); filter: saturate(1.08); }
.mosaic__item:hover::before, .mosaic__item:hover::after, .mosaic__item:focus-visible::before, .mosaic__item:focus-visible::after { opacity: 1; transform: none; }
.mosaic__item:hover .mosaic__zoom, .mosaic__item:focus-visible .mosaic__zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mosaic__item.is-hidden { display: none; }
.mosaic__item.is-new { animation: mosaic-in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mosaic-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.works__more { margin-top: clamp(28px, 4vw, 44px); }

/* Кейсы */
.cases__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case { text-decoration: none; display: flex; flex-direction: column; background: var(--card); border-radius: 24px; padding: 14px 14px 26px; box-shadow: var(--shadow); }
.case__photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 20px; }
.case__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.case:hover .case__photo img { transform: scale(1.04); }
.case__photo .badge { position: absolute; left: 14px; top: 14px; }
.case h3, .case p, .case .arrow-link { margin-inline: 12px; }
.case h3 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.case p { color: var(--muted); }

/* Идеальный декор */
/* оливковая карточка-открытка внутри страницы: тонкая внутренняя рамка, веточки по бокам, разделитель с листиком */
.ideal { padding: clamp(28px, 5vw, 64px) 0; color: #fff; }
/* Переход к футеру: два слоя ткани-драпировки с «булавками», как ламбрекен над тёмным подвалом */
.footer { position: relative; margin-top: clamp(52px, 6vw, 72px); }
.footer::before { content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--drape-h, 56px); pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 56'><path d='M-160 6C-110 40 -50 40 0 6C50 40 110 40 160 6C210 40 270 40 320 6C370 40 430 40 480 6V56H-160Z' fill='%23ead3cf' fill-opacity='.7'/><path d='M-160 6C-110 40 -50 40 0 6C50 40 110 40 160 6C210 40 270 40 320 6C370 40 430 40 480 6' fill='none' stroke='%23c9a3a8' stroke-opacity='.55' stroke-width='.8'/><path d='M0 14C80 46 240 46 320 14V56H0Z' fill='%232b2222'/><path d='M0 24C80 56 240 56 320 24' fill='none' stroke='%23d9b8b6' stroke-opacity='.3' stroke-dasharray='.5 5' stroke-linecap='round' stroke-width='1.4'/><circle cx='160' cy='6' r='2.6' fill='%23fffdfa' stroke='%23c9a3a8'/><circle cx='0' cy='14' r='3.4' fill='%238e4453'/><circle cx='320' cy='14' r='3.4' fill='%238e4453'/></svg>") center bottom / var(--drape-w, 320px) var(--drape-h, 56px) repeat-x; }
@media (max-width: 640px) { .footer { --drape-w: 200px; --drape-h: 35px; } }
.ideal__card { --r: clamp(24px, 3vw, 36px); position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(52px, 6vw, 84px) clamp(22px, 5vw, 80px); border-radius: var(--r);
  background: radial-gradient(55% 75% at 12% 0%, rgb(255 255 255 / .1), transparent 70%), radial-gradient(45% 65% at 100% 100%, rgb(242 216 207 / .14), transparent 70%), var(--olive);
  box-shadow: 0 46px 80px -52px rgb(40 50 30 / .8); }
.ideal__card::before { content: ''; position: absolute; inset: 12px; z-index: -1; border: 1px solid rgb(255 255 255 / .2); border-radius: calc(var(--r) - 12px); pointer-events: none; }
.ideal__card::after { content: 'Melanna'; position: absolute; right: -1%; bottom: -.32em; z-index: -1; font: 400 clamp(110px, 17vw, 230px)/1 var(--script); color: rgb(255 255 255 / .05); pointer-events: none; }
.ideal .title { margin-bottom: 14px; }
.ideal .title .script { color: #f2d8cf; }
.ideal__sprig { z-index: -1; left: clamp(4px, 2vw, 34px); top: 26px; opacity: .8; }
.ideal__sprig--right { left: auto; top: auto; right: clamp(4px, 2vw, 34px); bottom: 20px; transform: scale(-1, -1); }
.ideal .sprig .stem, .ideal .sprig .leaf { stroke: #fff; }
.ideal .sprig .leaf { fill: rgba(255,255,255,.12); }
.ideal__divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 34px; color: #f2d8cf; }
.ideal__divider::before, .ideal__divider::after { content: ''; width: clamp(40px, 8vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, rgb(242 216 207 / .7)); }
.ideal__divider::after { transform: scaleX(-1); }
.ideal__list { list-style: none; padding: 0; margin: 0 auto 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; text-align: left; }
.ideal__list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); line-height: 1.5; transition: background .3s, border-color .3s, transform .3s; }
.ideal__list li:hover { background: rgb(255 255 255 / .1); border-color: rgb(242 216 207 / .35); transform: translateY(-2px); }
.ideal__list .icon { color: #f2d8cf; margin-top: 2px; flex: none; }

/* Квиз */
.quiz__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.quiz__sprig { left: 3%; bottom: 40px; transform: rotate(-14deg); }
.quiz__card { border: 1px solid var(--line); }
.author { display: flex; gap: 16px; align-items: center; margin: 28px 0 0; }
.author__photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; }
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author strong { display: block; font-family: var(--script); font-size: 26px; font-weight: 400; color: var(--accent); line-height: 1.1; }
.author span { font-size: 14px; color: var(--muted); }
.quiz__progress { height: 4px; border-radius: 4px; background: var(--surface); overflow: hidden; margin-bottom: 10px; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--olive); transition: width .35s; }
.quiz__count { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__question { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 18px; padding: 0; }
.options { display: grid; gap: 10px; }
.options--grid { grid-template-columns: 1fr 1fr; }
.options--row { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.option { position: relative; }
.option span { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .2s; font-size: 15px; line-height: 1.35; height: 100%; }
.option span::before { content: ''; width: 18px; height: 18px; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 50%; flex: none; transition: all .2s; }
.option input[type="checkbox"] + span::before { border-radius: 5px; }
.option input:checked + span { border-color: var(--olive); background: color-mix(in srgb, var(--olive) 8%, transparent); }
.option input:checked + span::before { border-color: var(--olive); background: var(--olive); box-shadow: inset 0 0 0 3px var(--card); }
.option:hover span { border-color: color-mix(in srgb, var(--olive) 60%, transparent); }
/* способ связи: плитки с иконкой вместо радиоточки */
.options--contact { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.option--icon input { position: absolute; opacity: 0; pointer-events: none; }
.option--icon span { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 8px; text-align: center; font-size: 14px; }
.option--icon span::before { content: none; }
.option--icon .icon { width: 36px; height: 36px; padding: 7px; border-radius: 50%; color: var(--olive); background: color-mix(in srgb, var(--olive) 10%, transparent); transition: all .2s; }
.option--icon input:checked + span { font-weight: 600; }
.option--icon input:checked + span .icon { color: #fff; background: var(--olive); }
.option--icon input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
@media (max-width: 520px) { .options--contact { grid-template-columns: 1fr 1fr; } }
.quiz__hints { max-width: 440px; margin-top: 18px; }
.quiz__hint { position: relative; display: flex; gap: 12px; margin: 0; padding: 16px 18px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.55; color: var(--ink); animation: hint-in .35s ease; }
.quiz__hint[hidden] { display: none; }
/* хвостик облачка - к фото декоратора */
.quiz__hint::before { content: ""; position: absolute; top: -8px; left: 30px; width: 16px; height: 16px; background: var(--card); transform: rotate(45deg); border-radius: 3px; }
.quiz__hint .icon { flex: none; color: var(--accent); margin-top: 3px; }
@keyframes hint-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz__hint { animation: none; } }
.quiz__final { color: var(--muted); }
.quiz__step .consent { margin-top: 14px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz__nav .btn:last-child, .quiz__nav [data-quiz-next] { margin-left: auto; }
.quiz__error, .form-error { color: #b3261e; font-size: 14px; margin: 12px 0 0; }

/* Срочно */
.fast__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fast__lead { margin: 4px 0 18px; font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 56ch; }
.fast__promise { position: relative; margin: 0 0 8px; padding: 16px 20px 16px 24px; border-left: 2px solid var(--accent); border-radius: 0 16px 16px 0; background: rgb(255 255 255 / .6); color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.fast__points { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fast__points li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--card); border-radius: 16px; box-shadow: 0 10px 26px -20px rgb(60 30 30 / .45); font-weight: 500; font-size: 14.5px; line-height: 1.4; }
.fast__points .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* схема заказчицы - лист скетчбука в клетку со скотчем */
.fast__board { position: sticky; top: calc(var(--header) + 84px); margin: 70px 0 0; padding: 22px 22px 16px; border-radius: 6px; rotate: 1.2deg;
  background-color: #fffdf9; background-image: linear-gradient(rgb(142 68 83 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(142 68 83 / .07) 1px, transparent 1px); background-size: 22px 22px;
  box-shadow: 0 34px 60px -34px rgb(60 30 30 / .45), 0 2px 6px rgb(60 30 30 / .06); }
.fast__tape { position: absolute; top: -13px; width: 112px; height: 30px; background: color-mix(in srgb, var(--accent) 22%, rgb(255 255 255 / .55)); box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.fast__tape--l { left: 14%; rotate: -6deg; }
.fast__tape--r { right: 12%; rotate: 5deg; }
.fast__note { position: absolute; left: -6px; top: -64px; display: flex; align-items: flex-end; gap: 2px; margin: 0; color: var(--accent); rotate: -1.2deg; pointer-events: none; white-space: nowrap; }
.fast__note .script { font-size: 28px; line-height: 1; transform: rotate(-5deg); }
.fast__arrow { width: 56px; height: 40px; margin-bottom: -30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fast__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fast__zoom img { display: block; width: 100%; height: auto; }
.fast__zoom-hint { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--accent); font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -10px rgb(60 30 30 / .45); transition: transform .2s, background .2s, color .2s; }
.fast__zoom:hover .fast__zoom-hint, .fast__zoom:focus-visible .fast__zoom-hint { background: var(--accent); color: #fff; transform: translateY(-2px); }
.fast__board figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.lightbox img { background: var(--cream); }

/* Тарифы */
.tariffs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tariff { position: relative; display: flex; flex-direction: column; padding: 34px 28px 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 10px 30px -22px rgb(80 40 40 / .35); }
/* Средний тариф: бегущий по контуру блик (оливка → шампань → ягода) + мягкое свечение */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ang-spin { to { --ang: 360deg; } }
.tariff--featured { --trail: conic-gradient(from var(--ang), transparent 0 56%, var(--olive) 70%, #e8cfae 82%, var(--accent) 92%, transparent 100%);
  border: 2px solid transparent; top: -10px; /* не transform: иначе свечение ::after ляжет поверх карточки */
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--trail) border-box,
    linear-gradient(color-mix(in srgb, var(--olive) 30%, var(--line)), color-mix(in srgb, var(--olive) 30%, var(--line))) border-box;
  box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--olive) 70%, transparent); animation: ang-spin 6s linear infinite; }
.tariff--featured::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; z-index: -1; background: var(--trail); filter: blur(14px); opacity: .45; animation: ang-spin 6s linear infinite; pointer-events: none; }
.tariff .badge { position: absolute; top: -14px; left: 28px; background: var(--card); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.tariff--featured .badge { background: linear-gradient(120deg, color-mix(in srgb, var(--olive) 82%, #fff), var(--olive)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--olive) 80%, transparent); }
/* VIP: ботанический узор в правом верхнем углу */
.tariff__ornament { position: absolute; top: 4px; right: 4px; width: 190px; height: 190px; pointer-events: none; color: var(--accent); opacity: .85; }
.tariff__vine { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 360; }
.tariff__leaf { fill: color-mix(in srgb, var(--olive) 26%, transparent); stroke: var(--olive); stroke-width: 1; }
.tariff__bloom ellipse { fill: color-mix(in srgb, var(--accent) 16%, var(--card)); stroke: currentColor; stroke-width: 1; }
.tariff__berry { fill: currentColor; }
.tariff__spark { fill: #c9a476; animation: spark 3.2s ease-in-out infinite; }
/* узор «прорисовывается», когда блок тарифов появляется на экране */
.reveal .tariff__vine { stroke-dashoffset: 360; }
.reveal .tariff__leaf, .reveal .tariff__berry, .reveal .tariff__bloom { opacity: 0; }
.reveal.is-visible .tariff__vine { animation: vine-draw 2.4s ease-out .4s forwards; }
.reveal.is-visible .tariff__leaf, .reveal.is-visible .tariff__berry, .reveal.is-visible .tariff__bloom { animation: fade-in .8s ease-out 1.7s forwards; }
.reveal.is-instant .tariff__vine { animation: none; stroke-dashoffset: 0; }
.reveal.is-instant .tariff__leaf, .reveal.is-instant .tariff__berry, .reveal.is-instant .tariff__bloom { animation: none; opacity: 1; }
@keyframes vine-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes spark { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.tariff--premium > :not(.tariff__ornament):not(.badge) { position: relative; }
/* Кнопки тарифов: светлый контур с бегущим бликом, у среднего - лёгкая оливковая заливка */
.tariff .btn { min-height: 50px; font-size: 15px; box-shadow: none; }
.btn--trace { border: 1.5px solid transparent; color: var(--olive);
  background: linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--ang), transparent 0 55%, var(--olive) 74%, var(--accent) 90%, transparent 100%) border-box,
    linear-gradient(color-mix(in srgb, var(--olive) 28%, transparent), color-mix(in srgb, var(--olive) 28%, transparent)) border-box;
  animation: ang-spin 5s linear infinite; }
.btn--trace:hover { color: var(--olive); border-color: transparent; transform: translateY(-1px);
  background: linear-gradient(color-mix(in srgb, var(--olive) 7%, var(--card)), color-mix(in srgb, var(--olive) 7%, var(--card))) padding-box,
    conic-gradient(from var(--ang), transparent 0 55%, var(--olive) 74%, var(--accent) 90%, transparent 100%) border-box,
    linear-gradient(color-mix(in srgb, var(--olive) 45%, transparent), color-mix(in srgb, var(--olive) 45%, transparent)) border-box;
  box-shadow: 0 12px 24px -18px color-mix(in srgb, var(--olive) 80%, transparent); }
.btn--glow { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--olive) 76%, #fff), var(--olive)); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--olive) 90%, transparent), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn--glow:hover { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--olive) 70%, #fff), color-mix(in srgb, var(--olive) 90%, #10140a)); box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--olive) 90%, transparent), inset 0 1px 0 rgb(255 255 255 / .22); }
.tariff__name { font-size: 13px; letter-spacing: .2em; font-weight: 700; }
.tariff__subtitle { font-size: 26px; margin: 4px 0 14px; }
.tariff__price { font-family: var(--serif); font-size: 40px; line-height: 1; margin-bottom: 16px; }
.tariff__price s { font-size: 20px; color: var(--muted); margin-left: 6px; }
.tariff > p:not([class]) { color: var(--muted); font-size: 15px; }
.tariff .ticks { font-size: 14.5px; margin-bottom: 26px; }
.tariff .btn { margin-top: auto; }

/* Этапы: слева - заголовок и акварельный букет (липнут при прокрутке), справа - путь из карточек.
   Линия пути заполняется ягодным цветом по мере прокрутки (front.js ставит --progress и .is-done). */
.steps__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps__intro { position: sticky; top: calc(var(--header) + 32px); }
.steps__count { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 0; color: var(--muted); font-size: 15px; }
.steps__count span { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.steps__art { position: relative; width: 82%; margin: 8px 0 0 -6%; animation: art-float 9s ease-in-out infinite; }
.steps__art img { width: 100%; filter: drop-shadow(0 24px 30px color-mix(in srgb, var(--accent) 10%, transparent)); }
@keyframes art-float { 50% { transform: translateY(-10px) rotate(-.6deg); } }
.timeline { --progress: 0; position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; }
.timeline::before { background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, transparent) 0 6px, transparent 6px 12px); }
.timeline::after { background: linear-gradient(180deg, var(--olive), var(--accent)); transform-origin: top; transform: scaleY(var(--progress)); transition: transform .25s linear; }
.timeline__item { position: relative; z-index: 1; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; }
.timeline__num { display: grid; place-items: center; width: 56px; height: 56px; margin-top: 18px; border-radius: 50%; background: var(--card); color: var(--accent); font-family: var(--serif); font-size: 22px; letter-spacing: .02em;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 0 0 6px var(--surface); transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.timeline__card { position: relative; padding: 22px 26px 24px; border-radius: 22px; background: color-mix(in srgb, var(--card) 82%, transparent); border: 1px solid var(--line);
  box-shadow: 0 14px 34px -28px color-mix(in srgb, var(--ink) 60%, transparent); transition: border-color .5s, box-shadow .5s, transform .5s; }
.timeline__card::before { content: ''; position: absolute; left: -7px; top: 36px; width: 12px; height: 12px; background: inherit; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); transition: border-color .5s; }
.timeline__label { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--olive) 75%, var(--muted)); }
.timeline h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.timeline__card > p:last-child { color: var(--muted); margin: 0; font-size: 15px; }
.timeline__item.is-done .timeline__num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 6px var(--surface), 0 10px 22px -10px var(--accent); }
.timeline__item.is-current .timeline__card { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--accent) 55%, transparent); transform: translateX(4px); }
.timeline__item.is-current .timeline__card::before { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* О нас */
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 0; }
.stats div { padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.about__sprig { right: 3%; bottom: 34%; transform: rotate(160deg); opacity: .6; }
.stats dt { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--accent); }
.stats dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.quote { margin: 0; text-align: center; }
.quote__photo { aspect-ratio: 4 / 5; max-width: 340px; margin: 0 auto 34px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.35; font-style: italic; }
.quote blockquote p::before { content: '«'; } .quote blockquote p::after { content: '»'; }
.quote figcaption { font-size: 14px; color: var(--muted); }
.quote figcaption .script { font-size: 30px; }
.mission { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin: clamp(56px, 8vw, 100px) 0 40px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--olive) 10%, transparent), transparent 60%), var(--card); box-shadow: var(--shadow); }
.mission::before { content: ''; position: absolute; inset: 12px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); pointer-events: none; z-index: -1; }
.mission__sprig { left: -18px; bottom: -40px; transform: rotate(-24deg); opacity: .55; z-index: -1; }
.mission__lead { position: relative; padding-left: clamp(0px, 2vw, 24px); }
.mission__lead::before { content: '“'; position: absolute; left: -14px; top: -100px; font-family: var(--serif); font-size: 180px; line-height: 1; color: color-mix(in srgb, var(--accent) 12%, transparent); z-index: -1; }
.mission__title { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.05; color: var(--accent); margin: 0 0 18px; font-weight: 400; }
.mission__text { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; margin: 0; }
.mission__points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mission__points li { padding: 22px 22px 20px; border-radius: 22px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(4px); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.mission__points li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--accent) 55%, transparent); }
.mission__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); transition: background .35s ease, color .35s ease; }
.mission__icon .icon { width: 22px; height: 22px; }
.mission__points li:hover .mission__icon { background: var(--accent); color: #fff; }
.mission__points h4 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; margin: 0 0 6px; }
.mission__points p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0; }
.gallery { margin-top: clamp(56px, 8vw, 96px); }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; padding-left: clamp(0px, 12vw - 40px, 150px); }
.gallery__title { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.gallery__title .script { color: var(--accent); font-size: 1.12em; margin-right: .1em; }
.gallery__link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); transition: gap .3s ease, border-color .3s ease; }
.gallery__link .icon { width: 18px; height: 18px; }
.gallery__link:hover { gap: 16px; border-color: var(--accent); }
.strip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: 14px; }
.strip__item { position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: zoom-in; background: var(--surface); box-shadow: 0 14px 34px -22px rgba(43, 34, 34, .45); isolation: isolate; }
.strip__item:first-child { grid-column: span 2; grid-row: span 2; border-radius: 28px; }
.strip__item:nth-child(8) { grid-column: span 2; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
.strip__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--accent) 45%, transparent)); opacity: 0; transition: opacity .5s ease; }
.strip__item::before { content: ''; position: absolute; inset: 10px; z-index: 1; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .7); opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.strip__item:first-child::before { border-radius: 20px; }
.strip__zoom { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 253, 250, .92); color: var(--accent); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.strip__zoom .icon { width: 20px; height: 20px; }
.strip__item:hover img, .strip__item:focus-visible img { transform: scale(1.06); }
.strip__item:hover::after, .strip__item:focus-visible::after,
.strip__item:hover::before, .strip__item:focus-visible::before { opacity: 1; transform: none; }
.strip__item:hover .strip__zoom, .strip__item:focus-visible .strip__zoom { opacity: 1; transform: none; }
.strip__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: transform .3s, background .2s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--card); }
.faq__item { transition: border-color .3s ease; }
.faq__item summary { transition: color .25s ease; }
.faq__item summary:hover, .faq__item[open] summary { color: var(--accent); }
.faq__item summary:hover .faq__plus { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.faq__item[open] .faq__plus { color: var(--accent); }
.faq__answer { overflow: hidden; }
.faq__answer p { margin: 0 0 12px; }
.faq__answer p:last-child { padding-bottom: 22px; margin: 0; }
.faq__item p { color: var(--muted); padding-right: 54px; }

/* Остались вопросы */
.questions__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.questions__art img { margin-inline: auto; max-height: 520px; width: auto; mix-blend-mode: multiply; }
.questions .card { margin: 26px 0 24px; border: 1px solid var(--line); }
.questions__sprig { right: max(8px, calc(50% - 680px)); top: -40px; width: 84px; height: 168px; transform: rotate(20deg); }

/* Подвал */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__logo { margin-bottom: 18px; }
.footer nav { display: grid; align-content: start; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__title { color: #fff; font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.footer__mail { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: 13px; }
.footer__legal p { margin: 0; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Диалоги, тост, cookie */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(30, 20, 20, .55); backdrop-filter: blur(3px); }
.modal { width: min(520px, 100% - 24px); border-radius: 26px; background: var(--card); padding: 36px clamp(20px, 4vw, 36px) 30px; }
.modal__text { color: var(--muted); font-size: 15px; }
.modal__close-form { position: absolute; right: 14px; top: 14px; margin: 0; }
.modal__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
/* Попап-приглашение: конверт с сургучной печатью, двойная рамка, вензеля по углам */
.invite { width: min(540px, 100% - 24px); padding: 0; border-radius: 6px; overflow-x: hidden; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #fff 0%, transparent 60%), radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 70%), #fdf9f3;
  box-shadow: 0 40px 90px -40px rgb(40 20 20 / .7), 0 0 0 1px rgb(255 255 255 / .6) inset; }
.invite::before, .invite::after { content: ''; position: absolute; pointer-events: none; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 2px; }
.invite::before { inset: 12px; }
.invite::after { inset: 17px; border-color: color-mix(in srgb, var(--accent) 16%, transparent); }
.invite__flap { position: absolute; left: 0; top: 0; width: 100%; height: 92px; z-index: 1; filter: drop-shadow(0 6px 8px rgb(80 40 40 / .08)); }
.invite__flap path { fill: #f6ece4; }
.invite__flap .invite__flap-line { fill: none; stroke: color-mix(in srgb, var(--accent) 28%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.invite__seal { position: absolute; z-index: 2; left: 50%; top: 56px; width: 74px; height: 74px; margin-left: -37px; filter: drop-shadow(0 6px 8px rgb(90 20 35 / .35)); }
.invite__wax { fill: color-mix(in srgb, var(--accent) 92%, #3a0f1a); stroke: color-mix(in srgb, var(--accent) 70%, #2a0a12); stroke-width: 1; stroke-linejoin: round; }
.invite__ring { fill: none; stroke: rgb(255 225 225 / .35); stroke-width: 1.5; }
.invite__sprig { fill: none; stroke: rgb(255 230 230 / .45); stroke-width: 1.2; stroke-linecap: round; }
.invite__seal text { font-family: var(--serif); font-size: 30px; font-style: italic; fill: rgb(255 235 235 / .82); }
.invite__corner { position: absolute; z-index: 1; width: 58px; height: 58px; fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1; stroke-linecap: round; pointer-events: none; }
.invite__corner--tl, .invite__corner--tr { display: none; }
.invite__corner--bl { left: 22px; bottom: 22px; scale: 1 -1; }
.invite__corner--br { right: 22px; bottom: 22px; scale: -1 -1; }
.invite .modal__close-form { z-index: 3; right: 26px; top: 26px; }
.invite .modal__close { width: 36px; height: 36px; background: rgb(255 255 255 / .85); }
.invite__body { position: relative; padding: 140px clamp(28px, 6vw, 54px) 40px; }
.invite__script { font-family: var(--script); font-size: 28px; line-height: 1; color: var(--accent); margin: 0 0 10px; }
.invite .eyebrow { justify-content: center; font-size: 11px; letter-spacing: .3em; margin-bottom: 10px; }
.invite .eyebrow::before { content: ''; width: 40px; height: 1px; background: currentColor; opacity: .5; flex: none; }
.invite .eyebrow::after { width: 40px; }
.invite .title { margin: 0; }
.invite__divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 12px; }
.invite__divider::before, .invite__divider::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent)); }
.invite__divider::after { rotate: 180deg; }
.invite__divider span { width: 7px; height: 7px; rotate: 45deg; border: 1px solid var(--accent); }
.invite .modal__text { max-width: 380px; margin: 0 auto 22px; line-height: 1.6; }
.invite .lead-form { text-align: left; display: grid; gap: 14px; }
.invite .field input { background: rgb(255 255 255 / .7); }
.invite .consent { justify-content: center; }
.invite__sign { font-family: var(--script); font-size: 22px; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); margin: 22px 0 0; }
.invite[open] { animation: invite-in .7s cubic-bezier(.2, .8, .2, 1); }
.invite[open] .invite__seal { animation: seal-in .6s cubic-bezier(.3, 1.6, .5, 1) .35s backwards; }
.invite[open] .invite__flap { transform-origin: 50% 0; animation: flap-in .6s ease .1s backwards; }
@keyframes invite-in { from { opacity: 0; translate: 0 40px; scale: .96; } }
@keyframes seal-in { from { opacity: 0; scale: 1.6; rotate: -18deg; } }
@keyframes flap-in { from { transform: scaleY(-.6); opacity: .4; } }
/* Запечатывание письма после отправки (класс is-sealing ставит front.js) */
.env { display: none; position: absolute; z-index: 5; left: 50%; top: 46%; width: 280px; height: 180px; translate: -50% -50%; perspective: 900px; }
.env > * { position: absolute; }
.env__back { inset: 0; z-index: 0; border-radius: 4px; background: #ead9cd; box-shadow: 0 24px 40px -18px rgb(60 25 30 / .45); }
.env__flap { left: 0; top: 0; width: 100%; height: 106px; z-index: 4; transform-origin: 50% 0; background: linear-gradient(#f1e3d9, #e6d2c5); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env__letter { left: 16px; right: 16px; top: 12px; height: 150px; z-index: 2; padding: 14px 18px; text-align: left; background: #fff; border-radius: 2px; box-shadow: 0 2px 10px rgb(60 25 30 / .12); }
.env__letter-script { margin: 0 0 8px; font-family: var(--script); font-size: 24px; line-height: 1; color: var(--accent); }
.env__letter span { display: block; height: 2px; margin: 9px 0; border-radius: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.env__letter span:nth-of-type(2) { width: 82%; }
.env__letter span:nth-of-type(3) { width: 64%; }
.env__letter-from { margin: 10px 0 0; font-family: var(--script); font-size: 18px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env__front { inset: 0; z-index: 3; width: 100%; height: 100%; filter: drop-shadow(0 -2px 3px rgb(60 25 30 / .08)); }
.env__front path { fill: #f6ece4; }
.env__front .env__fold { fill: none; stroke: color-mix(in srgb, var(--accent) 22%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.env__seal { z-index: 5; left: 50%; top: 74px; width: 62px; height: 62px; margin-left: -31px; filter: drop-shadow(0 5px 6px rgb(90 20 35 / .4)); }
.env__seal text { font-family: var(--serif); font-size: 30px; font-style: italic; fill: rgb(255 235 235 / .82); }
.env__caption { left: 50%; top: calc(100% + 26px); translate: -50% 0; margin: 0; white-space: nowrap; font-family: var(--script); font-size: 24px; color: var(--accent); }
.invite.is-sealing { overflow: visible; }
.invite.is-sealing .env { display: block; animation: env-in .5s cubic-bezier(.2, .8, .2, 1) .3s backwards, env-fly .85s cubic-bezier(.5, 0, .75, .3) 2.75s forwards; }
.invite.is-sealing > :not(.env) { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.invite.is-sealing .env__letter { animation: letter-in .6s cubic-bezier(.4, 0, .2, 1) .9s backwards; }
.invite.is-sealing .env__flap { animation: flap-close .5s cubic-bezier(.5, 0, .3, 1) 1.55s backwards; }
.invite.is-sealing .env__seal { animation: seal-stamp .45s cubic-bezier(.3, 1.5, .5, 1) 2.1s backwards; }
.invite.is-sealing .env__caption { animation: caption-in .5s ease .6s backwards, caption-out .3s ease 2.7s forwards; }
.invite.is-sent { opacity: 0; transition: opacity .3s ease; }
.invite.is-sent::backdrop { opacity: 0; transition: opacity .3s ease; }
@keyframes env-in { from { opacity: 0; scale: .9; translate: -50% -40%; } }
@keyframes letter-in { from { transform: translateY(-104px); } }
@keyframes flap-close { 0% { transform: rotateX(180deg); z-index: 1; } 50% { z-index: 1; } 51%, 100% { z-index: 4; } }
@keyframes seal-stamp { 0% { opacity: 0; scale: 2.2; rotate: -24deg; } 60% { opacity: 1; } }
@keyframes caption-in { from { opacity: 0; translate: -50% 8px; } }
@keyframes caption-out { to { opacity: 0; } }
@keyframes env-fly { 0% { translate: -50% -50%; } 20% { translate: -50% -44%; rotate: -3deg; } 100% { translate: calc(-50% + 60vw) calc(-50% - 75vh); rotate: 16deg; scale: .35; opacity: 0; } }
@media (max-width: 640px) {
  .env { scale: .86; }
  .invite__body { padding: 124px 26px 34px; }
  .invite__seal { top: 48px; }
  .invite__flap { height: 80px; }
  .invite__corner { display: none; }
}
.lightbox { background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; width: auto; border-radius: 12px; }
.lightbox form { position: fixed; right: 18px; top: 18px; margin: 0; }
.lightbox__nav { position: fixed; top: 50%; right: 18px; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.lightbox__nav--prev { left: 18px; right: auto; }
.lightbox__nav--prev .icon { transform: scaleX(-1); }
.lightbox__nav[hidden] { display: none; }
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--header) + 12px); transform: translateX(-50%); width: min(560px, 100% - 24px); display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #fff; padding: 16px 18px; border-radius: 16px; box-shadow: var(--shadow); }
.toast p { margin: 0; flex: 1; }
.toast button { border: 0; background: none; color: #fff; cursor: pointer; padding: 0; }
.cookie { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 18px; max-width: calc(100% - 24px); white-space: nowrap; font-size: 13px; color: var(--ink);
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); animation: cookie-in .5s ease both; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--accent); }
.cookie__ok { border: 0; border-radius: 999px; padding: 7px 18px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.cookie__ok:hover { background: var(--accent); }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-instant { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Адаптив */
@media (max-width: 1120px) {
  .header__phone { display: none; }
  .nav { gap: 16px; }
}
@media (max-width: 980px) {
  :root { --header: 66px; }
  .burger { display: block; }
  .header__actions .round { display: none; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px; background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header)); overflow: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; font-size: 17px; }
  .nav > .nav__group:first-child, .nav > a:last-of-type { margin-right: 0; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav > a, .nav__more { padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .nav > a::after, .nav__more::after { display: none; }
  .nav__more { justify-content: space-between; }
  .nav__menu { position: static; box-shadow: none; background: transparent; padding: 4px 0 8px 14px; min-width: 0; }
  .nav__contacts { display: block; padding-top: 18px; }
  .nav__more--page, .nav > a { display: none; }
  .nav__menu--page, .nav__menu--page:not(.is-open) { display: grid; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; padding: 4px 0; animation: none; }
  .nav__menu--page a { padding: 13px 0 13px 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__menu--page a::before { left: 2px; }
  .hero__grid, .why__grid, .quiz__grid, .fast__grid, .steps__grid, .about__grid, .faq__grid, .questions__grid { grid-template-columns: minmax(0, 1fr); }
  .section__head { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .features li:nth-child(3) { border-left: 0; }
  .hero1 { --photo-w: 50%; }
  .hero1__script, .hero1__sprig--top { display: none; }
  .offer { flex-basis: calc((100% - 28px) / 2); }
  .ideal__list { grid-template-columns: 1fr 1fr; }
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .benefits__art { grid-column: 1 / -1; order: -1; width: min(520px, 100%); margin-inline: auto; height: 460px; }
  .benefits__col--left li { flex-direction: row; text-align: left; }
  .benefits__col li:nth-child(2) { translate: none; }
  .tariffs__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 30px; }
  .tariff--featured { top: 0; }
  .why__photo { position: static; max-width: 440px; }
  .fast__board { position: static; rotate: 0deg; margin-top: 56px; }
  .why__photo { order: 2; margin-inline: auto; }
  .why__script { display: none; }
  .mission { grid-template-columns: minmax(0, 1fr); }
  .mission__points { grid-template-columns: 1fr 1fr; }
  .questions__art { order: 2; max-width: 300px; margin-inline: auto; }
  .steps__intro { position: static; }
  .steps__art { max-width: 520px; margin: 4px auto 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body.site { font-size: 15.5px; }
  .timeline__item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .timeline__num { width: 44px; height: 44px; font-size: 18px; margin-top: 16px; }
  .timeline::before, .timeline::after { left: 21px; }
  .timeline__card { padding: 18px 18px 20px; }
  .timeline h3 { font-size: 22px; }
  .header__call { display: none; }
  .logo__text { font-size: 24px; padding-bottom: 11px; }
  .logo__text span { font-size: 18px; }
  .logo__mark { width: 38px; height: 38px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-direct > span { flex-basis: 100%; max-width: none; }
  .features li { padding: 4px 12px; font-size: 13px; gap: 10px; }
  .features--card li, .features--line li { flex-direction: column; align-items: flex-start; }
  .hero1 { display: flex; flex-direction: column; }
  .hero1__inner { min-height: 0; padding-bottom: 20px; }
  .hero1__photo { position: relative; order: 2; z-index: 0; width: auto; height: 380px; margin: 0 16px 20px; border-radius: 20px; -webkit-mask-image: none; mask-image: none; }
  .hero1__photo::after { background: linear-gradient(270deg, rgb(20 14 12 / .45), transparent 45%), linear-gradient(0deg, rgb(20 14 12 / .4), transparent 35%); }
  .hero-count { bottom: 18px; right: 18px; }
  .hero-side { right: 18px; }
  .hero1 > .wrap:last-child { order: 3; }
  .hero1__veil, .hero1__sprig { display: none; }
  .cookie { bottom: 12px; }
  .field-pair, .benefits__grid, .ideal__list, .cases__grid, .options--grid, .mission__points, .stats { grid-template-columns: 1fr; }
  .mission { padding: 30px 22px; }
  .mission::before { inset: 8px; }
  .mission__points li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 16px 16px 14px; }
  .mission__icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
  .mission__icon .icon { width: 19px; height: 19px; }
  .mission__points h4 { font-size: 19px; margin-bottom: 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .options--row { grid-template-columns: 1fr; }
  .fast__points { grid-template-columns: 1fr; }
  .fast__board { padding: 14px 12px 12px; }
  .fast__zoom-hint { padding: 6px 10px; font-size: 12px; }
  .fast__lead { font-size: 17px; }
  .gallery__head { padding-left: 0; margin-bottom: 20px; }
  .strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 10px; }
  .strip__item, .strip__item:first-child { border-radius: 18px; }
  .strip__item:first-child { grid-row: span 1; }
  .strip__zoom { opacity: 1; transform: none; width: 34px; height: 34px; right: 10px; bottom: 10px; }
  .strip__zoom .icon { width: 17px; height: 17px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic__item { border-radius: 14px; }
  .mosaic__item:nth-child(9n + 6) { grid-column: span 2; }
  .ideal__sprig { display: none; }
  .ideal__list li { padding: 14px 16px; }
  .catalog__track { gap: 16px; }
  .offer { flex-basis: 84%; }
  .offer__actions { flex-wrap: wrap; }
  .offer__actions .btn { flex-basis: 100%; }
  .offer__or { display: block; flex: 1; font-size: 13.5px; color: var(--muted); }
  .offer h3 { font-size: 25px; }
  .slider__count { display: none; }
  .slider__dots { gap: 2px; }
  .faq__item summary { font-size: 20px; }
  .faq__item p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .sprig { opacity: .35; }
  .deco-sprig, .deco-script { display: none; }
  .eyebrow { letter-spacing: .16em; }
  .eyebrow::before, .eyebrow::after { width: 28px !important; }
  .benefits__art { height: 400px; margin-bottom: 52px; }
  .polaroid--a { width: 55%; left: 1%; }
  .polaroid--b { width: 39%; right: 1%; }
  .polaroid figcaption { font-size: 17px; }
  .benefits__col { gap: 22px; }
  .stamp { width: 92px; height: 92px; }
  .benefits__note { font-size: 18px; left: 2%; bottom: -52px; }
  .benefits__note::before { display: none; }
  .frame::before { inset: 10px -8px -8px 10px; }
}
fieldset { min-width: 0; }
[hidden] { display: none !important; }
@media (max-width: 980px) {
  /* backdrop-filter у шапки ломает отрисовку fixed-меню внутри неё */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
}

/* Лента на телефоне тоньше, чтобы не теснить контент у края */
@media (max-width: 640px) {
  .ribbon__shadow { stroke-width: 10; translate: 0 2px; }
  .ribbon__edge { stroke-width: 9; }
  .ribbon__satin { stroke-width: 7.5; }
  .ribbon__trim { stroke-width: 5; }
  .ribbon__core { stroke-width: 3.8; }
}

/* --- галерея: иконка «глаз», кнопка «Посчитать» с подсказкой, кейсы «Хочу так же» --- */
.mosaic__zoom .icon { width: 24px; height: 24px; stroke-width: 1.6; }

.ideal__cta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ideal__cta .btn .icon { width: 20px; height: 20px; }
.ideal__note { position: absolute; right: calc(50% + 150px); top: -18px; display: flex; align-items: flex-end; gap: 4px; margin: 0; color: #f2d8cf; white-space: nowrap; pointer-events: none; }
.ideal__note .script { color: inherit; font-size: 30px; line-height: 1; transform: rotate(-6deg); }
.ideal__arrow { width: 78px; height: 36px; margin-bottom: -26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ideal__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; font-size: 14px; color: rgb(255 255 255 / .78); }
.ideal__facts span { display: inline-flex; align-items: center; gap: 7px; }
.ideal__facts .icon { width: 16px; height: 16px; color: #f2d8cf; }

.case { position: relative; }
.case .arrow-link { align-self: flex-start; margin-top: auto; }
.case__link::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.case__want { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 22px 12px 0; padding-top: 18px; border-top: 1px dashed color-mix(in srgb, var(--accent) 25%, transparent); }
.case__want-label { font: 400 26px/1 var(--script); color: var(--accent); }
.case__want-actions { display: flex; align-items: center; gap: 8px; }
.case__want .round { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--card); }
.case__want .round:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.case__order { margin-left: 4px; }

@media (max-width: 900px) {
  .ideal__note { position: static; }
  .ideal__arrow { display: none; }
}
@media (max-width: 640px) {
  .case__want { justify-content: center; }
  .case__want-label { width: 100%; text-align: center; }
}

/* --- бренд-бук кнопок (/admin/brandbook) --- */
.bb__lead { max-width: 640px; color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.bb .title .script { display: block; color: var(--accent); }
.bb__palette { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.bb__swatch { display: flex; flex-direction: column; gap: 2px; min-width: 200px; padding: 52px 16px 14px; border-radius: 16px; font-size: 13px; color: rgb(255 255 255 / .8); }
.bb__swatch b { font-size: 15px; color: #fff; }
.bb__swatch--accent { background: var(--accent); }
.bb__swatch--olive { background: var(--olive); }
.bb__swatch--cream { background: var(--cream); color: var(--muted); border: 1px solid var(--line); }
.bb__swatch--cream b { color: var(--ink); }
.bb__item { background: var(--card); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); margin-bottom: 20px; }
.bb__item header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 10px; }
.bb__item h2 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.bb__num { font: 400 30px/1 var(--script); color: var(--accent); }
.bb code { font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--surface); color: var(--accent); }
.bb__item > p { max-width: 760px; color: var(--muted); }
.bb__demo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0; padding: 26px; border-radius: 18px; background: var(--cream); border: 1px dashed var(--line); }
.bb__demo--dark { background: var(--olive); border-color: transparent; }
.bb__demo--dark .bb__note { color: rgb(255 255 255 / .8); font-size: 14px; }
.bb__demo--dark code { background: rgb(255 255 255 / .12); color: #fff; }
.bb__demo .slider__arrow { position: static; }
.bb__demo .slider__arrow:first-child .icon { rotate: 180deg; }
.bb .bb__where { font-size: 14px; margin: 0; }
.bb__rules ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
/* план развития (/admin/roadmap) */
.rm__table { overflow-x: auto; margin-top: 6px; }
.rm__table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.rm__table th, .rm__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rm__table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.rm__table td:first-child { font-family: var(--serif); font-size: 19px; color: var(--accent); white-space: nowrap; }
.rm__table td:nth-child(3) { color: var(--muted); }
.rm__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.rm__chips li { padding: 6px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; }
.rm__steps, .rm__ask { margin: 0; padding-left: 24px; }
.rm__steps li, .rm__ask li { margin-bottom: 14px; }
.rm__steps li::marker { color: var(--accent); font-weight: 600; }
.rm__steps small { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--olive); font-size: 12.5px; white-space: nowrap; }
.rm__steps p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }
.rm__ask li, .rm__list li { color: var(--muted); max-width: 820px; }
.rm__ask b, .rm__list b { color: var(--ink); }
.rm__list { margin: 0; padding-left: 20px; line-height: 1.7; }

/* ===== Страницы услуг ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: clamp(14px, 2.6vh, 26px); }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--accent); }
/* Второй блок: арки */
.arches__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.arch-card { text-align: center; }
.arch-card__photo { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 3 / 4.2; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 18px; }
.arch-card__photo img, .anniv-card__photo img, .detail-row__photo img, .zones__photo img, .car__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.arch-card__photo:hover img, .anniv-card__photo:hover img, .detail-row__photo:hover img, .zones__photo:hover img, .car__photo:hover img { transform: scale(1.05); }
.arch-card h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; }
.arch-card p { color: var(--muted); font-size: 15px; margin: 0 auto; max-width: 30ch; }
.zone { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 100px); }
.zone__photo { aspect-ratio: 4 / 3; }
.zone__title { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 14px; }
.zone .ticks { margin-bottom: 26px; }

/* Второй блок: зоны зала (вкладки) */
.zones__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.zones__tabs button { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 13px var(--sans); letter-spacing: .08em; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.zones__tabs button span { font-family: var(--serif); font-size: 21px; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.zones__tabs button:hover { border-color: var(--accent); }
.zones__tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: rgb(255 255 255 / .8); }
.zones__tabs button[aria-selected="true"] span { color: #fff; }
.zones__panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; animation: zone-in .5s ease; }
.zones__panel[hidden] { display: none; }
@keyframes zone-in { from { opacity: 0; transform: translateY(10px); } }
.zones__photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; height: clamp(340px, 42vw, 480px); }
.zones__photo { padding: 0; border: 0; cursor: zoom-in; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.zones__photo--2 { margin-top: 70px; }
.zones__lead { font-size: 26px; margin-bottom: 4px; }
.zones__text h3 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; margin-bottom: 12px; }
.zones__text > p { color: var(--muted); }
.zones__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.zones__price { font-family: var(--serif); font-size: 28px; color: var(--accent); }

/* Второй блок: атрибутика - цитата и чередующиеся строки */
.details__quote { position: relative; max-width: 860px; margin: 0 auto clamp(48px, 7vw, 90px); text-align: center; }
.details__quote blockquote { margin: 0 0 18px; }
.details__quote blockquote p { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; font-style: italic; margin: 0; }
.details__quote blockquote p::before, .details__quote blockquote p::after { color: var(--accent); }
.details__quote blockquote p::before { content: "«"; }
.details__quote blockquote p::after { content: "»"; }
.details__quote figcaption { max-width: 64ch; margin-inline: auto; }
.details__sprig { left: -90px; top: -40px; transform: rotate(-30deg); }
.details__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(34px, 5vw, 60px); }
.detail-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 5vw, 72px); align-items: center; }
.detail-row--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.detail-row--flip .detail-row__photo { order: 2; }
.detail-row__photo { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border-radius: 120px 22px 22px 22px; }
.detail-row--flip .detail-row__photo { border-radius: 22px 120px 22px 22px; }
.detail-row__num { display: block; font-family: var(--serif); font-size: 58px; line-height: 1; color: color-mix(in srgb, var(--accent) 35%, transparent); margin-bottom: 4px; }
.detail-row h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-bottom: 10px; }
.detail-row__body > p { color: var(--muted); }

/* Второй блок: аренда - кому подойдёт и условия */
.audience__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.audience__card { position: relative; padding: 28px 26px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s ease; }
.audience__card:hover { transform: translateY(-4px); }
.audience__num { display: block; font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: .1em; margin-bottom: 12px; }
.audience__card h3 { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin-bottom: 8px; }
.audience__card p { color: var(--muted); margin: 0; font-size: 15px; }
.audience__card--cta { background: var(--accent); border-color: var(--accent); color: #fff; display: grid; align-content: center; gap: 10px; }
.audience__card--cta p { color: rgb(255 255 255 / .85); }
.audience__card--cta .script { color: #fff; font-size: 34px; }
.audience__card--cta .btn { justify-self: start; }
.terms { margin-top: clamp(48px, 7vw, 84px); scroll-margin-top: calc(var(--header) + 20px); }
.terms__title { text-align: center; font-size: clamp(30px, 3.6vw, 44px); }
.terms__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.terms__grid > div { padding: 26px 22px; }
.terms__grid > div + div { border-left: 1px solid var(--line); }
.terms__grid dt { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 6px; }
.terms__grid dt .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.terms__grid dd { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Второй блок: кабриолеты */
.cars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 40px); }
.car { position: relative; padding: 18px 18px 30px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.car--1 { background: linear-gradient(180deg, #f6ece0, var(--card) 55%); }
.car--2 { background: linear-gradient(180deg, #e9ecef, var(--card) 55%); }
.car__photos { position: relative; display: grid; grid-template-columns: 1fr; margin-bottom: 30px; }
.car__photo { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; background: var(--surface); }
.car__photo--2 { position: absolute; right: 14px; bottom: -22px; width: 34%; aspect-ratio: 1; border: 5px solid var(--card); box-shadow: var(--shadow); }
.car__swatch { position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgb(0 0 0 / .2); background: #eadbc4; }
.car--2 .car__swatch { background: linear-gradient(135deg, #f4f5f7, #a9adb3); }
.car > *:not(.car__photos) { margin-inline: 10px; }
.car__mood { font-size: 24px; margin-bottom: 0; }
.car h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 38px); line-height: 1.05; margin-bottom: 10px; }
.car > p:not(.car__mood) { color: var(--muted); }
.car__points { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.car__points li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; background: rgb(255 255 255 / .6); }
.cars__note { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 70ch; }
.cars__note .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.cars__subtitle { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); text-align: center; margin: clamp(56px, 7vw, 90px) 0 30px; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.uses li { padding: 22px 20px; border-top: 2px solid var(--accent); background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 0 0 18px 18px; }
.uses span { font-family: var(--serif); font-size: 30px; color: color-mix(in srgb, var(--accent) 45%, transparent); }
.uses h4 { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin: 4px 0 8px; }
.uses p { color: var(--muted); font-size: 14.5px; margin: 0; }
.terms--card { padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.terms__ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 820px; margin: 0 auto 20px; }
.terms__footer { text-align: center; font-family: var(--script); color: var(--accent); font-size: 24px; margin: 0; }

/* Второй блок: годовщина */
.anniv__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: clamp(40px, 6vw, 70px); }
.anniv__formats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.anniv__formats li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.anniv__dot { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.anniv__dot .icon { width: 18px; height: 18px; }
.anniv__formats h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 2px; }
.anniv__formats p { margin: 0; color: var(--muted); font-size: 14.5px; }
.anniv__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.anniv-card { text-align: center; }
.anniv-card__photo { display: block; width: 100%; padding: 0; cursor: zoom-in; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface); border: 6px solid var(--card); box-shadow: var(--shadow); margin-bottom: 18px; }
.anniv-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.anniv-card p { color: var(--muted); font-size: 15px; margin: 0 auto; max-width: 28ch; }
.anniv .center { margin-top: 44px; }

/* Второй блок: сценарии предложения */
.scenarios__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scenario { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); color: #fff; isolation: isolate; }
.scenario img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.scenario::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(28 16 16 / .85) 0%, rgb(28 16 16 / .35) 45%, transparent 70%); }
.scenario:hover img { transform: scale(1.06); }
.scenario__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.scenario__num { font-family: var(--script); font-size: 22px; color: #f3cdd3; }
.scenario h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin: 0 0 8px; color: #fff; }
.scenario p { font-size: 14.5px; color: rgb(255 255 255 / .85); margin: 0 0 14px; }
.scenario .btn { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.scenario:hover .btn, .scenario:focus-within .btn { opacity: 1; transform: none; }
@media (hover: none) { .scenario .btn { opacity: 1; transform: none; } }
.care { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 100px); padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--surface); }
.care__title { font-size: clamp(30px, 3.4vw, 42px); }
.care__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.care__list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card); font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.care__list .icon { width: 22px; height: 22px; color: var(--accent); flex: none; }

@media (max-width: 1120px) {
  .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audience__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .arches__grid, .anniv__grid { grid-template-columns: 1fr 1fr; }
  .zone, .zones__panel, .anniv__head, .care, .detail-row, .detail-row--flip { grid-template-columns: minmax(0, 1fr); }
  .detail-row--flip .detail-row__photo { order: 0; }
  .terms__grid { grid-template-columns: 1fr 1fr; }
  .terms__grid > div:nth-child(3) { border-left: 0; }
  .terms__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scenarios__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .arches__grid, .anniv__grid { gap: 16px; }
  .arch-card h3, .anniv-card h3 { font-size: 21px; }
  .arch-card p, .anniv-card p { font-size: 13.5px; }
  .audience__grid, .cars__grid, .uses, .scenarios__grid, .care__list, .terms__grid, .terms__ticks { grid-template-columns: minmax(0, 1fr); }
  .terms__grid > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .terms__grid > div:first-child { border-top: 0; }
  .zones__tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .zones__tabs button { flex: none; }
  .zones__photos { height: 300px; }
  .zones__photo--2 { margin-top: 40px; }
  .scenario { aspect-ratio: 4 / 4.6; }
}
@media (prefers-reduced-motion: reduce) { .zones__panel { animation: none; } }
.nav__menu a[aria-current="page"] { color: var(--accent); }

/* ===== Страницы кейсов ===== */
.hero1--case .crumbs, .hero1--service .crumbs { margin-bottom: 18px; }
.hero1--case .hero1__title em, .hero1--service .hero1__title em { font-size: .82em; }

/* Ситуация: фото с плашкой, текст, тревоги клиента и исходные условия */
.situation__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.situation__photo { position: relative; margin: 0; }
.situation__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.situation__photo figcaption { position: absolute; right: -22px; bottom: 28px; max-width: 220px; padding: 16px 20px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; color: var(--muted); }
.situation__photo figcaption strong { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.situation__worries { margin-top: 26px; padding: 24px 26px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.situation__worries h3, .situation__terms h3 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.situation__worries ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.situation__worries li { position: relative; padding-left: 22px; }
.situation__worries li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.situation__terms { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.situation__terms ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.situation__terms li { display: grid; gap: 4px; padding: 26px 16px; }
.situation__terms li + li { border-left: 1px solid var(--line); }
.situation__terms strong { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.1; }
.situation__terms span { font-size: 14px; color: var(--muted); }

/* Три зоны: крупные фото с номером */
.case-zones__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.case-zones__list h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; margin: 18px 0 8px; }
.case-zones__list p { margin: 0; color: var(--muted); }
.case-zones__photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-zones__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s ease; }
.case-zones__photo:hover img { transform: scale(1.04); }
.case-zones__photo span { position: absolute; left: 18px; top: 14px; font-family: var(--serif); font-size: 44px; line-height: 1; color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / .35); }

/* Подход: три колонки с галочками */
.approach__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.approach__col { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.approach__col:nth-child(2) { background: color-mix(in srgb, var(--olive) 7%, var(--card)); border-color: color-mix(in srgb, var(--olive) 20%, transparent); }
.approach__num { display: block; font-family: var(--serif); font-size: 46px; line-height: 1; color: color-mix(in srgb, var(--accent) 45%, transparent); margin-bottom: 10px; }
.approach__col h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 16px; }
.approach__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.approach__col li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.approach__col li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--olive); }

/* Концепция: 4 карточки, через одну смещены вниз */
.concept__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.concept__card:nth-child(even) { margin-top: 48px; }
.concept__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.concept__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.concept__card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.15; margin: 18px 0 8px; }
.concept__card p { margin: 0; font-size: 15px; color: var(--muted); }

/* 14 дней: горизонтальная линия этапов */
.days__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.days__list::before { content: ''; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--olive), var(--accent)); opacity: .4; }
.days__list li { position: relative; text-align: center; }
.days__day { position: relative; display: inline-grid; place-items: center; min-width: 120px; height: 56px; padding: 0 18px; border-radius: 999px; background: var(--card); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-family: var(--serif); font-size: 22px; color: var(--accent); box-shadow: var(--shadow); }
.days__list li:last-child .days__day { background: var(--accent); color: #fff; border-color: var(--accent); }
.days__list h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 22px 0 8px; }
.days__list p { margin: 0; font-size: 15px; color: var(--muted); }

/* Кейс 2: слово декоратора и бриф */
.note__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.note__card { position: relative; margin: 0; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.note__card::before { content: '“'; position: absolute; right: 24px; top: -10px; font-family: var(--serif); font-size: 140px; line-height: 1; color: color-mix(in srgb, var(--accent) 22%, transparent); }
.note__person { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.note__person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.note__person strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.note__person span { font-size: 13px; color: var(--muted); }
.note__card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; font-style: italic; }
.note__card blockquote p { margin: 0; }
.note__card figcaption { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--script); font-size: 22px; line-height: 1.3; color: var(--accent); }
.palette { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.palette li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.palette__dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.palette__dot--emerald { background: radial-gradient(circle at 35% 30%, #2f8a6a, #0f4a38); }
.palette__dot--white { background: radial-gradient(circle at 35% 30%, #fff, #ece6dc); }
.palette__dot--gold { background: radial-gradient(circle at 35% 30%, #f1d9a0, #b48a3c); }

/* Главы кейса: фото и текст чередуются, после второй главы - врезка про семью */
.chapters__list { display: grid; gap: clamp(36px, 5vw, 64px); max-width: 1040px; margin-inline: auto; }
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.chapter:nth-of-type(even) .chapter__photo { order: 2; }
.chapter__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.chapter__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 520px; }
.chapter__num { display: block; font-family: var(--serif); font-size: 56px; line-height: 1; color: color-mix(in srgb, var(--accent) 40%, transparent); margin-bottom: 8px; }
.chapter__copy h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.12; margin: 0 0 14px; }
.chapter__copy p { margin: 0; color: var(--muted); }
.family { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 60px) clamp(24px, 6vw, 90px); border-radius: calc(var(--radius) * 1.6); text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, #0f5a45 10%, var(--card)), color-mix(in srgb, var(--accent) 7%, var(--card))); border: 1px solid var(--line); }
.family h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.1; margin: 0 0 16px; }
.family .section__text { max-width: 680px; margin-inline: auto; }
.family__accent { margin: 22px 0 0; font-family: var(--script); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--accent); }
.family__sprig { right: -20px; top: -30px; width: 100px; height: 200px; transform: rotate(200deg); opacity: .5; }

/* Итог кейса */
.case-result__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.case-result__photos { display: grid; gap: 16px; }
.case-result__photos button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-result__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.case-result__photos button:hover img { transform: scale(1.04); }
.case-result__photos--2 { grid-template-columns: 1fr 1fr; }
.case-result__photos--2 button { aspect-ratio: 3 / 4; }
.case-result__photos--2 button:last-child { margin-top: 56px; }
.case-result__photos--3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(420px, 44vw, 600px); }
.case-result__photos--3 button:first-child { grid-row: 1 / 3; }
.case-result__quote { margin: 24px 0 28px; padding: 22px 26px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--card); }
.case-result__quote p { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; line-height: 1.45; font-style: italic; }
.case-result__quote cite { font-style: normal; font-size: 14px; color: var(--muted); }
.case-result__copy > .btn { margin-top: 10px; }

@media (max-width: 980px) {
  .situation__grid, .note__grid, .case-result__grid { grid-template-columns: minmax(0, 1fr); }
  .situation__photo { max-width: 460px; }
  .situation__terms ul { grid-template-columns: 1fr 1fr; }
  .situation__terms li:nth-child(3) { border-left: 0; }
  .situation__terms li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case-zones__list, .approach__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .concept__grid { grid-template-columns: 1fr 1fr; }
  .days__list { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .days__list::before { display: none; }
  .chapter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .situation__photo figcaption { right: 12px; bottom: 12px; }
  .situation__worries { padding: 20px; }
  .concept__grid { gap: 26px 14px; }
  .concept__card:nth-child(even) { margin-top: 30px; }
  .concept__card h3 { font-size: 20px; }
  .concept__card p { font-size: 14px; }
  .days__list { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .days__list li { text-align: left; }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .chapter:nth-of-type(even) .chapter__photo { order: 0; }
  .chapter__photo img { aspect-ratio: 4 / 3; }
  .case-result__photos--3 { height: 380px; }
  .case-result__photos--2 button:last-child { margin-top: 30px; }
}

/* --- Полоса админки на служебных страницах /admin/<раздел> --- */
.admin-strip { background: var(--ink, #2b2326); color: #fff; font-size: 14px; }
.admin-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-block: 10px; }
.admin-strip a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.admin-strip a:hover, .admin-strip a[aria-current] { color: #fff; }
.admin-strip a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.admin-strip__home { font-weight: 600; color: #fff !important; margin-right: auto; }

/* --- Служебные страницы: «Спасибо», 404, 410 (короткий первый экран как на главной) --- */
.hero1--page .hero1__inner { min-height: clamp(380px, calc(100svh - var(--header) - 60px), 620px); }
.days--three .days__list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }

/* --- Правовые страницы --- */
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal__sprig { right: max(-20px, calc((100vw - 1180px) / 2 - 90px)); top: 10px; transform: rotate(18deg); opacity: .6; }
.legal__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal__head { grid-column: 1 / -1; margin-bottom: clamp(24px, 4vw, 48px); max-width: 820px; }
.legal__head .title { margin-bottom: 0; }
.legal__aside { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 22px; }
.legal__docs { display: grid; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--surface); }
.legal__docs a { padding: 10px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.legal__docs a:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 60%, transparent); }
.legal__docs a[aria-current] { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.legal__contact { padding: 0 14px; font-size: 14px; color: var(--muted); }
.legal__contact p { margin: 0 0 4px; }
.legal__contact a { color: var(--accent); font-weight: 600; word-break: break-all; }
.legal__body { max-width: 68ch; font-size: 16.5px; line-height: 1.7; }
.legal__body h2 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; line-height: 1.2; margin: 40px 0 12px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { margin: 0 0 16px; }
.legal__body a { color: var(--accent); }
.legal__body code { font-size: .9em; padding: 2px 7px; border-radius: 6px; background: var(--surface); }
.legal__lead { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 26px); line-height: 1.45; margin-bottom: 28px !important; padding-left: 22px; border-left: 2px solid var(--accent); }
.legal__version { display: inline-block; margin-top: 12px !important; padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }
@media (max-width: 980px) {
  .days--three .days__list { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .days--three .days__list li { text-align: left; }
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__aside { position: static; order: 2; margin-top: 32px; }
  .legal__sprig { display: none; }
}

/* Попап «Расчёт свадьбы»: квиз главной */
.quiz-modal { width: min(640px, 100% - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.quiz-modal .title { margin: 0 48px 18px 0; }
.quiz-modal__hints { margin: 0 0 22px; }
.quiz-modal__hints .quiz__hint { box-shadow: none; background: var(--surface); padding: 12px 14px; font-size: 14px; }
.quiz-modal__hints .quiz__hint::before { display: none; }
.quiz-modal[open] { animation: chat-in .35s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 560px) {
  .quiz-modal { padding: 26px 16px 20px; }
  .quiz-modal .options--grid { grid-template-columns: 1fr; }
  .quiz-modal .options--contact { grid-template-columns: repeat(2, 1fr); }
}

/* Виджет связи справа внизу */
.chat { position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.chat > * { pointer-events: auto; }
.chat__fab { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 85%, transparent), inset 0 1px 0 rgb(255 255 255 / .25); transition: transform .25s, box-shadow .25s; }
.chat__fab:hover { transform: translateY(-2px) scale(1.04); }
.chat__fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chat__fab::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: chat-pulse 2.6s ease-out 2s infinite; }
.chat.is-read .chat__fab::before, .chat.is-open .chat__fab::before { animation: none; }
.chat__fab-icon { grid-area: 1 / 1; display: grid; transition: opacity .2s, transform .25s; }
.chat__fab .icon { width: 28px; height: 28px; stroke: currentColor; }
.chat__fab-icon--off { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat__fab-icon--on { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat__fab-icon--off { opacity: 1; transform: none; }
.chat__dot { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--olive); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; box-shadow: 0 0 0 2px var(--cream); }
.chat.is-read .chat__dot { display: none; }

.chat__panel { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; background: var(--card); border: 1px solid var(--line); border-radius: 22px 22px 6px 22px; box-shadow: 0 30px 70px -30px rgb(40 20 20 / .55); transform-origin: 100% 100%; animation: chat-in .35s cubic-bezier(.2, .8, .2, 1); }
.chat__panel[hidden] { display: none; }
.chat__head { position: sticky; top: 0; display: flex; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, var(--olive), color-mix(in srgb, var(--olive) 75%, #10140a)); }
.chat__head > div { flex: 1; min-width: 0; }
.chat__avatar { position: relative; width: 48px; height: 48px; flex: none; }
.chat__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid rgb(255 255 255 / .7); }
.chat__avatar i { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #6fcf7f; box-shadow: 0 0 0 2px var(--olive); }
.chat__name { margin: 0; font-family: var(--script); font-size: 24px; line-height: 1.1; }
.chat__role { margin: 2px 0 0; font-size: 12.5px; opacity: .8; }
.chat__x { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; transition: background .2s; }
.chat__x:hover { background: rgb(255 255 255 / .26); }
.chat__x .icon { width: 18px; height: 18px; stroke: currentColor; }
.chat__body { padding: 16px; background: radial-gradient(120% 60% at 100% 0, color-mix(in srgb, var(--surface) 70%, transparent), transparent 70%); }
.chat__msg { position: relative; margin: 0 0 14px; padding: 12px 14px; background: var(--surface); border-radius: 4px 16px 16px 16px; font-size: 14.5px; line-height: 1.5; animation: chat-msg .4s ease .15s backwards; }
.chat__actions { display: grid; gap: 8px; }
.chat__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; animation: chat-msg .4s ease backwards; }
.chat__btn:nth-child(1) { animation-delay: .25s; } .chat__btn:nth-child(2) { animation-delay: .32s; } .chat__btn:nth-child(3) { animation-delay: .39s; }
.chat__btn:hover { border-color: var(--olive); background: color-mix(in srgb, var(--olive) 6%, var(--card)); transform: translateX(-2px); }
.chat__btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.chat__btn .icon { width: 36px; height: 36px; padding: 7px; flex: none; border-radius: 50%; color: var(--olive); background: color-mix(in srgb, var(--olive) 10%, transparent); }
.chat__btn span { display: grid; gap: 1px; }
.chat__btn small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.chat__btn--main { border-color: transparent; background: var(--accent); color: #fff; }
.chat__btn--main:hover { border-color: transparent; background: color-mix(in srgb, var(--accent) 85%, #24070e); }
.chat__btn--main .icon { color: #fff; background: rgb(255 255 255 / .18); }
.chat__btn--main small { color: rgb(255 255 255 / .8); }
.chat__label { margin: 14px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.chat__messengers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chat__im { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 600; transition: border-color .2s, transform .2s; }
.chat__im:hover { transform: translateY(-2px); border-color: currentColor; }
.chat__im .icon { width: 30px; height: 30px; padding: 5px; border-radius: 50%; color: #fff; }
.chat__im--tg .icon { background: #2aa3df; }
.chat__im--wa .icon { background: #25b860; }
.chat__im--max .icon { background: linear-gradient(135deg, #4b7bff, #9b4dff); }
.chat.is-open .chat__dot { display: none; }
/* cookie-плашка внизу по центру: на узких экранах поднимаем виджет над ней */
@media (max-width: 640px) {
  body:has(.cookie:not([hidden])) .chat { bottom: 70px; }
  .chat__fab { width: 56px; height: 56px; }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes chat-msg { from { opacity: 0; transform: translateY(8px); } }
@keyframes chat-pulse { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .chat__panel, .chat__msg, .chat__btn, .quiz-modal[open] { animation: none; }
  .chat__fab::before { animation: none; }
}

/* ===== AI-эскиз: тест спроса (sections/ai.html). Пудровая карточка, ягодный CTA, коллаж «референсы → эскиз» ===== */
.ai__card { --r: clamp(24px, 3vw, 36px); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(40px, 5.5vw, 76px) clamp(22px, 5vw, 72px); border-radius: var(--r);
  background: radial-gradient(60% 80% at 0% 0%, #fff 0%, transparent 70%), radial-gradient(55% 70% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface);
  box-shadow: 0 46px 80px -56px color-mix(in srgb, var(--accent) 80%, transparent); }
.ai__card::before { content: ''; position: absolute; inset: 12px; z-index: -1; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: calc(var(--r) - 12px); pointer-events: none; }
.ai__sprig { z-index: -1; right: 38%; top: -30px; opacity: .55; transform: rotate(160deg); }
.ai__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgb(255 255 255 / .75); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.ai__badge .icon { width: 16px; height: 16px; }
.ai .title { margin-bottom: 16px; }
.ai__lead { font-size: 17px; max-width: 46ch; }
.ai__points { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; }
.ai__points li { display: flex; align-items: center; gap: 6px; }
.ai__points .icon { color: var(--olive); width: 18px; height: 18px; }
.ai__cta { min-height: 60px; padding: 16px 32px; font-size: 16px; position: relative; animation: ai-pulse 2.6s ease-out infinite; }
.ai__cta .icon { width: 20px; height: 20px; }
@keyframes ai-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
.ai__hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ai__visual { position: relative; display: grid; grid-template-columns: 34% 1fr; align-items: center; gap: 6px; }
.ai__refs { position: relative; display: grid; gap: 10px; }
.ai__ref { margin: 0; padding: 6px 6px 18px; background: #fff; border-radius: 4px; box-shadow: 0 14px 26px -16px rgb(40 20 20 / .5); }
.ai__ref img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 2px; }
.ai__ref--1 { rotate: -6deg; } .ai__ref--2 { rotate: 4deg; margin-left: 18%; } .ai__ref--3 { rotate: -3deg; }
.ai__refs-label { position: absolute; left: -6px; top: -34px; font-size: 26px; rotate: -8deg; }
.ai__arrow { position: absolute; left: 26%; top: 6%; width: 74px; z-index: 2; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai__result { position: relative; margin: 0; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -30px rgb(40 20 20 / .55); rotate: 1.5deg; }
.ai__result img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.ai__result figcaption { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgb(255 255 255 / .9); color: var(--accent); backdrop-filter: blur(4px); }
.ai__result figcaption .icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .ai__card { grid-template-columns: 1fr; }
  .ai__visual { order: -1; max-width: 460px; width: 100%; margin: 20px auto 0; }
  .ai__cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ai__cta { animation: none; } }

/* Попап AI-эскиза: форма с фото */
.ai-modal { width: min(580px, 100% - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
.ai-modal .title { margin-bottom: 12px; }
.ai-modal__note { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 20px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ai-drop__zone { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 16px; background: var(--cream); cursor: pointer; transition: border-color .2s, background .2s; }
.ai-drop__zone:hover, .ai-drop__zone:focus-within { border-color: var(--accent); background: #fff; }
.ai-drop__zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ai-drop__zone strong { display: block; font-size: 15px; }
.ai-drop__zone small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ai-drop__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--accent); }
.ai-drop__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-drop__list:not(:empty) { margin-top: 10px; }
.ai-drop__list li { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.ai-drop__list img { width: 100%; height: 100%; object-fit: cover; }
.ai-drop__list button { position: absolute; right: 3px; top: 3px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; cursor: pointer; }
.ai-drop__list button .icon { width: 13px; height: 13px; }
.ai-form .btn[disabled] { cursor: progress; }
.ai-modal__done { text-align: center; padding: 20px 0 6px; }
.ai-modal__check { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; color: #fff; background: var(--olive); }
.ai-modal__check .icon { width: 30px; height: 30px; }

/* Галочки в кружке - единый вид по всему сайту */
.ticks li { padding-left: 30px; }
.ticks li::before { left: 0; top: calc(.75em - 10px); width: 20px; height: 20px; border: 0; border-radius: 50%; transform: none; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: calc(.75em - 4px); width: 8px; height: 4px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.ai__points .icon, .approach__col li .icon, .cars__note .icon { box-sizing: border-box; width: 22px; height: 22px; padding: 4px; border-radius: 50%; stroke-width: 2.2; background: color-mix(in srgb, currentColor 14%, transparent); flex: none; }
.approach__col li { grid-template-columns: 22px minmax(0, 1fr); }
.approach__col li .icon { margin-top: 1px; }

/* Согласие на обработку данных: свой чек-бокс-кружок вместо системного */
.consent { align-items: center; }
.consent input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; flex: none; display: grid; place-content: center; border: 1.5px solid color-mix(in srgb, var(--olive) 45%, var(--line)); border-radius: 50%; background: var(--card); cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.consent input::before { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s; }
.consent input:checked { background: var(--olive); border-color: var(--olive); }
.consent input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent input:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 12%, transparent); }
.consent input:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.consent input:user-invalid { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }

/* Предупреждение в попапе AI: светло-оранжевое, чтобы читалось отдельно от палитры сайта */
.ai-modal__warn { display: flex; gap: 10px; align-items: flex-start; color: #6b4513; background: #fdf0dc; border: 1px solid #f3cf98; }
.ai-modal__warn .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #d9822b; stroke-width: 2; }

/* Кружки галочек - прозрачные, только обводка */
.ticks li::before { background: none; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); box-sizing: border-box; }
.ai__points .icon, .approach__col li .icon, .cars__note .icon { background: none; border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent); padding: 3px; }
.consent input::before { border-color: var(--olive); }
.consent input:checked { background: transparent; border-color: var(--olive); }
