/* ===================================================================
   БАНК А — design tokens (v3)
   white-at-top → raspberry-red-on-scroll background, glowing panels,
   centered rhythm, no black anywhere.
   =================================================================== */

:root {
  /* color */
  --white: #ffffff;
  --pink-mist: #fdedf3;
  --crimson: #e31c79;
  --red: #ef233c;
  --raspberry: #9c0e48;
  --lava-red: #b50128;
  --text: #3b0f22;
  --text-soft: rgba(59, 15, 34, 0.66);
  --hair: rgba(227, 28, 121, 0.18);

  /* type — single grotesk family, varying weight */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* spacing scale (base 4) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-9: 36px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* motion */
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 200ms;
  --t-med: 600ms;

  --radius-panel: 32px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 1080px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 1ms;
    --t-med: 1ms;
  }
}

/* ===================================================================
   reset
   =================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overscroll-behavior-y: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

#cards,
#advantages,
#trust,
#form {
  scroll-margin-top: clamp(70px, 11vw, 100px);
}

#form,
#advantages {
  scroll-snap-align: center;
  scroll-margin-top: 0;
}

.snap-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: clamp(70px, 11vw, 100px);
  /* fully invisible until activated — some sections (trust/lead/final-cta)
     are shorter than 100vh, so the next one peeks up from below the
     viewport while still scrolling through the previous one; opacity 0
     keeps that peek hidden and it just fades in on its own once active */
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.2s var(--ease-settle), transform 1.2s var(--ease-settle);
}

.snap-section.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .snap-section {
    min-height: auto;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}

html.modal-locked {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

mark {
  background: none;
  color: var(--crimson);
  font-weight: 800;
}

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

.sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ===================================================================
   shimmering background — white at top, grows raspberry-red on scroll
   =================================================================== */

.bg-shimmer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(125deg, var(--crimson) 0%, var(--red) 28%, #fff 52%, var(--raspberry) 76%, var(--crimson) 100%);
  background-size: 320% 320%;
  animation: shimmerPan 28s ease-in-out infinite;
  opacity: calc(0.04 + var(--scroll-shift, 0) * 0.96);
  transition: opacity 0.5s linear;
}

.bg-shimmer::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 50% calc(40% + var(--scroll-shift, 0) * 45%), rgba(255, 255, 255, 0.5), transparent 60%);
  mix-blend-mode: overlay;
}

@keyframes shimmerPan {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-shimmer {
    animation: none;
    background-position: 30% 40%;
  }
}

/* office takeover — replaces the shimmer with the real office photo
   for as long as the trust section is the active full-screen panel */
.bg-office {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 2.6s var(--ease-settle);
  pointer-events: none;
}

body:has(.trust.is-active, .lead.is-active, .final-cta.is-active) .bg-office {
  opacity: 1;
}

body:has(.trust.is-active, .lead.is-active, .final-cta.is-active) .bg-shimmer {
  opacity: 0 !important;
}

.bg-office img {
  /* the generic img,svg{max-width:100%} reset was clamping this back
     down to the container's own width, undoing the overscan below and
     leaving a gap (visible as a white stripe) along one edge. centering
     with position+transform instead of a negative % margin also avoids
     a separate CSS quirk: percentage margins (even top/bottom) always
     resolve against the container's WIDTH, which made the old overscan
     uneven between the vertical and horizontal edges */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: brightness(0.78) saturate(1.05) blur(16px);
  transition: filter 2.1s var(--ease-settle);
}

body:has(.trust.is-active, .lead.is-active, .final-cta.is-active) .bg-office img {
  filter: brightness(0.78) saturate(1.05) blur(0px);
}

body:has(.trust__top:hover, .trust__stat:hover) .bg-office img {
  filter: brightness(0.68) saturate(1.05) blur(3px);
}

body:has(.lead.is-active) .bg-office img {
  filter: brightness(0.78) saturate(1.05) blur(10px);
}

body:has(.final-cta.is-active) .bg-office img {
  filter: brightness(0.78) saturate(1.05) blur(18px);
}

@media (prefers-reduced-motion: reduce) {
  .bg-office,
  .bg-office img {
    transition: none;
  }
}

/* final-cta ray glow — pulsing blobs that bleed warm light across the
   whole page background and onto the footer below, while the red
   block is active */
.bg-finalcta-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(ellipse 90% 72% at 50% 94%, rgba(239, 35, 60, 0.5), transparent 64%),
    radial-gradient(ellipse 68% 55% at 20% 100%, rgba(156, 14, 72, 0.46), transparent 68%),
    radial-gradient(ellipse 68% 55% at 82% 98%, rgba(227, 28, 121, 0.44), transparent 68%);
  filter: blur(8px);
  animation: finalCtaRayPulse 3.2s ease-in-out infinite;
  transition: opacity 1.2s var(--ease-settle);
  pointer-events: none;
}

body:has(.final-cta.is-active) .bg-finalcta-glow {
  opacity: 1;
}

@keyframes finalCtaRayPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-finalcta-glow {
    animation: none;
    transition: none;
  }
}

/* ===================================================================
   page / panel rhythm
   =================================================================== */

.page {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 28px) clamp(18px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 36px);
}

.trust,
.lead,
.final-cta {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

footer.panel.footer {
  width: 100%;
  margin: 0;
  max-height: 600px;
  transition: max-height 0.6s var(--ease-settle), padding-top 0.6s var(--ease-settle), padding-bottom 0.6s var(--ease-settle), opacity 0.4s var(--ease-settle);
  animation: footerGlowPulse 5.5s ease-in-out infinite;
}

@keyframes footerGlowPulse {
  0%, 100% { box-shadow: inset 0 60px 70px -40px rgba(239, 35, 60, 0.28); }
  50% { box-shadow: inset 0 80px 100px -40px rgba(239, 35, 60, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  footer.panel.footer {
    animation: none;
    box-shadow: inset 0 60px 70px -40px rgba(239, 35, 60, 0.28);
  }
}

footer.panel.footer.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.footer__collapse {
  position: fixed;
  bottom: max(var(--sp-5), calc(env(safe-area-inset-bottom, 0px) + var(--sp-3)));
  left: 50%;
  width: 48px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: var(--pink-mist);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 24px -10px rgba(156, 14, 72, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: background var(--t-fast), color var(--t-fast), opacity 0.4s var(--ease-settle), transform 0.4s var(--ease-settle);
}

.footer__collapse.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.footer__collapse.is-leaving {
  pointer-events: none;
  animation: footerArrowFall 0.45s var(--ease-settle) forwards;
}

@keyframes footerArrowFall {
  0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(40px) scale(0.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .footer__collapse.is-leaving {
    animation: none;
    opacity: 0;
  }
}

.footer__collapse svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-settle);
}

.footer__collapse.is-collapsed svg {
  transform: rotate(180deg);
}

.footer__collapse:hover {
  background: var(--crimson);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  footer.panel.footer {
    transition: none;
  }
}

.panel {
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--radius-panel);
  background-color: var(--white);
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(135deg, var(--crimson), var(--red), var(--raspberry));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 88px);
  overflow: hidden;
  box-shadow:
    0 20px 60px -24px rgba(156, 14, 72, 0.35),
    0 0 46px -14px rgba(227, 28, 121, 0.4);
  transition: transform var(--t-fast) var(--ease-settle), box-shadow var(--t-fast) var(--ease-settle);
}

.panel:hover {
  transform: scale(1.008);
  box-shadow:
    0 26px 70px -22px rgba(156, 14, 72, 0.42),
    0 0 60px -10px rgba(227, 28, 121, 0.5);
}

.panel--tint {
  background-image: linear-gradient(var(--pink-mist), var(--pink-mist)), linear-gradient(135deg, var(--crimson), var(--red), var(--raspberry));
}

.panel--inverted {
  border: none;
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--crimson) 35%, var(--red) 60%, var(--raspberry) 100%);
  background-size: 160% 160%;
  color: var(--white);
}

.footer.panel {
  padding: clamp(32px, 5vw, 56px) clamp(24px, 6vw, 88px);
  padding-bottom: max(clamp(32px, 5vw, 56px), calc(env(safe-area-inset-bottom, 0px) + clamp(32px, 5vw, 56px)));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* panels with no static border — soft static outline on hover, rotating glow behind */
.panel--glow-only {
  border: none;
}

.panel--glow-only {
  background: var(--white);
}

@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* static light-raspberry outline, appears only on hover */
.ring-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-panel);
  padding: 4px;
  background: rgba(227, 28, 121, 0.42);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s var(--ease-settle);
}

.ring-hover:hover::before {
  opacity: 1;
}

/* glow halo sitting behind hero/cards-block — runs around the panel and pulses, on hover only */
.glow-wrap {
  position: relative;
  /* the sticky nav (plus its own margins) already eats into the first
     viewport, so this section should only claim what's left below it —
     otherwise its centered content sits low, with most of the slack
     piling up underneath instead of being split evenly top/bottom.
     --nav-block-h is measured in JS; the fallback matches its typical size */
  min-height: calc(100vh - var(--nav-block-h, 105px));
  min-height: calc(100dvh - var(--nav-block-h, 105px));
}

.glow-wrap .panel {
  position: relative;
  z-index: 1;
}

.glow-halo {
  position: absolute;
  inset: -18px;
  z-index: 0;
  border-radius: calc(var(--radius-panel) + 12px);
  background: conic-gradient(from var(--ring-angle, 0deg), transparent 0%, var(--raspberry) 22%, var(--red) 45%, var(--crimson) 68%, transparent 92%);
  filter: blur(46px);
  opacity: 0.16;
  pointer-events: none;
  animation: ringSpin 6s linear infinite, haloPulse 3s ease-in-out infinite;
  transition: opacity 0.45s var(--ease-settle);
}

.glow-wrap:hover .glow-halo {
  opacity: 0.28;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.14; }
  50% { opacity: 0.26; }
}

/* buttons: no border, just a rotating gradient backlight that intensifies/weakens */
.btn--glow {
  isolation: isolate;
}

.btn--glow::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--ring-angle, 0deg), transparent 0%, var(--raspberry) 22%, var(--red) 45%, var(--crimson) 68%, transparent 92%);
  filter: blur(16px);
  opacity: 0.75;
  animation: ringSpin 3.4s linear infinite, ringPulse 2.2s ease-in-out infinite;
}

@keyframes ringSpin {
  to { --ring-angle: 360deg; }
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.45; filter: blur(16px) brightness(0.9); }
  50% { opacity: 0.85; filter: blur(20px) brightness(1.3); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-halo,
  .btn--glow::after,
  .advantage-card:hover::before {
    animation: none !important;
  }
}

/* decorative gradient blobs — bleed across panel edges for soft transitions */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    display: none;
  }
}


/* ===================================================================
   type primitives
   =================================================================== */

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
  max-width: 18ch;
}

.section-title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 22ch;
}

.section-title--crimson {
  color: var(--crimson);
}

.text-crimson {
  color: var(--crimson);
}

.glow-text {
  text-shadow: 0 0 22px rgba(227, 28, 121, 0.32), 0 0 50px rgba(227, 28, 121, 0.16);
}

/* ===================================================================
   buttons
   =================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-settle), box-shadow var(--t-fast) var(--ease-settle), background var(--t-fast);
}

.btn--lg {
  padding: 19px 38px;
  font-size: 17px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--crimson), var(--red));
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(227, 28, 121, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 36px -10px rgba(227, 28, 121, 0.6);
}

.btn--glow {
  animation: btnGlow 2.6s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(227, 28, 121, 0.45), 0 0 0 0 rgba(227, 28, 121, 0.35); }
  50% { box-shadow: 0 18px 40px -10px rgba(227, 28, 121, 0.65), 0 0 30px 8px rgba(227, 28, 121, 0.22); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--glow {
    animation: none;
  }
}

.btn--light {
  background: var(--white);
  color: var(--crimson);
}

.btn--light:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 36px -10px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
  background: var(--white);
  border: 1.5px solid rgba(227, 28, 121, 0.35);
  color: var(--crimson);
}

.btn--ghost:hover {
  background: var(--pink-mist);
}

/* ===================================================================
   logo
   =================================================================== */

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 26px;
  width: auto;
}

/* ===================================================================
   nav
   =================================================================== */

.nav {
  position: sticky;
  top: max(clamp(8px, 1.6vw, 16px), env(safe-area-inset-top, 0px));
  z-index: 50;
  margin: clamp(8px, 1.6vw, 16px) clamp(12px, 3vw, 28px) clamp(18px, 3vw, 32px);
  margin-left: max(clamp(12px, 3vw, 28px), env(safe-area-inset-left, 0px));
  margin-right: max(clamp(12px, 3vw, 28px), env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px -14px rgba(156, 14, 72, 0.3);
}

.nav__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.nav__pulse {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 28, 121, 0.5), transparent 70%);
  filter: blur(20px);
  opacity: 0.18;
  animation: navPulse 7s ease-in-out infinite;
}

.nav__pulse--a {
  width: 160px;
  height: 90px;
  left: 8%;
  top: -30px;
  animation-delay: 0s;
}

.nav__pulse--b {
  width: 130px;
  height: 90px;
  left: 48%;
  top: -20px;
  animation-delay: 2.3s;
}

.nav__pulse--c {
  width: 150px;
  height: 90px;
  right: 6%;
  top: -30px;
  animation-delay: 4.6s;
}

@keyframes navPulse {
  0%, 100% { opacity: 0.1; transform: scale(0.9); }
  50% { opacity: 0.3; transform: scale(1.15); }
}

@keyframes navPulseStrong {
  0%, 100% { opacity: 0.16; transform: scale(0.92); }
  50% { opacity: 0.42; transform: scale(1.2); }
}

.nav:has(.nav__menu-btn:hover) .nav__pulse {
  animation: navPulseStrong 4.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nav__pulse {
    animation: none;
    opacity: 0.14;
  }

  .nav:has(.nav__menu-btn:hover) .nav__pulse {
    animation: none;
  }
}

.nav__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-6);
}

/* press-and-hold easter egg — charge a lava-lamp-style energy cluster
   in the empty nav space, release to launch it bouncing around until
   it loses energy */
.nav__fireball-charge,
.nav__fireball-ball {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  isolation: isolate;
}

.nav__fireball-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-mist);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__menu-btn svg {
  width: 18px;
  height: 18px;
}

.nav__menu-btn:hover {
  background: var(--crimson);
  color: var(--white);
}

.nav__menu-btn span {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.nav__links a {
  transition: color var(--t-fast);
}

.nav__links a:hover {
  color: var(--crimson);
}

.nav__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--hair);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  flex: 0 1 200px;
  min-width: 0;
  max-width: 240px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.nav__search:hover,
.nav__search:focus-within {
  border-color: rgba(227, 28, 121, 0.4);
  box-shadow: 0 0 0 4px rgba(227, 28, 121, 0.08), 0 0 16px -4px rgba(227, 28, 121, 0.25);
}

.nav__search svg {
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.nav__search input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  color: var(--text);
}

.nav__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pink-mist);
  color: var(--text);
  border: none;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__icon-btn svg {
  width: 18px;
  height: 18px;
}

/* the generic svg{display:block} reset otherwise beats the browser's
   own [hidden]{display:none} rule (author-origin always wins over
   user-agent-origin, regardless of specificity) */
#accountIcon[hidden] {
  display: none;
}

.nav__icon-btn:hover {
  background: var(--crimson);
  color: var(--white);
}

.nav__avatar-initials {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#accountBtn:has(#accountInitials:not([hidden])) {
  background: linear-gradient(135deg, var(--crimson), var(--raspberry));
  color: var(--white);
}

.nav__drawer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: var(--sp-2);
  padding: 0 var(--sp-4);
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 24px 50px -16px rgba(156, 14, 72, 0.35);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height var(--t-med) var(--ease-settle), opacity var(--t-fast), padding var(--t-med) var(--ease-settle);
}

.nav.is-open .nav__drawer {
  max-height: 520px;
  opacity: 1;
  padding: var(--sp-4);
  pointer-events: auto;
}

.nav__links {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--hair);
  margin-bottom: var(--sp-3);
}

.nav__search {
  max-width: none;
}

/* account avatar + cosmetic popover — unfolds leftward into empty nav space */
.nav__account {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  margin-left: auto;
}

.nav__account-pop {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  min-height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid rgba(227, 28, 121, 0.55);
  border-radius: 16px;
  padding: var(--sp-2) var(--sp-4);
  box-shadow: 0 20px 44px -14px rgba(156, 14, 72, 0.4);
  white-space: nowrap;
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: right center;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease-settle), transform var(--t-fast) var(--ease-settle);
}

.nav__account-pop:not([hidden]) {
  opacity: 1;
  transform: scaleX(1);
  animation: accountPopGlow 3.2s ease-in-out infinite;
  pointer-events: auto;
}

@keyframes accountPopGlow {
  0%, 100% {
    box-shadow: 0 20px 44px -14px rgba(156, 14, 72, 0.4), 0 0 0 0 rgba(227, 28, 121, 0.35);
    border-color: rgba(227, 28, 121, 0.4);
  }
  50% {
    box-shadow: 0 20px 44px -14px rgba(156, 14, 72, 0.4), 0 0 22px 4px rgba(227, 28, 121, 0.45);
    border-color: rgba(227, 28, 121, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__account-pop:not([hidden]) {
    animation: none;
  }
}

.nav__account-empty:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__account-empty p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-soft);
  white-space: normal;
}

.nav__account-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--crimson), var(--raspberry));
  color: var(--white);
  transition: transform var(--t-fast) var(--ease-settle);
}

.nav__account-cta svg {
  width: 16px;
  height: 16px;
  transform: rotate(var(--arrow-rot, 0deg));
  transition: transform 0.5s var(--ease-settle);
}

.nav__account-cta:hover {
  transform: scale(1.1) translateY(2px);
}

.nav__account-info:not([hidden]) {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.3;
}

.nav__account-info small {
  color: var(--text-soft);
  font-size: 12px;
}

@media (min-width: 861px) {
  .nav__menu-btn span {
    display: inline;
  }

  .nav__drawer {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
    margin-right: auto;
    flex: 1 1 auto;
    min-width: 0;
    position: static;
    padding: 0 !important;
    background: none;
    box-shadow: none;
    margin-top: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: row !important;
    align-items: center !important;
    gap: var(--sp-4) !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .nav__search {
    max-width: 240px;
  }
}

/* ===================================================================
   services dropdown — unfolds right under the menu button
   =================================================================== */

.nav__menu-wrap {
  position: relative;
}

.services-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(420px, 86vw);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height var(--t-med) var(--ease-settle), opacity var(--t-fast);
}

.nav.is-open .services-panel {
  max-height: 460px;
  opacity: 1;
  pointer-events: auto;
}

.services-panel__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  background: var(--white);
  border-radius: 22px;
  padding: var(--sp-4);
  box-shadow: 0 24px 50px -16px rgba(156, 14, 72, 0.4);
}

.services-panel__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(from var(--ring-angle, 0deg), transparent 0%, var(--raspberry) 25%, var(--red) 50%, var(--crimson) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
}

.nav.is-open .services-panel__inner::before {
  opacity: 1;
  animation: ringSpin 3s linear infinite, ringPulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nav.is-open .services-panel__inner::before {
    animation: none;
    opacity: 0.6;
  }
}

.service-tile {
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--pink-mist);
  transition: transform var(--t-fast) var(--ease-settle);
}

.service-tile:hover {
  transform: translateY(-2px);
}

.service-tile--accent {
  color: var(--white);
  background: linear-gradient(135deg, var(--crimson), var(--red), var(--raspberry));
  background-size: 200% 200%;
  animation: gradientShift 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .service-tile--accent {
    animation: none;
  }
}

/* ===================================================================
   page dim overlay — shown while the services menu is open
   =================================================================== */

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 6, 12, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-settle);
}

body.menu-open .page-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ===================================================================
   policy modal
   =================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: rgba(59, 15, 34, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-settle);
}

.modal-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(60vh, 420px);
  max-height: min(60dvh, 420px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 24px;
  padding: var(--sp-8);
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-settle);
}

.modal-overlay:not([hidden]) .modal-card {
  transform: scale(1);
}

.modal-card__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 var(--sp-5);
}

.modal-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}

.modal-card__list li:last-child {
  color: var(--crimson);
  font-weight: 700;
}

.modal-card__fine {
  margin-top: var(--sp-5);
  font-size: 12px;
  color: var(--text-soft);
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hair);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  flex-shrink: 0;
  cursor: not-allowed;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.modal-close.is-ready {
  background: linear-gradient(135deg, var(--crimson), var(--raspberry));
  color: var(--white);
  cursor: pointer;
}

.modal-close.is-ready:hover {
  transform: scale(1.08);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

/* ===================================================================
   hero (centered)
   =================================================================== */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64vh;
  min-height: 64dvh;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-6);
}

.hero__title .text-crimson {
  transition: text-shadow 0.6s var(--ease-settle);
}

.hero--promo:hover .hero__title .text-crimson {
  text-shadow: 0 0 30px rgba(227, 28, 121, 0.5), 0 0 64px rgba(227, 28, 121, 0.28);
}

.hero__subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 46ch;
  margin: 0 auto var(--sp-8);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

/* ===================================================================
   hero--promo — Sber-Prime style card promo (text left, card right)
   =================================================================== */

.hero--promo {
  text-align: left;
  display: block;
  min-height: auto;
  transition: transform var(--t-fast) var(--ease-settle), box-shadow var(--t-fast) var(--ease-settle);
}

.hero--promo:hover {
  transform: scale(1.022);
}

/* lava-lamp blob cluster — ambient, autonomous, biased toward the card art */
.lava {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: inherit;
  opacity: 0.98;
  filter: blur(40px) saturate(1.3);
  transform: translate(var(--cx, 0px), var(--cy, 0px));
  transition: opacity 1.2s var(--ease-settle), filter 1.4s var(--ease-settle), transform 1.7s var(--ease-settle);
  pointer-events: none;
}

.hero--promo:hover .lava {
  opacity: 1;
  filter: blur(36px) saturate(1.55);
}

.lava__blob {
  position: absolute;
  top: 52%;
  left: 68%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  mix-blend-mode: multiply;
  opacity: 0.76;
  border-radius: 58% 42% 53% 47% / 48% 58% 42% 52%;
  transition: opacity 1s var(--ease-settle), width 5.5s var(--ease-settle), height 5.5s var(--ease-settle), margin 5.5s var(--ease-settle);
}

.hero--promo:hover .lava__blob {
  opacity: 0.9;
}

.lava__blob--a {
  animation: lavaMorphA 8s ease-in-out infinite, lavaDriftA 13s ease-in-out infinite, lavaColorA 7s ease-in-out infinite;
}

.hero--promo:hover .lava__blob--a {
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
}

.lava__blob--b {
  top: 46%;
  left: 80%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  animation: lavaMorphB 6.5s ease-in-out infinite, lavaDriftB 10s ease-in-out infinite, lavaColorB 5.5s ease-in-out infinite;
}

.hero--promo:hover .lava__blob--b {
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
}

.lava__blob--c {
  top: 64%;
  left: 60%;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  animation: lavaMorphC 9.5s ease-in-out infinite, lavaDriftC 20s ease-in-out infinite, lavaColorC 8.5s ease-in-out infinite;
}

.hero--promo:hover .lava__blob--c {
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
}

/* extra blob — only shows up while the cursor is actually over the
   block, fading out again on mouse leave */
.lava__blob--d {
  top: 36%;
  left: 46%;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  opacity: 0;
  animation: lavaMorphD 7s ease-in-out infinite, lavaDriftD 11s ease-in-out infinite, lavaColorD 6s ease-in-out infinite;
}

.hero--promo:hover .lava__blob--d {
  opacity: 0.8;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
}

@keyframes lavaMorphA {
  0%, 100% { border-radius: 58% 42% 53% 47% / 48% 58% 42% 52%; }
  34% { border-radius: 42% 58% 38% 62% / 60% 44% 56% 40%; }
  67% { border-radius: 52% 48% 62% 38% / 40% 54% 46% 60%; }
}

@keyframes lavaMorphB {
  0%, 100% { border-radius: 46% 54% 60% 40% / 55% 45% 58% 42%; }
  50% { border-radius: 60% 40% 44% 56% / 42% 58% 40% 60%; }
}

@keyframes lavaMorphC {
  0%, 100% { border-radius: 50% 50% 38% 62% / 60% 42% 55% 45%; }
  40% { border-radius: 40% 60% 56% 44% / 46% 56% 42% 58%; }
  75% { border-radius: 58% 42% 50% 50% / 55% 45% 60% 40%; }
}

/* blobs a & b stay parked close behind the card to backlight it */
@keyframes lavaDriftA {
  0% { transform: translate(0, 0) scale(1); }
  18% { transform: translate(130px, -50px) scale(1.08); }
  36% { transform: translate(70px, 90px) scale(0.94); }
  54% { transform: translate(-110px, 60px) scale(1.12); }
  72% { transform: translate(-90px, -80px) scale(0.96); }
  88% { transform: translate(60px, -40px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes lavaDriftB {
  0% { transform: translate(0, 0) scale(1.05); }
  22% { transform: translate(-90px, 40px) scale(0.92); }
  44% { transform: translate(-40px, -90px) scale(1.1); }
  66% { transform: translate(80px, -30px) scale(0.95); }
  84% { transform: translate(60px, 70px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1.05); }
}

/* blob c is the roamer — mostly stays on the right side of the block,
   only occasionally dipping toward the left before heading back */
@keyframes lavaDriftC {
  0% { transform: translate(0, 0) scale(0.95); }
  12% { transform: translate(100px, 40px) scale(1.08); }
  24% { transform: translate(60px, -60px) scale(0.92); }
  38% { transform: translate(130px, 30px) scale(1.05); }
  52% { transform: translate(50px, -40px) scale(0.97); }
  64% { transform: translate(-280px, 20px) scale(1.12); }
  76% { transform: translate(-250px, -20px) scale(0.98); }
  88% { transform: translate(100px, 30px) scale(1.04); }
  100% { transform: translate(0, 0) scale(0.95); }
}

@keyframes lavaColorA {
  0%, 100% { background: var(--crimson); }
  50% { background: var(--lava-red); }
}

@keyframes lavaColorB {
  0%, 78%, 100% { background: var(--crimson); }
  88% { background: var(--lava-red); }
}

@keyframes lavaColorC {
  0%, 100% { background: var(--crimson); }
  50% { background: var(--lava-red); }
}

@keyframes lavaMorphD {
  0%, 100% { border-radius: 54% 46% 60% 40% / 44% 56% 40% 60%; }
  50% { border-radius: 44% 56% 42% 58% / 58% 42% 56% 44%; }
}

@keyframes lavaDriftD {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-60px, 50px) scale(1.1); }
  50% { transform: translate(40px, 80px) scale(0.92); }
  75% { transform: translate(70px, -30px) scale(1.06); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes lavaColorD {
  0%, 100% { background: var(--lava-red); }
  50% { background: var(--crimson); }
}

@media (prefers-reduced-motion: reduce) {
  .lava {
    transition: none;
  }
  .lava__blob {
    animation: none;
  }
}

.hero__promo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-10);
}

.hero__promo-text {
  flex: 1 1 420px;
  min-width: 0;
}

.hero__promo-text .hero__title {
  text-align: left;
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 0 0 var(--sp-4);
}

.hero__promo-text .hero__subtitle {
  text-align: left;
  margin: 0 0 var(--sp-6);
  max-width: 42ch;
}

.hero__promo-text .hero__actions {
  justify-content: flex-start;
}

.hero__details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease-settle), opacity var(--t-fast), margin-top var(--t-med) var(--ease-settle);
}

.hero__details.is-open {
  max-height: 240px;
  opacity: 1;
  margin-top: var(--sp-7);
}

.hero__details p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 100%;
  text-wrap: pretty;
}

.hero__consent {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: var(--sp-6);
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
}

.hero__consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1.5px solid rgba(227, 28, 121, 0.4);
  background: var(--pink-mist);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.hero__consent input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--crimson), var(--raspberry));
  border-color: transparent;
}

.hero__consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.policy-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--crimson);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.hero__promo-visual {
  position: relative;
  z-index: 0;
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .hero__promo {
    flex-direction: column;
  }

  .hero__promo-text .hero__title,
  .hero__promo-text .hero__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__promo-text .hero__actions {
    justify-content: center;
  }

  .hero__consent {
    justify-content: center;
  }
}

/* ===================================================================
   reveal-on-scroll
   =================================================================== */

.reveal {
  --reveal-stagger: 0ms;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity var(--t-med) var(--ease-settle), transform var(--t-med) var(--ease-settle);
  transition-delay: var(--reveal-stagger);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* advantage cards drive in from their own side of the grid instead of
   just fading up, like the rest of the .reveal elements */
.advantage-card.reveal {
  transform: translateX(var(--reveal-x, -60px)) scale(0.98);
  transition: opacity var(--t-med) var(--ease-settle), transform 0.7s var(--ease-settle);
  transition-delay: var(--reveal-stagger);
}

.advantage-card.reveal.is-visible {
  transform: translateX(0) scale(1);
}

.advantage-card--a,
.advantage-card--c {
  --reveal-x: -70px;
}

.advantage-card--b,
.advantage-card--d {
  --reveal-x: 70px;
}

/* ===================================================================
   tilting photo component (real card / office imagery)
   =================================================================== */

.photo-tilt {
  position: relative;
  width: min(420px, 100%);
}

.photo-tilt--big {
  width: min(860px, 99%);
}

.photo-tilt__img {
  width: 100%;
  display: block;
}

/* ===================================================================
   advantages — plain text + bento grid on the bare page background
   =================================================================== */

.advantages {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: calc(clamp(40px, 7vw, 96px) - 40px) clamp(12px, 3vw, 28px) calc(clamp(40px, 7vw, 96px) + 40px);
  text-align: center;
}

.advantages .section-title--crimson {
  position: relative;
  display: block;
  color: var(--crimson);
}

.adv-title__glow {
  position: absolute;
  inset: 0;
  color: transparent;
  text-shadow: 0 0 22px rgba(227, 28, 121, 0.32), 0 0 50px rgba(227, 28, 121, 0.16);
  opacity: 0;
  transition: opacity 2.8s var(--ease-settle);
  animation: advTitlePulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.advantages:has(.advantage-card:not(.advantage-card--accent):hover) .adv-title__glow {
  opacity: 1;
}

@keyframes advTitlePulse {
  0%, 100% { text-shadow: 0 0 22px rgba(227, 28, 121, 0.32), 0 0 50px rgba(227, 28, 121, 0.16); }
  50% { text-shadow: 0 0 38px rgba(227, 28, 121, 0.58), 0 0 76px rgba(227, 28, 121, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .adv-title__glow {
    transition: none;
    animation: none;
  }
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
  gap: var(--sp-7);
  margin-top: var(--sp-12);
  text-align: left;
}

.advantage-card--a { grid-column: span 7; }
.advantage-card--b { grid-column: span 5; }
.advantage-card--c { grid-column: span 5; }
.advantage-card--d { grid-column: span 7; }

@media (max-width: 760px) {
  .advantage-card--a,
  .advantage-card--b,
  .advantage-card--c,
  .advantage-card--d {
    grid-column: span 12;
  }
}

.advantage-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid rgba(227, 28, 121, 0.3);
  border-radius: 24px;
  padding: var(--sp-8);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--t-fast) var(--ease-settle), opacity var(--t-fast) var(--ease-settle), filter var(--t-fast) var(--ease-settle);
}

.advantage-grid:hover .advantage-card {
  transform: scale(0.97);
  opacity: 0.65;
  filter: blur(2.5px);
}

.advantage-grid .advantage-card:hover {
  transform: scale(1.05);
  opacity: 1;
  filter: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .advantage-grid:hover .advantage-card,
  .advantage-grid .advantage-card:hover {
    filter: none;
  }
}

.advantage-card h3 {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.005em;
  transition: color 1s var(--ease-settle);
}

.advantage-card:not(.advantage-card--accent):hover h3 {
  color: var(--crimson);
}

/* mini lava lamp inside the white cards — calmer than the hero one,
   capped at the signature raspberry, biased toward the empty corner
   so it doesn't compete with the text */
.card-lava {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  filter: blur(24px) saturate(1.1);
  transition: opacity 4s var(--ease-settle);
  pointer-events: none;
}

.advantage-card:hover .card-lava {
  opacity: 0.85;
  transition: opacity 5s var(--ease-settle);
}

.card-lava__blob {
  position: absolute;
  top: 72%;
  left: 80%;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  border-radius: 55% 45% 52% 48% / 50% 55% 45% 50%;
  animation: cardLavaMorphA 11s ease-in-out infinite, cardLavaDriftA 16s ease-in-out infinite, cardLavaColorA 9s ease-in-out infinite;
}

.card-lava__blob--b {
  top: 28%;
  left: 88%;
  width: 95px;
  height: 95px;
  margin: -48px 0 0 -48px;
  animation: cardLavaMorphB 9s ease-in-out infinite, cardLavaDriftB 13s ease-in-out infinite, cardLavaColorB 7.5s ease-in-out infinite;
}

@keyframes cardLavaMorphA {
  0%, 100% { border-radius: 55% 45% 52% 48% / 50% 55% 45% 50%; }
  50% { border-radius: 46% 54% 44% 56% / 56% 46% 54% 44%; }
}

@keyframes cardLavaMorphB {
  0%, 100% { border-radius: 50% 50% 60% 40% / 45% 55% 42% 58%; }
  50% { border-radius: 58% 42% 46% 54% / 55% 42% 58% 45%; }
}

@keyframes cardLavaDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-22px, -18px) scale(1.1); }
}

@keyframes cardLavaDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, 20px) scale(0.9); }
}

@keyframes cardLavaColorA {
  0%, 100% { background: var(--pink-mist); }
  50% { background: var(--raspberry); }
}

@keyframes cardLavaColorB {
  0%, 100% { background: rgba(227, 28, 121, 0.55); }
  50% { background: var(--raspberry); }
}

@media (prefers-reduced-motion: reduce) {
  .advantage-card h3 {
    transition: none;
  }
  .card-lava {
    transition: none;
  }
  .card-lava__blob {
    animation: none;
  }
}

.advantage-card p {
  position: relative;
  z-index: 1;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
}

.advantage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at var(--hx, 15%) var(--hy, 25%), rgba(227, 28, 121, 0.16), transparent 65%),
    radial-gradient(circle at calc(100% - var(--hx, 15%)) calc(100% - var(--hy, 25%)), rgba(156, 14, 72, 0.14), transparent 68%),
    radial-gradient(circle at var(--hx2, 80%) var(--hy2, 70%), rgba(239, 35, 60, 0.14), transparent 62%),
    linear-gradient(135deg, rgba(227, 28, 121, 0.07), rgba(239, 35, 60, 0.06));
  transition: opacity 0.6s var(--ease-settle);
  pointer-events: none;
}

.advantage-card:hover::before {
  opacity: 1;
  animation: chaosDrift 9s ease-in-out infinite alternate, chaosDrift2 11s ease-in-out infinite alternate;
}

@property --hx {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 15%;
}

@property --hy {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 25%;
}

@property --hx2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 80%;
}

@property --hy2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 70%;
}

@keyframes chaosDrift {
  0% { --hx: 5%; --hy: 10%; }
  22% { --hx: 90%; --hy: 15%; }
  48% { --hx: 60%; --hy: 90%; }
  71% { --hx: 10%; --hy: 80%; }
  100% { --hx: 95%; --hy: 95%; }
}

@keyframes chaosDrift2 {
  0% { --hx2: 95%; --hy2: 90%; }
  30% { --hx2: 15%; --hy2: 85%; }
  55% { --hx2: 5%; --hy2: 8%; }
  78% { --hx2: 85%; --hy2: 30%; }
  100% { --hx2: 50%; --hy2: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .advantage-card:hover::before {
    animation: none;
  }
}

.advantage-card--accent {
  color: var(--white);
  border: none;
  background: linear-gradient(135deg, var(--crimson), var(--red), var(--raspberry));
  background-size: 200% 200%;
  background-position: 0% 50%;
}

.advantage-card--accent:hover {
  animation: gradientShift 5s ease-in-out infinite, accentPulse 3.5s ease-in-out infinite;
}

.advantage-card--accent p {
  color: rgba(255, 255, 255, 0.85);
}

@keyframes accentPulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.18) saturate(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .advantage-card--accent:hover {
    animation: none;
  }
}

/* ===================================================================
   trust
   =================================================================== */

.trust {
  position: relative;
  border-color: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

.trust:hover {
  transform: none;
  box-shadow: none;
}

.trust__content {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  width: min(440px, 100%);
  transform: translateY(var(--trust-shift, -90px));
}

@media (prefers-reduced-motion: reduce) {
  .trust__content {
    transform: none;
  }
}

.trust__top,
.trust__stat {
  position: relative;
  transition: transform 0.35s var(--ease-settle);
}

.trust__top:hover,
.trust__stat:hover {
  transform: scale(1.03);
}

/* a thin white halo that hugs the card's own border-radius exactly
   (padding + dual-mask ring, same technique used elsewhere on the
   site) — the light travels around that ring via a real animated
   angle, so the motion is continuously smooth, not stepped, and it
   brightens/dims as it goes instead of just sitting still */
.trust__top::after,
.trust__stat::after {
  content: "";
  position: absolute;
  inset: -2.5px;
  z-index: 1;
  border-radius: inherit;
  padding: 4px;
  background: conic-gradient(from var(--ring-angle, 0deg), transparent 0%, rgba(255, 255, 255, 0.95) 16%, rgba(255, 255, 255, 0.95) 34%, transparent 52%, transparent 100%);
  filter: blur(1.5px) brightness(0.85);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-settle);
}

.trust__top:hover::after,
.trust__stat:hover::after {
  opacity: 1;
  animation: ringSpin 2.4s linear infinite, trustRingPulse 1.6s ease-in-out infinite;
}

@keyframes trustRingPulse {
  0%, 100% { filter: blur(1.5px) brightness(0.85); }
  50% { filter: blur(2px) brightness(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .trust__top:hover::after,
  .trust__stat:hover::after {
    animation: none;
    opacity: 0.7;
    filter: blur(1.5px) brightness(1.1);
  }
}

.trust__top {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  box-shadow: 0 24px 50px -20px rgba(59, 15, 34, 0.4);
}

.statement {
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.trust mark {
  color: var(--text);
  text-shadow: none;
  transition: color 2.8s var(--ease-settle), text-shadow 2.8s var(--ease-settle);
}

.trust:has(.trust__top:hover, .trust__stat:hover) mark {
  color: var(--crimson);
  text-shadow: 0 0 22px rgba(227, 28, 121, 0.32), 0 0 50px rgba(227, 28, 121, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .trust mark {
    transition: none;
  }
}

.trust__stat {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  box-shadow: 0 24px 50px -20px rgba(59, 15, 34, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
}

.trust__stat-num {
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--crimson), var(--raspberry));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust__stat-label {
  color: var(--text-soft);
  font-size: 16px;
}

/* ===================================================================
   lead form (centered)
   =================================================================== */

.trust {
  min-height: 78vh;
  min-height: 78dvh;
}

.lead {
  min-height: 66vh;
  min-height: 66dvh;
  text-align: center;
  padding-top: calc(clamp(28px, 4vw, 52px) - 40px);
  padding-bottom: calc(clamp(28px, 4vw, 52px) + 40px);
  background-color: rgba(156, 14, 72, 0.55);
  background-image: linear-gradient(135deg, rgba(227, 28, 121, 0.65), rgba(239, 35, 60, 0.55), rgba(156, 14, 72, 0.65), rgba(227, 28, 121, 0.65));
  background-size: 300% 300%;
  background-position: 0% 50%;
  border-color: rgba(227, 28, 121, 0.6);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  transition: transform 0.5s var(--ease-settle), box-shadow 0.5s var(--ease-settle);
}

/* grows and shimmers for as long as the cursor stays anywhere inside it */
.lead:hover {
  transform: scale(1.035);
  animation: gradientShift 4.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lead:hover {
    transform: none;
    animation: none;
  }
}

/* once a lead is submitted, the whole block is removed from the scroll
   flow for good — scrolling from "Надёжность" goes straight into the
   red final-cta block, nothing left here to snap to */
#form.is-gone {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
  scroll-snap-align: none;
  overflow: hidden;
  transition: min-height 1.1s var(--ease-settle), padding-top 1.1s var(--ease-settle),
    padding-bottom 1.1s var(--ease-settle), opacity 0.8s var(--ease-settle);
}

@media (prefers-reduced-motion: reduce) {
  #form.is-gone {
    transition: none;
  }
}

/* big, sharp, churning blobs that only surface on hover */
.lead__lava {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  filter: blur(12px) saturate(1.4);
  transition: opacity 1s var(--ease-settle);
  pointer-events: none;
}

.lead:hover .lead__lava {
  opacity: 1;
}

.lead__lava-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  mix-blend-mode: multiply;
  opacity: 0.85;
  border-radius: 55% 45% 52% 48% / 50% 55% 45% 50%;
}

.lead__lava-blob--a {
  top: 32%;
  left: 28%;
  animation: leadLavaMorphA 5.5s ease-in-out infinite, leadLavaDriftA 8s ease-in-out infinite, leadLavaColorA 3.4s ease-in-out infinite;
}

.lead__lava-blob--b {
  top: 62%;
  left: 68%;
  width: 230px;
  height: 230px;
  margin: -115px 0 0 -115px;
  animation: leadLavaMorphB 4.6s ease-in-out infinite, leadLavaDriftB 7s ease-in-out infinite, leadLavaColorB 3s ease-in-out infinite;
}

.lead__lava-blob--c {
  top: 45%;
  left: 48%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  animation: leadLavaMorphC 6.2s ease-in-out infinite, leadLavaDriftC 7.6s ease-in-out infinite, leadLavaColorC 3.7s ease-in-out infinite;
}

@keyframes leadLavaMorphA {
  0%, 100% { border-radius: 55% 45% 52% 48% / 50% 55% 45% 50%; }
  50% { border-radius: 42% 58% 38% 62% / 60% 42% 58% 40%; }
}

@keyframes leadLavaMorphB {
  0%, 100% { border-radius: 50% 50% 60% 40% / 45% 55% 42% 58%; }
  50% { border-radius: 60% 40% 44% 56% / 56% 42% 58% 44%; }
}

@keyframes leadLavaMorphC {
  0%, 100% { border-radius: 48% 52% 55% 45% / 52% 48% 55% 45%; }
  50% { border-radius: 58% 42% 46% 54% / 44% 58% 40% 60%; }
}

@keyframes leadLavaDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -45px) scale(1.18); }
}

@keyframes leadLavaDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-55px, 35px) scale(0.88); }
}

@keyframes leadLavaDriftC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 50px) scale(1.12); }
}

@keyframes leadLavaColorA {
  0%, 100% { background: var(--raspberry); }
  50% { background: var(--red); }
}

@keyframes leadLavaColorB {
  0%, 100% { background: var(--red); }
  50% { background: var(--raspberry); }
}

@keyframes leadLavaColorC {
  0%, 100% { background: var(--raspberry); }
  50% { background: var(--crimson); }
}

@media (prefers-reduced-motion: reduce) {
  .lead__lava {
    transition: none;
  }
  .lead__lava-blob {
    animation: none;
  }
}

.lead__intro {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto var(--sp-5);
}

.lead__text {
  color: var(--white);
  font-size: 17px;
  max-width: 36ch;
  margin: 0 auto;
}

#formHeading {
  color: var(--white);
  animation: formHeadingPulse 3s ease-in-out infinite;
}

@keyframes formHeadingPulse {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 255, 255, 0.45), 0 0 40px rgba(255, 255, 255, 0.22); }
  50% { text-shadow: 0 0 28px rgba(255, 255, 255, 0.7), 0 0 60px rgba(255, 255, 255, 0.36); }
}

@media (prefers-reduced-motion: reduce) {
  #formHeading {
    animation: none;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.45), 0 0 40px rgba(255, 255, 255, 0.22);
  }
}

.lead__form {
  position: relative;
  z-index: 1;
  text-align: left;
  background: #ffe2ee;
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  max-width: 408px;
  margin: 0 auto;
  animation: leadFormGlowPulse 3.2s ease-in-out infinite;
}

@keyframes leadFormGlowPulse {
  0%, 100% { box-shadow: 0 0 24px 2px rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 40px 6px rgba(255, 255, 255, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .lead__form {
    animation: none;
    box-shadow: 0 0 24px 2px rgba(255, 255, 255, 0.35);
  }
}

.lead__field {
  margin-bottom: var(--sp-4);
}

.lead__field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--sp-2);
}

.lead__field input {
  width: 100%;
  border: none;
  background: #ffd9e8;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow var(--t-fast);
}

.lead__field input::placeholder {
  color: rgba(156, 14, 72, 0.55);
}

.lead__field input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--crimson);
}

.lead__field-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--sp-2);
}

/* single on/off-style switch — one sliding thumb behind two labels,
   instead of two separate buttons */
.lead__card-choice {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffd9e8;
  border-radius: var(--radius-pill);
  padding: 4px;
}

.lead__card-choice-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  /* same gradient family as .btn--primary, just left to shimmer on its
     own instead of carrying a glow/halo */
  background: linear-gradient(135deg, var(--crimson), var(--red), var(--raspberry));
  background-size: 200% 200%;
  animation: gradientShift 5s ease-in-out infinite;
  transition: transform 0.4s var(--ease-settle);
  pointer-events: none;
}

.lead__card-choice:has(#cardTypePremium:checked) .lead__card-choice-thumb {
  transform: translateX(100%);
}

.lead__card-choice input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead__card-choice label {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  /* override the generic .lead__field label rule, which adds a
     margin-bottom meant for stacked field labels — it leaks in here
     since this label is nested inside a .lead__field too, and an
     asymmetric margin throws off the vertical centering */
  margin-bottom: 0;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast);
}

.lead__card-choice input[type="radio"]:checked + label {
  color: var(--white);
}

.lead__card-choice input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .lead__card-choice-thumb {
    animation: none;
  }
}

#name {
  animation: nameGlowPulse 3s ease-in-out infinite;
}

@keyframes nameGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 18px 2px rgba(255, 255, 255, 0.5); }
}

#name:focus-visible {
  animation: none;
  box-shadow: 0 0 0 2px var(--crimson);
}

@media (prefers-reduced-motion: reduce) {
  #name {
    animation: none;
  }
}

.lead__submit {
  width: 100%;
  margin-top: var(--sp-2);
}

.lead__fine {
  margin-top: var(--sp-4);
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
}

.lead__success {
  position: absolute;
  inset: 0;
  background: var(--pink-mist);
  border-radius: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-8);
}

.lead__success:not([hidden]) {
  display: flex;
}

.lead__success-icon {
  width: 64px;
  height: 38px;
  color: var(--crimson);
}

.lead__success p {
  font-weight: 700;
  font-size: 18px;
  max-width: 26ch;
}

/* ===================================================================
   final CTA (inversion panel)
   =================================================================== */

.final-cta {
  min-height: 58vh;
  min-height: 58dvh;
  text-align: center;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  background-position: calc(50% + var(--gx, 0) * 1%) calc(50% + var(--gy, 0) * 1%);
  box-shadow:
    0 0 50px -6px rgba(156, 14, 72, 0.6),
    0 0 85px -8px rgba(239, 35, 60, 0.55),
    0 30px 80px -20px rgba(59, 15, 34, 0.5);
  animation: finalCtaEdgePulse 3.2s ease-in-out infinite;
  transition: min-height 0.6s var(--ease-settle), transform var(--t-fast) var(--ease-settle);
}

.final-cta:hover {
  transform: scale(1.03);
}

/* plain pulsing glow that hugs the block's own edges — no chasing
   motion, just brightens/dims in place. red is kept as strong as the
   raspberry layer so it actually reads as red, not just pink */
@keyframes finalCtaEdgePulse {
  0%, 100% {
    box-shadow:
      0 0 50px -6px rgba(156, 14, 72, 0.6),
      0 0 85px -8px rgba(239, 35, 60, 0.55),
      0 30px 80px -20px rgba(59, 15, 34, 0.5);
  }
  50% {
    box-shadow:
      0 0 75px -4px rgba(156, 14, 72, 0.85),
      0 0 135px -4px rgba(239, 35, 60, 0.9),
      0 30px 80px -20px rgba(59, 15, 34, 0.5);
  }
}

/* brief flash triggered from JS when the footer panel collapses */
.final-cta.is-flash {
  animation: finalCtaEdgePulse 3.2s ease-in-out infinite, finalCtaEdgeFlash 0.6s ease-out 1;
}

@keyframes finalCtaEdgeFlash {
  0% {
    box-shadow:
      0 0 120px 4px rgba(156, 14, 72, 1),
      0 0 180px 0px rgba(239, 35, 60, 0.8),
      0 30px 80px -20px rgba(59, 15, 34, 0.5);
  }
  100% {
    box-shadow:
      0 0 50px -6px rgba(156, 14, 72, 0.6),
      0 0 85px -8px rgba(239, 35, 60, 0.55),
      0 30px 80px -20px rgba(59, 15, 34, 0.5);
  }
}

/* the block's own fill — the part that переливается, leaning raspberry */
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--raspberry) 22%, var(--crimson) 42%, var(--raspberry) 58%, var(--red) 78%, var(--raspberry) 100%);
  background-size: 320% 320%;
  mix-blend-mode: overlay;
  animation: finalCtaChaosShift 6s ease-in-out infinite, finalCtaInnerPulse 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes finalCtaChaosShift {
  0%, 100% { background-position: 10% 25%; }
  24% { background-position: 75% 55%; }
  43% { background-position: 30% 85%; }
  67% { background-position: 90% 15%; }
  85% { background-position: 45% 95%; }
}

@keyframes finalCtaInnerPulse {
  0%, 100% { opacity: 0.4; }
  28% { opacity: 0.8; }
  52% { opacity: 0.5; }
  76% { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta {
    animation: none;
  }
  .final-cta.is-flash {
    animation: none;
  }
  .final-cta::after {
    animation: none;
  }
}

.final-cta.is-expanded {
  min-height: 92vh;
  min-height: 92dvh;
}

@media (prefers-reduced-motion: reduce) {
  .final-cta {
    transition: none;
  }
}

.btn.is-hidden {
  display: none;
}

.final-cta__smile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, 86%);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
}

.final-cta__title {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

/* ===================================================================
   footer
   =================================================================== */

.footer__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  gap: 2px;
}

.footer__contacts a:hover {
  color: var(--crimson);
}

.footer__operator {
  color: var(--text-soft);
  font-size: 13px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: var(--sp-3);
}

.blob--footer-a {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--crimson), transparent 70%);
  top: 10%;
  left: 6%;
  opacity: 0.3;
  filter: blur(40px);
}

.blob--footer-b {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, var(--raspberry), transparent 70%);
  bottom: 8%;
  right: 10%;
  opacity: 0.28;
  filter: blur(36px);
}

.blob--footer-c {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--red), transparent 70%);
  top: 50%;
  right: 22%;
  opacity: 0.22;
  filter: blur(30px);
}

/* ===================================================================
   responsive
   =================================================================== */

@media (max-width: 980px) {
  .trust__content {
    align-self: center;
    width: 100%;
  }
}

/* ===================================================================
   mobile — Realme / iPhone 11+ / Galaxy Note (≈360–430px CSS width)
   =================================================================== */

@media (max-width: 640px) {
  .panel {
    padding: 36px clamp(16px, 5vw, 24px);
  }

  .page {
    padding: 0 12px clamp(16px, 4vw, 28px);
    gap: 14px;
  }

  /* — nav — */
  .nav__row {
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  }

  .nav__menu-btn {
    min-height: 40px;
    padding: 9px 14px;
  }

  .nav__icon-btn {
    width: 40px;
    height: 40px;
  }

  .nav__search {
    flex: 0 1 120px;
  }

  .services-panel {
    width: min(360px, 92vw);
  }

  /* — hero / card promo — */
  .glow-halo {
    inset: -8px;
    filter: blur(28px);
  }

  .hero__promo {
    gap: var(--sp-7);
  }

  .hero__promo-text {
    flex: 1 1 100%;
  }

  .hero__promo-visual {
    flex: 1 1 100%;
  }

  .hero__promo-text .hero__title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero__promo-text .hero__subtitle {
    font-size: 16px;
    margin-bottom: var(--sp-5);
  }

  .hero__actions {
    width: 100%;
    gap: var(--sp-3);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .btn--lg {
    padding: 15px 22px;
    font-size: 15px;
    min-height: 44px;
  }

  .hero__title {
    font-size: clamp(30px, 9vw, 40px);
  }

  /* — advantages — */
  .advantage-grid {
    gap: var(--sp-4);
    margin-top: var(--sp-7);
  }

  .advantage-card {
    padding: var(--sp-6);
    min-height: 0;
  }

  /* — trust — */
  .trust__top,
  .trust__stat {
    padding: var(--sp-5);
  }

  /* — lead form — */
  .lead__form {
    max-width: 100%;
    padding: var(--sp-5);
  }

  .lead__field label,
  .lead__field-title {
    font-size: 13px;
  }

  .lead__card-choice label {
    padding: 13px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* — final cta — */
  .final-cta__inner {
    gap: var(--sp-6);
  }

  /* — footer — */
  .footer__collapse {
    width: 52px;
    height: 36px;
  }

  /* — policy modal — */
  .modal-card {
    padding: var(--sp-5);
    max-height: min(80vh, 560px);
    max-height: min(80dvh, 560px);
  }

  .modal-card h2 {
    font-size: 18px;
  }

  .modal-card__list {
    font-size: 14.5px;
  }

  .modal-card__fine {
    font-size: 13px;
  }

  .modal-close {
    top: var(--sp-3);
    right: var(--sp-3);
    width: 36px;
    height: 36px;
    background: var(--hair);
  }
}

@media (max-width: 430px) {
  .hero__promo-text .hero__title {
    font-size: clamp(26px, 8vw, 32px);
  }

  .hero__title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .section-title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .statement {
    font-size: clamp(18px, 5vw, 22px);
  }

  .trust__stat-num {
    font-size: clamp(26px, 9vw, 34px);
  }
}
