/* ==========================================================================
   Цветочный домик — стили
   ========================================================================== */

:root {
  --ink: #170d12;
  --ink-2: #21141b;
  --ink-3: #2e1d26;
  --milk: #fbf6f3;
  --cream: #f5ece7;
  --blush: #fbe3eb;
  --pink: #ff4f8b;
  --pink-2: #ff86ae;
  --pink-deep: #e2246a;
  --text: #170d12;
  --muted: #7d6973;
  --muted-light: rgba(251, 246, 243, .62);
  --line: rgba(23, 13, 18, .12);
  --line-light: rgba(251, 246, 243, .14);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--milk);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--pink); color: #fff; }

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

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

.section--dark { background: var(--ink); color: var(--milk); }
.section--light { background: var(--milk); }
.section--blush { background: var(--blush); }

/* ---------- типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 20px;
}
.section--dark .eyebrow { color: var(--pink-2); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__eyebrow::before { display: none; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.02em;
}
.section-title em, .hero__title em, .footer__cta em { color: var(--pink); font-weight: 400; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head__aside { max-width: 360px; color: var(--muted); font-size: 15px; }

/* split text: маски строк чуть выше, чтобы не обрезать хвосты букв */
.split-line-mask { padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line { overflow: hidden; padding: 0 .1em .12em; margin: 0 -.1em -.12em; }
.hero__title .char { display: inline-block; will-change: transform; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .4s var(--ease); }
.btn .i--fill { fill: currentColor; stroke: none; }
.btn:hover .i:not(.i--fill) { transform: translateX(4px); }

.btn--pink { background: var(--pink); color: #fff; box-shadow: 0 10px 40px -10px rgba(255, 79, 139, .7); }
.btn--pink::before { background: var(--ink); }
.section--dark .btn--pink::before, .wedding .btn--pink::before, .occ--cta .btn--pink::before { background: #fff; }
.section--dark .btn--pink:hover, .wedding .btn--pink:hover, .occ--cta .btn--pink:hover { color: var(--ink); }

.btn--ghost { border: 1px solid var(--line-light); color: var(--milk); }
.btn--ghost::before { background: var(--milk); }
.btn--ghost:hover { color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--milk); }
.btn--dark::before { background: var(--pink); }

.btn--outline { border: 1px solid var(--line); }
.btn--outline::before { background: var(--ink); }
.btn--outline:hover { color: var(--milk); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink); color: var(--milk);
  display: grid; place-items: center;
}
.preloader__inner { display: grid; place-items: center; gap: 28px; }
.preloader__logo { width: min(34vw, 190px); height: auto; overflow: visible; }
.preloader__logo .stroke { fill: none; stroke: var(--pink); stroke-width: 3; }
.preloader__logo .solid { fill: var(--milk); stroke: none; opacity: 0; }
.preloader__count { font-family: var(--serif); font-size: 20px; letter-spacing: .1em; color: var(--muted-light); overflow: hidden; }
.preloader__count::after { content: "%"; }
html.no-preloader .preloader { display: none; }

.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ---------- шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--milk);
  transition: transform .6s var(--ease), background .4s, color .4s, height .4s var(--ease);
}
.header.is-scrolled {
  height: 68px;
  background: rgba(23, 13, 18, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.header.is-hidden { transform: translateY(-100%); }

.header__logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 46px; fill: currentColor; transition: transform .6s var(--ease); }
.header__logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.header__name { font-family: var(--serif); font-size: 18px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; }

.header__nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-light); }
.header__nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: background .3s, color .3s;
}
.header__nav a:hover, .header__nav a.is-active { background: var(--milk); color: var(--ink); }

.header__right { display: flex; align-items: center; gap: 22px; }
.header__open { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-light); }
.header__phone { font-weight: 600; font-size: 15px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--pink); position: relative; z-index: 2; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; transition: transform .5s var(--ease); }
.burger span:first-child { top: 20px; } .burger span:last-child { top: 27px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--milk);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - var(--gutter) - 24px) 42px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 42px); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a { font-family: var(--serif); font-size: clamp(44px, 12vw, 72px); line-height: 1.1; display: flex; align-items: baseline; gap: 16px; }
.menu__nav small { font-family: var(--sans); font-size: 12px; color: var(--pink-2); }
.menu__foot { display: grid; gap: 6px; color: var(--muted-light); }
.menu__foot a { color: var(--milk); font-weight: 600; font-size: 18px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: 40px; padding: calc(var(--header-h) + 40px) var(--gutter) 190px;
}
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; left: 40%; top: -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 139, .38), rgba(255, 79, 139, 0) 62%);
  filter: blur(30px); pointer-events: none;
}
.hero__bgmark {
  position: absolute; left: -6vw; bottom: -18vh; width: 52vw; height: auto;
  fill: var(--milk); opacity: .035; pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow { color: var(--muted-light) !important; letter-spacing: .08em; text-transform: none; font-weight: 500; font-size: 14px; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 6px rgba(255, 79, 139, .2); }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(56px, 8.6vw, 156px); line-height: .9; letter-spacing: -.03em;
  margin-bottom: 32px;
}
.hero__title .line { display: block; }
.hero__title .line:nth-child(2) { padding-left: .9em; }
.hero__lead { max-width: 470px; font-size: 18px; color: var(--muted-light); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; height: min(72vh, 680px); z-index: 1; }
.hero__card {
  position: absolute; margin: 0; overflow: hidden; border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--1 { width: 50%; height: 78%; left: 22%; top: 4%; z-index: 2; }
.hero__card--2 { width: 34%; height: 46%; right: 0; bottom: 0; z-index: 3; border-radius: var(--radius); }
.hero__card--3 { width: 30%; height: 42%; left: 0; bottom: 10%; z-index: 1; border-radius: var(--radius) var(--radius) 200px 200px; }

.badge-rotate {
  position: absolute; z-index: 4; right: 10%; top: 2%;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 20px 50px -15px rgba(255, 79, 139, .8);
}
.badge-rotate svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge-rotate text { fill: #fff; font-size: 15.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.badge-rotate b { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.badge-rotate small { font-size: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__stats {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; z-index: 2;
  list-style: none; margin: 0; padding: 24px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line-light);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats b { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; }
.hero__stats b small { font-size: 20px; }
.hero__stats .star { color: var(--pink); font-style: normal; font-size: 24px; margin-left: 6px; vertical-align: 6px; }
.hero__stats li > span { font-size: 13px; color: var(--muted-light); }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 130px; z-index: 2;
  width: 28px; height: 46px; border: 1px solid var(--line-light); border-radius: 20px;
}
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--pink); animation: scrollHint 1.8s var(--ease) infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- бегущая строка ---------- */
.marquee {
  background: var(--pink); color: #fff; overflow: hidden;
  padding: 22px 0; position: relative; z-index: 3;
  transform: rotate(-1.6deg) scale(1.04); margin: -24px 0;
}
.marquee__track { display: flex; width: max-content; align-items: center; gap: 36px; will-change: transform; }
.marquee__track span { font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); font-style: italic; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 22px; opacity: .8; }

/* ---------- intro / bento ---------- */
.intro { padding: clamp(90px, 11vw, 160px) 0; }
.intro__text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -.01em;
  max-width: 1180px; margin-bottom: clamp(60px, 8vw, 110px);
}
.intro__text .word { opacity: .14; }

.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, auto);
}
.bento__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--cream); padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.bento__item h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.05; }
.bento__item p { color: var(--muted); font-size: 15px; }
.bento__item--tall { grid-row: span 2; }
.bento__item--photo { padding: 0; color: #fff; min-height: 300px; }
.bento__item--photo .img-reveal { position: absolute; inset: 0; }
.bento__item--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__item--photo:hover img { transform: scale(1.06); }
.bento__item--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 13, 18, .75), transparent 55%); }
.bento__caption { position: relative; z-index: 2; padding: 26px; display: grid; gap: 2px; }
.bento__caption b { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.05; }
.bento__caption span { font-size: 14px; opacity: .8; }
.bento__item--pink { background: var(--pink); color: #fff; grid-column: span 2; }
.bento__item--pink p { color: rgba(255, 255, 255, .85); }
.bento__item--dark { background: var(--ink); color: var(--milk); }
.bento__item--dark p { color: var(--muted-light); }
.bento__num { font-family: var(--serif); font-size: clamp(64px, 7vw, 110px); line-height: .85; margin-bottom: auto; }
.bento__icon { width: 46px; height: 46px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }

/* ---------- каталог ---------- */
.catalog { padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 10vw, 150px); }

.filters { display: grid; gap: 16px; margin-bottom: 40px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 600; font-size: 15px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--milk); border-color: var(--ink); }
.chip sup { font-size: 11px; margin-left: 4px; opacity: .55; }
/* Бюджет: карточка с гистограммой цен и двумя бегунками */
.price-range {
  flex: 1 1 360px; max-width: 520px; padding: 18px 20px 14px;
  border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(23, 13, 18, .35);
}
.price-range__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.price-range__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-range__reset { font-size: 13px; font-weight: 600; color: var(--pink-deep); padding: 4px 10px; border-radius: 999px; background: var(--blush); transition: background .3s, color .3s; }
.price-range__reset:hover { background: var(--pink); color: #fff; }
.price-range__values { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-range__values i { flex: 0 0 12px; height: 1px; background: var(--muted); opacity: .5; }
.price-range__pill {
  flex: 1; display: flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 14px;
  background: var(--milk); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.price-range__pill small { color: var(--muted); font-size: 13px; }
.price-range__pill b { font-size: 16px; }
.price-range__hist { display: flex; align-items: flex-end; gap: 3px; height: 44px; padding: 0 13px; }
.price-range__hist span {
  flex: 1; min-height: 3px; border-radius: 3px 3px 1px 1px; background: var(--line);
  transition: background .3s, opacity .3s;
}
.price-range__hist span.is-in { background: var(--pink-2); }
.price-range__track { position: relative; height: 30px; margin: 0 0 2px; }
.price-range__track::before, .price-range__fill {
  content: ""; position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
}
.price-range__track::before { left: 13px; right: 13px; background: var(--line); }
/* Заливка между бегунками; 13px — половина бегунка, чтобы края совпадали с центрами */
.price-range__fill {
  left: calc(13px + (100% - 26px) * var(--from, 0) / 100);
  right: calc(13px + (100% - 26px) * (100 - var(--to, 100)) / 100);
  background: linear-gradient(90deg, var(--pink-2), var(--pink-deep));
}
.price-range input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.price-range input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: radial-gradient(circle, var(--pink) 0 4px, #fff 4.5px);
  box-shadow: 0 0 0 1px rgba(23, 13, 18, .08), 0 6px 16px -6px rgba(226, 36, 106, .55);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.price-range input::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: radial-gradient(circle, var(--pink) 0 4px, #fff 4.5px);
  box-shadow: 0 0 0 1px rgba(23, 13, 18, .08), 0 6px 16px -6px rgba(226, 36, 106, .55);
}
.price-range input:hover::-webkit-slider-thumb { transform: scale(1.08); }
.price-range input:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; box-shadow: 0 0 0 6px rgba(255, 79, 139, .18), 0 6px 16px -6px rgba(226, 36, 106, .55); }
.price-range input:focus-visible { outline: none; }
.price-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255, 79, 139, .3); }
.price-range input::-webkit-slider-runnable-track { background: none; }
.chips--sub[hidden] { display: none; }
.chips--sub { padding-left: 18px; border-left: 2px solid var(--pink); }
.chips--sub .chip { height: 40px; font-size: 14px; padding: 0 18px; background: var(--cream); border-color: transparent; }
.chips--sub .chip.is-active { background: var(--blush); color: var(--pink-deep); border-color: var(--pink); }

.occasion-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--blush); color: var(--pink-deep); font-weight: 600; font-size: 14px;
}
.occasion-pill[hidden] { display: none; }
.occasion-pill button { width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 11px; }

.products {
  display: grid; gap: 34px 20px;
  grid-template-columns: repeat(4, 1fr);
}
.card { position: relative; cursor: pointer; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--cream);
  transform: translateZ(0);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card__order {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  height: 52px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px;
  transform: translateY(calc(100% + 16px)); transition: transform .55s var(--ease), background .3s, color .3s;
}
.card:hover .card__order, .card:focus-visible .card__order { transform: translateY(0); }
.card__order:hover { background: var(--pink); color: #fff; }
.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 6px 0; }
.card__name { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.card__price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.card__price small { font-weight: 500; color: var(--muted); }
.card__cat { padding: 4px 6px 0; font-size: 13px; color: var(--muted); }

.products__empty { text-align: center; padding: 60px 0; color: var(--muted); font-size: 18px; }
.products__more { display: flex; justify-content: center; margin-top: 56px; }
.products__more[hidden] { display: none; }

/* ---------- поводы ---------- */
.occasions { overflow: hidden; }
.occasions__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 10px) 0 40px; }
.occasions__head { padding: 0 var(--gutter); margin-bottom: clamp(24px, 4vh, 48px); }
.occasions__track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.occ {
  position: relative; flex: none; width: min(70vw, 900px); height: min(58vh, 560px);
  display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-light);
}
.occ__img { overflow: hidden; }
.occ__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.occ__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.occ__num { font-family: var(--serif); font-size: 18px; color: var(--pink-2); margin-bottom: auto; }
.occ h3 { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 68px); font-weight: 500; line-height: 1; }
.occ p { color: var(--muted-light); max-width: 340px; }
.occ .link-arrow { align-self: flex-start; color: var(--pink-2); margin-top: 8px; }
.occ--cta { grid-template-columns: 1fr; width: min(56vw, 640px); background: var(--pink); border: 0; }
.occ--cta p { color: rgba(255, 255, 255, .88); }
.occ--cta .btn { align-self: flex-start; margin-top: 12px; background: var(--ink); box-shadow: none; }
.occasions__progress { margin: clamp(24px, 4vh, 40px) var(--gutter) 0; height: 2px; background: var(--line-light); border-radius: 2px; overflow: hidden; }
.occasions__progress span { display: block; height: 100%; width: 100%; background: var(--pink); transform-origin: left; transform: scaleX(0); }

/* ---------- как заказать ---------- */
.how { padding: clamp(90px, 11vw, 160px) 0; }
.steps { position: relative; display: grid; gap: 0; max-width: 980px; margin-left: auto; }
.steps__line { position: absolute; left: 39px; top: 40px; bottom: 40px; width: 4px; height: calc(100% - 80px); overflow: visible; }
.steps__line path { stroke: var(--pink); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.step { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: clamp(20px, 4vw, 56px); padding: 34px 0; border-bottom: 1px solid rgba(23, 13, 18, .1); }
.step:last-child { border-bottom: 0; }
.step__num { transition: background .5s var(--ease), color .5s var(--ease), border-color .5s; }
.step.is-active .step__num { background: var(--pink); border-color: var(--pink); color: #fff; }
.step__num {
  position: relative; z-index: 1;
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: var(--milk); border: 1px solid rgba(23, 13, 18, .1);
  font-family: var(--serif); font-size: 28px; color: var(--pink-deep);
}
.step h3 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.05; margin: 8px 0 8px; }
.step p { color: var(--muted); max-width: 520px; font-size: 17px; }

/* ---------- отзывы ---------- */
.reviews { padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; }
.reviews__top { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: end; margin-bottom: clamp(60px, 7vw, 100px); }
.rating__big { font-family: var(--serif); font-size: clamp(120px, 17vw, 240px); line-height: .8; letter-spacing: -.04em; }
.rating__stars { position: relative; width: 190px; height: 32px; margin: 26px 0 16px; }
.rating__stars::before, .rating__stars i {
  content: "★★★★★"; position: absolute; inset: 0; font-size: 32px; line-height: 1; letter-spacing: 4px; font-style: normal;
}
.rating__stars::before { color: var(--line-light); }
.rating__stars i { color: var(--pink); overflow: hidden; white-space: nowrap; width: 0; }
.rating__stars i::before { content: "★★★★★"; }
.rating__meta { color: var(--muted-light); }

.aspects { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.aspects li { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.aspects span { color: var(--muted-light); }
.aspects b { font-weight: 600; }
.aspects i { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line-light); position: relative; overflow: hidden; }
.aspects i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: linear-gradient(90deg, var(--pink-deep), var(--pink-2)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.6s var(--ease); }
.aspects.is-in i::after { --p: 1; }

.quotes { overflow: hidden; cursor: grab; padding: 10px 0; touch-action: pan-y; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.quotes:active { cursor: grabbing; }
.quotes__track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.quote {
  margin: 0; width: 380px; flex: none; padding: 34px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-light);
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  user-select: none;
}
.quote:nth-child(3n+2) { background: var(--pink); border-color: var(--pink); color: #fff; }
.quote p { font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.quote p::before { content: "“"; display: block; font-size: 64px; line-height: .6; color: var(--pink); height: 30px; }
.quote:nth-child(3n+2) p::before { color: #fff; }
.quote cite { font-style: normal; font-size: 14px; font-weight: 600; opacity: .7; }
.quote cite::before { content: "— "; }
.reviews__cta { margin-top: 56px; display: flex; justify-content: center; }

/* ---------- доставка ---------- */
.delivery { padding: clamp(90px, 11vw, 160px) 0; }
.delivery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.delivery__lead { color: var(--muted); font-size: 18px; max-width: 460px; margin: 28px 0 36px; }
.delivery__cards { display: grid; gap: 14px; }
.mini-card { display: flex; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--cream); }
.mini-card svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mini-card b { display: block; font-size: 16px; }
.mini-card span { color: var(--muted); font-size: 14px; }

.zones { border-radius: var(--radius); background: var(--ink); color: var(--milk); padding: clamp(24px, 3vw, 40px); }
.zones__head { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-light); padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.zones__list { list-style: none; margin: 0; padding: 0; }
.zones__list li {
  position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--serif); font-size: 26px; transition: color .3s, padding .5s var(--ease);
}
.zones__list li:last-child { border-bottom: 0; }
.zones__list li b { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.zones__list li:hover { color: var(--pink-2); padding-left: 14px; }

/* ---------- заказ через мессенджеры ---------- */
.order-cta { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 160px) 0; }
.order-cta__glow {
  position: absolute; width: 60vw; height: 60vw; right: -15vw; top: -20vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 79, 139, .28), rgba(255, 79, 139, 0) 62%); filter: blur(30px);
}
.order-cta__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.order-cta__lead { color: var(--muted-light); font-size: 18px; max-width: 460px; margin-top: 28px; }
.order-cta__list { display: grid; gap: 12px; }
.messenger {
  display: flex; align-items: center; gap: 18px; padding: 16px 22px 16px 16px; border-radius: 20px;
  background: var(--ink-2); border: 1px solid var(--line-light); transition: border-color .3s, background .3s;
}
.messenger:hover { border-color: var(--pink); background: var(--ink-3); }
.messenger__icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--milk); color: var(--ink); }
.messenger__icon svg { width: 28px; height: 28px; }
.messenger--phone .messenger__icon svg { fill: none; }
.messenger b { display: block; font-size: 17px; }
.messenger small { color: var(--muted-light); font-size: 14px; }
.messenger--wa:hover .messenger__icon { background: #25d366; color: #fff; }
.messenger--tg:hover .messenger__icon { background: #2aabee; color: #fff; }
.messenger--phone:hover .messenger__icon { background: var(--pink); color: #fff; }

.footer__note { margin-top: 16px; font-size: 12px; color: var(--muted-light); opacity: .7; max-width: 760px; }

/* ---------- свадьба ---------- */
.wedding { padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; }
.wedding__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.wedding__content > p:not(.eyebrow) { font-size: 18px; max-width: 480px; margin: 26px 0 36px; color: var(--muted); }
.wedding__visual { position: relative; height: min(76vh, 680px); }
.wedding__img { position: absolute; margin: 0; overflow: hidden; }
.wedding__img img { width: 100%; height: 100%; object-fit: cover; }
.wedding__img--1 { right: 0; top: 0; width: 72%; height: 100%; border-radius: 400px 400px var(--radius) var(--radius); }
.wedding__img--2 { left: 0; bottom: 8%; width: 42%; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 8px solid var(--blush); z-index: 2; box-shadow: 0 30px 60px -25px rgba(23, 13, 18, .45); }
.wedding__mark { position: absolute; left: 4%; top: 2%; width: 22%; height: auto; fill: var(--pink); opacity: .9; z-index: 2; }

/* ---------- контакты ---------- */
.contacts { padding: clamp(90px, 11vw, 160px) 0 clamp(60px, 8vw, 110px); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contacts__list { margin: 40px 0; display: grid; gap: 0; }
.contacts__list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.contacts__list dt { color: var(--muted-light); font-size: 14px; padding-top: 3px; }
.contacts__list dd { margin: 0; font-size: 18px; font-weight: 500; }
.contacts__list dd small { color: var(--muted-light); font-size: 14px; }
.contacts__list a { transition: color .3s; }
.contacts__list a:hover { color: var(--pink-2); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 14px;
  border-radius: 999px; border: 1px solid var(--line-light); font-weight: 600; font-size: 14px;
  transition: background .35s, border-color .35s, color .35s;
}
.social svg { width: 22px; height: 22px; }
.social:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.social__max { width: 24px; height: 24px; border-radius: 50%; background: var(--milk); color: var(--ink); display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; }

.contacts__map { position: relative; }
.map { display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); aspect-ratio: 13 / 9; }
.map img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform 1.2s var(--ease), filter .6s; }
.map:hover img { transform: scale(1.04); filter: saturate(1); }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.contacts__photo {
  position: absolute; left: -40px; bottom: -40px; margin: 0; width: 210px; aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm); overflow: hidden; border: 6px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.contacts__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- подвал ---------- */
.footer { padding: clamp(60px, 8vw, 110px) 0 32px; border-top: 1px solid var(--line-light); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(60px, 8vw, 100px); }
.footer__cta { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 84px); line-height: 1; max-width: 900px; }
.footer__logo { display: block; width: min(100%, 520px); height: auto; margin: 0 auto 50px; fill: var(--milk); opacity: .95; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: 14px; color: var(--muted-light); padding-top: 24px; border-top: 1px solid var(--line-light); }
.footer__bottom a:hover { color: var(--pink-2); }

/* ---------- плавающая кнопка ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fab__btn {
  width: 62px; height: 62px; border-radius: 50%; background: var(--pink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(255, 79, 139, .9);
  transition: transform .4s var(--ease);
}
.fab__btn:hover { transform: scale(1.08); }
.fab__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; grid-area: 1 / 1; transition: transform .4s var(--ease), opacity .3s; }
.fab__close { opacity: 0; transform: rotate(-90deg); }
.fab.is-open .fab__open { opacity: 0; transform: rotate(90deg); }
.fab.is-open .fab__close { opacity: 1; transform: none; }
.fab__btn::after { content: ""; position: absolute; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--pink); animation: ring 2.4s var(--ease) infinite; pointer-events: none; }
.fab.is-open .fab__btn::after { display: none; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fab__list { display: flex; flex-direction: column; gap: 10px; }
.fab__list a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--milk); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(20px) scale(.6); pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s, background .3s, color .3s;
}
.fab__list a svg { width: 24px; height: 24px; }
.fab__list a:hover { background: var(--ink); color: var(--milk); }
.fab.is-open .fab__list a { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__list a:nth-child(2) { transition-delay: .05s; }
.fab.is-open .fab__list a:nth-child(1) { transition-delay: .1s; }

/* ---------- модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; transition: visibility 0s .6s; }
.modal.is-open { transition: none; }
.modal__grab { display: none; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23, 13, 18, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(980px, 100%); max-height: calc(100svh - 40px); overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--milk); border-radius: var(--radius);
  opacity: 0; transform: translateY(40px) scale(.97); transition: transform .6s var(--ease), opacity .4s;
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; right: 16px; top: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--milk); font-size: 16px; transition: background .3s, color .3s, transform .5s var(--ease); }
.modal__close:hover { background: var(--ink); color: var(--milk); transform: rotate(90deg); }
/* Фото показываем целиком, а поля вокруг заполняем размытой копией того же фото */
.modal__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); isolation: isolate; }
.modal__img::before {
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background: var(--img) center / cover no-repeat; filter: blur(28px) saturate(1.1); opacity: .75;
}
.modal__img img { width: 100%; height: 100%; object-fit: contain; }
.modal__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.modal__body h3 { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 500; line-height: 1; }
.modal__price { font-size: 26px; font-weight: 700; margin: 14px 0 8px; color: var(--pink-deep); }
.modal__note { color: var(--muted); }
.modal__hint { margin: 22px 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--blush); font-size: 14px; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal__actions .btn:first-child, .modal__actions .btn:last-child { grid-column: 1 / -1; }
.modal__actions .btn { justify-content: center; height: 54px; }
.modal__comp { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.modal__comp b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.modal__comp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.modal__comp li { position: relative; padding-left: 16px; font-size: 15px; }
.modal__comp li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.modal__copied { margin-top: 12px; font-size: 13px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.modal__copied.is-shown { opacity: 1; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .header__nav, .header__open { display: none; }
  .burger { display: block; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--tall { grid-row: span 1; min-height: 380px; }
  .bento__item--pink { grid-column: auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero { grid-template-columns: 1fr; padding-bottom: 40px; gap: 32px; }
  .hero__visual { height: 440px; }
  .hero__stats { position: static; grid-column: 1; grid-template-columns: repeat(2, 1fr); }
  .scroll-hint { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .reviews__top, .delivery__grid, .contacts__grid, .wedding__grid, .order-cta__grid { grid-template-columns: 1fr; }
  .wedding__visual { height: 520px; }
  .contacts__photo { position: relative; left: auto; bottom: auto; width: 100%; aspect-ratio: 4 / 3; margin-top: 16px; border: 0; }
  .map__actions { margin-top: 16px; }

  /* поводы: на мобильных — свайп вместо закрепа */
  .occasions__pin { height: auto; padding: 90px 0 70px; }
  .occasions__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .occasions__track::-webkit-scrollbar { display: none; }
  .occ { width: 82vw; height: auto; grid-template-columns: 1fr; grid-template-rows: 300px auto; scroll-snap-align: center; }
  .occ--cta { width: 82vw; grid-template-rows: auto; }
  .occ__body { min-height: 260px; }
  .occasions__progress { display: none; }

  .modal__panel { grid-template-columns: 1fr; }
  .modal__img { aspect-ratio: 1 / 1; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .header__phone { display: none; }
  .header__name { font-size: 15px; }
  .hero__title .line:nth-child(2) { padding-left: .5em; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__visual { height: 360px; }
  .badge-rotate { width: 104px; height: 104px; right: 0; }
  .badge-rotate b { font-size: 26px; }
  .badge-rotate text { font-size: 15px; }
  .hero__stats b { font-size: 30px; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--pink, .bento__item--dark { grid-column: auto; }
  .chip { height: 42px; padding: 0 16px; font-size: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }
  .card__name { font-size: 20px; }
  .card__price { font-size: 14px; }
  .card__info { flex-direction: column; gap: 4px; padding-top: 12px; }
  .card__order { display: none; }
  .card__media { border-radius: 20px; }
  .step { grid-template-columns: 56px 1fr; }
  .step__num { width: 56px; height: 56px; font-size: 22px; }
  .steps__line { left: 27px; }
  .quote { width: 290px; padding: 26px; }
  .quote p { font-size: 22px; }
  .contacts__list > div { grid-template-columns: 1fr; gap: 4px; }
  .map__actions .btn { flex: 1 1 100%; justify-content: center; }
  .zones__list li { font-size: 22px; }
  .footer__bottom { flex-direction: column; }
  .fab { right: 14px; bottom: 14px; }

  /* окно букета на телефоне — нижняя шторка */
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel {
    width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0;
    opacity: 1; transform: translateY(100%); transition: transform .5s var(--ease);
  }
  .modal.is-open .modal__panel { transform: translateY(var(--drag, 0px)); }
  .modal__panel.is-dragging { transition: none; }
  .modal__grab {
    display: block; position: absolute; left: 50%; top: 8px; z-index: 3;
    width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: rgba(255, 255, 255, .85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  }
  .modal__img { aspect-ratio: auto; height: min(56dvh, 460px); }
  .modal__close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .modal__body { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .modal__body .eyebrow { margin-bottom: 10px; }
  .modal__body h3 { font-size: 34px; }
  .modal__price { font-size: 22px; margin: 8px 0 4px; }
  .modal__hint { margin: 14px 0; padding: 12px 14px; font-size: 13px; }
  .modal__actions { grid-template-columns: 1fr 1fr; }
  .modal__actions .btn { height: 50px; padding: 0 14px; font-size: 14px; }
  .modal__actions .btn:first-child { grid-column: 1 / -1; }
  .chips--sub { padding-left: var(--gutter); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* ---------- мессенджеры: фирменные цвета ---------- */
.btn--max { background: linear-gradient(135deg, #19baff, #4e5cf6 55%, #9b2ce8); color: #fff; }
.btn--max::before { background: var(--ink); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa::before { background: var(--ink); }
.messenger--max .messenger__icon { background: linear-gradient(135deg, #19baff, #4e5cf6 55%, #9b2ce8); color: #fff; }
.messenger--max .messenger__icon svg { width: 26px; height: 26px; }

/* ---------- плашка cookie ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 150; width: min(440px, calc(100% - 40px));
  padding: 20px 22px; border-radius: 22px; background: var(--ink); color: var(--milk);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); border: 1px solid var(--line-light);
  opacity: 0; transform: translateY(24px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.cookie.is-shown { opacity: 1; transform: none; }
.cookie__text { font-size: 14px; line-height: 1.55; color: var(--muted-light); }
.cookie__text a { color: var(--milk); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie__actions .btn { height: 46px; padding: 0 22px; font-size: 14px; flex: 1; justify-content: center; }
.cookie .btn--outline { border-color: var(--line-light); color: var(--milk); }
.cookie .btn--outline::before { background: var(--milk); }
.cookie .btn--outline:hover { color: var(--ink); }
.footer__link { font-size: 14px; color: inherit; text-align: left; }
.footer__link:hover { color: var(--pink-2); }
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .has-cookie-banner .fab { opacity: 0; pointer-events: none; }
}
