/* =========================================================
   ЯКДЕКОР — стили
   Палитра и шрифты — в :root. Меняйте цвета только здесь.
   ========================================================= */

:root {
  --cream: #FFF6EE;
  --page: #FFF9F5;          /* фон страницы: светлее и чище, чем кремовый */
  --milk: #FFFDF9;
  --berry: #E0344F;          /* главный акцент: декор, крупные надписи */
  --berry-strong: #D02C48;   /* фон кнопок и ярких блоков (контраст с белым 5:1) */
  --berry-ink: #C8223F;      /* мелкий ягодный текст на светлом */
  --berry-deep: #9E1B33;
  --pink: #F7B9C4;
  --powder: #F3D9D3;
  --olive: #7C8A3E;
  --olive-deep: #5E6A27;
  --gold: #CDAE72;
  --gold-soft: #EBDDBE;
  --gold-light: #FFE0A8;
  --cherry: #3B1A20;
  --cherry-soft: #6E4048;

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-script: 'Marck Script', 'Segoe Script', cursive;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 16px;
  --maxw: 1240px;
  --header-h: 64px;
  --shadow: 0 22px 40px -22px rgba(59, 26, 32, .45);
  --shadow-soft: 0 12px 30px -18px rgba(59, 26, 32, .35);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.45, .5, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--cherry);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--berry-ink); text-underline-offset: .18em; }
a:hover { color: var(--berry-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }  /* атрибут hidden сильнее любых display у кнопок и чипов */

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cherry); color: var(--milk); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; color: var(--milk); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 20px; height: 20px; flex: none; }

/* Плейсхолдеры — всё, что нужно заменить вашими данными */
.ph {
  background: rgba(247, 185, 196, .5);
  outline: 1.5px dashed rgba(200, 34, 63, .6);
  outline-offset: 1px;
  border-radius: 6px;
  padding: 0 .2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: inherit;
  text-decoration: none;
}
.svc--dark .ph, .footer .ph, .fz .sec-head .ph {
  background: rgba(255, 253, 249, .16);
  outline-color: rgba(255, 253, 249, .65);
}

/* ---------- Типографика ---------- */
.h2 {
  position: relative;
  margin: 0;
  font: 800 clamp(31px, 7.2vw, 70px)/1 var(--f-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.script-over {
  display: inline-block;
  font-family: var(--f-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--berry);
  line-height: 1;
}
.h2 .script-over {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: -.3em 0 0 1.4em;
  font-size: .95em;
  transform: rotate(-5deg);
  transform-origin: left center;
  pointer-events: none;
}

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head__lead { max-width: 46ch; margin: 22px 0 0; color: var(--cherry-soft); font-size: 18px; }
.sec-head--center { text-align: center; }
.sec-head--center .h2 .script-over { margin-inline: auto; }
.sec-head--light { color: var(--milk); }
.sec-head--light .sec-head__lead { color: rgba(255, 253, 249, .9); }
.sec-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 26px 26px 10px 10px;  /* арочный верх */
  font: 700 16px/1.15 var(--f-body);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease-spring), background-color .2s, box-shadow .25s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--berry {
  background: var(--berry-strong); color: var(--milk);
  box-shadow: 0 14px 26px -14px rgba(208, 44, 72, .9), inset 0 -3px 0 rgba(0, 0, 0, .14);
}
.btn--berry:hover { background: var(--berry-ink); color: var(--milk); transform: translateY(-2px); }
.btn--outline { border-color: var(--cherry); color: var(--cherry); background: transparent; }
.btn--outline:hover { background: var(--cherry); color: var(--milk); }
.btn--ghost { background: rgba(59, 26, 32, .07); color: var(--cherry); }
.btn--ghost:hover { background: rgba(59, 26, 32, .13); color: var(--cherry); }
.btn--wa, .btn--max { background: var(--milk); color: var(--cherry); box-shadow: var(--shadow-soft); }
.btn--wa .ico { color: #1A9E4E; }
.btn--max .ico { color: #5B4BE8; }
.btn--wa:hover, .btn--max:hover { color: var(--cherry); transform: translateY(-2px); }
.lead-form__send { display: grid; gap: 10px; }
.lead-form .btn--berry .ico { color: var(--milk); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 17px; border-radius: 30px 30px 12px 12px; }
.btn--sm { min-height: 46px; padding: 0 18px; font-size: 15px; border-radius: 23px 23px 9px 9px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--cherry);
  cursor: pointer; transition: background-color .2s, transform .2s;
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: rgba(59, 26, 32, .08); color: var(--cherry); }
.icon-btn--soft { background: var(--cream); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid rgba(59, 26, 32, .22);
  border-radius: 22px 22px 9px 9px;
  background: var(--milk); color: var(--cherry);
  font: 700 14px/1.2 var(--f-body);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--cherry); }
.chip.is-active { background: var(--cherry); color: var(--milk); border-color: var(--cherry); }

/* ---------- Логотип: монограмма с веточкой и подпись, одним изображением ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo__img { display: block; width: auto; height: 52px; }
@media (min-width: 768px) { .logo__img { height: 64px; } }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 245, .96);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(59, 26, 32, .55); }
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  max-width: 1360px; height: var(--header-h);
  margin-inline: auto; padding-inline: var(--gutter);
}
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 20px 20px 8px 8px;
  color: var(--cherry); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color .2s;
}
.main-nav a:hover { background: rgba(247, 185, 196, .45); color: var(--cherry); }
.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-header__cta { display: none; margin-left: 8px; }

.burger { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--cherry); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--milk); transition: transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 720px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .main-nav { display: block; margin-left: auto; }
  .site-header__actions { margin-left: 8px; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 22px;
  padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--cream);
  overflow-y: auto;
  animation: menu-in .35s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li + li { border-top: 1px solid rgba(59, 26, 32, .1); }
.mobile-menu nav a {
  display: block; padding: 14px 0;
  font: 700 26px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: -.01em;
  color: var(--cherry); text-decoration: none;
}
.mobile-menu__msg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Арочные маски (форма = наш главный продукт) ---------- */
.arch-34 { aspect-ratio: 3 / 4; border-radius: 50% 50% 22px 22px / 37.5% 37.5% 22px 22px; overflow: hidden; }
.arch-45 { aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; overflow: hidden; }

/* ---------- Первый экран: цветная сцена с работами ----------
   Цвет сцены меняется вместе со слайдом (data-theme). */
@property --h1 { syntax: '<color>'; inherits: true; initial-value: #3B6410; }
@property --h2 { syntax: '<color>'; inherits: true; initial-value: #94B52F; }
@property --h3 { syntax: '<color>'; inherits: true; initial-value: #EEF37E; }

.hero { position: relative; padding: 10px 10px 4px; overflow-x: clip; }  /* шары вылетают за сцену вверх и вниз, но не дают горизонтальной прокрутки */
.hero__stage {
  --h1: #3B6410; --h2: #94B52F; --h3: #EEF37E;
  position: relative; isolation: isolate;
  display: grid; gap: 20px;
  max-width: 1440px; margin: 0 auto;
  padding: 20px 18px 24px;
  color: var(--milk);
  transition: --h1 .9s ease, --h2 .9s ease, --h3 .9s ease;
}
.hero__stage[data-theme="olive"] { --h1: #3B6410; --h2: #94B52F; --h3: #EEF37E; }
.hero__stage[data-theme="bordo"] { --h1: #4E0B1A; --h2: #C42443; --h3: #FFC46B; }
.hero__stage[data-theme="candy"] { --h1: #B0205E; --h2: #6FB0EC; --h3: #FFD3E4; }
.hero__stage[data-theme="berry"] { --h1: #9A1036; --h2: #FF6F93; --h3: #FFE0A8; }
.hero__stage[data-theme="gold"] { --h1: #3A2208; --h2: #B8863B; --h3: #FFE7A8; }
.hero__stage[data-theme="violet"] { --h1: #3A1F7A; --h2: #9A5BD6; --h3: #F3A6FF; }

.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(55% 55% at 50% 34%, color-mix(in srgb, var(--h3) 70%, transparent), transparent 72%),
    linear-gradient(145deg, var(--h2) 0%, var(--h1) 72%);
  box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--h1) 85%, transparent);
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .2), transparent 50%); }
.hero__giant {
  position: absolute; left: 50%; top: 30%; z-index: 1; margin: 0;
  translate: -50% -50%;
  font: 800 min(22vw, calc(122vw / var(--len, 8)))/.9 var(--f-display);
  letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, .2);
  transition: opacity .35s ease, transform .55s var(--ease-out);
}
.hero__giant.is-out { opacity: 0; transform: translateY(-12%); }
.hero__giant.is-in { opacity: 0; transform: translateY(12%); transition: none; }

.hero__counter { display: flex; align-items: center; gap: 12px; font: 700 14px/1 var(--f-display); }
.hero__num--total { opacity: .6; }
.hero__bar { position: relative; width: clamp(60px, 9vw, 120px); height: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--milk); }
.hero__bar i.is-run { animation: hero-progress 6.5s linear forwards; }
.hero__stage.is-paused .hero__bar i, .hero__stage.is-off .hero__bar i { animation-play-state: paused; }
@media (hover: hover) { .hero__stage:hover .hero__bar i { animation-play-state: paused; } }
@keyframes hero-progress { to { transform: scaleX(1); } }
.hero__nav { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--milk); cursor: pointer; transition: background-color .2s; }
.hero__nav:first-of-type { margin-left: auto; }
.hero__nav:hover { background: rgba(255, 255, 255, .3); }
.hero__nav svg { width: 20px; height: 20px; }

.hero__title {
  margin: 0;
  font: 800 clamp(38px, 10.4vw, 64px)/.95 var(--f-display);
  letter-spacing: -.03em; text-transform: uppercase;
}
@media (min-width: 1024px) { .hero__title { font-size: clamp(40px, 3.6vw, 56px); } }
.hero__line { display: block; }
.hero__line--last { position: relative; display: inline-block; }
.hero__script {
  position: absolute; right: -.08em; top: 70%;
  font-size: .8em; white-space: nowrap; color: var(--gold-light);
  transform: rotate(-8deg); transform-origin: right center;
}
.hero__lead { max-width: 26ch; margin: 1.4em 0 0; font: 700 clamp(17px, 1.6vw, 20px)/1.35 var(--f-body); }
.hero__text { max-width: 36ch; margin: 0; font-size: 16px; color: rgba(255, 253, 249, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__actions .btn { flex: 1 1 220px; }
.btn--light { background: var(--milk); color: var(--cherry); box-shadow: 0 16px 28px -16px rgba(0, 0, 0, .55); }
.btn--light:hover { color: var(--cherry); transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255, 253, 249, .75); color: var(--milk); background: transparent; }
.btn--outline-light:hover { background: rgba(255, 253, 249, .14); color: var(--milk); }

.hero__visual { position: relative; width: min(76vw, 380px); justify-self: center; margin: 8px 0 18px; }
.hero__visual::before {
  content: ""; position: absolute; inset: -14% -22%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--h3) 80%, transparent), transparent);
  filter: blur(18px);
}
.hero__arch { position: relative; z-index: 1; margin: 0; background: rgba(255, 255, 255, .2); outline: 1.5px solid rgba(255, 253, 249, .6); outline-offset: 10px; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .55); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img.is-entering { animation: hero-img-in .9s var(--ease-out) both; }
@keyframes hero-img-in { from { clip-path: inset(100% 0 0 0); transform: scale(1.12); } to { clip-path: inset(0 0 0 0); transform: none; } }
.hero__chip {
  position: absolute; z-index: 3; right: -6%; bottom: -16px; margin: 0;
  padding: 9px 14px; border-radius: 16px 16px 6px 6px;
  background: var(--milk); color: var(--cherry); box-shadow: var(--shadow-soft);
  font-size: 13px; font-weight: 700; line-height: 1.2; max-width: 70%;
}
.hero__sticker { position: absolute; z-index: 4; right: -14%; top: 4%; }

.hero__thumbs { display: flex; justify-content: center; gap: 10px; padding: 8px 4px 2px; overflow-x: auto; scrollbar-width: none; }
.hero__thumbs::-webkit-scrollbar { display: none; }
.hero__thumb {
  flex: none; width: 44px; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(255, 253, 249, .35); border-radius: 50% 50% 8px 8px / 37.5% 37.5% 8px 8px;
  background: rgba(255, 255, 255, .15); opacity: .7;
  transition: transform .35s var(--ease-spring), opacity .25s, border-color .25s;
}
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb:hover { opacity: 1; }
.hero__thumb.is-active { opacity: 1; border-color: var(--milk); transform: translateY(-6px) scale(1.1); box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .5); }
.hero__thumb:focus-visible { outline-color: var(--milk); }

@media (min-width: 1024px) {
  .hero { padding: 14px 24px 8px; }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 16px 44px;
    min-height: min(800px, calc(100svh - var(--header-h) - 26px));
    padding: 30px 48px 24px;
  }
  .hero__bg { border-radius: 44px; }
  .hero__giant { top: 46%; }
  .hero__counter { grid-column: 1; grid-row: 1; }
  .hero__counter .hero__nav:first-of-type { margin-left: 8px; }
  .hero__visual { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 100%; margin: 0; }
  .hero__copy { grid-column: 1; grid-row: 2; align-self: end; padding-bottom: 8px; }
  .hero__side { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; padding-bottom: 8px; max-width: 340px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__thumbs { grid-column: 1 / -1; grid-row: 3; }
  .hero__thumb { width: 58px; }
}

/* Парящие шары — часть выходит за край сцены */
.fb { position: absolute; z-index: 5; width: var(--s); pointer-events: none; will-change: transform; }
.fb i {
  position: relative; display: block; width: 100%; aspect-ratio: .86;
  border-radius: 50% 50% 47% 53% / 45% 45% 55% 55%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, 0) 17%),
    radial-gradient(circle at 38% 32%, var(--c1), var(--c2) 50%, var(--c3) 100%);
  box-shadow: inset -5px -8px 14px rgba(0, 0, 0, .1);
  animation: bob 5.5s ease-in-out infinite alternate;
}
.fb i::after { content: ""; position: absolute; left: 50%; top: 98%; width: 12%; aspect-ratio: 1.2; translate: -50% 0; background: var(--c3); clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.fb i::before { content: ""; position: absolute; left: 50%; top: 106%; width: 1.5px; height: 80%; background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); transform: rotate(5deg); transform-origin: top; }
.fb--1 { --s: clamp(44px, 9vw, 72px); left: 30%; top: -26px; }
.fb--2 { --s: clamp(38px, 8vw, 60px); right: -10px; top: 30%; }
.fb--3 { --s: clamp(30px, 6vw, 46px); left: -12px; top: 52%; }
.fb--4 { --s: clamp(26px, 5vw, 40px); right: 22%; top: -16px; }
.fb--5 { --s: clamp(34px, 7vw, 54px); right: 8%; bottom: -20px; }
.fb--2 i { animation-duration: 6.5s; animation-delay: -2s; }
.fb--3 i { animation-duration: 4.8s; animation-delay: -1s; }
.fb--4 i { animation-duration: 7s; animation-delay: -3s; }
@keyframes bob { from { transform: translateY(-6px) rotate(-3deg); } to { transform: translateY(8px) rotate(4deg); } }

.sticker--round {
  display: grid; place-items: center;
  width: clamp(96px, 24vw, 124px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--berry-strong); color: var(--milk);
  box-shadow: 0 0 0 5px var(--milk), var(--shadow);
}
.sticker--round > svg:first-child { grid-area: 1 / 1; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.sticker--round text { font: 700 9.6px var(--f-body); letter-spacing: .08em; fill: currentColor; text-transform: uppercase; }
.sticker__core { grid-area: 1 / 1; width: 30%; height: 30%; color: var(--gold-light); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Сценарий появления первого экрана */
.js .hero__bg { animation: stage-in .9s var(--ease-out) both; }
.js .hero__line { animation: rise .9s .15s var(--ease-out) both; }
.js .hero__line--last { animation-delay: .23s; }
.js .hero__script { animation: write 1.1s .7s ease-out both; }
.js .hero__lead, .js .hero__side, .js .hero__counter, .js .hero__thumbs { animation: fade .8s .4s var(--ease-out) both; }
.js .hero__arch { animation: arch-up 1.1s .2s var(--ease-out) both; }
.js .hero__chip { animation: fade .6s 1s both; }
.js .hero__sticker { animation: sticker-in .9s .9s var(--ease-spring) both; }
.js .fb { animation: fb-in 1.2s var(--ease-spring) both; }
.js .fb--1 { animation-delay: .5s; } .js .fb--2 { animation-delay: .62s; } .js .fb--3 { animation-delay: .74s; }
.js .fb--4 { animation-delay: .86s; } .js .fb--5 { animation-delay: .98s; }
@keyframes stage-in { from { opacity: 0; transform: scale(.97); } }
@keyframes rise { from { opacity: 0; transform: translateY(.4em); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
@keyframes write { from { clip-path: inset(-40% 100% -60% -10%); } to { clip-path: inset(-40% -10% -60% -10%); } }
@keyframes arch-up { from { clip-path: inset(100% 0 0 0); transform: translateY(40px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } }
@keyframes sticker-in { from { opacity: 0; transform: scale(.3) rotate(-90deg); } }
@keyframes fb-in { from { opacity: 0; translate: 0 120px; } }

/* ---------- Лента-серпантин ---------- */
.ribbon { position: relative; z-index: 2; height: clamp(120px, 15vw, 230px); margin: -10px 0 -20px; pointer-events: none; }
.ribbon__track { position: absolute; inset: 0; overflow: hidden; }
.ribbon__track svg { display: block; height: 100%; width: auto; max-width: none; will-change: transform; }
.ribbon__track svg.is-left { animation: ribbon-left 26s linear infinite; }
.ribbon__track svg.is-right { animation: ribbon-right 32s linear infinite; }
.ribbon.is-off svg { animation-play-state: paused; }
.ribbon__band { fill: none; stroke: var(--berry); stroke-width: 50; }
.ribbon__text { font: 700 20px var(--f-display); letter-spacing: .08em; text-transform: uppercase; fill: var(--milk); }
.ribbon__track--back .ribbon__band { stroke: var(--pink); }
.ribbon__track--back .ribbon__text { fill: var(--cherry); }
.ribbon__track--olive .ribbon__band { stroke: var(--olive); }
.ribbon--b { margin: 0 0 -30px; }
@keyframes ribbon-left { to { transform: translateX(-25%); } }
@keyframes ribbon-right { from { transform: translateX(-25%); } to { transform: translateX(0); } }

/* ---------- Секции ---------- */
.section { position: relative; padding-block: clamp(64px, 10vw, 128px); background: var(--sec-bg, var(--page)); }
.wave { position: absolute; left: 0; right: 0; height: clamp(24px, 4vw, 60px); line-height: 0; pointer-events: none; }
.wave svg { display: block; width: 100%; height: 100%; }
.wave path { fill: var(--sec-bg, var(--page)); }
.wave--top { bottom: calc(100% - 1px); }
.wave--bottom { top: calc(100% - 1px); z-index: 1; }

/* ---------- Услуги ---------- */
.services { padding-top: clamp(48px, 8vw, 96px); }
.services, .reviews, .cta {
  background-image:
    radial-gradient(34% 26% at 4% 30%, rgba(255, 111, 147, .2), transparent 70%),
    radial-gradient(30% 24% at 98% 58%, rgba(148, 181, 47, .2), transparent 70%),
    radial-gradient(28% 22% at 46% 98%, rgba(255, 196, 107, .22), transparent 70%);
}
.reviews { background-image:
    radial-gradient(30% 30% at 96% 20%, rgba(255, 111, 147, .2), transparent 70%),
    radial-gradient(30% 30% at 2% 80%, rgba(111, 176, 236, .18), transparent 70%); }
.svc-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 18px;
  margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter) 36px;
  list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.svc-list::-webkit-scrollbar { display: none; }
.svc {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 12px 12px 22px;
  border-radius: 30px;
  background: var(--bg); color: var(--cherry);
  box-shadow: 0 30px 50px -26px color-mix(in srgb, var(--bg) 70%, #3B1A20);
  transform: rotate(calc(var(--tilt) * .5));
  transition: transform .45s var(--ease-spring);
  scroll-snap-align: start;
}
.svc:hover { transform: rotate(0) translateY(-8px); }
/* Заранее готовим слой для анимации только на устройствах с мышью: на телефоне наведения нет, а память видеокарты дороже */
@media (hover: hover) and (pointer: fine) {
  .svc { will-change: transform; }
}
.svc--dark { color: var(--milk); }
.svc__media { position: relative; z-index: 1; background: rgba(255, 255, 255, .25); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__media--art svg { display: block; width: 100%; height: 100%; }
.svc__title { margin: 20px 8px 8px; font: 700 20px/1.18 var(--f-display); letter-spacing: -.01em; }
.svc__text { margin: 0 8px 18px; font-size: 15px; line-height: 1.5; }
.svc__price {
  align-self: flex-start; margin: auto 8px 0; padding: 8px 16px;
  border-radius: 18px 18px 7px 7px;
  background: var(--milk); color: var(--cherry);
  font-weight: 800; font-size: 15px;
}

@media (min-width: 760px) {
  .svc-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin: 0; padding: 0; overflow: visible; }
  .svc { transform: rotate(var(--tilt)); }
}
@media (min-width: 1100px) {
  .svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
  .svc:nth-child(3n + 2) { margin-top: 36px; }
}

/* ---------- Пайетки ----------
   Сама текстура статична. Блеск — два слоя искр, у которых меняется только
   прозрачность (это дёшево: видеокарта не перерисовывает картинку). */
.sequin {
  position: relative; isolation: isolate;
  background:
    radial-gradient(circle, var(--sq1) 0 3px, transparent 3.5px) 0 0 / 9px 8px,
    radial-gradient(circle, var(--sq2) 0 3px, transparent 3.5px) 4.5px 4px / 9px 8px,
    var(--sq0);
}
.sequin::before, .sequin::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  height: var(--sq-h, 100%);
  border-radius: inherit; pointer-events: none;
  will-change: opacity;
}
.sequin::before {
  background:
    radial-gradient(circle at 4.5px 4px, #fff 0 1.4px, rgba(255, 255, 255, .55) 2.2px, transparent 3.4px) 0 0 / 27px 24px,
    radial-gradient(circle at 31.5px 28px, #fff 0 1.4px, rgba(255, 255, 255, .55) 2.2px, transparent 3.4px) 0 0 / 45px 40px;
  opacity: calc(.15 + .85 * var(--shine, .5));
}
.sequin::after {
  background:
    radial-gradient(circle at 13.5px 12px, #fff 0 1.4px, rgba(255, 244, 214, .6) 2.2px, transparent 3.4px) 0 0 / 36px 32px,
    radial-gradient(circle at 9px 16px, #fff 0 1.4px, rgba(255, 244, 214, .6) 2.2px, transparent 3.4px) 0 0 / 63px 56px;
  opacity: calc(1 - .85 * var(--shine, .5));
}
.svc--sequin {
  --sq-h: 48%;
  background:
    linear-gradient(transparent 0 44%, var(--bg) 64%),
    radial-gradient(circle, var(--sq1) 0 3px, transparent 3.5px) 0 0 / 9px 8px,
    radial-gradient(circle, var(--sq2) 0 3px, transparent 3.5px) 4.5px 4px / 9px 8px,
    var(--sq0);
}
.sequin--gold { --sq0: #9C7A2E; --sq1: #E8CB78; --sq2: #C9A34F; }
.sequin--champagne { --sq0: #7E6640; --sq1: #EAD7B2; --sq2: #CDB386; }

/* ---------- Портфолио ---------- */
.works {
  --sec-bg: #FFFFFF;
  background-image:
    radial-gradient(30% 22% at 0% 20%, rgba(255, 196, 107, .22), transparent 70%),
    radial-gradient(30% 22% at 100% 70%, rgba(255, 111, 147, .18), transparent 70%);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip[hidden] { display: none; }
.works-grid { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 12px; }
.work { break-inside: avoid; margin: 0 0 18px; }
.work[hidden] { display: none; }
.work__btn {
  display: block; position: relative; width: 100%; padding: 0; border: 0;
  background: var(--powder); cursor: zoom-in; overflow: hidden;
}
.work__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.work__btn:not(.m-cloud):hover img { transform: scale(1.05); }
.m-cloud { transition: transform .5s var(--ease-spring); }
.m-cloud:hover { transform: rotate(4deg) scale(1.02); }
.work__cap { margin: 8px 6px 0; font-size: 13px; line-height: 1.35; color: var(--cherry-soft); }
.work.is-entering { animation: fade .5s var(--ease-out) both; }
.work__badge {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  padding: 8px 14px; border-radius: 16px 16px 6px 6px;
  background: var(--milk); color: var(--cherry); white-space: nowrap;
  font: 700 13px/1.2 var(--f-body); box-shadow: var(--shadow-soft);
  transition: background-color .2s, color .2s;
}
.work__btn:hover .work__badge { background: var(--berry-strong); color: var(--milk); }
.works-more { display: flex; justify-content: center; margin-top: 18px; }
.works-more[hidden] { display: none; }

.m-arch { aspect-ratio: 3 / 4; border-radius: 50% 50% 18px 18px / 37.5% 37.5% 18px 18px; }
.m-soft { aspect-ratio: 4 / 5; border-radius: 30px; }
.m-pill { aspect-ratio: 2 / 3; border-radius: 999px; }
.m-wide { aspect-ratio: 4 / 3; border-radius: 30px; }
.m-pano { aspect-ratio: 16 / 9; border-radius: 30px; }
.m-square { aspect-ratio: 1; border-radius: 30% 30% 22px 22px / 30% 30% 22px 22px; }
.m-cloud { aspect-ratio: 1; background: transparent; overflow: visible; }
.m-cloud img { clip-path: url(#clip-cloud); }

@media (min-width: 760px) { .works-grid { columns: 3; column-gap: 22px; } .work { margin-bottom: 26px; } }
@media (min-width: 1180px) { .works-grid { columns: 4; } }

/* Просмотр на весь экран */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(34, 12, 17, .96); color: var(--milk);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .3s ease both; }
.lightbox::backdrop { background: rgba(34, 12, 17, .7); }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(92vw, 980px); margin: 0; touch-action: pan-y; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; border-radius: 24px; object-fit: contain; user-select: none; }
.lightbox__fig figcaption { max-width: 60ch; text-align: center; font-size: 15px; color: rgba(255, 253, 249, .9); padding-inline: 56px; }
.lightbox__count { position: absolute; top: 18px; left: 20px; margin: 0; font: 600 14px var(--f-body); color: rgba(255, 253, 249, .7); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 253, 249, .14); color: var(--milk); cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 253, 249, .28); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__btn--prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox__btn--close { right: 12px; top: 12px; }
@media (max-width: 640px) {
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 16px; translate: none; }
}

/* ---------- Конструктор ---------- */
.fz {
  --sec-bg: var(--berry-strong);
  position: relative;
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(255, 168, 186, .45), transparent 70%),
    radial-gradient(50% 40% at 0% 90%, rgba(158, 27, 51, .6), transparent 70%),
    var(--berry-strong);
  color: var(--milk);
}
.fz .h2 .script-over { color: var(--gold-light); }
.fz .sec-head { margin-bottom: 28px; }

.fz-presets { display: flex; gap: 10px; margin: 0 calc(var(--gutter) * -1) 22px; padding: 4px var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; }
.fz-presets::-webkit-scrollbar { display: none; }
.fz-presets__label { flex: none; align-self: center; margin-right: 4px; font-weight: 700; font-size: 15px; }
.preset {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 6px 16px 6px 10px;
  border: 1.5px solid rgba(255, 253, 249, .45);
  border-radius: 23px 23px 9px 9px;
  background: rgba(255, 253, 249, .1); color: var(--milk);
  font: 700 14px/1.2 var(--f-body); cursor: pointer;
  transition: background-color .2s, color .2s, transform .25s var(--ease-spring);
}
.preset:hover { background: rgba(255, 253, 249, .2); transform: translateY(-2px); }
.preset.is-match { background: var(--milk); color: var(--cherry); border-color: var(--milk); }
.preset__dots { display: inline-flex; padding-left: 6px; }
.preset__dots i { width: 18px; height: 18px; margin-left: -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(59, 26, 32, .15); }

.fz-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fz-app > * { min-width: 0; }
.fz-app[data-ready="false"] .fz-panel { min-height: 420px; }

.fz-stage {
  position: sticky; top: calc(var(--header-h) + 6px); z-index: 6;
  padding: 6px; border-radius: 26px;
  background: var(--milk); color: var(--cherry);
  box-shadow: 0 26px 50px -26px rgba(40, 6, 14, .75);
}
.fz-canvas { position: relative; overflow: hidden; border-radius: 21px; background: #FBEDE6; height: min(36svh, calc((100vw - 2 * var(--gutter) - 12px) * .8)); }
.fz-canvas svg { display: block; width: 100%; height: 100%; touch-action: pan-y; }
#fz-svg.is-paused * { animation-play-state: paused !important; }
.fz-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fz-loading span { width: 14px; height: 16px; border-radius: 50%; background: var(--berry); animation: bob .6s ease-in-out infinite alternate; }
.fz-loading span:nth-child(2) { background: var(--gold); animation-delay: .15s; }
.fz-loading span:nth-child(3) { background: var(--pink); animation-delay: .3s; }
.fz-app[data-ready="true"] .fz-loading { display: none; }
.fz-stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 4px 2px 12px; }
.fz-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; line-height: 1.2; }
.fz-price__label { font-size: 13px; color: var(--cherry-soft); }
.fz-price strong { font: 700 18px var(--f-display); letter-spacing: -.01em; }
.fz-stage__tools { display: flex; gap: 6px; }

.fz-panel {
  display: flex; flex-direction: column;
  padding: 18px 16px 0; border-radius: 26px;
  background: var(--milk); color: var(--cherry);
  box-shadow: 0 26px 50px -30px rgba(40, 6, 14, .7);
}
.fz-progress { display: flex; gap: 6px; margin: 0 -4px 18px; padding: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.fz-progress::-webkit-scrollbar { display: none; }
.fz-progress button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px 0 6px;
  border: 0; border-radius: 20px 20px 8px 8px;
  background: var(--cream); color: var(--cherry-soft);
  font: 700 13px/1 var(--f-body); white-space: nowrap; cursor: pointer;
}
.fz-progress .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 14px 14px 6px 6px; background: rgba(59, 26, 32, .08); font: 700 12px var(--f-display); }
.fz-progress .is-done .n { background: var(--pink); color: var(--cherry); }
.fz-progress [aria-current="step"] { background: var(--cherry); color: var(--milk); }
.fz-progress [aria-current="step"] .n { background: var(--berry-strong); color: var(--milk); }
.fz-progress .lbl { display: none; }
.fz-progress [aria-current="step"] .lbl { display: inline; }

.fz-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.fz-step[hidden] { display: none; }
.fz-step.is-entering { animation: step-in .4s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
.fz-step__title { margin: 0 0 6px; padding: 0; font: 700 22px/1.2 var(--f-display); letter-spacing: -.01em; }
.fz-step__hint { margin: 0 0 18px; font-size: 15px; color: var(--cherry-soft); }
.fz-group { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.fz-group__label { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 0; font-weight: 800; font-size: 14px; }
.fz-group__label small { font-weight: 600; color: var(--cherry-soft); }
.fz-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--cream); font-size: 14px; }
.fz-size { margin: 0; font-weight: 700; font-size: 15px; color: var(--cherry); }
.opt-grid--frames { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.frame-ico { display: block; border: 2px solid var(--berry-strong); border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(224, 52, 79, .14) 0 4px, transparent 4px 8px); }
.frame-ico.is-arch { border-radius: 50% 50% 3px 3px / 46% 46% 3px 3px; }
.opt__sub { font-size: 11px; font-weight: 600; color: var(--cherry-soft); }
.sw--clear .sw__dot { background: radial-gradient(circle at 34% 30%, #fff 0 10%, transparent 34%), linear-gradient(135deg, rgba(230, 238, 245, .7), rgba(200, 214, 226, .35)); box-shadow: inset 0 0 0 1.5px #B8C6D3, 0 6px 12px -6px rgba(59, 26, 32, .4); }
.sw--greenery .sw__dot { background: radial-gradient(ellipse 34% 16% at 32% 40%, #8FAE5A 92%, transparent), radial-gradient(ellipse 34% 16% at 66% 62%, #4C6B2E 92%, transparent), radial-gradient(ellipse 30% 14% at 60% 30%, #7C9A4A 92%, transparent), #6E9B4A; }
.fz-actions--quiet { margin: 4px 0 20px; }
.fz-actions--quiet .btn { min-height: 44px; font-size: 14px; }
.fz-step .btn--lg { margin-top: 4px; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.opt { position: relative; display: block; }
.opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.opt > input:disabled { cursor: not-allowed; }
.opt__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 88px; padding: 10px 6px;
  border: 2px solid rgba(59, 26, 32, .12); border-radius: 20px 20px 10px 10px;
  background: #fff; text-align: center;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease-spring);
}
.opt__box svg { width: 36px; height: 36px; color: var(--berry-strong); }
.opt:hover .opt__box { border-color: rgba(59, 26, 32, .35); }
.opt > input:checked + .opt__box { border-color: var(--berry-strong); background: #FFF0F2; transform: translateY(-2px); }
.opt > input:focus-visible + .opt__box { outline: 3px solid var(--berry); outline-offset: 2px; }
.opt > input:disabled + .opt__box { opacity: .38; }

.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 14px 6px; }
.sw .opt__box { min-height: 0; padding: 4px 2px; border: 0; background: none; gap: 6px; font-weight: 600; font-size: 12px; }
.sw > input:checked + .opt__box { background: none; transform: none; }
.sw__dot {
  position: relative; display: block; width: 52px; height: 52px; border-radius: 50%;
  background: var(--c, #ddd);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 6px 12px -6px rgba(59, 26, 32, .5);
  transition: box-shadow .2s, transform .25s var(--ease-spring);
}
.sw > input:checked + .opt__box .sw__dot { box-shadow: 0 0 0 3px var(--milk), 0 0 0 5.5px var(--berry-strong); transform: scale(1.04); }
.sw > input:checked + .opt__box .sw__dot::after {
  content: ""; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--berry-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%;
}
.sw > input:focus-visible + .opt__box .sw__dot { outline: 3px solid var(--berry); outline-offset: 5px; }
.sw--chrome .sw__dot { background: radial-gradient(circle at 34% 28%, #fff 0 8%, transparent 26%), radial-gradient(circle at 40% 36%, color-mix(in srgb, var(--c) 40%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000)); }
.sw--matte .sw__dot { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .7) 0 10%, transparent 34%), var(--c); }
.sw--sequin .sw__dot { background: var(--seq) , var(--c); animation: sw-shine 3s ease-in-out infinite; background-size: 7px 6px, auto; }
.sw--fabric .sw__dot { background: repeating-linear-gradient(90deg, var(--c) 0 3px, var(--c2) 6px, var(--c) 9px); }
.sw--velvet .sw__dot { background: linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 50%), repeating-linear-gradient(90deg, var(--c) 0 4px, var(--c2) 8px, var(--c) 12px); }
.sw--palette .sw__dot { background: conic-gradient(var(--stops)); }
@keyframes sw-shine { 50% { filter: brightness(1.18) saturate(1.2); } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; display: inline-flex; }
.chip-opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.chip-opt > input:checked + .chip { background: var(--cherry); color: var(--milk); border-color: var(--cherry); }
.chip-opt > input:focus-visible + .chip { outline: 3px solid var(--berry); outline-offset: 2px; }
.chip-opt > input:disabled + .chip { opacity: .4; }
.chip .ico { width: 18px; height: 18px; }

.fz-input { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid rgba(59, 26, 32, .16); border-radius: 16px; background: #fff; font-size: 17px; }
.fz-input:focus { border-color: var(--berry-strong); outline: none; box-shadow: 0 0 0 4px rgba(224, 52, 79, .16); }
.fz-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fz-suggest button { min-height: 36px; padding: 0 12px; border: 1px dashed rgba(59, 26, 32, .35); border-radius: 18px 18px 7px 7px; background: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.fz-suggest button:hover { background: var(--cream); }
.fz-font-script { font-family: 'Marck Script', cursive; font-size: 18px; font-weight: 400; }
.fz-font-classic { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; }
.fz-font-modern { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 13px; }

.fz-sum { margin: 0 0 18px; padding: 0; }
.fz-sum div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px dashed rgba(59, 26, 32, .16); font-size: 15px; }
.fz-sum dt { font-weight: 800; }
.fz-sum dd { margin: 0; }
.fz-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; padding: 14px 16px; border-radius: 18px 18px 8px 8px; background: var(--cream); }
.fz-total strong { font: 700 22px var(--f-display); }
.fz-total__note { margin: 0 0 18px; font-size: 13px; color: var(--cherry-soft); }
.fz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.fz-actions .btn { min-height: 50px; padding: 0 12px; font-size: 15px; }
.fz-actions .btn--berry { grid-column: 1 / -1; }

.fz-nav {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: auto -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(59, 26, 32, .08);
  border-radius: 0 0 26px 26px;
  background: var(--milk);
}
.fz-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--cherry-soft); font-weight: 700; font-size: 14px; cursor: pointer; }
.fz-reset:hover { color: var(--berry-ink); }
.fz-reset .ico { width: 18px; height: 18px; }
@media (max-width: 420px) {
  .fz-reset__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fz-nav .btn--sm { padding: 0 14px; }
}

.fz-fallback { margin-top: 20px; padding: 18px 20px; border-radius: 20px; background: rgba(255, 253, 249, .14); font-weight: 600; }
.fz-fallback a { color: var(--milk); }

/* Слои эскиза: плавная смена */
.fz-in { animation: fz-in .5s var(--ease-out) both; }
.fz-out { animation: fz-out .32s ease both; pointer-events: none; }
.fz-pop { transform-box: fill-box; transform-origin: 50% 50%; animation: fz-pop .6s var(--ease-spring) both; animation-delay: calc(var(--d, 0) * 1ms); }
.fz-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: fz-grow .55s var(--ease-spring) both; animation-delay: calc(var(--d, 0) * 1ms); }
.fz-wl { transform-box: fill-box; transform-origin: 100% 60%; animation: flap .32s ease-in-out infinite alternate; }
.fz-wr { transform-box: fill-box; transform-origin: 0 60%; animation: flap .32s ease-in-out infinite alternate; }
.fz-bf { animation: bf-float 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -1ms); }
.fz-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite alternate; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.fz-twinkle { transform-box: fill-box; transform-origin: 50% 50%; animation: twinkle 2.8s ease-in-out infinite; }
@keyframes fz-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fz-out { to { opacity: 0; } }
@keyframes fz-pop { from { opacity: 0; transform: scale(.1); } 50% { opacity: 1; } }
@keyframes fz-grow { from { opacity: 0; transform: scaleY(.2); } }
@keyframes flap { to { transform: scaleX(.3); } }
@keyframes bf-float { to { transform: translate(6px, -8px); } }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }

@media (min-width: 980px) {
  .fz-app { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
  .fz-stage { top: calc(var(--header-h) + 20px); padding: 10px; border-radius: 32px; }
  .fz-canvas { height: auto; aspect-ratio: 800 / 640; border-radius: 24px; }
  .fz-stage__bar { padding: 12px 6px 4px 16px; }
  .fz-price strong { font-size: 22px; }
  .fz-panel { padding: 26px 26px 0; border-radius: 32px; min-height: 640px; }
  .fz-nav { margin-inline: -26px; padding-inline: 26px; border-radius: 0 0 32px 32px; }
  .fz-progress .lbl { display: inline; }
  .fz-progress button { padding-right: 14px; }
  .fz-presets { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

/* ---------- Модальное окно заявки ---------- */
.modal { width: min(94vw, 500px); max-height: 92dvh; padding: 0; border: 0; border-radius: 28px; background: var(--milk); color: var(--cherry); box-shadow: 0 40px 80px -30px rgba(40, 6, 14, .7); }
.modal[open] { animation: pop-in .4s var(--ease-spring) both; }
.modal::backdrop { background: rgba(59, 26, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__body { position: relative; padding: 28px 22px 24px; }
.modal__close { position: absolute; right: 10px; top: 10px; }
.modal__title { margin: 0 44px 8px 0; font: 700 24px/1.2 var(--f-display); }
.modal__text { margin: 0 0 18px; color: var(--cherry-soft); font-size: 15px; }

/* ---------- Формы ---------- */
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid rgba(59, 26, 32, .2); border-radius: 16px;
  background: #fff; font-size: 16px; line-height: 1.3;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%233B1A20' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--berry-strong); box-shadow: 0 0 0 4px rgba(224, 52, 79, .16); }
.field [aria-invalid="true"] { border-color: var(--berry-ink); background: #FFF4F5; }
.field__err { margin: 0; min-height: 0; font-size: 13px; font-weight: 600; color: var(--berry-ink); }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent__label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500 !important; font-size: 13px !important; line-height: 1.45; color: var(--cherry-soft); cursor: pointer; }
.consent__label input { flex: none; width: 20px !important; height: 20px; min-height: 0 !important; margin: 1px 0 0; padding: 0; accent-color: var(--berry-strong); cursor: pointer; }
.consent__label input[aria-invalid="true"] { outline: 2px solid var(--berry-ink); outline-offset: 2px; }
.lead-form__attach { font-size: 14px; }
.lead-form__attach summary { cursor: pointer; font-weight: 700; color: var(--berry-ink); }
.lead-form__attach pre { margin: 8px 0 0; padding: 12px; border-radius: 14px; background: var(--cream); white-space: pre-wrap; font: 500 13px/1.5 var(--f-body); }
.lead-form__done { margin: 0; padding: 14px 16px; border-radius: 16px; background: #EEF3DD; color: #34401A; font-weight: 700; }

/* ---------- Как работаем ---------- */
/* «Как работаем» идёт сразу за конструктором: переход даёт нижняя волна конструктора, своя верхняя не нужна */
#process > .wave--top { display: none; }
.process { --sec-bg: var(--powder); padding-bottom: clamp(40px, 6vw, 72px); }
.steps { position: relative; display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps::before {
  content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 0;
  border-left: 2.5px dashed rgba(200, 34, 63, .45);
}
.step { position: relative; padding-left: 78px; }
.step__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 56px; height: 64px;
  border-radius: 28px 28px 12px 12px;
  background: var(--berry-strong); color: var(--milk);
  font: 800 24px var(--f-display);
  box-shadow: 0 0 0 5px var(--powder);
}
.step:nth-child(2) .step__num { background: var(--olive-deep); }
.step:nth-child(3) .step__num { background: var(--cherry); }
.step:nth-child(4) .step__num { background: var(--gold); color: var(--cherry); }
.step__title { margin: 6px 0 8px; font: 700 19px/1.25 var(--f-display); }
.step p { margin: 0; max-width: 36ch; font-size: 15.5px; color: var(--cherry-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before { left: 40px; right: 40px; top: 32px; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 2.5px dashed rgba(200, 34, 63, .45); }
  .step { padding-left: 0; padding-top: 88px; }
}

/* ---------- Цифры: оливковый бархат + пайеточные таблички ---------- */
.numbers { --sec-bg: var(--powder); position: relative; background: var(--powder); padding: 0 var(--gutter) clamp(64px, 9vw, 112px); }
.numbers .container {
  position: relative; overflow: hidden;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 64px);
  border-radius: clamp(80px, 22vw, 240px) clamp(80px, 22vw, 240px) 32px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 30%, rgba(0, 0, 0, .22)),
    repeating-linear-gradient(90deg, #6A7630 0, #8B9842 13px, #6A7630 26px, #57621F 34px, #6A7630 44px);
  color: var(--milk);
  text-align: center;
}
.h2--light .script-over { color: var(--gold-light); margin-inline: auto; }
.num-list { display: grid; gap: 22px; margin: 40px auto 0; padding: 0; list-style: none; max-width: 980px; }
.num {
  --sq-h: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 34px 18px 30px;
  border-radius: 999px 999px 22px 22px;
  box-shadow: 0 20px 30px -16px rgba(0, 0, 0, .5);
}
.num__val {
  display: grid; place-items: center;
  width: clamp(120px, 34vw, 150px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--milk); color: var(--cherry);
  font: 800 clamp(30px, 8vw, 42px)/1 var(--f-display);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
}
.num__label { padding: 6px 14px; border-radius: 14px 14px 6px 6px; background: var(--milk); color: var(--cherry); font-weight: 700; font-size: 15px; }
@media (min-width: 700px) { .num-list { grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 660px; } }

/* ---------- Отзывы ---------- */
.reviews { padding-top: clamp(56px, 8vw, 96px); }
.reviews .wave path { fill: var(--page); }
.review-list { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.review { transform: rotate(calc(var(--tilt) * .6)); }
.review--text {
  display: flex; flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 28px 28px 28px 8px;
  background: var(--bg); box-shadow: var(--shadow-soft);
}
.review__quote { width: 36px; height: 30px; color: var(--berry); margin-bottom: 14px; }
.review__text { margin: 0 0 18px; font-size: 16.5px; line-height: 1.55; }
.review__who { margin: auto 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 800; }
.review__what { font-weight: 500; font-size: 14px; color: var(--cherry-soft); }
.review--shot { display: grid; place-items: center; }
.review__phone {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  width: min(100%, 280px); min-height: 340px;
  padding: 44px 16px 20px;
  border: 8px solid var(--cherry); border-radius: 38px;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 138, 62, .12) 0 2px, transparent 3px) 0 0 / 22px 22px,
    #EFE5DA;
  box-shadow: var(--shadow);
}
.review__phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 70px; height: 18px; translate: -50% 0; border-radius: 12px; background: var(--cherry); }
.review__bubble { height: 46px; width: 78%; border-radius: 16px 16px 16px 4px; background: #fff; opacity: .85; }
.review__bubble--short { width: 52%; height: 32px; }
.review__bubble--out { align-self: flex-end; width: 60%; border-radius: 16px 16px 4px 16px; background: #DCF3C9; }
.review__ph { margin: auto 0 0; text-align: center; font-size: 14px; font-weight: 700; }
@media (min-width: 900px) {
  .review-list { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
  .review { transform: rotate(var(--tilt)); }
  .review:nth-child(2) { margin-top: 30px; }
}

/* ---------- Финальный призыв ---------- */
.cta { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 10vw, 140px); }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.cta__photo {
  position: relative; overflow: hidden;
  height: 340px;
  border-radius: 200px 200px 28px 28px;
  box-shadow: var(--shadow);
}
.cta__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(224, 52, 79, 0) 40%, rgba(208, 44, 72, .55)); }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta__card {
  position: relative; z-index: 2;
  margin: -90px 6px 0;
  padding: 28px 20px 24px;
  border-radius: 30px;
  background: var(--milk);
  box-shadow: 0 30px 60px -30px rgba(59, 26, 32, .6);
}
.cta__title { font-size: min(46px, calc((100vw - 84px) / 10.8)); }  /* «ЗАБРОНИРУЙТЕ» должно помещаться в карточку */
.cta__text { margin: 26px 0 22px; color: var(--cherry-soft); }
.cta__msg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 0; font-size: 14px; color: var(--cherry-soft); }
.cta__msg a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 700; color: var(--cherry); text-decoration: none; }
.cta__msg a:hover { color: var(--berry-ink); }
.cta__msg a:first-of-type .ico { color: #1A9E4E; }
.cta__msg a:last-of-type .ico { color: #5B4BE8; }
.cta__msg .ico { width: 18px; height: 18px; }
@media (min-width: 960px) {
  .cta__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .cta__photo { grid-column: 1 / 9; grid-row: 1; height: 720px; border-radius: 360px 360px 36px 36px; }
  .cta__photo::after { background: linear-gradient(90deg, rgba(208, 44, 72, 0) 50%, rgba(208, 44, 72, .5)); }
  .cta__card { grid-column: 7 / 13; grid-row: 1; margin: 0; padding: 40px 36px 32px; }
  .cta__title { font-size: min(46px, calc((min(100vw, 1240px) - 208px) / 21.6)); }
}

/* ---------- Подвал ---------- */
.footer { --sec-bg: var(--cherry); position: relative; padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--cherry); color: var(--milk); }
.footer__inner { display: grid; gap: 28px; }
.footer .logo__img { height: clamp(96px, 22vw, 128px); }
.footer__tag { margin: 12px 0 0; font: 400 26px/1.2 var(--f-script); color: var(--pink); }
.footer__contacts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer__contacts a, .footer__city { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--milk); text-decoration: none; font-weight: 600; }
.footer__contacts a:hover { color: var(--gold-light); }
.footer__contacts .ico { color: var(--gold); }
.footer__note { margin-left: -4px; white-space: nowrap; font-weight: 500; color: rgba(255, 253, 249, .7); }
.footer__copy { margin: 0; font-size: 14px; color: rgba(255, 253, 249, .65); }
.footer__legal { margin-left: 18px; color: rgba(255, 253, 249, .8); }
.footer__legal:hover { color: var(--gold-light); }
@media (min-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .footer__contacts { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .footer__copy { grid-column: 1 / -1; }
}

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100vw - 32px); padding: 14px 20px;
  border-radius: 20px 20px 8px 8px;
  background: var(--cherry); color: var(--milk);
  font-weight: 700; font-size: 15px; text-align: center;
  box-shadow: var(--shadow);
  translate: -50% 140%; opacity: 0;
  transition: translate .4s var(--ease-spring), opacity .3s;
  pointer-events: none;
}
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ---------- Эффекты-холсты ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bfly-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.bfly {
  position: absolute; left: 0; top: 0;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  will-change: transform;
}
.bfly::before { content: ""; position: absolute; inset: -70%; border-radius: 50%; background: radial-gradient(closest-side, var(--g), transparent); }
.bfly::after { content: ""; position: absolute; left: 50%; top: 16%; width: 9%; height: 66%; translate: -50% 0; border-radius: 4px; background: rgba(59, 26, 32, .55); }
.bfly__w { position: absolute; top: 0; width: 50%; height: 100%; background: center / contain no-repeat; animation: bfly-flap .3s ease-in-out infinite alternate; }
.bfly__w--l { left: 0; transform-origin: 100% 50%; }
.bfly__w--r { right: 0; transform-origin: 0 50%; }
@keyframes bfly-flap { to { transform: scaleX(.22); } }
.fx-canvas--confetti { z-index: 95; }

/* ---------- Без анимаций для тех, кто их отключил ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Страница политики конфиденциальности ---------- */
.legal-page { background: var(--page); }
.legal-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 249, 245, .96); box-shadow: 0 10px 30px -24px rgba(59, 26, 32, .5); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.legal { max-width: 760px; padding-block: 40px 64px; }
.legal__title { margin: 0; font: 800 min(44px, calc((min(100vw, 760px) - 64px) / 17))/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
@media (max-width: 600px) { .legal__title { font-size: min(25px, calc((100vw - 32px) / 15)); text-transform: none; letter-spacing: -.01em; } }  /* «конфиденциальности» — длинное слово, капсом не влезает в телефон */
.legal__toc a { overflow-wrap: anywhere; }
.legal__meta { margin: 12px 0 28px; color: var(--cherry-soft); font-size: 15px; }
.legal__toc { margin-bottom: 36px; padding: 20px 24px; border-radius: 22px; background: var(--milk); box-shadow: var(--shadow-soft); }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; }
.legal__toc li { margin: 4px 0; break-inside: avoid; }
.legal section { margin-bottom: 28px; }
.legal h2 { margin: 0 0 10px; font: 700 20px/1.3 var(--f-display); }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
.legal__consent { padding: 24px; border-radius: 22px; background: var(--milk); border: 1.5px solid var(--pink); }
.legal__back { margin-top: 32px; }
.legal-footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--cherry); color: rgba(255, 253, 249, .75); font-size: 14px; }
