/* ==========================================================
   Чакыруу — стили главной страницы
   Палитра: ночной изумруд, старое золото, слоновая кость
   ========================================================== */
:root {
  --emerald-950: #0A1612;
  --emerald-900: #0E1D18;
  --emerald-800: #153028;
  --emerald-700: #1E4338;
  --gold-300: #E6CD8E;
  --gold-400: #D4B46A;
  --gold-500: #BE9748;
  --gold-600: #9C7A32;
  --ivory: #F7F2E8;
  --ivory-2: #EFE8D8;
  --ink: #1A1713;
  --ink-soft: #5E574B;
  --line: rgba(26, 23, 19, .12);
  --line-light: rgba(247, 242, 232, .16);

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

  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Типографика ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--emerald-900);
  text-wrap: balance;
}
.h2--light { color: var(--ivory); }
.lead { margin-top: 16px; max-width: 54ch; color: var(--ink-soft); font-size: 1.06rem; text-wrap: pretty; }
.lead--light { color: rgba(247, 242, 232, .74); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  color: var(--gold-300);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-400); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 22px; height: 22px; }
.btn--gold {
  color: var(--emerald-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400) 45%, var(--gold-500));
  box-shadow: 0 10px 30px -10px rgba(212, 180, 106, .65), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(212, 180, 106, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { color: var(--ivory); border-color: var(--line-light); background: rgba(247,242,232,.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-2px); }
.btn--lg { min-height: 62px; padding: 0 40px; font-size: 1.12rem; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.header.is-solid {
  background: rgba(10, 22, 18, .82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-light);
}
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-300); font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: .01em; }
.brand__mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { position: relative; color: rgba(247,242,232,.82); font-size: .96rem; font-weight: 500; padding: 6px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-400); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover { color: var(--gold-300); }
.nav a:hover::after { transform: scaleX(1); }

/* Переключатель языка */
.lang { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(247,242,232,.05); }
.lang__btn { position: relative; z-index: 1; width: 48px; height: 34px; border: 0; background: none; border-radius: 999px; font-size: .84rem; font-weight: 700; letter-spacing: .06em; color: rgba(247,242,232,.7); transition: color .3s; }
.lang__btn.is-on { color: var(--emerald-950); }
.lang__thumb { position: absolute; top: 4px; left: 4px; width: 48px; height: 34px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); transition: transform .45s var(--ease); }
.lang[data-active="ky"] .lang__thumb { transform: translateX(48px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  color: var(--ivory);
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(46, 94, 78, .55), transparent 65%),
    radial-gradient(700px 500px at 10% 100%, rgba(190, 151, 72, .12), transparent 60%),
    linear-gradient(180deg, var(--emerald-950), var(--emerald-900));
}
.hero::after { /* орнаментальная кайма внизу */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 22C0 10 8 4 15 4c5 0 8 3 8 7 0 3-2 5-5 5-2 0-4-1-4-3m30 9c0-12-8-18-15-18' fill='none' stroke='%23BE9748' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round' transform='translate(0 0)'/%3E%3Cpath d='M44 22c0-12-8-18-15-18-5 0-8 3-8 7 0 3 2 5 5 5 2 0 4-1 4-3' fill='none' stroke='%23BE9748' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x bottom / 44px 22px;
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero__title {
  margin-top: 22px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -.015em;
  color: var(--ivory); text-wrap: balance;
}
.hero__sub { margin-top: 26px; max-width: 48ch; font-size: 1.1rem; color: rgba(247,242,232,.76); text-wrap: pretty; }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .82rem; color: rgba(247,242,232,.55); }
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--gold-400), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Вход страницы: одна оркестрованная последовательность в hero */
.hero__text > *, .hero__stage { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero__text > :nth-child(1) { animation-delay: .1s; }
.hero__text > :nth-child(2) { animation-delay: .25s; }
.hero__text > :nth-child(3) { animation-delay: .4s; }
.hero__text > :nth-child(4) { animation-delay: .55s; }
.hero__stage { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Конверт ---------- */
.hero__stage { display: grid; place-items: center; }
.envelope { --w: min(440px, 86vw); position: relative; width: var(--w); height: calc(var(--w) * .68); margin-top: 90px; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-10px) rotate(.6deg); } }
.env__glow { position: absolute; inset: -30% -20%; background: radial-gradient(closest-side, rgba(212,180,106,.28), transparent 70%); animation: glow 9s ease-in-out infinite; }
@keyframes glow { 0%,25%,90%,100% { opacity: .25; } 45%,70% { opacity: 1; } }
.env__back, .env__front, .env__flap { position: absolute; left: 0; right: 0; }
.env__back { inset: 0; border-radius: 10px; background: linear-gradient(160deg, #1F4A3D, #153028); }
.env__front {
  inset: 0; z-index: 4; border-radius: 10px;
  background: linear-gradient(170deg, #265847, #17382E 70%);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}
.env__front::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(212,180,106,.35); }
.env__flap {
  top: 0; height: 58%; z-index: 5; transform-origin: top center;
  background: linear-gradient(180deg, #2C6250, #1F4A3D);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: flap 9s var(--ease) infinite;
}
.env__seal {
  position: absolute; left: 50%; bottom: 8%; width: 46px; height: 46px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  animation: seal 9s var(--ease) infinite;
}
.env__seal::after { content: ""; position: absolute; inset: 11px; border: 1.5px solid rgba(60,40,10,.5); border-radius: 50%; }
@keyframes flap {
  0%, 18%  { transform: rotateX(0deg); z-index: 5; }
  34%      { transform: rotateX(180deg); z-index: 1; }
  34.1%, 82% { transform: rotateX(180deg); z-index: 1; }
  96%, 100% { transform: rotateX(0deg); z-index: 5; }
}
@keyframes seal { 0%, 14% { opacity: 1; } 20%, 90% { opacity: 0; } 98%, 100% { opacity: 1; } }

.env__card {
  position: absolute; z-index: 3; left: 6%; right: 6%; top: 7%; height: 86%;
  animation: card 9s var(--ease) infinite;
}
.env__card-in {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 18px; border-radius: 8px;
  background: linear-gradient(180deg, #FBF7EE, #F1E8D4);
  box-shadow: inset 0 0 0 6px #FBF7EE, inset 0 0 0 7px rgba(190,151,72,.55);
  color: var(--emerald-900);
}
.env__orn { width: 46px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 10'%3E%3Cpath d='M1 5h14m16 0h14' stroke='%23BE9748' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M23 1l4 4-4 4-4-4z' fill='none' stroke='%23BE9748' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.env__small { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--gold-600); }
.env__names { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4.2vw, 2.4rem); line-height: 1.05; }
.env__names i { font-weight: 500; color: var(--gold-500); padding: 0 .1em; }
.env__line { width: 70px; height: 1px; background: var(--gold-400); }
.env__date { font-size: .9rem; letter-spacing: .12em; font-weight: 600; color: var(--ink-soft); }
@keyframes card {
  0%, 30%  { transform: translateY(0); }
  52%, 76% { transform: translateY(-58%); }
  92%, 100% { transform: translateY(0); }
}

/* ---------- Секции ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec--ivory { background: var(--ivory); }
.sec--dark { background: linear-gradient(180deg, var(--emerald-900), var(--emerald-950)); color: var(--ivory); }
.sec__head { max-width: 720px; margin-bottom: 44px; }

/* Фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter {
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filter:hover { border-color: var(--gold-500); color: var(--emerald-900); transform: translateY(-1px); }
.filter.is-on { background: var(--emerald-900); border-color: var(--emerald-900); color: var(--gold-300); }

/* Сетка примеров */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; transition: opacity .22s, transform .22s; }
.grid.is-swapping { opacity: 0; transform: translateY(8px); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px rgba(26,23,19,.45);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  opacity: 0; animation: cardIn .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; } }
.card:hover { box-shadow: 0 1px 0 var(--line), 0 34px 56px -28px rgba(26,23,19,.6); }
.card__art { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.card__art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.card:hover .card__art svg { transform: scale(1.05); }
.card__tag {
  position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--emerald-900);
  background: rgba(247,242,232,.92); backdrop-filter: blur(6px);
}
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--emerald-900); }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.card__price { font-size: .88rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.card__trad { position: absolute; right: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #3B0D14; background: linear-gradient(135deg, #E6CD8E, #BE9748); }
.card__cta { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--gold-600); white-space: nowrap; }
.card__cta::after { content: ""; width: 18px; height: 1.5px; background: currentColor; transition: width .35s var(--ease); }
.card:hover .card__cta::after { width: 30px; }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--ink-soft); }

/* ---------- Почему онлайн ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.why__phone-wrap { position: relative; display: grid; place-items: center; padding: 20px 0; }
.phone {
  position: relative; width: min(310px, 78vw); aspect-ratio: 9 / 18.2;
  padding: 11px; border-radius: 44px;
  background: linear-gradient(160deg, #2a2f2c, #0b0f0d);
  box-shadow: 0 0 0 1.5px rgba(212,180,106,.4), 0 50px 80px -30px rgba(0,0,0,.8);
}
.phone__notch { position: absolute; z-index: 3; top: 20px; left: 50%; width: 78px; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #0b0f0d; }
.phone__screen { height: 100%; overflow: hidden; border-radius: 34px; background: linear-gradient(180deg, #FBF7EE, #EFE5CE); }
.inv { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 58px 22px 20px; gap: 10px; color: var(--emerald-900); animation: invIn 1.2s var(--ease) both; }
@keyframes invIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.inv__orn { width: 54px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 10'%3E%3Cpath d='M1 5h14m16 0h14' stroke='%23BE9748' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M23 1l4 4-4 4-4-4z' fill='none' stroke='%23BE9748' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.inv__small { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.25; color: var(--gold-600); }
.inv__names { font-family: var(--font-display); font-weight: 600; font-size: 2.05rem; line-height: 1; }
.inv__date { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft); }
.count { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.count div { padding: 9px 0 7px; border-radius: 10px; background: var(--emerald-900); color: var(--gold-300); display: grid; gap: 1px; }
.count b { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.count small { font-size: .62rem; color: rgba(247,242,232,.65); }
.inv__map, .inv__yes, .inv__no { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.inv__map { width: 100%; min-height: 38px; border: 1px solid rgba(21,48,40,.25); }
.inv__map svg { width: 16px; height: 16px; color: var(--gold-600); }
.inv__rsvp { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv__yes, .inv__no { min-height: 38px; }
.inv__yes { background: var(--emerald-900); color: var(--gold-300); animation: pulse 3.2s ease-in-out infinite; }
.inv__no { border: 1px solid rgba(21,48,40,.25); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(21,48,40,.35); } 50% { box-shadow: 0 0 0 7px rgba(21,48,40,0); } }
.inv__music { margin-top: auto; display: flex; align-items: flex-end; gap: 4px; height: 22px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.inv__music span { margin-right: 8px; align-self: center; }
.inv__music i { width: 3px; border-radius: 2px; background: var(--gold-500); height: 100%; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.inv__music i:nth-of-type(2) { animation-delay: -.2s; animation-duration: .8s; }
.inv__music i:nth-of-type(3) { animation-delay: -.45s; animation-duration: 1.2s; }
.inv__music i:nth-of-type(4) { animation-delay: -.1s; animation-duration: .9s; }
.inv__music i:nth-of-type(5) { animation-delay: -.6s; animation-duration: 1.1s; }
@keyframes eq { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px 11px 14px; border-radius: 999px;
  background: rgba(247,242,232,.96); color: var(--emerald-900);
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 16px 34px -12px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.chip svg { width: 20px; height: 20px; color: var(--gold-600); }
.chip--a { top: 16%; left: -2%; }
.chip--b { top: 46%; right: -4%; animation-delay: -2s; }
.chip--c { bottom: 12%; left: 0; animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin-top: 40px; }
.benefits li { padding: 24px 0; border-top: 1px solid var(--line-light); }
.benefits h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--gold-300); }
.benefits p { margin-top: 8px; font-size: .98rem; color: rgba(247,242,232,.72); text-wrap: pretty; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--gold-500); transition: width 1.1s var(--ease) .2s; }
.steps li.in::before { width: 64px; }
.steps__n { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; font-weight: 500; color: var(--gold-500); }
.steps h3 { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; color: var(--emerald-900); }
.steps p { margin-top: 10px; color: var(--ink-soft); max-width: 36ch; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: var(--ivory);
  padding: clamp(90px, 12vw, 150px) 0;
  background: radial-gradient(800px 420px at 50% 0%, rgba(46,94,78,.5), transparent 70%), linear-gradient(180deg, var(--emerald-900), var(--emerald-950));
}
.cta__in { display: flex; flex-direction: column; align-items: center; }
.cta .lead { margin-bottom: 38px; }

/* ---------- Подвал ---------- */
.footer { background: var(--emerald-950); color: rgba(247,242,232,.6); font-size: .9rem; border-top: 1px solid var(--line-light); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 26px 0; }
.footer__brand b { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-300); margin-right: 8px; }

/* ---------- WhatsApp-кнопка ---------- */
.wa-float {
  position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .header__in { justify-content: space-between; }
  .hero { padding-bottom: 110px; }
  .hero__in { grid-template-columns: 1fr; gap: 10px; }
  .hero__text { text-align: left; }
  .hero__stage { margin-top: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .envelope { margin-top: 70px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .benefits { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .chip { font-size: .82rem; padding: 9px 14px 9px 11px; }
  .chip--a { left: 0; } .chip--b { right: 0; }
  .footer__in { flex-direction: column; }
  .hero__scroll { display: none; }
}

/* ---------- Уважение к reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero__text > *, .hero__stage, .card { opacity: 1 !important; transform: none !important; }
  .env__card { transform: translateY(-58%); }
  .env__flap { transform: rotateX(180deg); z-index: 1; }
  .env__seal { opacity: 0; }
}
