/* ==========================================================================
   ehroz.flower — сайты и Telegram-боты для цветочных магазинов
   ========================================================================== */

@font-face {
  font-family: 'Le Murmure';
  src: url('../assets/fonts/le-murmure.woff2') format('woff2'),
       url('../assets/fonts/le-murmure.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FCF5F7;
  --paper: #FFFFFF;
  --ink: #2A1D24;
  --ink-2: #6E5D66;
  --ink-3: #A08F98;
  --line: rgba(42, 29, 36, .1);

  --pink: #F48FBB;
  --pink-deep: #DB5590;
  --blush: #FBE4ED;
  --blush-2: #F7D2E1;
  --lav: #C8B6F2;
  --lav-deep: #8F76D8;
  --lav-soft: #F0EBFC;
  --peach: #FBD9C6;
  --coral: #EC5B4F;
  --gold: #F2C35B;
  --sage: #87A182;
  --plum: #2D1626;

  --serif: 'Le Murmure', 'Manrope', sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;

  --ease: cubic-bezier(.22, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);

  --container: 1320px;
  --pad: clamp(16px, 4vw, 48px);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blush-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; border-radius: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { position: relative; padding: clamp(88px, 12vw, 168px) 0; }

/* ---------- Типографика ---------- */

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}
.h2 em,
.hero__title em,
.contact__title em,
.result em {
  font-style: italic;
  font-weight: 300;
  color: var(--pink-deep);
}
.h2--light { color: #fff; }
.h2--light em { color: #FFC4DD; }

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}

.label {
  display: inline-flex;
  align-items: baseline;
  gap: .7em;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pink-deep);
}
.label--light { color: rgba(255, 255, 255, .78); }
.label--light .label__num { color: #FFC4DD; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--pink-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Кнопки ---------- */

.btn {
  --bg-btn: var(--ink);
  --fg-btn: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--bg-btn);
  color: var(--fg-btn);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--wide { min-width: min(100%, 520px); min-height: 60px; font-size: 16px; }
.btn--coral { --bg-btn: var(--coral); }
.btn--coral:hover { box-shadow: 0 10px 30px -8px rgba(236, 91, 79, .6); }
.btn--pink { --bg-btn: var(--pink); }
.btn--pink:hover { --bg-btn: var(--pink-deep); box-shadow: 0 14px 34px -10px rgba(219, 85, 144, .55); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { --bg-btn: var(--ink); --fg-btn: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15.5px;
}
.pill-cta span {
  display: grid;
  place-items: center;
  min-width: 230px;
  height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.pill-cta i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(244, 143, 187, .55);
  transition: transform .6s var(--ease-out), background .4s var(--ease);
  animation: ping 2.8s var(--ease-soft) infinite;
}
.pill-cta i svg { width: 22px; height: 22px; }
.pill-cta:hover span { background: var(--blush); }
.pill-cta:hover i { transform: rotate(45deg); background: var(--pink-deep); }
.pill-cta--full { width: 100%; }
.pill-cta--full span { flex: 1; min-width: 0; }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(244, 143, 187, .55); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(244, 143, 187, 0); }
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  letter-spacing: 0;
  color: #fff;
}
.link-line span {
  position: relative;
  width: 56px;
  height: 1px;
  background: currentColor;
  transition: width .5s var(--ease-out);
}
.link-line span::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.link-line:hover span { width: 92px; }
.link-line--dark { color: var(--ink); margin-top: 36px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }

/* ---------- Медиа + заглушки до фото ---------- */

.media { position: relative; overflow: hidden; }
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.media__fallback { position: absolute; inset: 0; transition: opacity .8s var(--ease); }
.media__fallback > svg { width: 100%; height: 100%; }
.js .media > img { opacity: 0; transition: opacity 1s var(--ease); }
.js .media.has-img > img { opacity: 1; }
.media.has-img > .media__fallback { opacity: 0; }

/* ---------- Блёстки ---------- */

.sparks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 18px);
  height: var(--s, 18px);
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9));
  animation: twinkle 3.4s var(--ease-soft) infinite;
  animation-delay: var(--d, 0s);
  pointer-events: none;
  z-index: 2;
}
.spark--pink { color: var(--pink); filter: drop-shadow(0 0 10px rgba(244, 143, 187, .8)); }
@keyframes twinkle {
  0%, 100% { transform: scale(.35) rotate(0deg); opacity: .15; }
  50% { transform: scale(1) rotate(90deg); opacity: 1; }
}

.petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ---------- Интро ---------- */

.intro { display: none; }
.js .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: clip-path 1.1s var(--ease-out), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
  animation: introFailsafe 0s 4.5s forwards;
}
.intro.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes introFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

.intro__bloom { width: 120px; height: 120px; overflow: visible; animation: spinIn 1.6s var(--ease-out) both; }
.intro__bloom ellipse,
.intro__bloom circle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: petalIn .9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 55ms);
}
.intro__bloom circle { transform-origin: 50% 50%; }
@keyframes petalIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spinIn { from { transform: rotate(-60deg); } to { transform: rotate(0); } }

.intro__word {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0;
  animation: fadeUp 1s .35s var(--ease-out) both;
}
.intro__word em { color: var(--pink-deep); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Навигация ---------- */

.nav {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 calc(10px + clamp(14px, 2.4vw, 32px));
  color: #fff;
  transition: transform .6s var(--ease-out), color .4s var(--ease), top .4s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav.is-light { top: 12px; color: var(--ink); }

.nav__logo,
.nav__menu {
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__logo {
  padding: 4px 18px 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.9;
}
.nav__logo em { font-style: italic; opacity: .85; }
.nav__menu { display: flex; gap: 2px; padding: 5px; }
.nav__menu a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background .3s var(--ease);
}
.nav__menu a:hover,
.nav__menu a.is-active { background: rgba(255, 255, 255, .22); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__city { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-size: 14px; font-weight: 500; }
.nav__city svg { width: 16px; height: 16px; }

.nav.is-light .nav__logo,
.nav.is-light .nav__menu,
.nav.is-light .icon-btn {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(42, 29, 36, .08);
  box-shadow: 0 8px 30px -12px rgba(90, 40, 70, .18);
}
.nav.is-light .nav__logo em { color: var(--pink-deep); opacity: 1; }
.nav.is-light .nav__menu a:hover,
.nav.is-light .nav__menu a.is-active { background: var(--blush); }

.nav__burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav__burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.nav.is-light .nav__burger { background: rgba(255, 255, 255, .8); border-color: rgba(42, 29, 36, .08); }
.menu-open .nav__burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 22px; transform: rotate(-45deg); }
.menu-open .nav { color: var(--ink); transform: none; }
.menu-open .nav .nav__logo,
.menu-open .nav .nav__burger { background: #fff; border-color: var(--line); }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--pad) 32px;
  background:
    radial-gradient(60% 40% at 90% 10%, rgba(200, 182, 242, .45), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(244, 143, 187, .35), transparent 70%),
    var(--bg);
  clip-path: circle(0% at calc(100% - 50px) 44px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-out), visibility 0s .8s;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 50px) 44px); visibility: visible; transition: clip-path .8s var(--ease-out); }
.mmenu__links { display: flex; flex-direction: column; }
.mmenu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(36px, 10vw, 50px);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .7s var(--ease-out);
}
.mmenu__links a i { font-size: 15px; color: var(--pink-deep); font-family: var(--sans); font-style: normal; font-weight: 600; }
.menu-open .mmenu__links a { opacity: 1; transform: none; }
.menu-open .mmenu__links a:nth-child(1) { transition-delay: .12s; }
.menu-open .mmenu__links a:nth-child(2) { transition-delay: .17s; }
.menu-open .mmenu__links a:nth-child(3) { transition-delay: .22s; }
.menu-open .mmenu__links a:nth-child(4) { transition-delay: .27s; }
.menu-open .mmenu__links a:nth-child(5) { transition-delay: .32s; }
.menu-open .mmenu__links a:nth-child(6) { transition-delay: .37s; }
.menu-open .mmenu__links a:nth-child(7) { transition-delay: .42s; }
.mmenu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero { height: 100vh; height: 100svh; min-height: 660px; padding: 10px; }
.hero__frame {
  position: relative;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #8E9CC0;
}
.hero__media { position: absolute; inset: 0; z-index: -3; will-change: transform; }
.hero__media > img { transform: scale(1.14); transition: transform 2.6s var(--ease-out), opacity 1s var(--ease); }
.hero.is-in .hero__media > img { transform: scale(1); }

.hero__fallback {
  background:
    radial-gradient(70% 55% at 22% 18%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(172deg, #6B83B5 0%, #8E9BD0 28%, #C7A8D9 55%, #F0B5CC 76%, #FAD9CF 100%);
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .8;
  animation: drift 22s var(--ease-soft) infinite alternate;
}
.blob--1 { width: 46vw; height: 46vw; left: 50%; top: -18%; background: #F7BCD5; }
.blob--2 { width: 36vw; height: 36vw; left: -8%; top: 30%; background: #B8B4EC; animation-duration: 26s; }
.blob--3 { width: 60vw; height: 30vw; left: 10%; bottom: -16%; background: #FFF1EA; opacity: .9; animation-duration: 30s; }
.blob--4 { width: 30vw; height: 20vw; right: -6%; bottom: 8%; background: #FFFFFF; opacity: .7; animation-duration: 18s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
}

.hero__bouquet {
  position: absolute;
  right: 6%;
  bottom: -4%;
  width: min(54vw, 82vh);
  aspect-ratio: 1;
  filter: drop-shadow(0 30px 50px rgba(70, 40, 90, .25));
  animation: sway 9s var(--ease-soft) infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 12, 20, .32) 0%, rgba(22, 12, 20, 0) 22%, rgba(22, 12, 20, 0) 42%, rgba(22, 12, 20, .58) 100%),
    linear-gradient(90deg, rgba(22, 12, 20, .32) 0%, rgba(22, 12, 20, 0) 62%);
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 clamp(20px, 4vw, 60px) clamp(28px, 4.6vw, 60px);
  will-change: transform, opacity;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  font-weight: 500;
}
.hero__eyebrow svg { width: 15px; height: 15px; color: #FFD1E4; }

.hero__title {
  max-width: 17ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, min(6.8vw, 12vh), 7.2rem);
  line-height: .98;
  letter-spacing: 0;
  text-shadow: 0 2px 30px rgba(30, 10, 25, .18);
}
.hero__title em { color: #FFD3E6; }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(22px, 3vw, 36px);
}
.hero__lead { max-width: 30em; font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(255, 255, 255, .88); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }

.hero__sign {
  position: absolute;
  top: 104px;
  right: clamp(20px, 4vw, 60px);
  z-index: 3;
  max-width: 250px;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
  color: rgba(255, 255, 255, .82);
}
.hero__sign span { font-family: var(--serif); font-size: 22px; color: #fff; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  width: 24px;
  height: 38px;
  margin-left: -12px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
  display: none;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.8s var(--ease-soft) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Тост «Новый заказ» */
.toast {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  top: 46%;
  z-index: 4;
  width: 300px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 24px 60px -20px rgba(40, 15, 35, .45);
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition: opacity .7s var(--ease), transform .9s var(--ease-out);
}
.hero.is-in .toast { opacity: 1; transform: none; transition-delay: 1.3s; }
.toast__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.toast__head time { margin-left: auto; font-weight: 500; color: var(--ink-3); }
.toast__dot { width: 8px; height: 8px; border-radius: 50%; background: #3CC77A; box-shadow: 0 0 0 0 rgba(60, 199, 122, .6); animation: dotPing 2s infinite; }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 rgba(60, 199, 122, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(60, 199, 122, 0); } }
.toast__body { display: flex; align-items: center; gap: 12px; margin-top: 10px; transition: opacity .45s var(--ease), transform .55s var(--ease-out), filter .45s var(--ease); }
.toast__body.is-swap { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.toast__thumb {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--blush), var(--lav-soft));
}
.toast__thumb svg,
.toast__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.toast__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.toast__text b { font-size: 14.5px; font-weight: 600; }
.toast__text span { font-size: 13px; color: var(--ink-2); }

/* Сплит-заголовки */
.w { display: inline-block; white-space: nowrap; }
.nw { white-space: nowrap; }
.js [data-split] .w {
  opacity: 0;
  transform: translateY(.45em) rotate(2deg);
  filter: blur(10px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out), filter .9s var(--ease);
  transition-delay: calc(var(--wi) * 42ms);
}
.js [data-split].is-in .w,
.js .hero.is-in [data-split] .w { opacity: 1; transform: none; filter: none; }

.js .hero__eyebrow,
.js .hero__row,
.js .hero__sign {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out);
}
.js .hero.is-in .hero__eyebrow { opacity: 1; transform: none; }
.js .hero.is-in .hero__row { opacity: 1; transform: none; transition-delay: .7s; }
.js .hero.is-in .hero__sign { opacity: 1; transform: none; transition-delay: 1s; }

/* ---------- Бегущая строка ---------- */

.ticker {
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); }
.ticker__group span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}
.ticker__group span:nth-of-type(2n) { color: var(--pink-deep); }
.ticker__group svg { width: 20px; height: 20px; flex: none; color: var(--pink); animation: spin 8s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Появление ---------- */

/* через animation + translate, чтобы не перебивать hover-трансформации */
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: revealIn 1.2s var(--ease-out) var(--d, 0s) both; }
@keyframes revealIn {
  from { opacity: 0; translate: 0 34px; }
  to { opacity: 1; translate: 0 0; }
}

/* Свечение под курсором */
.glow { position: relative; }
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 143, 187, .16), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.glow:hover::after { opacity: 1; }

/* ---------- 2. Проблема ---------- */

.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.problem__aside { position: sticky; top: 110px; }
.problem__aside .lead { margin-top: 24px; }

.problem__photo {
  margin-top: 40px;
  aspect-ratio: 4 / 4.4;
  max-height: 52vh;
  width: 100%;
  border-radius: var(--r-lg);
  background: #1E1726;
}
.problem__photo > img { transform: translateY(var(--py, 0)) scale(1.12); }
.problem__clock {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.problem__clock b {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.night {
  background:
    radial-gradient(50% 40% at 50% 45%, rgba(126, 104, 220, .45), transparent 70%),
    radial-gradient(40% 35% at 75% 80%, rgba(244, 143, 187, .25), transparent 70%),
    linear-gradient(160deg, #241B33, #160F1C);
  display: grid;
  place-items: center;
}
.night__glow {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 182, 242, .35), transparent 65%);
  animation: breathe 5s var(--ease-soft) infinite alternate;
}
@keyframes breathe { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.1); opacity: 1; } }
.night__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(68%, 260px);
  padding: 26px 14px 20px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.night__msg {
  align-self: flex-start;
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  animation: msgPop 6s var(--ease-out) infinite;
}
.night__msg--2 { animation-delay: .6s; }
.night__msg--3 { animation-delay: 1.2s; }
@keyframes msgPop {
  0% { opacity: 0; transform: translateY(10px) scale(.96); }
  10%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

.pains { counter-reset: pain; }
.pain {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 34px 28px 34px 0;
  border-top: 1px solid var(--line);
  border-radius: 4px;
  transition: background .5s var(--ease), padding .5s var(--ease-out);
}
.pain:last-child { border-bottom: 1px solid var(--line); }
.pain:hover { background: rgba(255, 255, 255, .7); padding-left: 20px; border-radius: 20px; }
.pain__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--blush-2);
  transition: color .4s var(--ease);
}
.pain:hover .pain__num { color: var(--pink); }
.pain h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}
.pain p { color: var(--ink-2); max-width: 36em; }

/* ---------- 3. Решение ---------- */

.solution {
  background:
    radial-gradient(50% 40% at 85% 30%, rgba(200, 182, 242, .35), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(251, 217, 198, .45), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--lav-soft) 50%, var(--bg));
}
.solution__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.solution__text .lead { margin-top: 24px; }

.benefits { margin-top: 36px; display: grid; gap: 4px; }
.benefits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(219, 85, 144, .22);
}
.benefits svg { width: 18px; height: 18px; margin-top: 4px; color: var(--pink); }
.benefits li:hover svg { animation: spin 1.4s var(--ease-out); }
.benefits p { color: var(--ink-2); }
.benefits b { color: var(--ink); font-weight: 600; }

.solution__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
}
.solution__bg {
  position: absolute;
  inset: 40px 0;
  border-radius: 40px;
  background: var(--blush);
}
.studio {
  background:
    radial-gradient(60% 50% at 20% 20%, #fff, transparent 70%),
    linear-gradient(150deg, #F9D9E6, #EBDDFB 60%, #FCE6D9);
}
.blob--a { width: 60%; height: 50%; left: -10%; top: 10%; background: #F7B3CF; }
.blob--b { width: 50%; height: 50%; right: -10%; top: 40%; background: #C8B6F2; animation-duration: 25s; }
.blob--c { width: 40%; height: 30%; left: 30%; bottom: -5%; background: #FFE3D2; animation-duration: 19s; }

.phone {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 620px;
  padding: 10px;
  border-radius: 50px;
  background: linear-gradient(145deg, #3A3238, #17121A);
  box-shadow:
    0 0 0 1.5px #4C434B,
    0 50px 90px -30px rgba(60, 20, 55, .55),
    0 20px 40px -20px rgba(60, 20, 55, .35);
  animation: floatY 7s var(--ease-soft) infinite alternate;
}
@keyframes floatY { from { transform: translateY(-10px) rotate(-1deg); } to { transform: translateY(10px) rotate(1deg); } }
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .6) 0 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(170deg, #F8E3EE, #E9E1FA 55%, #F7E6DE);
}
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 6px;
  font-size: 13px;
  font-weight: 700;
}
.phone__island { width: 92px; height: 26px; border-radius: 20px; background: #0E0B10; }
.phone__icons { display: flex; gap: 3px; align-items: flex-end; }
.phone__icons i { display: block; width: 4px; border-radius: 1px; background: var(--ink); }
.phone__icons i:nth-child(1) { height: 5px; }
.phone__icons i:nth-child(2) { height: 8px; }
.phone__icons i:nth-child(3) { height: 11px; }

.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 10px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tg-head__ava {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--pink), var(--lav-deep));
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
}
.tg-head__name { display: flex; flex-direction: column; line-height: 1.2; }
.tg-head__name b { font-size: 14px; }
.tg-head__name small { font-size: 12px; color: var(--ink-3); }

.tg-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 10px 14px;
  overflow: hidden;
}
.tg-msg {
  position: relative;
  align-self: flex-start;
  max-width: 94%;
  padding: 8px 10px 18px;
  border-radius: 16px 16px 16px 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(42, 29, 36, .08);
  font-size: 12px;
  line-height: 1.4;
}
.tg-msg--order { padding: 6px 6px 18px; }
.tg-msg--soft { background: #FFF6FA; }
.tg-msg__photo {
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(140deg, #FBE4ED, #EEE6FC);
}
.tg-msg__photo svg,
.tg-msg__photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.tg-msg__title { margin: 8px 4px 4px; font-weight: 700; font-size: 13px; }
.tg-msg dl { display: grid; gap: 2px; padding: 0 4px; }
.tg-msg dl div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px; }
.tg-msg dt { color: var(--ink-3); }
.tg-msg dd b { color: var(--ink); }
.tg-time { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; color: var(--ink-3); }
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 94%; }
.tg-kb span {
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-deep);
}
.tg-typing {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;
  background: #fff;
}
.tg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1s infinite; }
.tg-typing i:nth-child(2) { animation-delay: .15s; }
.tg-typing i:nth-child(3) { animation-delay: .3s; }
.tg-typing.is-on { display: flex; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.js [data-msg] { display: none; }
.js [data-msg].is-in { display: block; animation: msgIn .6s var(--ease-out) both; }
.js .tg-kb[data-msg].is-in { display: grid; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(.96); transform-origin: 0 100%; } to { opacity: 1; transform: none; } }

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(90, 40, 80, .35);
  max-width: 200px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  animation: floatY 6s var(--ease-soft) infinite alternate;
}
.float-chip svg { width: 18px; height: 18px; flex: none; color: var(--pink-deep); }
.float-chip--1 { left: -2%; top: 16%; animation-delay: -2s; }
.float-chip--1 svg { color: #2FB36D; }
.float-chip--2 { right: -3%; top: 40%; animation-delay: -4s; }
.float-chip--3 { left: -2%; bottom: 14%; }

.result {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.result__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--pink-deep);
}
.result p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

/* ---------- 4. Пакеты ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px 60px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head__side { display: grid; gap: 22px; justify-items: start; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center .h2 { max-width: 16ch; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(90, 40, 80, .3);
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  width: 50px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: var(--blush);
  transition: background .4s var(--ease);
}
.switch__thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(42, 29, 36, .2);
  transition: transform .5s var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--pink); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--pink-deep); outline-offset: 3px; }
.switch__text b { color: var(--pink-deep); }

.packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pack {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(42, 29, 36, .04), 0 30px 60px -40px rgba(90, 40, 80, .25);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease);
}
.pack:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -36px rgba(219, 85, 144, .35); }
.pack__media {
  aspect-ratio: 1;
  border-radius: 20px;
  background: radial-gradient(80% 70% at 50% 35%, #fff, var(--blush) 70%, #F6D6E3);
}
.pack__media > img { object-fit: contain; padding: 4%; mix-blend-mode: multiply; transition: transform 1.2s var(--ease-out), opacity 1s var(--ease); }
.pack:hover .pack__media > img { transform: scale(1.06); }
.pack__media .media__fallback { padding: 6% 6% 0; transition: transform 1.2s var(--ease-out), opacity .8s var(--ease); }
.pack:hover .pack__media .media__fallback { transform: scale(1.05) rotate(-1deg); }
.pack__index {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--pink-deep);
}
.pack__badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.pack__badge svg { width: 13px; height: 13px; color: var(--pink); animation: spin 6s linear infinite; }

.pack__body { display: flex; flex-direction: column; flex: 1; padding: 22px 14px 12px; }
.pack__name { font-family: var(--serif); font-size: 42px; font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.pack__type { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--pink-deep); }
.pack__list { display: grid; gap: 9px; margin: 22px 0 26px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pack__list li { position: relative; padding-left: 20px; }
.pack__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .5em;
  width: 8px;
  height: 8px;
  background: var(--pink);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.pack__list .pack__plus { padding-left: 0; font-weight: 600; color: var(--ink); }
.pack__list .pack__plus::before { display: none; }

.pack__foot { margin-top: auto; display: grid; gap: 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pack__term { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pack__term svg { width: 18px; height: 18px; color: var(--pink-deep); }
.pack__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
.pack__price small { font-size: 22px; font-style: italic; color: var(--ink-2); }
.pack__old {
  order: 5;
  width: 100%;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  display: none;
}
.packs.is-discount .pack__old { display: block; animation: fadeUp .6s var(--ease-out); }
.packs.is-discount .pack__price span { color: var(--pink-deep); }

.pack--hit {
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(150deg, var(--pink), var(--lav), var(--peach)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 40px 80px -40px rgba(219, 85, 144, .5);
}
@media (min-width: 1181px) {
  .pack--hit { transform: translateY(-14px); }
  .pack--hit:hover { transform: translateY(-22px); }
}

.terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 48px;
  color: var(--ink-2);
  font-size: 15px;
  text-align: center;
}
.terms p { display: inline-flex; align-items: center; gap: 10px; }
.terms svg { width: 14px; height: 14px; color: var(--pink); flex: none; }
.terms b { color: var(--ink); }

/* ---------- 5. Дополнительно ---------- */

.extras { padding-top: 0; }
.extras__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.extras__head { position: sticky; top: 110px; }
.extras__flower {
  width: 190px;
  aspect-ratio: 1;
  margin-top: 36px;
  animation: spin 40s linear infinite;
  opacity: .9;
}
.extras__list { border-top: 1px solid var(--line); }
.extra {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 28px 18px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.extra::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--blush), rgba(240, 235, 252, .8));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.extra:hover::before { transform: scaleX(1); }
.extra__name { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; line-height: 1.4; max-width: 30em; }
.extra__dots { flex: 1; min-width: 30px; border-bottom: 1.5px dotted rgba(42, 29, 36, .22); transform: translateY(-5px); }
.extra__price {
  font-family: var(--serif);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  color: var(--pink-deep);
}
.extra__price small { margin-left: 4px; font-size: .6em; font-style: italic; color: var(--ink-2); }

/* ---------- 6. Этапы ---------- */

.process {
  background:
    radial-gradient(40% 30% at 10% 30%, rgba(200, 182, 242, .22), transparent 70%),
    radial-gradient(40% 30% at 90% 70%, rgba(244, 143, 187, .18), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: 10% -10% auto;
  height: 80%;
  border: 1px solid rgba(219, 85, 144, .08);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.timeline { position: relative; max-width: 1040px; margin: 0 auto; }
.timeline__line {
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 40px;
  width: 0;
  border-left: 1.5px dashed rgba(219, 85, 144, .35);
}
.timeline__fill {
  position: absolute;
  left: -1.75px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--pink), var(--lav-deep));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  box-shadow: 0 0 12px rgba(244, 143, 187, .6);
}
.timeline__steps { display: grid; gap: clamp(20px, 3vw, 40px); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  min-height: 230px;
}
.step__star {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 46px;
  height: 46px;
  color: rgba(219, 85, 144, .3);
  transform: scale(.6) rotate(-45deg);
  transition: transform .9s var(--ease-out), color .5s var(--ease), filter .5s var(--ease);
}
.step__star svg { width: 100%; height: 100%; }
.step.is-active .step__star { color: var(--pink); transform: scale(1) rotate(0); filter: drop-shadow(0 0 12px rgba(244, 143, 187, .9)); }

.step__card {
  grid-row: 1;
  max-width: 340px;
  opacity: .35;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform 1s var(--ease-out);
}
.step.is-active .step__card { opacity: 1; transform: none; }
.step__num { font-family: var(--serif); font-size: 22px; color: var(--pink-deep); }
.step__card h3 { margin: 6px 0 8px; font-family: var(--serif); font-size: clamp(30px, 2.8vw, 40px); font-weight: 400; line-height: 1.05; }
.step__card p { color: var(--ink-2); }

.step__media {
  grid-row: 1;
  width: min(100%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251, 228, 237, .9), rgba(255, 255, 255, 0));
  overflow: visible;
  opacity: 0;
  transform: scale(.8) rotate(-8deg);
  transition: opacity 1s var(--ease), transform 1.4s var(--ease-out);
}
.step__media > img { border-radius: 50%; mix-blend-mode: multiply; }
.step__media .media__fallback { animation: spin 50s linear infinite; }
.step.is-active .step__media { opacity: 1; transform: none; }

.step:nth-child(odd) .step__card { grid-column: 3; justify-self: start; }
.step:nth-child(odd) .step__media { grid-column: 1; justify-self: end; }
.step:nth-child(even) .step__card { grid-column: 1; justify-self: end; text-align: right; }
.step:nth-child(even) .step__media { grid-column: 3; justify-self: start; }

.process__cta { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

/* ---------- 7. Доверие ---------- */

.trust { padding-bottom: 0; }
.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.trust__photo {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 40% 40% var(--r-lg) var(--r-lg);
  background: var(--lav-soft);
}
.trust__photo > img { object-position: 50% 30%; transform: translateY(var(--py, 0)) scale(1.12); }
.trust__photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.trust__photo figcaption span { font-family: var(--serif); font-size: 28px; }
.trust__photo figcaption small { font-size: 12.5px; color: var(--ink-2); }
.about {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 30%, #fff, transparent 70%),
    linear-gradient(170deg, #EEE6FC, #FBE4ED 70%, #FCE6D9);
}
.about__mono {
  position: absolute;
  top: 10%;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(140px, 18vw, 240px);
  font-weight: 300;
  line-height: 1;
  color: rgba(219, 85, 144, .14);
}
.about__bloom { position: absolute; width: 70%; aspect-ratio: 1; bottom: 14%; }

.trust__list { display: grid; gap: 0; margin-top: 40px; }
.trust__list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.trust__list li:last-child { border-bottom: 1px solid var(--line); }
.trust__num { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--pink); }
.trust__list h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.trust__list p { color: var(--ink-2); }
.brands-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.brands-inline span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink); background: #fff; }

.brands {
  margin-top: clamp(80px, 10vw, 140px);
  padding: 28px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.brands__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.brands__group { display: flex; align-items: center; gap: clamp(30px, 5vw, 80px); padding-right: clamp(30px, 5vw, 80px); }
.brands__group span {
  font-family: var(--serif);
  font-size: clamp(46px, 6.6vw, 96px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(42, 29, 36, .45);
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s var(--ease);
}
.brands__group span:hover { color: var(--pink-deep); -webkit-text-stroke-color: transparent; }
.brands__group svg { width: 26px; height: 26px; flex: none; color: var(--pink); }

/* ---------- 8. Акция ---------- */

.offer__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 680px;
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl);
  color: #fff;
  background: var(--plum);
}
.offer__media { position: absolute; inset: 0; z-index: -2; }
.offer__fallback {
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(244, 143, 187, .55), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(143, 118, 216, .5), transparent 70%),
    linear-gradient(150deg, #3B1B33, #24122A 60%, #1A1024);
}
.bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 160, .9), rgba(255, 214, 160, 0) 70%);
  filter: blur(2px);
  animation: bokeh 8s var(--ease-soft) infinite alternate;
}
.bokeh:nth-child(1) { width: 120px; height: 120px; left: 70%; top: 12%; }
.bokeh:nth-child(2) { width: 70px; height: 70px; left: 84%; top: 46%; animation-delay: -2s; }
.bokeh:nth-child(3) { width: 160px; height: 160px; left: 58%; top: 62%; opacity: .6; animation-delay: -4s; }
.bokeh:nth-child(4) { width: 50px; height: 50px; left: 92%; top: 82%; animation-delay: -1s; }
.bokeh:nth-child(5) { width: 90px; height: 90px; left: 40%; top: 8%; opacity: .5; animation-delay: -3s; }
.bokeh:nth-child(6) { width: 40px; height: 40px; left: 76%; top: 30%; animation-delay: -5s; }
@keyframes bokeh { from { transform: translateY(0) scale(1); opacity: .5; } to { transform: translateY(-20px) scale(1.15); opacity: 1; } }
.offer__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(30, 12, 28, .78) 0%, rgba(30, 12, 28, .45) 55%, rgba(30, 12, 28, .25) 100%);
}

.offer__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
  min-height: calc(680px - 2 * clamp(28px, 5vw, 72px));
}
.offer__main .h2 { max-width: 16ch; font-size: clamp(2.6rem, 5vw, 4.8rem); }

.countdown { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.countdown__cell {
  display: grid;
  justify-items: center;
  min-width: 92px;
  padding: 14px 12px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.countdown__cell b {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown__cell span { margin-top: 4px; font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.countdown__caption { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.countdown__caption b { color: #FFD3E6; font-weight: 600; }

.offer__side {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.spots { display: grid; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.spots b { color: #fff; }
.spots__row { display: flex; gap: 8px; }
.spots__row svg { width: 30px; height: 30px; color: rgba(255, 255, 255, .22); transition: color .5s var(--ease), transform .8s var(--ease-out), filter .5s; }
.spots__row svg.is-free { color: #FFC4DD; filter: drop-shadow(0 0 8px rgba(255, 196, 221, .8)); animation: twinkleSoft 3s var(--ease-soft) infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes twinkleSoft { 0%, 100% { transform: scale(.85) rotate(0); } 50% { transform: scale(1.05) rotate(45deg); } }
.spots__left b { color: #FFC4DD; font-size: 16px; }

.perks { display: grid; gap: 10px; }
.perks li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  transition: transform .5s var(--ease-out);
}
.perks li:hover { transform: translateX(6px); }
.perks b { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; color: var(--pink-deep); white-space: nowrap; font-variant-numeric: lining-nums; }
.perks span { font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.offer__side .pill-cta span { background: #fff; }

/* ---------- 9. Контакты ---------- */

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 160px) 0 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: .95;
  letter-spacing: 0;
}
.contact__text .lead { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.contact__btns { display: grid; gap: 12px; margin-top: 40px; max-width: 520px; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(42, 29, 36, .04), 0 20px 40px -30px rgba(90, 40, 80, .35);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.contact-btn:hover { transform: translateX(8px); box-shadow: 0 24px 50px -24px rgba(219, 85, 144, .45); }
.contact-btn__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
}
.contact-btn__icon svg { width: 24px; height: 24px; }
.contact-btn__icon--wa { background: #34C17A; }
.contact-btn__icon--lav { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
.contact-btn__icon--ink { background: var(--ink); }
.contact-btn__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact-btn__text small { font-size: 13px; color: var(--ink-3); }
.contact-btn__text b { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.contact-btn__arrow { width: 24px; height: 24px; margin-left: auto; flex: none; color: var(--ink-3); transition: transform .5s var(--ease-out), color .3s; }
.contact-btn:hover .contact-btn__arrow { transform: rotate(45deg); color: var(--pink-deep); }

.contact__arch {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 37.5% 37.5% var(--r-lg) var(--r-lg);
  box-shadow: 0 50px 90px -50px rgba(219, 85, 144, .45);
}
.contact__arch > img { transform: translateY(var(--py, 0)) scale(1.12); }
.garden {
  background:
    radial-gradient(70% 50% at 50% 20%, #FFF4F8, transparent 70%),
    linear-gradient(180deg, #EAF1E4 0%, #F5E6EE 45%, #E4D9F7 100%);
  display: grid;
  align-items: end;
}

.contact__word {
  margin: clamp(60px, 8vw, 110px) 0 -0.18em;
  font-family: var(--serif);
  font-size: clamp(80px, 22vw, 340px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(219, 85, 144, .4);
  background: linear-gradient(180deg, rgba(244, 143, 187, .18), rgba(244, 143, 187, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.contact__word em { font-style: italic; }

.footer { padding: 26px 0 32px; border-top: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--ink-2); position: relative; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--pink-deep); }

/* ---------- Плавающая кнопка (мобильные) ---------- */

.fab {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  width: max-content;
  white-space: nowrap;
  box-shadow: 0 20px 40px -14px rgba(42, 29, 36, .5);
  transform: translate(-50%, 150%);
  transition: transform .6s var(--ease-out);
}
.fab svg { width: 20px; height: 20px; color: #5EE29B; }
.fab.is-shown { transform: translate(-50%, 0); }

/* Магнитные кнопки */
.magnetic { transition: transform .5s var(--ease-out); will-change: transform; }

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1180px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { top: auto; bottom: 46%; }
}

@media (max-width: 980px) {
  .nav__city { display: none; }
  .problem__grid,
  .solution__grid,
  .extras__grid,
  .trust__grid,
  .contact__grid,
  .offer__grid,
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .problem__aside,
  .extras__head { position: static; }
  .problem__photo { max-height: none; aspect-ratio: 16 / 11; }
  .extras__flower { display: none; }
  .solution__visual { min-height: 660px; }
  .trust__photo { max-width: 460px; }
  .contact__arch { justify-self: center; max-width: 440px; }
  .offer__grid { min-height: 0; }
  .offer__card { min-height: 0; }
  .offer__main .h2 { max-width: none; }
  .hero__sign { display: none; }
  .toast { right: 16px; top: 96px; bottom: auto; width: 270px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .nav { top: 14px; padding: 0 22px; }
  .nav.is-light { top: 10px; }
  .nav__actions .icon-btn,
  .nav__cta { display: none; }
  .nav__logo { font-size: 22px; padding: 4px 16px 4px; }

  .hero { padding: 8px; min-height: 600px; }
  .hero__frame { border-radius: 26px; }
  .hero__eyebrow { font-size: 12px; margin-bottom: 16px; }
  .hero__title { font-size: clamp(2.7rem, 12.5vw, 3.8rem); max-width: none; }
  .hero__lead { font-size: 15px; }
  .hero__row { margin-top: 18px; gap: 18px; }
  .hero__ctas { width: 100%; gap: 14px 24px; }
  .pill-cta { width: 100%; }
  .pill-cta span { flex: 1; min-width: 0; height: 54px; }
  .pill-cta i { width: 54px; height: 54px; }
  .link-line { font-size: 20px; }
  .hero__bouquet { width: 104vw; right: -22%; bottom: 40%; }
  .hero__media > img { object-position: 72% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(22, 12, 20, .3) 0%, rgba(22, 12, 20, 0) 16%, rgba(22, 12, 20, .05) 32%, rgba(22, 12, 20, .62) 50%, rgba(22, 12, 20, .82) 68%, rgba(22, 12, 20, .88) 100%);
  }
  .hero__title { text-shadow: 0 2px 18px rgba(20, 8, 16, .55); }
  .hero__title em { color: #FFC2DC; }
  .hero__lead { color: rgba(255, 255, 255, .94); text-shadow: 0 1px 10px rgba(20, 8, 16, .6); }
  .hero__eyebrow { background: rgba(30, 14, 26, .35); }
  .toast { left: 16px; right: 16px; top: 82px; width: auto; padding: 10px 12px 12px; }
  .toast__thumb { width: 40px; height: 40px; border-radius: 11px; }
  .toast__body { margin-top: 6px; }

  .pain { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .pain:hover { padding-left: 0; background: none; }
  .pain__num { font-size: 34px; }

  .solution__visual { min-height: 0; padding: 30px 0 60px; }
  .solution__bg { inset: 0; border-radius: 28px; }
  .phone { width: 270px; height: 560px; border-radius: 44px; }
  .phone__screen { border-radius: 35px; }
  .float-chip { font-size: 12px; padding: 9px 13px; max-width: 170px; }
  .float-chip--1 { left: 8px; top: 8px; }
  .float-chip--2 { right: 8px; top: auto; bottom: 120px; }
  .float-chip--3 { left: 8px; bottom: 14px; }
  .result { grid-template-columns: 1fr; gap: 10px; }

  .packs { grid-template-columns: minmax(0, 1fr); }
  .pack__media { aspect-ratio: 16 / 11; }
  .pack__media .media__fallback { padding: 4% 18% 0; }

  .extra { flex-wrap: wrap; gap: 6px 12px; padding: 22px 6px; }
  .extra__name { width: 100%; }
  .extra__dots { display: none; }

  .timeline__line { left: 22px; }
  .step { grid-template-columns: 46px minmax(0, 1fr); min-height: 0; gap: 4px 16px; align-items: start; }
  .step__star { grid-column: 1 !important; grid-row: 1; width: 34px; height: 34px; margin-top: 4px; }
  .step:nth-child(n) .step__card { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; }
  .step:nth-child(n) .step__media { grid-column: 2; grid-row: 2; justify-self: start; width: 150px; }

  .trust__list li { grid-template-columns: 44px minmax(0, 1fr); }

  .offer__card { padding: 26px 18px; border-radius: 26px; }
  .countdown { gap: 8px; }
  .countdown__cell { min-width: 0; flex: 1; padding: 12px 6px 10px; border-radius: 16px; }
  .countdown__cell b { font-size: 38px; }
  .countdown__cell span { font-size: 10.5px; }
  .offer__side { padding: 16px; border-radius: 22px; }
  .perks li { grid-template-columns: 70px minmax(0, 1fr); padding: 12px 14px; }
  .perks b { font-size: 32px; }

  .contact-btn__text b { font-size: 16px; }
  .footer { padding-bottom: 96px; }
  .fab { display: inline-flex; }
}

@media (min-width: 721px) {
  .hero__scroll { display: block; }
}

/* Уважение к настройкам «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .ticker__track,
  .brands__track { animation: none; }
}
