/* ───────────────────────────────────────────────
   AlphaDigital — custom layer over Structa template
   Keeps Structa's 1:1 visual system, swaps only the
   brand fonts to Soyuz Grotesk + Inter, and adds two features:
   intro-video modal + mobile bottom dock.
   ─────────────────────────────────────────────── */

/* 1. FONTS — exactly two families site-wide:
      headings → Soyuz Grotesk (local file in /fonts, Cyrillic included;
      single Bold cut, declared for the whole weight range so no faux-bold),
      everything else (body, badges, UI) → Inter (Google Fonts).
      The old Space Mono badge font is retired — badges now use Inter. */
@font-face {
  font-family: "Soyuz Grotesk";
  src: url("fonts/SoyuzGrotesk-Bold.woff") format("woff"),
       url("fonts/SoyuzGrotesk-Bold.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* primary / display font — used for headings on every viewport */
  --fonts--heading: "Soyuz Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* secondary / body font */
  --fonts--body: "Inter", "Helvetica Neue", Arial, sans-serif;
  /* badges use the body font — one family for everything non-display */
  --fonts--badge: "Inter", "Helvetica Neue", Arial, sans-serif;
}
/* Structa re-declares the font vars ON <body> inside its 991 / 767 / 479px
   media queries, which beats a :root override on mobile (an h1 inherits the
   value from the nearer <body> ancestor). Redeclare on <body> at every
   breakpoint so the two brand fonts hold on phones too. */
body,
body.w-mod-js,
body.w-mod-ix {
  --fonts--heading: "Soyuz Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fonts--body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --fonts--badge: "Inter", "Helvetica Neue", Arial, sans-serif;
}
@media screen and (max-width: 991px) {
  body { --fonts--heading: "Soyuz Grotesk", "Helvetica Neue", Arial, sans-serif; --fonts--body: "Inter", "Helvetica Neue", Arial, sans-serif; --fonts--badge: "Inter", "Helvetica Neue", Arial, sans-serif; }
}
@media screen and (max-width: 767px) {
  body { --fonts--heading: "Soyuz Grotesk", "Helvetica Neue", Arial, sans-serif; --fonts--body: "Inter", "Helvetica Neue", Arial, sans-serif; --fonts--badge: "Inter", "Helvetica Neue", Arial, sans-serif; }
}
@media screen and (max-width: 479px) {
  body { --fonts--heading: "Soyuz Grotesk", "Helvetica Neue", Arial, sans-serif; --fonts--body: "Inter", "Helvetica Neue", Arial, sans-serif; --fonts--badge: "Inter", "Helvetica Neue", Arial, sans-serif; }
}

/* slightly tighter letter-spacing on both the body (Inter) and the
   main grotesque headings */
body { letter-spacing: -0.01em; }
h1, h2, h3, h4, h5, h6,
.heading-style-h1, .heading-style-h2, .heading-style-h3 {
  letter-spacing: -0.02em;
}

/* ───────────── HERO OFFER: bolder headline ───────────── */
.section_home1_hero h1 { font-weight: 700; letter-spacing: -0.02em; }
.section_home1_banner h1 { font-weight: 700; }

/* ───────────── INTRO-VIDEO MODAL ───────────── */
.av-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.av-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.av-video-modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  max-height: 92vh;
  border-radius: 18px;
  overflow: hidden;
  background: #0f0f10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.av-video-modal.is-open .av-video-modal__inner {
  transform: translateY(0) scale(1);
}
/* vertical reel: capped height so the CTA always fits; absolute video can't blow up the box */
.av-video-modal__media {
  position: relative;
  flex: none;
  width: 100%;
  height: min(58vh, 560px);
  background: #000;
}
.av-video-modal__inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* CTA bar under the intro video */
.av-video-modal__cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
  background: #0f0f10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.av-video-modal__cta-label {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--fonts--body);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}
.av-video-modal__cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.av-vm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 14px;
  font-family: var(--fonts--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.av-vm-btn svg { width: 18px; height: 18px; }
.av-vm-btn:active { transform: scale(0.97); }
.av-vm-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.av-vm-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.av-vm-btn--solid {
  background: var(--accent);
  color: #fff;
  border: 0;
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.25),
    inset 0 -3px 10px rgba(0, 0, 0, 0.12);
}
.av-vm-btn--solid:hover { opacity: 0.94; }
@media (max-width: 600px) {
  /* anchor the popup to the bottom (sheet style) and keep the video compact */
  .av-video-modal { align-items: flex-end; padding: 0; }
  .av-video-modal__inner {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
  .av-video-modal__media { height: min(52vh, 460px); }
  .av-video-modal__cta-row { grid-template-columns: 1fr; }
  .av-video-modal__cta-label { font-size: 0.88rem; }
  .av-video-modal__cta { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
.av-video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.av-video-modal__close:hover { transform: scale(1.06); }
.av-video-modal__close:active { transform: scale(0.94); }

/* Play badge used on hero intro card + video reviews */
.av-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.av-play-dot {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.3),
    inset 0 -4px 12px rgba(0, 0, 0, 0.1);
  flex: none;
}
.av-play-dot svg { width: 14px; height: 14px; }

/* ───────────── MOBILE BOTTOM DOCK ───────────── */
.av-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.av-dock.is-hidden {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}
.av-dock__btn {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f2f2f0;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.av-dock__btn:active { transform: scale(0.93); }
.av-dock__btn svg { width: 20px; height: 20px; }
.av-dock__cta {
  flex: 1 1 auto;
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--fonts--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.3),
    inset 0 -4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.av-dock__cta:active { transform: scale(0.97); }

/* Scroll-to-top progress ring — refined, with extra air around the arrow */
.av-dock__ring { transform: rotate(-90deg); }
.av-dock__ring circle { fill: none; stroke-width: 2.4; }
.av-dock__ring .av-ring-track { stroke: rgba(0, 0, 0, 0.08); }
.av-dock__ring .av-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.av-dock__ring-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* smaller arrow → more space between it and the filling ring */
.av-dock__ring-arrow svg { width: 13px; height: 13px; }
.av-dock__ring-wrap { position: relative; }

@media screen and (max-width: 767px) {
  .av-dock { display: flex; }
  /* breathing room so the dock never covers the footer CTA */
  .footer { padding-bottom: 84px; }
}

/* Prevent horizontal scroll and tame long Ukrainian headings on small screens.
   Use overflow-x: clip (not hidden) so it does NOT create a scroll container —
   otherwise it would break `position: sticky` on the cases heading. */
html, body { overflow-x: clip; max-width: 100%; }
h1, h2, .heading-style-h2 { overflow-wrap: anywhere; }
@media screen and (max-width: 600px) {
  .section_home1_hero h1 { font-size: 2rem !important; line-height: 1.12; }
  .section_home1_banner h1 { font-size: 2.2rem !important; }
  h2, .heading-style-h2 { font-size: 1.9rem !important; line-height: 1.15; }
  /* .align-center is a centered flex column → children take max-content and
     overflow narrow screens. Force the hero text to wrap within the viewport. */
  .max-width-large.align-center,
  .max-width-large.align-center > * { width: 100%; max-width: 100%; }
}

/* Telegram form states */
.av-form-status { font-size: 0.85rem; margin-top: 8px; }
.av-form-status.is-ok { color: #10a85a; }
.av-form-status.is-err { color: var(--accent); }

/* ───────────── (7) Accordion open/close (services + FAQ) ─────────────
   grid-rows 0fr→1fr expands to content height smoothly without any JS
   height measurement (avoids the flex/Webflow height conflict). */
.services_details, .faq_answer {
  display: block !important;
  height: auto !important;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease 0.05s;
}
.services_accordion.is-open .services_details { max-height: 280px !important; opacity: 1; }
.faq_accordion.is-open .faq_answer { max-height: 400px !important; opacity: 1; }
/* inner content eases up as it reveals */
.services_details-wrapper, .faq_answer-wrapper {
  transform: translateY(-8px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.services_accordion.is-open .services_details-wrapper,
.faq_accordion.is-open .faq_answer-wrapper { transform: translateY(0); }
.services_question, .faq_question { cursor: pointer; user-select: none; }
.services_icon img, .faq_icon img { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.services_accordion.is-open .services_icon img,
.faq_accordion.is-open .faq_icon img { transform: rotate(45deg); }

/* ───────────── (5) Hero badge centered ───────────── */
.section_home1_hero .max-width-large .text-style-badge { justify-content: center; align-self: center; }

/* ───────────── (8) Mobile-only header button ───────────── */
.av-mobile-only { display: none; }
@media (max-width: 991px) {
  .av-mobile-only { display: inline-flex; }
  .nav-brand > div { font-size: 1.1rem !important; }      /* compact logo so button + burger fit */
  .nav-buttons { gap: 8px; }
  .av-mobile-only.button { width: auto !important; padding: 9px 14px; font-size: 0.8rem; }
  .av-mobile-only.button div { white-space: nowrap; }
  /* keep the hamburger visible next to the CTA */
  .nav-menu-button.w-nav-button { display: flex; flex: none; }
}
@media (max-width: 430px) {
  .av-mobile-only.button { padding: 8px 11px; font-size: 0.72rem; }
}

/* ───────────── Header (desktop): floating glass bar, VaultX-style ─────────────
   Logo left, frosted pill with links centred (active link = white pill),
   Telegram text link + black CTA with arrow-in-circle on the right. */
/* keep every nav item on a single line (fixes "Що входить" wrapping) */
.nav-menu .nav-link { white-space: nowrap; }
.av-nav-tg { display: none; }
@media (min-width: 992px) {
  /* the navbar band itself is invisible — the wrapper is the glass bar */
  .navbar.w-nav { background: transparent; }

  .nav-wrapper {
    grid-template-columns: 1fr auto 1fr;
    border-radius: 18px;
    background: rgba(10, 21, 42, 0.55);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 16px 40px rgba(0, 0, 0, 0.28);
    padding: 8px 8px 8px 22px;
  }
  .nav-brand.w-nav-brand { align-self: center; justify-self: start; }
  .nav-buttons { justify-self: end; }

  /* centred frosted pill with the links */
  .nav-menu.w-nav-menu {
    gap: 2px;
    padding: 5px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .nav-menu .nav-link {
    padding: 9px 15px;
    border-radius: 12px;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  }
  .nav-menu .nav-link:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
  /* active section — white pill with dark text (scrollspy in custom.js) */
  .nav-menu .nav-link.av-active,
  .nav-menu .nav-link.av-active:hover {
    background: #fff;
    color: #101114;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }

  /* right side: quiet Telegram text link + black CTA with arrow bubble */
  .av-nav-tg {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--fonts--body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .av-nav-tg:hover { color: #fff; }

  .nav-buttons .av-nav-cta {
    width: auto;
    gap: 10px;
    border-radius: 12px;
    background: #fff;
    color: #141414;
    padding: 6px 6px 6px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, filter 0.2s ease;
  }
  .nav-buttons .av-nav-cta:hover { filter: brightness(0.96); }
  .nav-buttons .av-nav-cta:active { transform: scale(0.97); }
  .av-nav-cta__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(20, 18, 15, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .av-nav-cta__arrow svg { width: 13px; height: 13px; display: block; }
  .nav-buttons .av-nav-cta:hover .av-nav-cta__arrow { transform: translateX(2px); }
}

/* ───────────── De-round the logo mark ───────────── */
/* Webflow applies border-radius to every <img>; the paper-plane logo must stay square */
.nav-brand img,
.nav-logo img,
.av-footer__logo img,
.av-pre__mark img { border-radius: 0 !important; }

/* ───────────── (2) Talk-card photo sizing ───────────── */
.talk-person-image { width: 100% !important; height: 100% !important; object-fit: cover; }

/* ── Contacts card (banner): keep the talk-box inside the 480px column ── */
@media (min-width: 768px) {
  .section_home1_banner .talk-box.box-shadow { width: 100%; }
  .section_home1_banner .talk-person { flex: none; width: 158px; min-width: 158px; }
  /* balance the tall right column — centre the left CTA card content */
  .section_home1_banner .home1_banner_left { justify-content: center; }
}
/* On mobile the talk-box is a flex row by default → the photo balloons and pushes
   the button card off-screen. Stack it: bounded photo on top, info card below. */
@media (max-width: 767px) {
  .section_home1_banner .talk-box.box-shadow { flex-direction: column; width: 100%; }
  .section_home1_banner .talk-person {
    flex: none; width: 100%; min-width: 0; height: 200px; padding: 10px;
  }
  .section_home1_banner .talk-copy { width: 100%; }
}


/* ───────────── Telegram-brand button (contacts card) ───────────── */
.av-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
  color: #fff;
  font-family: var(--fonts--body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(34, 158, 217, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.av-tg-btn svg { width: 20px; height: 20px; flex: none; }
.av-tg-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.av-tg-btn:active { transform: scale(0.97); }

/* ───────────── Telegram = blue everywhere ───────────── */
a.button[href*="t.me"] {
  background-color: #229ed9 !important;
  background-image: linear-gradient(180deg, #2aabee 0%, #229ed9 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}
a.button[href*="t.me"] div { color: #fff !important; }
a.button[href*="t.me"]:hover { filter: brightness(1.05); }
/* intro-video modal "Написати в Telegram" */
.av-vm-btn--ghost {
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
  color: #fff;
  border: 0;
}
.av-vm-btn--ghost:hover {
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
  filter: brightness(1.05);
}
/* mobile dock Telegram icon */
.av-dock__btn[data-av-tg] {
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
  border-color: transparent;
  color: #fff;
}
/* footer messenger Telegram pill → full blue */
.av-msgr--tg {
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
  border-color: transparent;
  color: #fff;
}
.av-msgr--tg span { color: #fff; }
.av-msgr--tg:hover { border-color: transparent; filter: brightness(1.04); }
/* footer bottom social Telegram icon */
.footer_socials a[href*="t.me"] { color: #229ed9; }

/* ───────────── Auto-scrolling cases strip (contacts white card) ───────────── */
.av-cases-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: #f7f6f3;
}
/* absolute so the marquee never inflates the card height (grid stretch sets it) */
.av-vcases { position: absolute; inset: 0; display: flex; flex-direction: column; }
.av-vcases__group {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  animation: av-vmarquee 26s linear infinite;
  will-change: transform;
}
@keyframes av-vmarquee {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}
.av-cases-card:hover .av-vcases__group { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .av-vcases__group { animation: none; } }
.av-vcase {
  border-radius: 16px;
  overflow: hidden;
  background: #eceae5;
  aspect-ratio: 16 / 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}
.av-vcase img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* soft fade at the top/bottom edges of the card */
.av-cases-card::before,
.av-cases-card::after {
  content: ""; position: absolute; left: 0; right: 0; height: 54px; z-index: 2; pointer-events: none;
}
.av-cases-card::before { top: 0; background: linear-gradient(180deg, #f7f6f3, rgba(247, 246, 243, 0)); }
.av-cases-card::after { bottom: 0; background: linear-gradient(0deg, #f7f6f3, rgba(247, 246, 243, 0)); }
@media (max-width: 767px) { .av-cases-card { height: 340px; } }

/* CTA inside the case-example card */
.av-case-cta { align-self: flex-start; margin-top: 6px; }

/* ───────────── Footer — light "closing scene": warm light canvas,
   one dark navy glass CTA card as the contrast accent (hero language) ───────────── */
.footer.av-footer {
  background: #f7f6f3;
  color: #18181b;
  overflow: hidden;
}
@media (min-width: 768px) {
  .av-footer .footer-box { padding-top: 4.5rem; padding-bottom: 2.25rem; }
}

/* CTA banner → dark navy glass card popping on the light canvas */
.av-footer .footer_buy {
  background-color: #0a1c3d;
  background-image: radial-gradient(115% 130% at 50% -20%, rgba(47, 108, 220, 0.45), rgba(47, 108, 220, 0) 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 50px -18px rgba(6, 15, 34, 0.45);
  gap: 2rem;
}
.av-footer__cta-copy { display: flex; flex-direction: column; gap: 10px; max-width: 36rem; }
.av-footer__cta-sub { color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; line-height: 1.55; }

/* nav grid: brand column + links + messengers */
.av-footer .footer_nav {
  grid-template-columns: 1.5fr 0.9fr 1fr 1.05fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
}
.av-footer__brand { gap: 16px; max-width: 24rem; }
.av-footer__logo { display: flex; align-items: center; gap: 10px; }
.av-footer__logo img { height: 30px; width: auto; display: block; filter: brightness(0); }
.av-footer__logo span {
  font-family: var(--fonts--body); font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.02em; color: #111;
}
.av-footer__blurb { margin: 0; color: #71717a; font-size: 0.9rem; line-height: 1.65; }

.av-footer .text-style-badge { color: #9b9a94; }
.av-footer .footer_nav-column { gap: 1.1rem; }
.av-footer .footer_nav-list { gap: 0.55rem; }
.av-footer .footer_nav-link {
  color: #52525b;
  background-image: none;
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}
.av-footer .footer_nav-link:hover { color: #111; transform: translateX(3px); }

/* messengers: light chips, stacked as a tidy 4th column */
.av-foot-msgr { display: flex; flex-direction: column; gap: 14px; }
.av-foot-msgr__row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer_nav .av-foot-msgr { gap: 1.1rem; }
.footer_nav .av-foot-msgr__row { flex-direction: column; align-items: stretch; gap: 8px; }
.footer_nav .av-msgr { justify-content: center; }
.av-msgr {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 14px;
  border: 1px solid #e5e2da;
  background: #fff;
  font-family: var(--fonts--body); font-weight: 600; font-size: 0.875rem;
  text-decoration: none; line-height: 1; color: #1a1a1a;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.av-msgr svg { width: 18px; height: 18px; flex: none; }
.av-msgr span { color: #1a1a1a; }
.av-msgr:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08); }
.av-msgr--tg {
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
  border-color: transparent;
}
.av-msgr--tg span { color: #fff; }
.av-msgr--tg:hover { border-color: transparent; filter: brightness(1.04); }
.av-msgr--wa svg { color: #1faf54; }
.av-msgr--wa:hover { border-color: #25d366; }
.av-msgr--viber svg { color: #6b5ce0; }
.av-msgr--viber:hover { border-color: #7360f2; }
.av-msgr--ig svg { color: #c1357a; }
.av-msgr--ig:hover { border-color: #e1306c; }

/* giant watermark wordmark fading into the light canvas */
.av-footer__wordmark {
  font-family: var(--fonts--body);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 13.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.16) 0%, rgba(17, 17, 17, 0.02) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* bottom bar: copyright left, legal links right */
.av-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: 1.4rem;
}
.av-footer__copy { font-size: 0.8rem; color: #8a8983; }
.av-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.av-footer__legal a {
  font-size: 0.8rem; color: #8a8983;
  text-decoration: none; transition: color 0.2s ease;
}
.av-footer__legal a:hover { color: #111; }

/* mobile: brand on top, links in two tidy columns, messengers full-width */
@media (max-width: 991px) {
  .av-footer .footer_nav { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .av-footer__brand { grid-column: 1 / -1; max-width: none; }
  .av-footer .av-foot-msgr { grid-column: 1 / -1; }
  .footer_nav .av-foot-msgr__row { flex-direction: row; }
  .footer_nav .av-msgr { flex: 1 1 calc(50% - 4px); }
}
@media (max-width: 767px) {
  .av-footer .footer_buy { gap: 1.5rem; }
  .av-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ───────────── (3) Video reviews — profile-card slider ─────────────
   Reference format: light rounded card, underlined @nick with an
   arrow top row, big circular photo with an "eye" chip (opens the
   video), role + location pills below. Arrow buttons scroll the track. */
.av-rv-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.av-rv-stat { display: flex; flex-direction: column; gap: 2px; }
.av-rv-stat__num { font-size: 2rem; font-weight: 700; line-height: 1; }
.av-rv-stat__num em { font-style: normal; font-size: 1rem; color: #71717a; }
.av-rv-stat__label { font-size: 0.8125rem; color: #71717a; }
.av-rv-nav { display: flex; gap: 10px; }
.av-rv-arrow {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid #e3e0d8; background: #f0eee9; color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.av-rv-arrow svg { width: 20px; height: 20px; }
.av-rv-arrow:hover { background: #e7e4dc; }
.av-rv-arrow:active { transform: scale(0.93); }
.av-rv-arrow:disabled { opacity: 0.35; cursor: default; }

.av-rv-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.av-rv-track::-webkit-scrollbar { display: none; }

.av-rv-card {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  flex: 0 0 250px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: stretch; gap: 18px;
  padding: 20px 20px 22px;
  border-radius: 18px; background: #f0eee9;
  font-family: var(--fonts--body); color: #1a1a1a; text-align: left;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.av-rv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1); }
.av-rv-card:active { transform: scale(0.985); }

.av-rv-nick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--fonts--heading);
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em;
}
.av-rv-nick u { text-underline-offset: 4px; text-decoration-thickness: 2px; }
.av-rv-nick svg { width: 17px; height: 17px; flex: none; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.av-rv-card:hover .av-rv-nick svg { transform: translate(2px, -2px); }

.av-rv-photo {
  position: relative; display: block;
  width: 176px; height: 176px; margin: 0 auto;
  border-radius: 999px; overflow: hidden;
}
.av-rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* dark rounded "watch" chip centred on the photo */
.av-rv-eye {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 46px; border-radius: 16px;
  background: rgba(20, 18, 16, 0.72);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}
.av-rv-eye svg { width: 22px; height: 22px; }
.av-rv-card:hover .av-rv-eye { background: rgba(238, 79, 47, 0.85); transform: translate(-50%, -50%) scale(1.06); }

.av-rv-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.av-rv-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: #e3e1da; color: #1a1a1a;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.av-rv-tag svg { width: 14px; height: 14px; flex: none; }
.av-rv-tag--dark { background: #1c1c1e; color: #fff; }

/* closing CTA card in the same slider */
.av-rv-card--cta {
  background: var(--accent); color: #fff;
  justify-content: space-between;
  box-shadow: 0 16px 34px rgba(238, 79, 47, 0.28);
}
.av-rv-card--cta:hover { box-shadow: 0 22px 44px rgba(238, 79, 47, 0.38); }
.av-rv-cta-txt {
  font-family: var(--fonts--heading);
  font-size: 1.35rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
}
.av-rv-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 14px;
  background: #fff; color: #1a1a1a;
  font-size: 0.9rem; font-weight: 700;
}
.av-rv-cta-btn svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .av-rv-card { flex-basis: min(260px, 78vw); }
  .av-rv-photo { width: 160px; height: 160px; }
  .av-rv-stat__num { font-size: 1.6rem; }
}

/* ───────────── (6) Consultation: frosted folder grid ─────────────
   Light take on the "glass folders on a gradient" reference: split
   header, then a 2-column grid of translucent folder cards (tab +
   body) sitting on a soft warm atmosphere. The last folder is the
   accent CTA. Content is unchanged — same 3 steps + call button. */
.av-consult { position: relative; display: flex; flex-direction: column; gap: 48px; }

/* soft warm atmosphere behind the folders (what the glass blurs) —
   kept in the site's palette: a whisper of accent + warm bone tones */
.av-consult-atmo {
  position: absolute;
  inset: -70px -50px -50px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 16% 14%, rgba(238, 79, 47, 0.06), transparent 70%),
    radial-gradient(52% 46% at 86% 34%, rgba(214, 206, 189, 0.45), transparent 72%),
    radial-gradient(60% 50% at 40% 92%, rgba(226, 221, 210, 0.5), transparent 75%);
}
.av-consult-head,
.av-folders { position: relative; z-index: 1; }

/* — split header — */
.av-consult-head {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: end;
}
.av-consult-head__left h2 { margin: 0; }
.av-consult-h2-soft { color: #a8a49a; }
.av-consult-head__right { padding-bottom: 6px; }
.av-consult-head__right .text-style-muted60 {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42ch;
}

/* — folder grid — */
.av-timeline { list-style: none; margin: 0; padding: 0; }
.av-folders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 64px;
  column-gap: 28px;
  margin-top: 16px;
}
.av-folder {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* — 3d objects peeking out of the folder opening: the wrapper's bottom
   edge sits exactly on the body's top edge and clips the svg, so the
   object reads as half-tucked inside the folder — */
.av-folder__body { position: relative; }
.av-folder__peek {
  position: absolute;
  bottom: 100%;
  right: 20px;
  width: 110px;
  height: 76px;
  overflow: hidden;
  pointer-events: none;
}
.av-folder__peek svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateY(26%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .av-folder:hover .av-folder__peek svg { transform: translateY(8%); }
}
/* tab — same warm hairline + near-white surface as the process cards,
   with just a hint of frost so the atmosphere shows through */
.av-folder__tab {
  align-self: flex-start;
  display: flex;
  align-items: center;
  padding: 9px 22px 8px;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e7e4dd;
  border-bottom: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* body */
.av-folder__body {
  flex: 1;
  padding: 24px 26px 26px;
  border-radius: 0 var(--radius--default) var(--radius--default) var(--radius--default);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e7e4dd;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -20px rgba(20, 18, 15, 0.16);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.av-consult-num {
  font-family: var(--fonts--badge);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #a8a49a;
  transition: color 0.5s ease;
}
.av-timeline-title {
  font-family: var(--fonts--heading);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: #141414;
}
.av-folder .text-style-muted60 { max-width: 46ch; }
/* activated state (added step-by-step from JS) */
.av-timeline-step.is-on .av-consult-num { color: var(--accent); }
@media (hover: hover) {
  .av-folder:hover { transform: translateY(-5px); }
  .av-folder:not(.av-folder--cta):hover .av-folder__body {
    border-color: #ddd8cd;
    box-shadow: 0 24px 46px -20px rgba(20, 18, 15, 0.2);
  }
  .av-folder--cta:hover .av-folder__tab,
  .av-folder--cta:hover .av-folder__body { filter: brightness(1.04); }
}

/* — CTA folder (the whole card is the link) — matches the site button:
   accent fill with the glossy inset top/bottom highlights */
.av-folder--cta .av-folder__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #fff;
  text-decoration: none;
}
.av-folder--cta .av-folder__tab,
.av-folder--cta .av-folder__body { transition: filter 0.2s ease; }
.av-folder--cta .av-folder__tab {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.28);
}
.av-folder--cta .av-consult-num { color: rgba(255, 255, 255, 0.78); }
.av-folder--cta .av-folder__body {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 4px 12px rgba(255, 255, 255, 0.3),
    inset 0 -4px 12px rgba(0, 0, 0, 0.1),
    0 22px 44px -24px rgba(238, 79, 47, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.av-folder__cta-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fonts--heading);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
}
.av-folder__cta-title svg {
  width: 20px; height: 20px; flex: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.av-folder__cta-note {
  font-family: var(--fonts--badge);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
}
@media (hover: hover) {
  .av-folder--cta:hover .av-folder__cta-title svg { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .av-folder,
  .av-consult-num,
  .av-folder__cta-title svg { transition: none; }
}

/* — tablet & phones — */
@media (max-width: 991px) {
  .av-consult { gap: 32px; }
  .av-consult-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .av-consult-head__right { padding-bottom: 0; }
  .av-folders { row-gap: 52px; column-gap: 20px; margin-top: 12px; }
  .av-folder__body { padding: 20px 22px 22px; }
  .av-folder__peek { width: 88px; height: 61px; right: 16px; }
}
@media (max-width: 640px) {
  .av-folders { grid-template-columns: 1fr; row-gap: 48px; }
}

/* ───────────── (4) Polished mobile open menu ───────────── */
/* Lift the sticky navbar above the marquee (z-index:99) so the open
   full-screen menu overlay fully covers the page content. */
.navbar.w-nav { z-index: 1000; }

/* ───────────── Floating corner intro video (PiP) ───────────── */
.av-fv {
  position: fixed; left: 20px; bottom: 20px; z-index: 950;
  width: 168px; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; cursor: pointer;
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  transform: translateY(24px) scale(0.96); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.av-fv[hidden] { display: none; }
.av-fv.is-shown { transform: translateY(0) scale(1); opacity: 1; }
.av-fv__media { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-fv::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.5) 100%);
}
.av-fv__close {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.av-fv__close:hover { transform: scale(1.08); background: rgba(0, 0, 0, 0.72); }
.av-fv__play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.av-fv__play svg { width: 36px; height: 36px; color: #fff; opacity: 0.92; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); transition: transform 0.25s ease; }
.av-fv:hover .av-fv__play svg { transform: scale(1.12); }
.av-fv__label {
  position: absolute; left: 11px; right: 11px; bottom: 10px; z-index: 2; color: #fff;
  font-family: var(--fonts--body); font-size: 0.72rem; font-weight: 600; letter-spacing: -0.01em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7); pointer-events: none;
}
@media (max-width: 991px) {
  .av-fv {
    width: 112px; left: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)); /* clear the bottom dock */
    border-radius: 14px;
  }
  .av-fv__play svg { width: 28px; height: 28px; }
  .av-fv__close { width: 26px; height: 26px; font-size: 1rem; }
  .av-fv__label { font-size: 0.62rem; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .av-fv { transition: opacity 0.3s ease; } }

/* ───────────── Header hide on scroll-down / show on scroll-up ───────────── */
.navbar.w-nav {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease;
  will-change: transform;
}
.navbar.w-nav.av-nav-hidden { transform: translateY(calc(-100% - 40px)); }

/* Mobile / tablet: same VaultX look — floating rounded glass pill bar
   (logo left, dark CTA + burger right) instead of a full-width band. */
@media (max-width: 991px) {
  .navbar.w-nav { background: transparent; }
  .nav-wrapper {
    border-radius: 18px;
    margin: 10px 12px 0;
    padding: 6px 8px 6px 16px;
    background: rgba(10, 21, 42, 0.55);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 16px 40px rgba(0, 0, 0, 0.28);
  }
  /* mobile Telegram button matches the black CTA from the reference */
  .av-mobile-only.button {
    border-radius: 12px;
    background: #0e0f12;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 10px 24px rgba(0, 0, 0, 0.3);
  }
  /* burger gets a subtle frosted chip so it reads as part of the glass bar.
     Webflow's own ".w-nav[data-collapse=medium] .w-nav-button" rule forces
     display:block at higher specificity, which left-aligned the icon — so
     force flex centering with !important. */
  .nav-menu-button.w-nav-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }
  /* keep the hamburger icon perfectly centred inside the chip */
  .nav-menu-button.w-nav-button .nav-menu-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    display: block;
  }
}

/* ───────────── Desktop bottom floating glass-pill menu ───────────── */
/* Desktop bottom floating dock removed on PC per request — mobile .av-dock stays. */
.av-deskdock { display: none !important; }
@media (min-width: 992px) {
  .av-deskdock {
    display: none;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 900;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
    /* hidden until scrolled past the 2nd block */
    transform: translateX(-50%) translateY(160%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .av-deskdock.is-revealed {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .av-deskdock__logo {
    flex: none; width: 46px; height: 46px; border-radius: 999px;
    background: #141416; display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
  }
  .av-deskdock__logo:hover { transform: scale(1.05); }
  .av-deskdock__logo img { width: 27px; height: auto; display: block; }
  /* collapsible panel (links + CTA) — closed by default */
  .av-deskdock__panel {
    display: flex; align-items: center; gap: 6px;
    max-width: 0; opacity: 0; overflow: hidden;
    transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .av-deskdock.is-open .av-deskdock__panel { max-width: 820px; opacity: 1; }
  .av-deskdock__links { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
  .av-deskdock__link {
    padding: 10px 15px; border-radius: 999px;
    color: #1a1a1a; font-family: var(--fonts--body); font-weight: 500; font-size: 0.95rem;
    text-decoration: none; white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .av-deskdock__link:hover { background: rgba(0, 0, 0, 0.06); }
  .av-deskdock__cta {
    flex: none; padding: 12px 24px; border-radius: 999px;
    background: var(--accent); color: #fff; font-family: var(--fonts--body);
    font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 8px 20px rgba(238, 79, 47, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }
  .av-deskdock__cta:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 12px 26px rgba(238, 79, 47, 0.4); }
  .av-deskdock__cta:active { transform: scale(0.97); }
  /* hamburger toggle → morphs to X when open */
  .av-deskdock__toggle {
    flex: none; width: 46px; height: 46px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(0, 0, 0, 0.06);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    transition: background 0.2s ease;
  }
  .av-deskdock__toggle:hover { background: rgba(0, 0, 0, 0.1); }
  .av-deskdock__toggle span {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: #1a1a1a;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .av-deskdock.is-open .av-deskdock__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .av-deskdock.is-open .av-deskdock__toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 991px) {
  .nav-menu.w-nav-menu {
    padding: 6rem 1.5rem 3rem !important;
    margin-top: 0 !important;
    gap: 2px; justify-content: flex-start;
  }
  .nav-menu .nav-link {
    font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em;
    padding: 16px 4px; border-bottom: 1px solid #efece5; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-menu .nav-link::after { content: "→"; color: var(--accent); font-size: 1.2rem; opacity: 0.7; }
  .nav-menu .nav-links-buttons {
    margin-top: 2rem; display: flex; flex-direction: column; gap: 12px; width: 100%;
  }
  .nav-menu .nav-links-buttons .button {
    width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem;
  }
  /* X close button (injected into the open menu) */
  .av-menu-close {
    position: absolute; top: 16px; right: 16px;
    width: 48px; height: 48px; border-radius: 12px;
    border: 1px solid #e8e5dd; background: #fff; color: #111;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    z-index: 5; transition: transform 0.2s ease;
  }
  .av-menu-close:active { transform: scale(0.92); }
  .av-menu-close svg { width: 22px; height: 22px; }
  /* hide the bottom dock while the menu is open so it never covers menu content */
  body.av-menu-open .av-dock { display: none !important; }
  /* full-height opaque overlay + drop the marquee's z-index lift so nothing bleeds through */
  .nav-menu.w-nav-menu { min-height: 100dvh; background: #fff !important; }
  body.av-menu-open .home1_hero_box { z-index: auto !important; }
}
@media (min-width: 992px) { .av-menu-close { display: none !important; } }

/* ═══════════ Notion-brief additions ═══════════ */

/* Hero: centered badge row + price drop badge */
.av-hero-badges { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.av-price-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px;
  background: var(--accent); color: #fff; font-family: var(--fonts--badge); font-weight: 700; font-size: 0.78rem;
}
.av-price-old { text-decoration: line-through; opacity: 0.75; font-weight: 400; }
.av-price-new { font-size: 0.95rem; }

/* Hero: 4 trust badges — one connected segmented bar (matches the stats bar) */
.av-trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid #e8e5dd; border-radius: var(--radius--default);
  overflow: hidden; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
}
.av-trust-item {
  display: flex; align-items: center; gap: 12px; padding: 22px 24px;
  border-left: 1px solid #efece5; font-size: 0.95rem; font-weight: 500;
}
.av-trust-item:first-child { border-left: 0; }
.av-trust-ico {
  flex: none; width: 28px; height: 28px; border-radius: 999px;
  background: rgba(238, 79, 47, 0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.av-trust-ico svg { width: 15px; height: 15px; }
@media (max-width: 767px) {
  .av-trust { grid-template-columns: 1fr 1fr; }
  .av-trust-item:nth-child(odd) { border-left: 0; }
  .av-trust-item:nth-child(n+3) { border-top: 1px solid #efece5; }
}
@media (max-width: 430px) {
  .av-trust { grid-template-columns: 1fr; }
  .av-trust-item { border-left: 0; border-top: 1px solid #efece5; }
  .av-trust-item:first-child { border-top: 0; }
}

/* Stats block */
.av-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius--default); overflow: hidden; background: #111;
}
.av-stat { padding: 34px 26px; color: #fff; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.av-stat-num { font-size: 2.7rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.av-stat-label { font-size: 1rem; font-weight: 500; margin-top: 8px; }
.av-stat-sub { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }
@media (max-width: 767px) {
  .av-stats { grid-template-columns: 1fr 1fr; }
  .av-stat:nth-child(odd) { border-left: 0; }
  .av-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (min-width: 768px) { .av-stat:first-child { border-left: 0; } }

/* Reviews CTA */
.av-reviews-cta { display: flex; justify-content: center; }
.av-reviews-cta .button { width: auto; }

/* Pricing trust badges */
.av-price-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.av-price-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; }
.av-pt-ico {
  flex: none; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(238, 79, 47, 0.14); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.av-pt-ico svg { width: 13px; height: 13px; }

/* "Що входить" gets the same deep-navy canvas as the hero / first block
   (was solid black). Text is already white in this section. */
.section_home1_services {
  background: radial-gradient(135% 80% at 50% 0%, #12305e 0%, #0a1c3d 45%, #060f22 100%);
}

/* ── Scroll overlap: the dark "Що входить" card slides up over the
   consultation block. Done in two tiers so content is ALWAYS readable first:

   BASE (mobile / short screens): the consultation scrolls normally — every
   step + CTA fully readable — and the dark card only overlaps its empty
   bottom padding via a small negative margin. No pinning (which would hide
   the lower content on screens shorter than the block).

   ENHANCED (desktop tall enough to show the whole block, min-height 920px):
   the consultation PINS fully visible, a transparent dwell-spacer holds it on
   screen so it can be read, and only then does the dark card rise and cover
   it — a proper reveal that never hides content. ── */
.av-overlap-stack { position: relative; }
.av-overlap-stack > .section_home1_about { position: relative; z-index: 1; padding-bottom: 2.5rem; }
/* the divider that used to sit between the two sections is absorbed by the overlap */
.av-overlap-stack > .divider { display: none; }
.av-overlap-gap { display: none; }
.av-overlap-stack > .section_home1_services {
  position: relative;
  z-index: 2;
  margin-top: clamp(-88px, -5.5vw, -52px);
  border-top-left-radius: clamp(24px, 4vw, 44px);
  border-top-right-radius: clamp(24px, 4vw, 44px);
  box-shadow: 0 -34px 60px -24px rgba(6, 15, 34, 0.5);
}

/* Enhanced pinned reveal — only where the whole consultation block fits on
   screen, so pinning can't hide anything. */
@media (min-width: 992px) and (min-height: 880px) {
  .av-overlap-stack > .section_home1_about {
    position: sticky;
    top: 0;
    padding-bottom: 0;
  }
  /* dwell: keeps the pinned block fully on screen to be read before the card rises */
  .av-overlap-gap { display: block; height: 34vh; }
  /* in enhanced mode the pin + scroll create the reveal; drop the negative margin */
  .av-overlap-stack > .section_home1_services { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .av-overlap-stack > .section_home1_about { position: relative; }
  .av-overlap-gap { display: none; }
}

/* ── Sticky pinned "Що входить" badge in the left column (desktop only) ── */
.services_sticky { display: none; }
@media (min-width: 992px) {
  .services_sticky { display: block; }
  .services_sticky-inner { position: sticky; top: 7rem; }
  /* desktop shows the pinned badge here, so hide the one in the header
     (visibility keeps its grid cell → the H2 stays in its column) */
  .section_home1_services .header > .text-style-badge { visibility: hidden; }
}

/* Case example card (in "Що входить") */
/* the wrapper is a 1fr 1fr grid with one child — make the case fill the full width */
.home1_services_info { grid-template-columns: 1fr; }
.av-case {
  display: grid; grid-template-columns: 1fr 1.2fr;
  border-radius: var(--radius--default); overflow: hidden; background: #fff;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}
.av-case-media { background: #f2f2f0; }
.av-case-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.av-case-media video { width: 100%; height: 100%; min-height: 220px; object-fit: contain; display: block; }
.av-case-info { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.av-case-metric { font-size: 1rem; }
.av-case-num { font-size: 1.9rem; font-weight: 700; color: var(--accent); margin-right: 6px; }
@media (max-width: 767px) { .av-case { grid-template-columns: 1fr; } }

/* ═══════════ Lead bottom-sheet (CTA popup) ═══════════ */
.av-sheet {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.av-sheet.is-open { opacity: 1; visibility: visible; }
.av-sheet__panel {
  position: relative; width: 100%; max-width: 520px;
  background: #fff; border-radius: 18px 18px 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  max-height: 92vh; overflow-y: auto;
  transform: translateY(24px); transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.3);
}
.av-sheet.is-open .av-sheet__panel { transform: translateY(0); }
@media (min-width: 640px) {
  .av-sheet { align-items: center; padding: 1.25rem; }
  .av-sheet__panel { border-radius: 18px; max-height: 88vh; padding-bottom: 28px; }
}
.av-sheet__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid #e8e5dd; background: #f7f6f3; color: #111;
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.av-sheet__view { display: none; }
.av-sheet__view.is-active { display: block; }
.av-sheet__head { margin-bottom: 20px; padding-right: 44px; }
.av-sheet__title { font-family: var(--fonts--heading); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.av-sheet__sub { color: #71717a; font-size: 0.95rem; margin-top: 6px; }
.av-sheet__choices { display: flex; flex-direction: column; gap: 12px; }
.av-choice {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 18px; border: 1px solid #e8e5dd; border-radius: 18px; background: #fff; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.av-choice:hover { border-color: var(--accent); background: #fffaf9; }
.av-choice:active { transform: scale(0.99); }
.av-choice__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(238, 79, 47, 0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.av-choice__ico svg { width: 24px; height: 24px; }
.av-choice__body { display: flex; flex-direction: column; flex: 1; }
.av-choice__t { font-weight: 600; font-size: 1.05rem; }
.av-choice__d { color: #71717a; font-size: 0.85rem; margin-top: 2px; }
.av-choice__arr { flex: none; color: #bdb8ad; }
.av-choice__arr svg { width: 20px; height: 20px; }
.av-choice:hover .av-choice__arr { color: var(--accent); }
.av-sheet__back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #71717a; cursor: pointer; font-size: 0.9rem; padding: 0; margin-bottom: 14px; font-family: var(--fonts--body); }
.av-sheet__back svg { width: 18px; height: 18px; }
.av-calendly { margin-top: 14px; min-height: 560px; }
.av-cal-empty { text-align: center; color: #71717a; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; line-height: 1.6; }

/* Calendly skeleton loader (shows while the widget boots) */
.av-cal-wrap { position: relative; }
.av-cal-loading {
  position: absolute; inset: 0; z-index: 2;
  background: #fff; border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  transition: opacity 0.45s ease;
}
.av-cal-loading.is-done { opacity: 0; pointer-events: none; }
.av-cal-sk__head { height: 26px; width: 55%; border-radius: 8px; }
.av-cal-sk__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.av-cal-sk__cell { aspect-ratio: 1 / 1; border-radius: 8px; }
.av-cal-sk__head, .av-cal-sk__cell {
  background: linear-gradient(100deg, #ecebe7 30%, #f7f6f3 50%, #ecebe7 70%);
  background-size: 200% 100%;
  animation: av-cal-shimmer 1.3s ease-in-out infinite;
}
@keyframes av-cal-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.av-cal-sk__note {
  margin-top: auto; padding-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: #71717a; font-size: 0.9rem; font-family: var(--fonts--body);
}
.av-cal-sk__note::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent); animation: av-cal-pulse 1s ease-in-out infinite;
}
@keyframes av-cal-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .av-cal-sk__head, .av-cal-sk__cell, .av-cal-sk__note::before { animation: none; }
}
.av-quiz__progress { height: 4px; background: #efece5; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.av-quiz__progress span { display: block; height: 100%; width: 33%; background: var(--accent); transition: width 0.3s ease; }
.av-quiz__step { display: none; }
.av-quiz__step.is-active { display: block; }
.av-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.av-chips--budget { grid-template-columns: 1fr; }
.av-chips--budget .av-chip { font-weight: 600; }
.av-chip { padding: 16px 14px; border: 1px solid #e8e5dd; border-radius: 14px; background: #fff; cursor: pointer; font-size: 0.95rem; font-weight: 500; text-align: center; transition: all 0.2s ease; font-family: var(--fonts--body); }
.av-chip:hover { border-color: var(--accent); }
.av-chip.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.av-quiz__form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.av-input { padding: 14px 16px; border: 1px solid #e8e5dd; border-radius: 12px; font-size: 1rem; font-family: var(--fonts--body); background: #fff; }
.av-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.av-quiz__done { text-align: center; padding: 30px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.av-quiz__check { position: relative; width: 64px; height: 64px; border-radius: 999px; background: #10a85a; color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; box-shadow: 0 10px 26px rgba(16, 168, 90, 0.35); }
.av-quiz__check svg { width: 30px; height: 30px; }
/* path starts hidden, draws on when celebrating */
.av-quiz__check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }

/* ── Checkmark celebration animation ── */
.av-quiz__done.is-celebrate .av-quiz__check {
  animation: av-check-pop 0.6s cubic-bezier(0.18, 1.25, 0.4, 1) both;
}
.av-quiz__done.is-celebrate .av-quiz__check svg path {
  animation: av-check-draw 0.4s 0.32s ease forwards;
}
.av-quiz__done.is-celebrate .av-quiz__check::after {
  content: ""; position: absolute; inset: -5px; border-radius: 999px;
  border: 2px solid rgba(16, 168, 90, 0.45);
  animation: av-check-ring 0.75s 0.18s ease-out forwards;
}
@keyframes av-check-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes av-check-draw { to { stroke-dashoffset: 0; } }
@keyframes av-check-ring {
  from { transform: scale(0.6); opacity: 0.8; }
  to { transform: scale(1.55); opacity: 0; }
}

/* ── Minimalist glassmorphism confetti (burst from the check) ── */
.av-confetti {
  position: absolute; top: 54px; left: 50%;
  width: 0; height: 0; pointer-events: none; z-index: 1;
}
.av-confetti span {
  position: absolute; top: 0; left: 0;
  width: var(--s, 9px); height: var(--s, 9px);
  border-radius: var(--rad, 3px);
  background: var(--bg, rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75), 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: av-confetti-burst 1.15s cubic-bezier(0.2, 0.75, 0.25, 1) var(--delay, 0s) forwards;
}
@keyframes av-confetti-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); }
  18% { opacity: 1; }
  62% { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 46px)) scale(0.85) rotate(calc(var(--r) + 40deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .av-quiz__done.is-celebrate .av-quiz__check,
  .av-quiz__done.is-celebrate .av-quiz__check svg path,
  .av-quiz__done.is-celebrate .av-quiz__check::after,
  .av-confetti span { animation: none; }
  .av-quiz__check svg path { stroke-dashoffset: 0; }
}
.av-ig-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 1rem;
  color: #fff; text-decoration: none;
  background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 80%, #515bd4);
  box-shadow: 0 10px 26px rgba(221, 42, 123, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.av-ig-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(221, 42, 123, 0.45); }
.av-ig-btn:active { transform: scale(0.97); }
.av-ig-btn svg { width: 20px; height: 20px; }

/* ═══════════ Preloader — "launch" mark + real progress ═══════════ */
.av-pre {
  position: fixed; inset: 0; z-index: 100000;
  background: #0e0e0e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  /* the overlay fades slightly after the mark has "launched" upward */
  transition: opacity 0.6s ease 0.2s, visibility 0.6s ease 0.2s;
}
.av-pre.is-done { opacity: 0; visibility: hidden; }
.av-pre__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.av-pre__content {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}
.av-pre__mark { position: relative; width: 150px; }
.av-pre__mark::before {   /* engine glow behind the mark */
  content: "";
  position: absolute; inset: -28%;
  background: radial-gradient(closest-side, rgba(238, 79, 47, 0.26), transparent 70%);
  animation: av-pre-pulse 2.2s ease-in-out infinite;
}
.av-pre__mark img {
  position: relative;
  width: 100%; height: auto; display: block;
  animation:
    av-pre-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both,
    av-pre-float 3s ease-in-out 0.9s infinite;
}
/* exit: the rocket lifts off, the rest of the content dims */
.av-pre.is-done .av-pre__mark {
  transform: translateY(-60vh);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.85, 0.4), opacity 0.5s ease 0.15s;
}
.av-pre.is-done .av-pre__content > :not(.av-pre__mark) {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.av-pre__brand { font-family: var(--fonts--body); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.av-pre__tag { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }
.av-pre__line { width: 190px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; position: relative; margin-top: 10px; }
.av-pre__fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  border-radius: 999px; background: var(--accent);
  transition: width 0.25s ease-out;
}
.av-pre__pct {
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
@keyframes av-pre-reveal {
  from { clip-path: inset(100% 0 0 0); transform: translateY(14px); opacity: 0; }
  to { clip-path: inset(0 0 0 0); transform: translateY(0); opacity: 1; }
}
@keyframes av-pre-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.92); } 50% { opacity: 0.85; transform: scale(1.06); } }
@keyframes av-pre-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .av-pre__mark img { animation: none; }
  .av-pre.is-done .av-pre__mark { transform: none; transition: opacity 0.4s ease; }
}

/* ───────────── CASES — laptop-mockup grid (reference: dark mockups,
   hover reveals the first-screen preview + "Переглянути кейс") ─────────────
   NOTE: the laptop frame is drawn in pure CSS (no external mockup asset). */
/* editorial 2-column layout: sticky "Наші кейси" heading left, cases right */
.av-cases-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 2.05fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.av-cases-aside { position: sticky; top: 6.5rem; }
/* stack the header vertically inside the narrow aside */
.av-cases-aside .header {
  grid-template-columns: 1fr;
  margin-bottom: 0;
  gap: 18px;
}
.av-cases-main { min-width: 0; }
@media (max-width: 991px) {
  .av-cases-grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.25rem); }
  .av-cases-aside { position: static; }
}

.av-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 3.2vw, 3.25rem) clamp(1.5rem, 2.2vw, 2rem);
}
.av-work {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.av-work__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(125% 110% at 50% 0%, #1b1e25 0%, #101216 55%, #0b0c10 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.6);
}
/* — pure-CSS MacBook — */
.av-work__device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76%;
  transform: translate(-50%, -50%) perspective(1600px) rotateX(4deg);
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.av-work__screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border: 8px solid #16171a;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: #000;
  overflow: hidden;
  box-shadow: 0 34px 46px -26px rgba(0, 0, 0, 0.75);
}
.av-work__screen::before {   /* webcam dot */
  content: "";
  position: absolute;
  top: -5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 999px;
  background: #3a3c42; z-index: 2;
}
.av-work__screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  filter: brightness(0.82) saturate(0.95);
  transition: filter 0.4s ease;
}
.av-work__deck {
  position: relative;
  width: 116%;
  height: 13px;
  margin-left: -8%;
  background: linear-gradient(#3c3f46 0%, #202227 42%, #141518 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 22px -12px rgba(0, 0, 0, 0.7);
}
.av-work__deck::after {       /* trackpad notch */
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 6px;
  background: #0e0f11;
  border-radius: 0 0 7px 7px;
}
/* — hover preview: flat bright first screen + arrow — */
.av-work__preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.av-work__preview img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.av-work__preview::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, 0.4);
}
.av-work__view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.av-work__view-circle {
  display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.av-work__view-circle svg { width: 26px; height: 26px; }
.av-work__view-label {
  color: #fff;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
@media (hover: hover) {
  .av-work:hover .av-work__device {
    opacity: 0;
    transform: translate(-50%, -50%) perspective(1600px) rotateX(4deg) scale(1.05);
  }
  .av-work:hover .av-work__preview { opacity: 1; }
  .av-work:hover .av-work__view-circle { transform: scale(1); }
}
/* — labels below the mockup — */
.av-work__title {
  margin-top: 20px;
  font-family: var(--fonts--heading);
  font-size: 1.375rem;          /* same size on desktop and mobile */
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #141414;
}
.av-work__desc {
  margin-top: 10px;             /* title→desc gap: 10px desktop */
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #8a8880;
}
/* — "show more" button (mobile only) — */
.av-works-more-wrap { display: none; }
.av-works-more {
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px;
  border-radius: 14px;
  border: 1px solid #e3e0d8;
  background: #f0eee9;
  color: #141414;
  font-family: var(--fonts--body);
  font-size: 0.95rem; font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.av-works-more:hover { background: #e7e4dc; }
.av-works-more:active { transform: scale(0.97); }

@media (max-width: 767px) {
  /* Sticky card-stack: each case pins near the top and the next one slides
     up and piles over it, leaving a thin peek of the cards underneath. */
  .av-works { display: flex; flex-direction: column; gap: 34px; }
  .av-work {
    position: sticky;
    top: calc(80px + var(--i, 0) * 14px);
    background: #ffffff;
    border: 1px solid #e7e4dd;
    border-radius: 18px;
    padding: 14px 14px 20px;
    box-shadow: 0 18px 44px -14px rgba(20, 18, 15, 0.22);
  }
  .av-work:nth-child(1) { --i: 0; }
  .av-work:nth-child(2) { --i: 1; }
  .av-work:nth-child(3) { --i: 2; }
  .av-work:nth-child(4) { --i: 3; }
  .av-work:nth-child(5) { --i: 4; }
  .av-work:nth-child(6) { --i: 5; }
  .av-work:nth-child(7) { --i: 6; }
  .av-work:nth-child(8) { --i: 7; }
  .av-work__device { width: 86%; }
  .av-work__title { margin-top: 16px; }
  .av-work__desc { margin-top: 8px; }   /* title→desc gap: 8px mobile */
  .av-work--extra { display: none; }
  .av-works.is-expanded .av-work--extra { display: flex; }
  .av-works-more-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   PHONE HERO — cinematic deep-navy first screen:
   headline on top, phone with a live chat in the center,
   floating glass cards around it (reference: DiWander style)
   ═══════════════════════════════════════════════════════════ */

/* — section canvas: deep navy, pulled up under the sticky nav — */
.section_home1_hero {
  position: relative;
  margin-top: -5.8rem;
  padding-top: 5.8rem;
  background:
    radial-gradient(115% 72% at 50% 0%, #12305e 0%, #0a1c3d 46%, #060f22 100%);
  color: #fff;
  overflow: hidden;
}
.section_home1_hero .padding-section-medium { padding-top: 2.25rem; }
/* soft hand-off into the light cases section: the navy dissolves into the
   page background across the cases marquee, which bridges both worlds */
.section_home1_hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(14rem, 32vh, 22rem);
  background: linear-gradient(180deg,
    rgba(250, 250, 250, 0) 0%,
    rgba(250, 250, 250, 0.05) 16%,
    rgba(250, 250, 250, 0.18) 34%,
    rgba(250, 250, 250, 0.45) 54%,
    rgba(250, 250, 250, 0.75) 74%,
    rgba(250, 250, 250, 0.94) 90%,
    #fafafa 100%);
  pointer-events: none;
  z-index: 1;
}
/* keep all hero content above the fade layer */
.section_home1_hero > .padding-global { position: relative; z-index: 2; }
/* hide the hard 1px divider right after the hero — the gradient does the job */
.section_home1_hero + .divider { background-color: transparent; }
/* ── Hero: rotating 3D carousel of case covers behind the phone ──
   Pure-CSS cylinder: every card is stacked in the same grid cell and
   placed on a ring via rotateY(i·step) + translateZ(-radius), the ring
   spins forever, back faces are hidden and the scene edges fade out
   through a mask. Decorative only — the whole scene ignores pointers. */
.section_home1_hero .container-default { position: relative; z-index: 3; }
.section_home1_hero .home1_hero_box {
  height: auto;
  padding: 0;
  position: relative;
  z-index: 1;
  margin-top: -9rem;          /* the ring slides behind the phone */
  overflow: visible;
}
.av-carousel {
  display: grid;
  overflow: hidden;
  /* the hero box is a centered flex column — stretch to the full
     viewport width instead of shrinking to one card's width */
  align-self: stretch;
  width: 100%;
  /* flat, near-orthographic depth — geometric instead of fisheye */
  perspective: 130rem;
  pointer-events: none;
  padding: 3.5rem 0 4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3% 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3% 97%, transparent);
}
.av-carousel__ring {
  place-self: center;
  display: grid;
  transform-style: preserve-3d;
  animation: av-ring-spin 40s linear infinite;
}
@keyframes av-ring-spin {
  to { transform: rotateY(1turn); }
}
.av-carousel__card {
  /* card width drives the ring radius: ~41vw makes the ring's diameter
     match the viewport, so the strip runs edge to edge on any screen */
  --w: clamp(17rem, 41vw - 1.5rem, 46rem);
  grid-area: 1 / 1;
  width: var(--w);
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 28px -22px rgba(2, 8, 24, 0.55);
  backface-visibility: hidden;
  /* ring radius: (half width + gap) / tan(half the per-card angle) */
  transform: rotateY(calc(var(--i) * (1turn / var(--n))))
    translateZ(calc(-1 * (0.5 * var(--w) + 0.75rem) / tan(0.5turn / var(--n))));
}
.av-carousel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
@media (max-width: 767px) {
  .section_home1_hero .home1_hero_box { margin-top: -3.5rem; }
  .av-carousel {
    perspective: 70rem;
    padding: 2rem 0 2.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7% 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7% 93%, transparent);
  }
  .av-carousel__card { --w: 17rem; }
}
@media (prefers-reduced-motion: reduce) {
  .section_home1_hero .home1_hero_box { margin-top: 0; }
  .av-carousel__ring { animation: none; }
}

/* ambient light + grain */
.av-ph-bg { position: absolute; inset: 0; pointer-events: none; }
.av-ph-glow { position: absolute; border-radius: 50%; }
.av-ph-glow--main {
  width: 66rem; height: 66rem; left: 50%; top: 4rem; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 108, 220, 0.34), rgba(47, 108, 220, 0) 72%);
}
.av-ph-glow--left {
  width: 34rem; height: 34rem; left: -12rem; top: 34%;
  background: radial-gradient(closest-side, rgba(28, 77, 168, 0.35), rgba(28, 77, 168, 0) 70%);
}
.av-ph-glow--right {
  width: 30rem; height: 30rem; right: -10rem; top: 12%;
  background: radial-gradient(closest-side, rgba(96, 156, 255, 0.22), rgba(96, 156, 255, 0) 70%);
}
.av-ph-noise {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: url("images/696d2ffb1bf336cf31dbead5_image%2094.avif");
  background-repeat: repeat;
}

/* — hero column — */
.av-ph-hero { position: relative; z-index: 2; }
.av-ph-head { max-width: 54rem; margin: 0 auto; text-align: center; }
.av-ph-head .spacer-small { padding-bottom: 0.85rem; }
/* exactly 20px between the offer (h1) and its description — desktop + mobile */
.av-ph-head .av-ph-title + .spacer-small {
  padding-top: 20px;
  padding-bottom: 0;
}
.section_home1_hero .av-ph-title {
  color: #fff;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  line-height: 1.1;
}
.av-ph-title-accent { color: #8fc0ff; }
.av-ph-sub {
  max-width: 36rem; margin: 0 auto;
  color: rgba(214, 228, 255, 0.68); font-size: 1rem; line-height: 1.5;
}
.section_home1_hero .text-style-badge { color: #d6e4ff; }
.section_home1_hero .text-style-badge .icon-height-small { filter: invert(1) brightness(1.6); }
.av-ph-cta .button.is-secondary {
  background: rgba(10, 22, 46, 0.55); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.av-ph-cta .button.is-secondary:hover { background: rgba(16, 32, 64, 0.7); opacity: 1; }
/* phone: drop the hero CTA buttons ("Отримати консультацію" + "Написати в
   телеграм") and the spacer above them so the first screen stays clean */
@media (max-width: 767px) {
  .av-ph-cta,
  .av-ph-sub + .spacer-small { display: none; }
}

/* — stage: cards | phone | cards — */
.av-ph-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 3.25rem);
  max-width: 66rem;
  margin: clamp(1.5rem, 3.5vh, 2.5rem) auto 0;
}
.av-ph-side { display: flex; flex-direction: column; gap: 1.4rem; position: relative; z-index: 3; }
.av-ph-side--left { align-items: flex-end; }
.av-ph-side--right { align-items: flex-start; }

/* — floating glass cards — */
.av-ph-card {
  width: 15.5rem;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(160deg, rgba(35, 61, 112, 0.85), rgba(14, 28, 58, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(148, 184, 255, 0.14),
    0 24px 48px -18px rgba(2, 8, 24, 0.8);
  animation: av-ph-float 7s ease-in-out infinite alternate;
}
.av-ph-card--price  { animation-delay: 1.6s; animation-duration: 8s; }
.av-ph-card--case   { animation-delay: 0.9s; animation-duration: 7.5s; }
.av-ph-card--stat   { animation-delay: 2.3s; animation-duration: 6.5s; }
@keyframes av-ph-float {
  from { transform: translateY(-6px); }
  to   { transform: translateY(7px); }
}
.av-ph-card--launch, .av-ph-card--stat { display: flex; gap: 12px; align-items: flex-start; }
.av-ph-card-ico {
  flex: none; width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(96, 156, 255, 0.18); color: #9cc4ff;
  box-shadow: inset 0 0 0 1px rgba(148, 184, 255, 0.25);
}
.av-ph-card-ico svg { width: 16px; height: 16px; }
.av-ph-card-ico--ok { background: rgba(74, 222, 128, 0.16); color: #6fe39a; box-shadow: inset 0 0 0 1px rgba(110, 227, 154, 0.3); }
.av-ph-card-title { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; color: #f2f6ff; }
.av-ph-card-text { font-size: 0.8rem; line-height: 1.45; color: rgba(214, 228, 255, 0.6); margin-top: 2px; }
.av-ph-card-label {
  font-family: var(--fonts--badge); text-transform: uppercase; letter-spacing: 0.6px;
  font-size: 0.66rem; color: rgba(214, 228, 255, 0.55);
}
.av-ph-price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.av-ph-price-old { text-decoration: line-through; color: rgba(214, 228, 255, 0.42); font-size: 0.95rem; }
.av-ph-price-new { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.av-ph-card--case { padding: 12px 12px 14px; }
.av-ph-case-cover {
  border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.av-ph-case-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.av-ph-stat-num { color: #6fe39a; font-weight: 700; }

/* — phone — */
.av-ph-phone-wrap { position: relative; z-index: 2; }
.av-ph-halo {
  position: absolute; inset: -5.5rem -7rem;
  background: radial-gradient(closest-side, rgba(64, 128, 236, 0.4), rgba(64, 128, 236, 0) 74%);
  pointer-events: none;
}
/* titanium band → black bezel → screen: three real layers like an iPhone */
.av-ph-phone {
  position: relative;
  width: 18rem;
  border-radius: 3.4rem;
  padding: 4px;
  background: linear-gradient(155deg, #8a97b4 0%, #3c4a68 18%, #1a2439 42%, #141d30 58%, #45536f 86%, #97a4c0 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(255, 255, 255, 0.18),
    0 52px 90px -28px rgba(1, 5, 16, 0.95),
    0 20px 40px -16px rgba(1, 5, 16, 0.7),
    0 0 70px rgba(47, 108, 220, 0.25);
}
.av-ph-bezel {
  position: relative;
  border-radius: calc(3.4rem - 4px);
  padding: 9px;
  background: #04060c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}
/* side hardware buttons */
.av-ph-btn {
  position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #6d7a96, #232e47);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.av-ph-btn--action  { left: -3px; top: 6.4rem; height: 1.5rem; }
.av-ph-btn--volup   { left: -3px; top: 9rem; height: 2.6rem; }
.av-ph-btn--voldown { left: -3px; top: 12.2rem; height: 2.6rem; }
.av-ph-btn--power   { right: -3px; left: auto; top: 10rem; height: 3.9rem; background: linear-gradient(270deg, #6d7a96, #232e47); }
.av-ph-island {
  position: absolute; top: calc(9px + 11px); left: 50%; transform: translateX(-50%);
  width: 6rem; height: 1.45rem; border-radius: 999px; background: #010204; z-index: 6;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.08);
}
/* front camera inside the island */
.av-ph-island::after {
  content: ""; position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #274067 0%, #0b1526 45%, #01050c 100%);
  box-shadow: 0 0 3px rgba(70, 120, 220, 0.5);
}
/* glass reflection over the whole display */
.av-ph-glass {
  position: absolute; inset: 9px; border-radius: calc(3.4rem - 13px);
  z-index: 7; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 26%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(298deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 28%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.22);
}
.av-ph-screen {
  position: relative;
  border-radius: calc(3.4rem - 13px);
  overflow: hidden;
  background: linear-gradient(180deg, #0c1830 0%, #0a1426 100%);
  height: 34.5rem;
  display: flex; flex-direction: column;
}

/* iOS status bar */
.av-ph-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 4px;
  color: #f2f6ff;
}
.av-ph-time { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; min-width: 3.2rem; }
.av-ph-status-icons { display: inline-flex; align-items: center; gap: 5px; }
.av-ph-status-icons svg { display: block; }
.av-ph-ic-signal { width: 15px; height: 10px; }
.av-ph-ic-wifi { width: 14px; height: 11px; }
.av-ph-ic-batt { width: 21px; height: 10px; }

/* chat header */
.av-ph-chat-top {
  display: flex; align-items: center; gap: 10px;
  padding: 0.85rem 1.1rem 0.8rem;
  background: rgba(9, 17, 34, 0.85);
  box-shadow: 0 1px 0 rgba(148, 184, 255, 0.12);
}
.av-ph-ava {
  flex: none; width: 34px; height: 34px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(150deg, #2f6cdc, #173a7d);
  display: flex; align-items: center; justify-content: center;
}
.av-ph-ava img { width: 20px; height: 20px; }
.av-ph-chat-id { min-width: 0; }
.av-ph-chat-name { font-size: 0.86rem; font-weight: 600; color: #f2f6ff; letter-spacing: -0.01em; }
.av-ph-chat-status { font-size: 0.68rem; color: #6fe39a; }
.av-ph-chat-actions { margin-left: auto; color: rgba(214, 228, 255, 0.5); }
.av-ph-chat-actions svg { width: 16px; height: 16px; }

/* chat feed — column pinned to the bottom, older messages slide up */
.av-ph-chat {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 7px;
  padding: 0.9rem 0.85rem;
  overflow: hidden;
  min-height: 0;
}
.av-ph-msg {
  max-width: 82%;
  padding: 9px 12px 7px;
  border-radius: 16px;
  font-size: 0.8rem; line-height: 1.4;
  color: #eef3ff;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.av-ph-msg.is-in { opacity: 1; transform: translateY(0) scale(1); }
.av-ph-msg--client {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.av-ph-msg--studio {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: linear-gradient(160deg, #3672e8, #2456c4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.av-ph-msg-time {
  display: block; text-align: right;
  font-size: 0.6rem; margin-top: 3px;
  color: rgba(238, 243, 255, 0.55);
}
.av-ph-msg--site .av-ph-msg-cover {
  border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 8px;
}
.av-ph-msg--site .av-ph-msg-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.av-ph-msg-link { font-size: 0.74rem; color: #bcd7ff; text-decoration: underline; }

/* typing indicator */
.av-ph-typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 12px 14px;
}
.av-ph-typing i {
  width: 5px; height: 5px; border-radius: 999px; background: rgba(238, 243, 255, 0.7);
  animation: av-ph-dot 1s ease-in-out infinite;
}
.av-ph-typing i:nth-child(2) { animation-delay: 0.15s; }
.av-ph-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes av-ph-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* input bar */
.av-ph-chat-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0.7rem 0.85rem;
  padding: 10px 6px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.av-ph-chat-placeholder { flex: 1; font-size: 0.78rem; color: rgba(214, 228, 255, 0.45); }
.av-ph-send {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(160deg, #3672e8, #2456c4); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.av-ph-send svg { width: 14px; height: 14px; }

/* — entrance choreography (JS adds .av-ph-in after the preloader) — */
.av-ph-head, .av-ph-phone-wrap, .av-ph-side .av-ph-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.av-ph-in .av-ph-head { opacity: 1; transform: none; }
.av-ph-in .av-ph-phone-wrap { opacity: 1; transform: none; transition-delay: 0.15s; }
.av-ph-in .av-ph-side .av-ph-card { opacity: 1; transform: none; }
.av-ph-in .av-ph-side--left  .av-ph-card:nth-child(1) { transition-delay: 0.3s; }
.av-ph-in .av-ph-side--left  .av-ph-card:nth-child(2) { transition-delay: 0.42s; }
.av-ph-in .av-ph-side--right .av-ph-card:nth-child(1) { transition-delay: 0.36s; }
.av-ph-in .av-ph-side--right .av-ph-card:nth-child(2) { transition-delay: 0.48s; }
/* float starts only after the entrance settles, otherwise transforms fight */
.av-ph-side .av-ph-card { animation-play-state: paused; }
.av-ph-in .av-ph-side .av-ph-card { animation-play-state: running; animation-delay: 1.2s; }
.av-ph-in .av-ph-card--price { animation-delay: 2.4s; }
.av-ph-in .av-ph-card--case  { animation-delay: 1.8s; }
.av-ph-in .av-ph-card--stat  { animation-delay: 3s; }

/* — responsive — */
@media (max-width: 991px) {
  .section_home1_hero { margin-top: -3.9rem; padding-top: 3.9rem; }
  .av-ph-stage { grid-template-columns: 1fr auto 1fr; gap: 1rem; }
  .av-ph-card { width: 13.5rem; }
  .av-ph-phone { width: 17rem; }
  .av-ph-screen { height: 34rem; }
}
@media (max-width: 820px) {
  .av-ph-stage { display: flex; flex-direction: column; align-items: center; }
  .av-ph-side { position: static; }
  .av-ph-side--left, .av-ph-side--right { display: contents; }
  .av-ph-card { position: absolute; z-index: 4; width: 12.5rem; }
  .av-ph-card--launch { display: none; }
  .av-ph-card--case { display: none; }
  .av-ph-card--price { top: 4.2rem; left: max(0.25rem, calc(50% - 19.5rem)); }
  .av-ph-card--stat { bottom: 4.5rem; right: max(0.25rem, calc(50% - 19.5rem)); }
}
@media (max-width: 640px) {
  /* smaller floating cards on phones so they don't cover the chat */
  .av-ph-card--price { top: 5.5rem; left: 0; }
  .av-ph-card--stat { bottom: 3.5rem; right: 0; }
  .av-ph-card { width: 8.5rem; padding: 9px 11px; border-radius: 14px; }
  .av-ph-card--launch, .av-ph-card--stat { gap: 8px; }
  .av-ph-card-ico { width: 26px; height: 26px; }
  .av-ph-card-ico svg { width: 13px; height: 13px; }
  .av-ph-card-title { font-size: 0.78rem; }
  .av-ph-card-text { font-size: 0.66rem; line-height: 1.35; }
  .av-ph-card-label { font-size: 0.58rem; }
  .av-ph-price-row { gap: 7px; margin: 3px 0 1px; }
  .av-ph-price-old { font-size: 0.78rem; }
  .av-ph-price-new { font-size: 1.05rem; }
  .av-ph-phone { width: 16.25rem; }
  .av-ph-screen { height: 31.5rem; }
  .av-ph-sub { font-size: 0.95rem; }
}
@media (max-width: 400px) {
  .av-ph-card--price { display: none; }
  .av-ph-card--stat { right: 0.25rem; bottom: 2rem; }
}

/* reduced motion: everything static and visible */
@media (prefers-reduced-motion: reduce) {
  .av-ph-card, .av-ph-side .av-ph-card { animation: none !important; }
  .av-ph-head, .av-ph-phone-wrap, .av-ph-side .av-ph-card {
    opacity: 1; transform: none; transition: none;
  }
  .av-ph-msg { opacity: 1; transform: none; transition: none; }
}

/* ═══════════ Spacing rhythm — consistent micro-gaps on every viewport ═══════════
   One scale for the whole page:
   badge → heading 12–14px · heading → description 12px ·
   description → content/CTA 24–28px. Fixes the template's uneven
   8px/18px/24px/32px mix inside blocks. */

/* section headers (Кейси, Відгуки, Що входить, Процес, FAQ):
   h2 was only 8px above its description — too tight for a 2.5rem heading */
.header-right { grid-row-gap: 12px; row-gap: 12px; }
/* on tablets/phones the header stacks: the badge floated a detached 24px
   above the heading — pull it into the same group */
@media (max-width: 991px) {
  .header { grid-row-gap: 14px; row-gap: 14px; }
}
/* the cases aside header used its own 18px — same 14px as everywhere */
.av-cases-aside .header { gap: 14px; }

/* hero: description → CTA buttons was ~38px (1.5rem spacer + 0.85rem pad);
   fix at an even 28px (title → description stays at its exact 20px) */
.av-ph-head .av-ph-sub + .spacer-small { padding-top: 28px; padding-bottom: 0; }

/* consultation block: badge sat a full 24px above the h2 — 14px, like the
   section headers */
.av-consult-head__left .spacer-small { padding-top: 14px; padding-bottom: 0; }
/* timeline entries: 4px between step title and its text was cramped */
.av-timeline-title { margin-bottom: 6px; }

/* pricing box: same deep-navy canvas as the hero / "Що входить"
   (was solid black with a white sheen). The faint top-left sheen is
   kept, just softer, so the card still reads as glass. */
.home1_pricing_box {
  background-color: #060f22;
  background-image:
    linear-gradient(300deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 55%),
    radial-gradient(135% 80% at 50% 0%, #12305e 0%, #0a1c3d 45%, #060f22 100%);
}
/* inner tariff cards: pure black clashed with the navy — switch to a
   navy glass surface with the hero-language hairline + top highlight */
.home1_pricing_card {
  background-color: rgba(6, 15, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* pricing: badge → h2 was 8px (too tight), badge row → price was 32px
   (too loose inside a 24px-padded card) */
.home1_pricing_header .spacer-xxsmall { padding-top: 12px; }
.pricing_top + .spacer-medium { padding-top: 20px; }
@media (max-width: 767px) {
  .pricing_top + .spacer-medium { padding-top: 16px; }
}

/* contact banner: "Поговоримо?" (h1) had only 8px before its description */
.home1_banner_right .spacer-xxsmall { padding-top: 12px; }

/* talk-boxes (Віталій): the three text lines rendered with no gap at all —
   role · name · note now breathe like every other text stack */
.talk-text { display: flex; flex-direction: column; gap: 6px; }

/* ═══════════ Radius system — max 18px everywhere ═══════════
   Buttons drop the template's 50px pill for a 14px premium rounding
   (reference: dark "Learn more →" button). Containers cap at 18px.
   True circles stay circles only where they are icons/content:
   play buttons, avatars, status dots, the phone-mockup frame. */
body,
body.w-mod-js,
body.w-mod-ix { --radius--button: 14px; }

/* ═══════════ Contact banner: recolor the red 3D-wave video to the
   hero's navy blue (hue 0° → ~218°, slightly desaturated + darker so it
   sits in the same palette as the first screen) ═══════════ */
.home1_banner_video {
  filter: hue-rotate(218deg) saturate(0.72) brightness(0.82);
  /* the filter creates a stacking context, which traps the video's own
     z-index:-100 inside this layer — pin the layer itself under the
     section content so the text stays on top */
  z-index: 0;
}
.section_home1_banner > .padding-global { position: relative; z-index: 2; }

/* ═══════════ Process block: sticky card-stack on phones — the same
   pile-up pattern as the cases grid (cards pin near the top and the next
   one slides over, leaving a 14px peek of each card underneath) ═══════════ */
@media (max-width: 767px) {
  .home1_process_box { display: flex; flex-direction: column; gap: 24px; }
  .home1_process_card {
    position: sticky;
    top: calc(80px + var(--i, 0) * 14px);
    border: 1px solid #e7e4dd;
    box-shadow: 0 18px 44px -14px rgba(20, 18, 15, 0.22);
  }
  .home1_process_card:nth-child(1) { --i: 0; }
  .home1_process_card:nth-child(2) { --i: 1; }
  .home1_process_card:nth-child(3) { --i: 2; }
  .home1_process_card:nth-child(4) { --i: 3; }
}

/* "Що входить": the expandable answer text was 12px — up 2px for readability */
.services_details .text-size-tiny { font-size: 0.875rem; }

/* ═══════════ Mobile: tighten the hero → cases hand-off (the hero's
   bottom padding + cases' top padding stacked to ~110px of dead space) */
@media (max-width: 767px) {
  .section_home1_hero .padding-section-medium { padding-bottom: 1rem; }
  .section_home1_cases .padding-section-medium { padding-top: 1.75rem; }
}

/* ═══════════ Consultation block: staggered entrance ═══════════
   JS adds .is-in when the block scrolls into view; the w-mod-js guard
   keeps everything visible if scripts never run. "backwards" fill so
   the finished animation hands transform control back to hover states. */
@media (min-width: 992px) {
  html.w-mod-js .av-consult:not(.is-in) .av-consult-head,
  html.w-mod-js .av-consult:not(.is-in) .av-folder { opacity: 0; }
  html.w-mod-js .av-consult.is-in .av-consult-head {
    animation: av-consult-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(1) {
    animation: av-consult-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards;
  }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(2) {
    animation: av-consult-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s backwards;
  }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(3) {
    animation: av-consult-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.36s backwards;
  }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(4) {
    animation: av-consult-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.48s backwards;
  }
  /* the 3d objects pop out of the folders after the cards land */
  html.w-mod-js .av-consult:not(.is-in) .av-folder__peek svg { transform: translateY(103%); }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(1) .av-folder__peek svg {
    animation: av-peek-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s backwards;
  }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(2) .av-folder__peek svg {
    animation: av-peek-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.77s backwards;
  }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(3) .av-folder__peek svg {
    animation: av-peek-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.89s backwards;
  }
  html.w-mod-js .av-consult.is-in .av-folder:nth-child(4) .av-folder__peek svg {
    animation: av-peek-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.01s backwards;
  }
}
@keyframes av-consult-rise {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes av-peek-rise {
  0% { transform: translateY(103%); }
  70% { transform: translateY(16%); }
  100% { transform: translateY(26%); }
}
@media (prefers-reduced-motion: reduce) {
  html.w-mod-js .av-consult:not(.is-in) .av-consult-head,
  html.w-mod-js .av-consult:not(.is-in) .av-folder { opacity: 1; }
  html.w-mod-js .av-consult:not(.is-in) .av-folder__peek svg { transform: translateY(26%); }
  html.w-mod-js .av-consult.is-in .av-consult-head,
  html.w-mod-js .av-consult.is-in .av-folder { animation: none; }
  html.w-mod-js .av-consult.is-in .av-folder__peek svg { animation: none; }
  .av-folder__peek svg { transition: none; }
}

/* ═══════════ Header-format buttons site-wide ═══════════
   Every .button follows the nav CTA anatomy: text on the left, a
   nested rounded arrow chip flush with the right edge (the chip is
   injected from custom.js). The chip tints itself from the button's
   text color, so accent / secondary / glass variants all work. */
.button {
  gap: 14px;
  padding: 7px 7px 7px 20px;
  border-radius: 12px;
  justify-content: space-between;
}
.av-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  background: color-mix(in srgb, currentColor 13%, transparent);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.av-btn-arrow svg { width: 14px; height: 14px; display: block; }
.button:hover .av-btn-arrow { transform: translateX(2px); }
.button:active { transform: scale(0.97); }

/* full-width form submit: keep the label readable on the left */
.button.is-form-submit { text-align: left; }

/* full-width mobile-menu buttons: same anatomy, calmer height */
.nav-menu .nav-links-buttons .button {
  padding: 10px 10px 10px 20px;
}

/* compact telegram pill in the mobile nav: smaller chip, tighter frame */
.av-mobile-only.button { padding: 7px 7px 7px 13px; gap: 9px; }
.av-mobile-only.button .av-btn-arrow { width: 24px; height: 24px; border-radius: 8px; }
.av-mobile-only.button .av-btn-arrow svg { width: 11px; height: 11px; }

@media (prefers-reduced-motion: reduce) {
  .av-btn-arrow { transition: none; }
}

/* ═══════════ Smooth scrolling ═══════════
   Anchor jumps glide natively; scroll-padding keeps targets clear of
   the floating glass nav. The wheel inertia layer lives in custom.js. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
