/* ══════════════════════════════════════════════
   ALTERMAX Home — fresh concept (hx-*)
   ══════════════════════════════════════════════ */

/* Syne без глифов цифр — numerals рендерятся Inter (читаемее в метриках и ценах) */
@font-face {
  font-family: "SyneDisplay";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/syne/v24/8vIS7w4qzmVxsWxjBZRjr0FKM_3fvj6k.ttf) format("truetype");
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-024F, U+0400-04FF, U+2013-2014, U+00AB, U+00BB;
}

@font-face {
  font-family: "SyneDisplay";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/syne/v24/8vIS7w4qzmVxsWxjBZRjr0FKM_24vj6k.ttf) format("truetype");
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-024F, U+0400-04FF, U+2013-2014, U+00AB, U+00BB;
}

.page-home,
.page-inner {
  --hx-bg: #faf8f4;
  --hx-bg-2: #f0ece4;
  --hx-ink: #141820;
  --hx-muted: #5a6272;
  --hx-accent: #ff5c3a;
  --hx-accent-2: #2f6fed;
  --hx-green: #1a9b6c;
  --hx-white: #ffffff;
  --hx-radius: 20px;
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hx-font-body: "Inter", system-ui, sans-serif;
  --hx-font-numeric: "Inter", system-ui, sans-serif;
  --hx-font-display: "SyneDisplay", var(--hx-font-numeric), sans-serif;
  background: var(--hx-bg);
  color: var(--hx-ink);
  font-family: var(--hx-font-body);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.page-home .site-main { min-height: auto; }
.page-inner .site-main { min-height: auto; padding-bottom: 0; }

.page-home .site-header,
.page-inner .site-header {
  background: rgba(250, 248, 244, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.page-home .site-header.is-scrolled,
.page-inner .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(20, 24, 32, 0.08);
  box-shadow: 0 8px 32px rgba(20, 24, 32, 0.06);
}

.page-inner .logo { color: var(--hx-ink); }
.page-home .logo { color: var(--hx-ink); }
.page-inner .site-nav__link { color: var(--hx-muted); }
.page-home .site-nav__link { color: var(--hx-muted); }
.page-inner .site-nav__link:hover,
.page-inner .site-nav__link.is-active {
  color: var(--hx-ink);
  background: rgba(20, 24, 32, 0.05);
}
.page-home .site-nav__link:hover,
.page-home .site-nav__link.is-active {
  color: var(--hx-ink);
  background: rgba(20, 24, 32, 0.05);
}
.page-inner .nav-toggle { background: rgba(20, 24, 32, 0.05); }
.page-home .nav-toggle { background: rgba(20, 24, 32, 0.05); }
.page-inner .nav-toggle span { background: var(--hx-ink); }
.page-home .nav-toggle span { background: var(--hx-ink); }
.page-inner .nav-btn {
  background: var(--hx-ink);
  box-shadow: 0 8px 28px rgba(20, 24, 32, 0.2);
}
.page-home .nav-btn {
  background: var(--hx-ink);
  box-shadow: 0 8px 28px rgba(20, 24, 32, 0.2);
}

.page-home .site-footer {
  background: var(--hx-white);
  border-top: none;
  margin-top: -40px;
  padding-top: 72px;
}

.page-inner .site-footer {
  background: var(--hx-white);
  border-top: 1px solid rgba(20, 24, 32, 0.06);
  margin-top: 0;
  padding-top: clamp(48px, 6vw, 64px);
  border-radius: 0;
}
.page-inner .site-footer__tagline,
.page-inner .site-footer__copy,
.page-inner .site-footer__address-list,
.page-inner .site-footer__nav-list,
.page-inner .site-footer__nav-list a,
.page-home .site-footer__tagline,
.page-home .site-footer__copy,
.page-home .site-footer__address-list,
.page-home .site-footer__nav-list,
.page-home .site-footer__nav-list a { color: var(--hx-muted); }
.page-inner .site-footer__heading,
.page-home .site-footer__heading { color: var(--hx-ink); }
.page-inner .site-footer__link,
.page-home .site-footer__link { color: var(--hx-accent-2); }
.page-inner .site-footer__nav-list a:hover,
.page-home .site-footer__nav-list a:hover { color: var(--hx-ink); }

@media (max-width: 1100px) {
  .page-inner .site-nav,
  .page-home .site-nav {
    background: var(--hx-bg);
    border-bottom-color: rgba(20, 24, 32, 0.08);
  }
}

.hx-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hx-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--hx-accent), var(--hx-accent-2));
}

/* ── Typography ── */
.hx-font-numeric {
  font-family: var(--hx-font-numeric);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.hx-display {
  font-family: var(--hx-font-display);
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hx-display--sm {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.hx-display__stroke {
  color: var(--hx-accent-2);
  -webkit-text-stroke: 0;
}

.hx-reel {
  position: relative;
  display: inline-grid;
  vertical-align: -0.02em;
  color: var(--hx-accent-2);
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.hx-reel__sizer {
  grid-area: 1 / 1;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.hx-reel__window {
  grid-area: 1 / 1;
  display: block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  isolation: isolate;
  clip-path: inset(0 0 0 0);
}

.hx-reel__track {
  display: block;
  animation: hx-reel 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.hx-reel__track span {
  display: block;
  height: 1em;
  line-height: 1;
  white-space: nowrap;
  font: inherit;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

@keyframes hx-reel {
  0%, 8% { transform: translate3d(0, 0, 0); }
  10%, 18% { transform: translate3d(0, -1em, 0); }
  20%, 28% { transform: translate3d(0, -2em, 0); }
  30%, 38% { transform: translate3d(0, -3em, 0); }
  40%, 48% { transform: translate3d(0, -4em, 0); }
  50%, 58% { transform: translate3d(0, -5em, 0); }
  60%, 68% { transform: translate3d(0, -6em, 0); }
  70%, 78% { transform: translate3d(0, -7em, 0); }
  80%, 88% { transform: translate3d(0, -8em, 0); }
  90%, 98% { transform: translate3d(0, -9em, 0); }
  100% { transform: translate3d(0, -10em, 0); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hx-title {
  font-family: var(--hx-font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 16px;
}

.hx-title em {
  font-style: normal;
  color: var(--hx-accent);
}

.hx-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hx-muted);
  margin-bottom: 20px;
}

.hx-tag__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hx-green);
  box-shadow: 0 0 0 4px rgba(26, 155, 108, 0.2);
  animation: hx-dot 1.8s ease-in-out infinite;
}

@keyframes hx-dot {
  50% { transform: scale(1.35); box-shadow: 0 0 0 8px rgba(26, 155, 108, 0.12); }
}

.hx-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--hx-muted);
  max-width: 480px;
}

/* ── Buttons ── */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.35s var(--hx-ease), box-shadow 0.35s, background 0.35s;
  cursor: pointer;
}

.hx-btn--sm { height: 44px; padding: 0 20px; font-size: 0.88rem; }

.hx-btn--fill {
  background: var(--hx-ink);
  color: var(--hx-white);
  box-shadow: 0 12px 32px rgba(20, 24, 32, 0.2);
}
.hx-btn--fill:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(20, 24, 32, 0.25); }
.hx-btn--fill:active { transform: translateY(0) scale(0.98); }

.hx-btn--line {
  background: transparent;
  color: var(--hx-ink);
  border-color: rgba(20, 24, 32, 0.15);
}
.hx-btn--line:hover { transform: translateY(-3px); border-color: var(--hx-ink); }

.hx-btn--light.hx-btn--fill { background: var(--hx-white); color: var(--hx-ink); }
.hx-btn--light.hx-btn--line { color: var(--hx-white); border-color: rgba(255,255,255,0.4); }

/* ── Animations ── */
html:not(.js) .hx-reveal,
html:not(.js) .hx-stagger > * {
  opacity: 1;
  transform: none;
}

.hx-anim {
  opacity: 0;
  transform: translateY(32px);
  animation: hx-up 0.9s var(--hx-ease) var(--d, 0s) forwards;
}

@keyframes hx-up {
  to { opacity: 1; transform: none; }
}

html.js .hx-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--hx-ease), transform 0.9s var(--hx-ease);
}
html.js .hx-reveal.is-in { opacity: 1; transform: none; }

html.js .hx-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--hx-ease) var(--d, 0s), transform 0.7s var(--hx-ease) var(--d, 0s);
}
html.js .hx-stagger.is-in > *,
html.js .hx-stagger > *.is-in { opacity: 1; transform: none; }

/* ═══ HERO ═══ */
.hx-hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hx-hero__mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255, 92, 58, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(47, 111, 237, 0.14) 0%, transparent 55%),
    var(--hx-bg);
  animation: hx-mesh 14s ease-in-out infinite alternate;
}

@keyframes hx-mesh {
  to { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

.hx-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hx-hero__lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--hx-muted);
  max-width: 440px;
  margin: 20px 0 32px;
}

.hx-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hx-hero__note {
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.hx-hero__note a {
  color: var(--hx-accent-2);
  font-weight: 650;
  text-decoration: none;
}

.hx-hero__note a:hover { text-decoration: underline; }

.hx-partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 24, 32, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
}

.hx-partner__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hx-ink);
  color: var(--hx-white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hx-scene {
  position: relative;
  height: 680px;
}

.hx-scene__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 58, 0.22), rgba(47, 111, 237, 0.14) 46%, transparent 72%);
}

.hx-scene__win {
  position: absolute;
  top: 20px;
  bottom: 16px;
  left: 0;
  right: 28px;
  background: var(--hx-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 28px 70px rgba(20, 24, 32, 0.14);
}

.hx-scene__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #f6f4ef;
  border-bottom: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-scene__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d1c8;
}

.hx-scene__bar span:nth-child(1) { background: #ff5c3a; }
.hx-scene__bar span:nth-child(2) { background: #f0b429; }
.hx-scene__bar span:nth-child(3) { background: #1a9b6c; }

.hx-scene__bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--hx-muted);
}

.hx-scene__body { padding: 16px 16px 18px; }

.hx-scene__topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.hx-scene__topline strong { letter-spacing: -0.03em; }
.hx-scene__topline small { color: var(--hx-muted); font-size: 0.75rem; }

.hx-scene__body > p {
  color: var(--hx-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.hx-scene__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hx-scene__grid div {
  background: var(--hx-bg);
  border-radius: 12px;
  padding: 10px 8px 8px;
  text-align: center;
}

.hx-scene__grid img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: contain;
  background: #f4f2ee;
  border-radius: 8px;
  margin-bottom: 8px;
}

.hx-scene__grid b,
.hx-scene__grid em {
  display: block;
  font-style: normal;
}

.hx-scene__grid b { font-size: 0.75rem; }
.hx-scene__grid em {
  margin-top: 2px;
  font-size: 0.72rem;
  font-family: var(--hx-font-numeric);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--hx-muted);
}

.hx-scene__toasts {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(230px, 62%);
  pointer-events: none;
}

.hx-scene__card {
  position: relative;
  width: 100%;
  padding: 0 16px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--hx-white);
  border-radius: 16px;
  border: 1px solid rgba(20, 24, 32, 0.06);
  box-shadow: 0 18px 50px rgba(20, 24, 32, 0.16);
  opacity: 0;
  transform: translateX(28px);
}

.hx-scene__card--1 { animation: hx-toast-1 18s ease infinite; }
.hx-scene__card--2 { animation: hx-toast-2 18s ease infinite; }
.hx-scene__card--3 { animation: hx-toast-3 18s ease infinite; }
.hx-scene__card--4 { animation: hx-toast-4 18s ease infinite; }
.hx-scene__card--5 { animation: hx-toast-5 18s ease infinite; }
.hx-scene__card--6 { animation: hx-toast-6 18s ease infinite; }
.hx-scene__card--7 { animation: hx-toast-7 18s ease infinite; }
.hx-scene__card--8 { animation: hx-toast-8 18s ease infinite; }
.hx-scene__card--9 { animation: hx-toast-9 18s ease infinite; }

@keyframes hx-toast-1 {
  0%, 1% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  5%, 26% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  32%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-2 {
  0%, 8% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  12%, 26% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  32%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-3 {
  0%, 15% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  19%, 26% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  32%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-4 {
  0%, 35% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  39%, 60% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  66%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-5 {
  0%, 42% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  46%, 60% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  66%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-6 {
  0%, 49% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  53%, 60% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  66%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-7 {
  0%, 69% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  73%, 92% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  98%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-8 {
  0%, 76% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  80%, 92% { max-height: 96px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  98%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-toast-9 {
  0%, 83% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  87%, 92% { max-height: 110px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; opacity: 1; transform: none; }
  98%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}

.hx-scene__card small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx-muted);
}

.hx-scene__card strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.hx-scene__card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.8rem;
  font-family: var(--hx-font-numeric);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-weight: 600;
  color: var(--hx-muted);
}

.hx-scene__live {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hx-green);
  box-shadow: 0 0 0 5px rgba(26, 155, 108, 0.16);
}

.hx-scene__barline {
  margin-top: 10px;
  height: 6px;
  border-radius: 99px;
  background: rgba(20, 24, 32, 0.08);
  overflow: hidden;
}

.hx-scene__barline i {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hx-accent), var(--hx-accent-2));
  animation: hx-load 2.8s ease-in-out infinite;
}

@keyframes hx-load {
  0%, 100% { width: 32%; }
  50% { width: 82%; }
}

.hx-metrics {
  display: flex;
  gap: 32px;
  list-style: none;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 24, 32, 0.1);
}

.hx-metrics strong {
  display: block;
  font-family: var(--hx-font-numeric);
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hx-metrics span {
  font-size: 0.82rem;
  color: var(--hx-muted);
}

/* ── Hero frames: first screen, no crop-to-fragment ── */
.hx-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hx-frame {
  margin: 0;
  background: var(--hx-white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 24px 60px rgba(20, 24, 32, 0.12);
}

.hx-frame figcaption {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx-muted);
  border-bottom: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.hx-frame--side {
  width: 86%;
  margin-left: auto;
}

.hx-collage {
  position: relative;
  height: clamp(420px, 48vw, 560px);
  perspective: 1600px;
}

.hx-collage__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.hx-collage__shape {
  position: absolute;
  top: 50%; left: 50%;
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(255,92,58,0.15), rgba(47,111,237,0.12), rgba(255,92,58,0.15));
  transform: translateZ(-80px) rotateX(55deg);
  filter: blur(1px);
  animation: hx-spin-slow 24s linear infinite;
}

@keyframes hx-spin-slow {
  to { transform: translateZ(-80px) rotateX(55deg) rotateZ(360deg); }
}

.hx-polaroid {
  position: absolute;
  margin: 0;
  padding: 10px 10px 28px;
  background: var(--hx-white);
  box-shadow: 0 20px 60px rgba(20, 24, 32, 0.15);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s;
}

.hx-polaroid:hover { box-shadow: 0 32px 80px rgba(20, 24, 32, 0.22); }

.hx-polaroid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.hx-polaroid figcaption {
  position: absolute;
  bottom: 8px; left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hx-muted);
}

.hx-polaroid--1 { width: 58%; top: 6%; left: 18%; transform: rotate(-4deg); z-index: 4; animation: hx-float 7s ease-in-out infinite; }
.hx-polaroid--2 { width: 42%; top: 0; right: 0; transform: rotate(6deg); z-index: 2; animation: hx-float 8.5s ease-in-out infinite 0.4s; }
.hx-polaroid--3 { width: 46%; bottom: 4%; left: 0; transform: rotate(3deg); z-index: 5; animation: hx-float 6.5s ease-in-out infinite 0.8s; }
.hx-polaroid--4 { width: 38%; bottom: 12%; right: 8%; transform: rotate(-7deg); z-index: 3; animation: hx-float 9s ease-in-out infinite 0.2s; }

@keyframes hx-float {
  50% { translate: 0 -10px; }
}

.hx-collage__badge {
  position: absolute;
  top: 38%; right: -2%;
  z-index: 6;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--hx-accent);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(255, 92, 58, 0.4);
  transform: translateZ(60px);
}

.hx-collage__badge span {
  font-family: var(--hx-font-numeric);
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}

.hx-collage__badge small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* ═══ TICKER ═══ */
.hx-ticker {
  overflow: hidden;
  border-block: 1px solid rgba(20, 24, 32, 0.08);
  background: var(--hx-ink);
  color: var(--hx-white);
  padding: 14px 0;
}

.hx-ticker__row {
  display: flex;
  width: max-content;
  gap: 48px;
  white-space: nowrap;
}

.hx-ticker__row span {
  font-family: var(--hx-font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hx-ticker__row--fwd { animation: hx-tick-fwd 28s linear infinite; }
.hx-ticker__row--rev { animation: hx-tick-rev 32s linear infinite; margin-top: 10px; opacity: 0.5; }

@keyframes hx-tick-fwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hx-tick-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ═══ STICKY STORY ═══ */
.hx-story {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--hx-white);
}

.hx-story__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.hx-story__sticky {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.hx-story__stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hx-story-card {
  position: relative;
  border-radius: var(--hx-radius);
  overflow: hidden;
  background: var(--hx-bg);
  box-shadow: 0 16px 48px rgba(20, 24, 32, 0.08);
  transition: transform 0.5s var(--hx-ease);
}

.hx-story-card:hover { transform: translateY(-4px); }

.hx-story-card__num {
  position: absolute;
  top: 16px; left: 20px;
  z-index: 2;
  font-family: var(--hx-font-numeric);
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  color: white;
  opacity: 0.9;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hx-story-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hx-story-card__body {
  padding: 24px 28px 28px;
}

.hx-story-card__body h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hx-story-card__body p {
  color: var(--hx-muted);
  line-height: 1.65;
}

/* ═══ SERVICES RAIL ═══ */
.hx-services {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--hx-bg-2);
  overflow: hidden;
}

.hx-services__head { margin-bottom: 40px; }

.hx-rail {
  display: flex;
  gap: 20px;
  padding: 8px max(20px, calc((100vw - 1240px) / 2 + 20px)) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}
.hx-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hx-rail::-webkit-scrollbar { display: none; }

.hx-service {
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border-radius: var(--hx-radius);
  overflow: hidden;
  background: var(--hx-white);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.08);
  transition: transform 0.45s var(--hx-ease), box-shadow 0.45s;
  transform-style: preserve-3d;
}

.hx-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(20, 24, 32, 0.14);
}

.hx-service__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hx-service__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--hx-ease);
}

.hx-service:hover .hx-service__img img { transform: scale(1.08); }

.hx-service__info { padding: 22px 24px 26px; }

.hx-service__idx {
  font-family: var(--hx-font-numeric);
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--hx-accent);
  letter-spacing: 0.06em;
}

.hx-service__info h3 {
  font-size: 1.25rem;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
}

.hx-service__info p {
  font-size: 0.92rem;
  color: var(--hx-muted);
  line-height: 1.55;
}

/* ═══ FLIP OFFERS ═══ */
.hx-offers {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--hx-white);
}

.hx-offers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.hx-flip { min-height: 420px; }

.hx-flip__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: 100%; min-height: 420px;
  border-radius: calc(var(--hx-radius) + 4px);
  overflow: hidden;
  background: var(--hx-ink);
}

.hx-flip__inner:focus { outline: 3px solid rgba(47,111,237,.3); outline-offset: 3px; }

.hx-flip__front,
.hx-flip__back {
  position: relative;
  overflow: hidden;
}

.hx-flip__front img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hx-flip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,24,32,0.9) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: white;
}

.hx-flip__label {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hx-accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.hx-flip__label--green { background: var(--hx-green); }

.hx-flip__overlay h3 {
  font-family: var(--hx-font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.hx-flip__back {
  background: var(--hx-ink);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  gap: 24px;
}

.hx-flip__back p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

.hx-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hx-trust-item {
  padding: 28px;
  border: 1px dashed rgba(20,24,32,.2);
  border-radius: var(--hx-radius);
  background: rgba(255,255,255,.55);
}

.hx-trust-item strong { display: block; margin-bottom: 10px; font-size: 1.1rem; }
.hx-trust-item span { color: var(--hx-muted); line-height: 1.6; }

.hx-faq { max-width: 880px; }
.hx-faq details { border-top: 1px solid rgba(20,24,32,.12); padding: 22px 0; }
.hx-faq details:last-child { border-bottom: 1px solid rgba(20,24,32,.12); }
.hx-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 750;
  font-size: 1.08rem;
  list-style: none;
}
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.4s ease;
}
.hx-faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.hx-faq details > .hx-faq__a {
  display: block;
  height: 0;
  overflow: hidden;
  transition: height 0.45s ease;
}
.hx-faq details[open] > .hx-faq__a {
  height: auto;
}
.hx-faq details::details-content {
  content-visibility: visible;
  height: auto;
  overflow: visible;
}
.hx-faq__a > div {
  overflow: hidden;
}
.hx-faq details p {
  color: var(--hx-muted);
  line-height: 1.7;
  padding-top: 14px;
  max-width: 720px;
}

.hx-portfolio__task { color: var(--hx-muted); line-height: 1.6; margin-top: 12px; }
.hx-portfolio__facts { margin-top: 18px; display: grid; gap: 12px; }
.hx-portfolio__facts div { border-top: 1px solid rgba(20,24,32,.08); padding-top: 10px; }
.hx-portfolio__facts dt { color: var(--hx-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.hx-portfolio__facts dd { margin-top: 4px; font-size: .9rem; font-weight: 650; }

.hx-consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; color: var(--hx-muted); font-size: .82rem; line-height: 1.5; }
.hx-consent input { margin-top: 3px; }
.hx-consent a { color: var(--hx-accent-2); }

.hx-legal { max-width: 860px; margin: 0 auto; }
.hx-legal h2 { font-family: var(--hx-font-display); font-size: 1.35rem; margin: 34px 0 10px; }
.hx-legal p { color: var(--hx-muted); line-height: 1.75; }
.hx-legal a { color: var(--hx-accent-2); }
.hx-editorial-note {
  padding: 18px 20px;
  border: 1px dashed rgba(255,92,58,.45);
  border-radius: 14px;
  background: rgba(255,92,58,.07);
  color: #8f321f;
  line-height: 1.6;
}

/* ═══ MASONRY CASES ═══ */
.hx-cases {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--hx-bg);
}

.hx-cases__head { margin-bottom: 40px; }

.hx-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.hx-masonry__item {
  position: relative;
  border-radius: var(--hx-radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.1);
  transition: transform 0.5s var(--hx-ease);
}

.hx-masonry__item:hover { transform: scale(1.02); }

.hx-masonry__item--tall { grid-row: span 2; }
.hx-masonry__item--wide { grid-column: span 2; }

.hx-masonry__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--hx-ease);
}

.hx-masonry__item:hover img { transform: scale(1.06); }

.hx-masonry__cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,24,32,0.92) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transform: translateY(8px);
  transition: transform 0.4s var(--hx-ease);
}

.hx-masonry__item:hover .hx-masonry__cap { transform: none; }

.hx-masonry__cap h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.hx-masonry__cap p {
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* ═══ REVIEWS SLIDER ═══ */
.hx-reviews {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--hx-white);
}

.hx-slider {
  margin-top: 40px;
  position: relative;
}

.hx-slider__track {
  position: relative;
  min-height: 280px;
}

.hx-quote {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: clamp(32px, 5vw, 48px);
  background: var(--hx-bg);
  border-radius: calc(var(--hx-radius) + 8px);
  border: 1px solid rgba(20, 24, 32, 0.06);
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.6s var(--hx-ease), transform 0.6s var(--hx-ease);
  pointer-events: none;
}

.hx-quote.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.hx-quote__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hx-quote__ava {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hx-white);
  box-shadow: 0 4px 16px rgba(20,24,32,0.1);
}

.hx-quote__ava--letter {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--hx-ink);
  color: var(--hx-white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hx-quote__ava--b { background: var(--hx-accent-2); }
.hx-quote__ava--c { background: var(--hx-green); }

.hx-quote cite {
  font-style: normal;
  font-weight: 800;
  display: block;
}

.hx-quote span {
  font-size: 0.88rem;
  color: var(--hx-muted);
}

.hx-quote p {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.hx-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hx-slider__dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 24, 32, 0.15);
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  padding: 0;
}

.hx-slider__dots button.is-active {
  background: var(--hx-accent);
  transform: scale(1.3);
}

/* ═══ CTA ═══ */
.hx-cta {
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
  background: var(--hx-bg);
}

.hx-cta__box {
  background: var(--hx-ink);
  color: white;
  border-radius: calc(var(--hx-radius) + 12px);
  padding: clamp(48px, 8vw, 72px);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hx-cta__box::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,58,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hx-cta__box p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 16px auto 32px;
  line-height: 1.65;
}

.hx-cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ═══ RESPONSIVE ═══ */
.hx-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hx-casegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hx-shot {
  display: flex;
  flex-direction: column;
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(20, 24, 32, 0.06);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.08);
  transition: transform 0.45s var(--hx-ease), box-shadow 0.45s;
}

.hx-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20, 24, 32, 0.12);
}

.hx-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hx-shot__body { padding: 18px 20px 22px; }

.hx-shot__body h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hx-shot__body p {
  color: var(--hx-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .hx-hero__grid,
  .hx-story__grid,
  .hx-stage { grid-template-columns: 1fr; }

  .hx-scene { height: 700px; }

  .hx-frame--side { width: 100%; margin-left: 0; }

  .hx-casegrid { grid-template-columns: 1fr 1fr; }

  .hx-story__sticky { position: static; margin-bottom: 32px; }

  .hx-offers__grid { grid-template-columns: 1fr; }
  .hx-flip { min-height: 0; }
  .hx-flip__inner { grid-template-columns: 1fr; min-height: 0; }
  .hx-flip__front { min-height: 320px; }

  .hx-masonry {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .hx-masonry__item--wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .hx-casegrid { grid-template-columns: 1fr; }

  .hx-masonry { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .hx-masonry__item--tall,
  .hx-masonry__item--wide { grid-row: span 1; grid-column: span 1; }
  .hx-masonry__item { min-height: 260px; }

  .hx-metrics { gap: 20px; }
  .hx-trust-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-anim { opacity: 1; transform: none; animation: none; }
  .hx-scene__card--1,
  .hx-scene__card--2,
  .hx-scene__card--3,
  .hx-scene__card--4,
  .page-home .hx-scene__card--1,
  .page-home .hx-scene__card--2,
  .page-home .hx-scene__card--3,
  .page-home .hx-scene__card--4 {
    max-height: 110px;
    padding: 14px 16px;
    margin-bottom: 10px;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hx-scene__card { animation: none; }
  .hx-reel__track { animation: none; }
  .hx-scene__barline i,
  .hx-collage__shape,
  .hx-hero__mesh,
  .hx-page-hero::before,
  .hx-polaroid--1,
  .hx-polaroid--2,
  .hx-polaroid--3,
  .hx-polaroid--4,
  .hx-collage__badge,
  .hx-tag__dot,
  .hx-gallery__item.is-pop { animation: none; }
  .hx-site-free-scene__orb,
  .hx-site-free-scene__product,
  .hx-site-free-scene__cart,
  .hx-site-free-scene__metric,
  .hx-site-free-scene__step,
  .hx-site-free-scene__toast {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hx-site-free-scene__toast--a { opacity: 1; }
  .hx-site-free-scene__toast--b,
  .hx-site-free-scene__toast--c { display: none; }
  .hx-flip__inner { transition: none; }
}

/* ══════════════════════════════════════════════
   INNER PAGES
   ══════════════════════════════════════════════ */

.hx-page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  position: relative;
  overflow: hidden;
}

.hx-page-hero::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(255, 92, 58, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(47, 111, 237, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: hx-mesh 16s ease-in-out infinite alternate;
}

.hx-page-hero__inner {
  position: relative;
  z-index: 1;
}

.hx-page-hero--center .hx-page-hero__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hx-page-hero--center .hx-hero__cta,
.hx-page-hero--center .hx-page-hero__cta {
  justify-content: center;
}

.hx-page-hero__lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--hx-muted);
  max-width: 560px;
  margin: 20px 0 28px;
}

.hx-page-hero--center .hx-page-hero__lead {
  margin-left: auto;
  margin-right: auto;
}

.hx-page-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hx-page-hero .hx-text + .hx-page-hero__cta {
  margin-top: 36px;
}

.hx-page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hx-page-hero__visual {
  border-radius: calc(var(--hx-radius) + 4px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(20, 24, 32, 0.12);
}

.hx-page-hero__visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hx-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.page-inner .hx-page-hero--compact {
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-inner .hx-page-hero--compact .hx-page-hero__lead {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-inner .hx-page-hero__cta {
  margin-top: 24px;
}

.page-inner .hx-section {
  padding: clamp(48px, 7vw, 80px) 0;
}

.page-inner .hx-section__head .hx-text-block {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.page-inner .hx-card {
  border: 1px solid rgba(20, 24, 32, 0.07);
  box-shadow: 0 10px 36px rgba(20, 24, 32, 0.05);
}

.page-inner .hx-form-card {
  border: 1px solid rgba(20, 24, 32, 0.07);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.06);
}

.page-inner .hx-form-card .hx-title {
  margin-bottom: 20px;
}

.hx-section--white { background: var(--hx-white); }
.hx-section--alt { background: var(--hx-bg-2); }

.hx-section--white,
.hx-section--alt {
  position: relative;
}

.page-inner .hx-section--white,
.page-inner .hx-section--alt,
.page-inner .calc-section {
  margin-top: 0;
  border-radius: 0;
}

.page-home .hx-section--white,
.page-home .hx-section--alt,
.hx-services,
.hx-offers,
.hx-cases,
.hx-reviews,
.hx-cta,
.page-home .site-footer {
  position: relative;
  z-index: 1;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

.hx-section__head {
  margin-bottom: 40px;
  max-width: 640px;
}

.hx-section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hx-text-block {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--hx-muted);
}

.hx-cards {
  display: grid;
  gap: 20px;
}

.hx-cards--2 { grid-template-columns: repeat(2, 1fr); }
.hx-cards--3 { grid-template-columns: repeat(3, 1fr); }
.hx-cards--4 { grid-template-columns: repeat(4, 1fr); }

.hx-card {
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(20, 24, 32, 0.06);
  border: 1px solid rgba(20, 24, 32, 0.05);
  transition: transform 0.4s var(--hx-ease), box-shadow 0.4s;
}

.hx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(20, 24, 32, 0.1);
}

.hx-card__num {
  font-family: var(--hx-font-numeric);
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  color: rgba(20, 24, 32, 0.08);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.hx-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hx-card p {
  color: var(--hx-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.hx-card--compact {
  padding: 22px 24px;
}

.hx-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 36px 40px;
  background: var(--hx-ink);
  color: white;
  border-radius: calc(var(--hx-radius) + 4px);
  box-shadow: 0 20px 60px rgba(20, 24, 32, 0.15);
}

.hx-band h3 {
  font-family: var(--hx-font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hx-band p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 520px;
}

.page-inner .hx-band {
  background: var(--hx-white);
  color: var(--hx-ink);
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.06);
}

.page-inner .hx-band p {
  color: var(--hx-muted);
}

.page-inner .hx-band .hx-btn--fill {
  background: var(--hx-ink);
  color: #fff;
}

.hx-band--inline {
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.hx-band--inline h3 {
  margin: 0;
  font-size: 1.2rem;
  flex: 1;
  min-width: 12rem;
}

.hx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hx-split__img {
  border-radius: var(--hx-radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(20, 24, 32, 0.1);
}

.hx-split__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hx-pricing {
  display: inline-block;
  text-align: center;
  padding: 28px 32px;
  margin: 28px 0;
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.08);
  border: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-page-hero--center .hx-pricing {
  display: block;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hx-pricing__old {
  font-family: var(--hx-font-numeric);
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--hx-muted);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

.hx-pricing__new {
  font-family: var(--hx-font-numeric);
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--hx-accent);
  margin: 8px 0;
}

.hx-pricing__sub {
  font-size: 0.95rem;
  color: var(--hx-muted);
}

.hx-tag--tight {
  margin-bottom: 10px;
}

.hx-offer-visual {
  position: relative;
  border-radius: calc(var(--hx-radius) + 6px);
  padding: 14px 14px 0;
  background: linear-gradient(165deg, #ffffff 0%, #f3efe8 100%);
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 28px 72px rgba(20, 24, 32, 0.12);
}

.hx-offer-visual__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 12px;
}

.hx-offer-visual__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5d1c8;
}

.hx-offer-visual__bar span:nth-child(1) { background: #ff5c3a; }
.hx-offer-visual__bar span:nth-child(2) { background: #f0b429; }
.hx-offer-visual__bar span:nth-child(3) { background: #1a9b6c; }

.hx-offer-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-offer-visual--compact {
  padding: 0;
  overflow: hidden;
  max-width: 560px;
  margin-left: auto;
}

.hx-offer-visual--compact img {
  border-radius: var(--hx-radius);
  border: none;
  aspect-ratio: 4 / 3;
}

.hx-offer-visual__badge {
  position: absolute;
  left: 28px;
  bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 24, 32, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hx-ink);
  box-shadow: 0 8px 24px rgba(20, 24, 32, 0.1);
}

.hx-offer-visual__badge--free {
  background: rgba(255, 92, 58, 0.95);
  color: #fff;
  border-color: rgba(255, 92, 58, 0.4);
}

.page-site-free .hx-page-hero {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-site-free .hx-page-hero--split {
  gap: clamp(24px, 3.5vw, 40px);
  align-items: center;
}

.page-site-free .hx-page-hero__lead {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.page-site-free .hx-offer-visual {
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding: 14px;
  box-shadow: 0 20px 52px rgba(20, 24, 32, 0.1);
}

.page-site-free .hx-offer-visual--scene {
  padding: 14px;
  overflow: hidden;
}

.hx-site-free-scene {
  position: relative;
  min-height: clamp(300px, 38vw, 400px);
}

.hx-site-free-scene__orb {
  position: absolute;
  inset: 8% 10% auto auto;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 58, 0.2), rgba(47, 111, 237, 0.12) 55%, transparent 72%);
  animation: hx-sf-orb 6s ease-in-out infinite alternate;
}

@keyframes hx-sf-orb {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to { transform: translate(-6%, 4%) scale(1.08); opacity: 1; }
}

.hx-site-free-scene__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 34%);
  gap: 10px;
  align-items: stretch;
}

.hx-site-free-scene__win {
  background: var(--hx-white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 16px 40px rgba(20, 24, 32, 0.12);
}

.hx-site-free-scene__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: #f6f4ef;
  border-bottom: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-site-free-scene__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5d1c8;
}

.hx-site-free-scene__bar span:nth-child(1) { background: #ff5c3a; }
.hx-site-free-scene__bar span:nth-child(2) { background: #f0b429; }
.hx-site-free-scene__bar span:nth-child(3) { background: #1a9b6c; }

.hx-site-free-scene__bar em {
  margin-left: 6px;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--hx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-site-free-scene__body {
  padding: 12px;
}

.hx-site-free-scene__shop-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.hx-site-free-scene__shop-head strong {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.hx-site-free-scene__shop-head small {
  font-size: 0.62rem;
  color: var(--hx-muted);
  text-align: right;
}

.hx-site-free-scene__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hx-site-free-scene__product {
  padding: 8px;
  border-radius: 10px;
  background: var(--hx-bg);
  text-align: center;
  animation: hx-sf-product 5s var(--hx-ease) infinite;
  animation-delay: calc(var(--p) * 0.35s);
}

.hx-site-free-scene__product img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  margin-bottom: 6px;
  background: #f4f2ee;
  border-radius: 8px;
}

.hx-site-free-scene__product b {
  display: block;
  font-size: 0.62rem;
  line-height: 1.25;
  margin-bottom: 2px;
}

.hx-site-free-scene__product em {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  color: var(--hx-accent-2);
}

@keyframes hx-sf-product {
  0%, 18% { opacity: 0.55; transform: translateY(4px); }
  32%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.7; transform: translateY(2px); }
}

.hx-site-free-scene__cart {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--hx-accent), #ff7a5c);
  animation: hx-sf-cart 5s var(--hx-ease) infinite;
}

@keyframes hx-sf-cart {
  0%, 25% { opacity: 0.5; transform: scale(0.98); }
  40%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.75; }
}

.hx-site-free-scene__aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hx-site-free-scene__metric {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 8px 20px rgba(20, 24, 32, 0.06);
}

.hx-site-free-scene__metric small {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hx-muted);
}

.hx-site-free-scene__metric strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.hx-site-free-scene__metric span {
  display: block;
  font-size: 0.58rem;
  color: var(--hx-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.hx-site-free-scene__metric--a {
  animation: hx-sf-metric 6s ease infinite;
}

.hx-site-free-scene__metric--b {
  animation: hx-sf-metric 6s ease infinite 3s;
}

@keyframes hx-sf-metric {
  0%, 12%, 100% { border-color: rgba(20, 24, 32, 0.08); }
  18%, 40% { border-color: rgba(47, 111, 237, 0.35); }
}

.hx-site-free-scene__steps {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.hx-site-free-scene__step {
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--hx-muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 24, 32, 0.08);
  animation: hx-sf-step 8s ease infinite;
  animation-delay: calc(var(--i) * 2s);
}

@keyframes hx-sf-step {
  0%, 8%, 100% {
    opacity: 0.45;
    transform: translateX(4px);
    color: var(--hx-muted);
    border-color: rgba(20, 24, 32, 0.08);
  }
  12%, 22% {
    opacity: 1;
    transform: translateX(0);
    color: var(--hx-ink);
    border-color: rgba(255, 92, 58, 0.35);
    background: #fff;
  }
}

.hx-site-free-scene__toasts {
  position: absolute;
  left: 3%;
  bottom: 4%;
  z-index: 2;
  width: min(62%, 320px);
  min-height: 56px;
}

.hx-site-free-scene__toast {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 10px 28px rgba(20, 24, 32, 0.12);
  opacity: 0;
  transform: translateY(10px);
}

.hx-site-free-scene__toast small {
  display: block;
  font-size: 0.58rem;
  color: var(--hx-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hx-site-free-scene__toast strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.hx-site-free-scene__toast--a { animation: hx-sf-toast 9s ease infinite 0s; }
.hx-site-free-scene__toast--b { animation: hx-sf-toast 9s ease infinite 3s; }
.hx-site-free-scene__toast--c { animation: hx-sf-toast 9s ease infinite 6s; }

@keyframes hx-sf-toast {
  0%, 6%, 33%, 100% { opacity: 0; transform: translateY(12px); }
  10%, 28% { opacity: 1; transform: translateY(0); }
}

.page-site-free .hx-pricing--site-free {
  display: block;
  width: 100%;
  max-width: 440px;
  text-align: left;
  margin: 18px 0 0;
  padding: 18px 22px;
  border: 2px solid rgba(255, 92, 58, 0.22);
  box-shadow: 0 12px 36px rgba(255, 92, 58, 0.08);
}

.page-site-free .hx-pricing--site-free .hx-pricing__new {
  color: var(--hx-accent);
}

.page-site-free .hx-page-hero__lead {
  max-width: 36em;
}

.page-site-free .hx-page-hero__lead a {
  color: var(--hx-accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Partner referral program (/partneram) */
.page-partneram .hx-page-hero__lead {
  max-width: 38em;
}

.hx-partner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 20px;
  padding: 0;
  list-style: none;
}

.hx-partner-stats li {
  padding: 16px 14px;
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  border: 1px solid rgba(20, 24, 32, 0.06);
  box-shadow: 0 8px 28px rgba(20, 24, 32, 0.06);
}

.hx-partner-stats strong {
  display: block;
  font-family: var(--hx-font-numeric);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hx-partner-stats span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--hx-muted);
}

.hx-partner-audience {
  font-size: 0.9rem;
  color: var(--hx-muted);
  line-height: 1.5;
  margin: 0 0 8px;
}

.hx-partner-example {
  align-self: center;
  padding: 28px 26px;
  background: var(--hx-white);
  border-radius: calc(var(--hx-radius) + 4px);
  border: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 20px 56px rgba(20, 24, 32, 0.1);
}

.hx-partner-example__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hx-partner-example__arrow {
  font-size: 1.25rem;
  color: var(--hx-muted);
  flex-shrink: 0;
}

.hx-partner-example__label {
  display: block;
  font-size: 0.8rem;
  color: var(--hx-muted);
  margin-bottom: 4px;
}

.hx-partner-example__sum {
  display: block;
  font-family: var(--hx-font-numeric);
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hx-partner-example__sum--accent {
  color: var(--hx-accent);
}

.hx-partner-example__note {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--hx-muted);
  line-height: 1.45;
}

.hx-partner-rate {
  font-family: var(--hx-font-numeric);
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--hx-accent);
  margin-bottom: 12px;
}

.hx-partner-bonus {
  margin: 14px 0 0;
  font-family: var(--hx-font-numeric);
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--hx-ink);
}

.hx-partner-alt {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--hx-muted);
}

.hx-partner-alt a {
  color: var(--hx-accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hx-site-free-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hx-site-free-strip__item {
  padding: 24px 22px;
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  border: 1px solid rgba(20, 24, 32, 0.06);
  box-shadow: 0 8px 32px rgba(20, 24, 32, 0.06);
}

.hx-site-free-strip__item strong {
  display: block;
  font-family: var(--hx-font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--hx-accent);
}

.hx-site-free-strip__item span {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--hx-muted);
}

.hx-card--criteria {
  border-left: 4px solid var(--hx-green);
}

.hx-card--criteria-key {
  border-left-color: var(--hx-accent);
  background: linear-gradient(135deg, rgba(255, 92, 58, 0.06) 0%, #fff 55%);
}

.hx-criteria-num {
  color: var(--hx-accent);
  font-size: 1.05em;
}

.hx-site-free-note {
  margin-top: 28px;
  text-align: center;
  color: var(--hx-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hx-site-free-note a {
  color: var(--hx-accent-2);
  font-weight: 600;
}

.hx-timer {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hx-timer__box {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--hx-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-timer__num {
  font-family: var(--hx-font-numeric);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}

.hx-timer__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hx-muted);
  margin-top: 2px;
}

.hx-portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hx-portfolio__item {
  border-radius: var(--hx-radius);
  overflow: hidden;
  background: var(--hx-white);
  box-shadow: 0 8px 32px rgba(20, 24, 32, 0.08);
  transition: transform 0.4s var(--hx-ease);
  text-decoration: none;
  color: inherit;
}

.hx-portfolio__item:hover {
  transform: translateY(-6px);
}

.hx-portfolio__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--hx-ease);
}

.hx-portfolio__item:hover img {
  transform: scale(1.05);
}

.hx-portfolio__body {
  padding: 20px 22px 24px;
}

.hx-portfolio__tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hx-accent-2);
  margin-bottom: 8px;
}

.hx-portfolio__body h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hx-filters button {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(20,24,32,.12);
  background: var(--hx-white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform .3s var(--hx-ease), background .3s, color .3s, border-color .3s;
}

.hx-filters button:hover { transform: translateY(-2px); }
.hx-filters button.is-active {
  background: var(--hx-ink);
  color: #fff;
  border-color: var(--hx-ink);
  animation: hx-chip .4s var(--hx-ease);
}

@keyframes hx-chip {
  from { transform: scale(.94); }
}

.hx-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.hx-gallery__item {
  scroll-margin-top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border-radius: var(--hx-radius);
  overflow: hidden;
  background: var(--hx-white);
  box-shadow: 0 10px 36px rgba(20,24,32,.08);
  transition: transform .45s var(--hx-ease), box-shadow .45s;
}

.hx-gallery__item.is-hidden { display: none; }
.hx-gallery__item.is-pop { animation: hx-pop .55s var(--hx-ease) both; }

@keyframes hx-pop {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.hx-gallery__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(20,24,32,.14);
}

.hx-gallery__visual {
  position: relative;
  overflow: hidden;
}

.hx-gallery__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,24,32,.42), transparent 46%);
  opacity: 0;
  transition: opacity .45s var(--hx-ease);
  pointer-events: none;
}

.hx-gallery__item:hover .hx-gallery__visual::after { opacity: 1; }

.hx-gallery__visual > img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--hx-bg);
  transform: none;
  transition: none;
}

.hx-gallery__tag {
  position: absolute;
  z-index: 4;
  top: 14px; left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hx-gallery__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hx-gallery__body h3 { font-size: 1.18rem; letter-spacing: -.02em; margin-bottom: 8px; }
.hx-gallery__body p {
  color: var(--hx-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hx-gallery__body dl { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.hx-gallery__body dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hx-muted); }
.hx-gallery__body dd { margin-top: 3px; font-size: .9rem; font-weight: 650; }

.hx-story-card,
.hx-service,
.hx-card {
  animation: none;
}

.hx-collage__badge {
  animation: hx-badge 3.2s ease-in-out infinite;
}

@keyframes hx-badge {
  50% { transform: translateZ(60px) scale(1.06); }
}

.hx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.hx-info-card {
  background: var(--hx-white);
  border-radius: calc(var(--hx-radius) + 4px);
  padding: 36px;
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.08);
  border: 1px solid rgba(20, 24, 32, 0.05);
}

.hx-info-card h3 {
  font-family: var(--hx-font-display);
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.hx-info-card a {
  display: block;
  font-family: var(--hx-font-numeric);
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--hx-accent-2);
  text-decoration: none;
  margin-bottom: 8px;
}

.hx-info-card a:hover {
  color: var(--hx-accent);
}

.hx-info-card ul {
  list-style: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 24, 32, 0.08);
}

.hx-info-card li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 24, 32, 0.06);
  color: var(--hx-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.hx-info-card li strong {
  color: var(--hx-ink);
}

.hx-requisites {
  margin-top: 28px;
  background: var(--hx-white);
  border-radius: calc(var(--hx-radius) + 4px);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(20, 24, 32, 0.05);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.08);
}

.hx-requisites .hx-title { margin-bottom: 22px; }

.hx-requisites dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
}

.hx-requisites dt {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx-muted);
}

.hx-requisites dd {
  font-family: var(--hx-font-numeric);
  font-weight: 650;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.45;
}

.hx-form-card {
  scroll-margin-top: calc(var(--header-h) + 24px);
  background: var(--hx-white);
  border-radius: calc(var(--hx-radius) + 4px);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.08);
  border: 1px solid rgba(20, 24, 32, 0.05);
}

.hx-form-card .hx-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.hx-form-hint {
  color: var(--hx-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hx-field {
  margin-bottom: 20px;
}

.hx-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.hx-input,
.hx-textarea {
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(20, 24, 32, 0.1);
  background: var(--hx-bg);
  color: var(--hx-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hx-input:focus,
.hx-textarea:focus {
  outline: none;
  border-color: var(--hx-accent-2);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.hx-textarea {
  min-height: 130px;
  resize: vertical;
}

.hx-alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hx-alert--ok {
  background: rgba(26, 155, 108, 0.12);
  color: var(--hx-green);
}

.hx-alert--err {
  background: rgba(255, 92, 58, 0.12);
  color: #c0392b;
}

.hx-quote-inline {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  box-shadow: 0 8px 32px rgba(20, 24, 32, 0.06);
}

.hx-quote-inline blockquote {
  font-family: var(--hx-font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hx-quote-inline cite {
  font-style: normal;
  color: var(--hx-muted);
  font-weight: 600;
}

@media (max-width: 960px) {
  .hx-page-hero--split,
  .hx-split,
  .hx-contact-grid,
  .hx-requisites dl {
    grid-template-columns: 1fr;
  }

  .page-site-free .hx-page-hero--split .hx-offer-visual {
    order: -1;
    margin-inline: auto;
  }

  .hx-site-free-scene {
    min-height: 280px;
  }

  .hx-site-free-scene__layout {
    grid-template-columns: 1fr;
  }

  .hx-site-free-scene__aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hx-site-free-scene__metric {
    flex: 1 1 45%;
  }

  .hx-site-free-scene__steps {
    flex: 1 1 100%;
    grid-template-columns: repeat(4, 1fr);
  }

  .page-site-free .hx-pricing--site-free {
    max-width: none;
  }

  .page-partneram .hx-page-hero--split .hx-partner-example {
    max-width: none;
  }

  .hx-partner-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hx-site-free-strip {
    grid-template-columns: 1fr;
  }

  .hx-offer-visual--compact {
    margin-left: 0;
    max-width: none;
  }

  .hx-cards--3,
  .hx-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hx-portfolio { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hx-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hx-cards--2,
  .hx-cards--3,
  .hx-cards--4,
  .hx-portfolio { grid-template-columns: 1fr; }

  .hx-partner-stats {
    grid-template-columns: 1fr;
  }

  .hx-band {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════
   HOME 2026 — focused conversion layout
   ══════════════════════════════════════════════ */
.page-home {
  --hx-card-shadow: 0 16px 50px rgba(20, 24, 32, 0.08);
  --hx-card-border: 1px solid rgba(20, 24, 32, 0.07);
}

.page-home .hx-btn {
  min-width: 0;
}

.hx-btn--accent {
  background: var(--hx-accent);
  color: var(--hx-white);
  box-shadow: 0 14px 34px rgba(255, 92, 58, 0.28);
}

.hx-btn--accent:hover {
  transform: translateY(-3px);
  background: #ee4e2e;
  box-shadow: 0 20px 44px rgba(255, 92, 58, 0.35);
}

.hx-btn--accent:active {
  transform: translateY(0) scale(0.98);
}

.hx-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hx-ink);
  font-weight: 750;
  text-decoration: none;
}

.hx-text-link span {
  color: var(--hx-accent);
  transition: transform 0.3s var(--hx-ease);
}

.hx-text-link:hover span {
  transform: translateX(4px);
}

/* Hero */
.page-home .hx-hero {
  padding: calc(var(--header-h) + 52px) 0 84px;
  min-height: min(860px, 100svh);
  display: flex;
  align-items: center;
}

.page-home .hx-hero__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: clamp(36px, 5vw, 72px);
}

.page-home .hx-display {
  font-family: var(--hx-font-numeric);
  font-size: clamp(3.1rem, 5.4vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-home .hx-hero__lead {
  max-width: 520px;
  font-size: 1.12rem;
  margin: 24px 0 30px;
}

.page-home .hx-partner {
  margin: 0 0 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(20, 24, 32, 0.05);
}

.page-home .hx-hero__cta {
  margin-bottom: 30px;
}

.page-home .hx-metrics {
  max-width: 540px;
  gap: clamp(22px, 3vw, 42px);
  padding-top: 24px;
}

.page-home .hx-metrics li {
  min-width: 0;
}

.page-home .hx-metrics span {
  display: block;
  margin-top: 7px;
  line-height: 1.3;
}

.page-home .hx-scene {
  height: 590px;
}

.page-home .hx-scene__win {
  top: 24px;
  bottom: 24px;
  right: 34px;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(20, 24, 32, 0.15);
}

.page-home .hx-scene__body {
  padding: 18px 18px 20px;
}

.page-home .hx-scene__grid {
  gap: 10px;
}

.page-home .hx-scene__grid div {
  padding: 9px 8px;
}

.page-home .hx-scene__grid img {
  height: 132px;
}

.page-home .hx-scene__toasts {
  top: 44px;
  width: min(230px, 54%);
}

.page-home .hx-scene__card--1 { animation: hx-home-toast-1 14s ease infinite; }
.page-home .hx-scene__card--2 { animation: hx-home-toast-2 14s ease infinite; }
.page-home .hx-scene__card--3 { animation: hx-home-toast-3 14s ease infinite; }
.page-home .hx-scene__card--4 { animation: hx-home-toast-4 14s ease infinite; }

@keyframes hx-home-toast-1 {
  0%, 1% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  4%, 15% { max-height: 110px; padding-top: 13px; padding-bottom: 13px; margin-bottom: 9px; opacity: 1; transform: none; }
  19%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-home-toast-2 {
  0%, 20% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  23%, 34% { max-height: 110px; padding-top: 13px; padding-bottom: 13px; margin-bottom: 9px; opacity: 1; transform: none; }
  38%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-home-toast-3 {
  0%, 39% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  42%, 53% { max-height: 110px; padding-top: 13px; padding-bottom: 13px; margin-bottom: 9px; opacity: 1; transform: none; }
  57%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-home-toast-4 {
  0%, 58% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateX(36px); }
  61%, 72% { max-height: 110px; padding-top: 13px; padding-bottom: 13px; margin-bottom: 9px; opacity: 1; transform: none; }
  76%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transform: translateY(-8px); }
}

/* Client line */
.hx-clientbar {
  position: relative;
  z-index: 2;
  padding: 26px 0 34px;
  background: var(--hx-ink);
  color: var(--hx-white);
}

.hx-clientbar .hx-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 42px;
}

.hx-clientbar__label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.hx-clientbar__logos {
  display: grid;
  grid-template-columns: repeat(6, auto);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hx-clientbar__logos span {
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--hx-font-display);
  font-size: clamp(0.7rem, 1.2vw, 0.94rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Services */
.page-home .hx-services {
  padding: clamp(76px, 9vw, 112px) 0;
  margin-top: 0;
  border-radius: 0;
  background: var(--hx-white);
}

.page-home .hx-services__head {
  max-width: 700px;
}

.page-home .hx-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  border: var(--hx-card-border);
  box-shadow: none;
  overflow: hidden;
}

.page-home .hx-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 111, 237, 0.2);
  box-shadow: var(--hx-card-shadow);
}

.page-home .hx-card__num {
  margin-bottom: 54px;
  color: rgba(20, 24, 32, 0.13);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.hx-card__icon {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--hx-ink);
  background: var(--hx-bg);
  font-size: 1.1rem;
  transition: transform 0.35s var(--hx-ease), background 0.35s, color 0.35s;
}

.page-home .hx-card:hover .hx-card__icon {
  transform: rotate(45deg);
  background: var(--hx-accent-2);
  color: var(--hx-white);
}

.page-home .hx-card h3 {
  font-family: var(--hx-font-display);
  font-size: 1.45rem;
}

/* Featured cases */
.hx-cases-v2 {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 126px) 0;
  background: var(--hx-bg);
}

.hx-featured-cases {
  display: grid;
  gap: clamp(64px, 9vw, 112px);
}

.hx-featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
}

.hx-featured-case--reverse .hx-featured-case__visual {
  order: 2;
}

.hx-featured-case--reverse {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.hx-featured-case__visual {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border-radius: calc(var(--hx-radius) + 12px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.75), transparent 28%),
    linear-gradient(135deg, rgba(47, 111, 237, 0.15), rgba(255, 92, 58, 0.15));
}

.hx-featured-case:nth-child(2) .hx-featured-case__visual {
  background:
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.8), transparent 26%),
    linear-gradient(135deg, rgba(255, 92, 58, 0.16), rgba(240, 180, 41, 0.18));
}

.hx-browser {
  overflow: hidden;
  border: 1px solid rgba(20, 24, 32, 0.1);
  border-radius: 15px;
  background: var(--hx-white);
  box-shadow: 0 24px 55px rgba(20, 24, 32, 0.16);
  transform: perspective(1200px) rotateY(1.5deg) rotateX(0.5deg);
  transition: transform 0.55s var(--hx-ease);
}

.hx-featured-case:hover .hx-browser {
  transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px);
}

.hx-browser__bar {
  height: 33px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f2f0eb;
  border-bottom: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-browser__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbc7be;
}

.hx-browser__bar i:first-child { background: var(--hx-accent); }
.hx-browser__bar i:nth-child(2) { background: #f0b429; }
.hx-browser__bar i:nth-child(3) { background: var(--hx-green); }

.hx-browser__bar span {
  margin-left: 5px;
  color: var(--hx-muted);
  font-size: 0.65rem;
}

.hx-browser .hx-case-gallery__frame img,
.hx-browser > img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center top;
  background: #f4f2ee;
}

.hx-case-gallery__frame {
  position: relative;
  background: #f4f2ee;
}

.hx-case-gallery__track {
  position: relative;
}

.hx-case-gallery--browser .hx-case-gallery__track {
  position: relative;
  aspect-ratio: 16 / 10;
}

.hx-case-gallery__slide {
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s var(--hx-ease);
  pointer-events: none;
}

.hx-case-gallery--browser .hx-case-gallery__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hx-case-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hx-case-gallery--browser .hx-case-gallery__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center top;
  background: #f4f2ee;
}

.hx-case-gallery__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(20, 24, 32, 0.55), transparent);
}

.hx-case-gallery__arrow {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--hx-ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--hx-ease), background 0.25s;
}

.hx-case-gallery__arrow:hover {
  transform: scale(1.06);
  background: #fff;
}

.hx-case-gallery__dots {
  display: flex;
  gap: 6px;
}

.hx-case-gallery__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.hx-case-gallery__dot.is-active {
  transform: scale(1.25);
  background: #fff;
}

.hx-case-gallery--card .hx-case-gallery__frame--card {
  min-height: clamp(200px, 28vw, 280px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--hx-bg);
}

.hx-case-gallery--card .hx-case-gallery__track {
  position: relative;
  flex: 1;
  min-height: clamp(200px, 28vw, 280px);
}

.hx-case-gallery--card .hx-case-gallery__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hx-case-gallery--card .hx-case-gallery__slide img {
  width: 100%;
  max-height: clamp(200px, 28vw, 280px);
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: opacity 0.45s var(--hx-ease);
}

.hx-gallery__visual .hx-case-gallery {
  width: 100%;
}

.hx-gallery__item:hover .hx-case-gallery--card .hx-case-gallery__slide img {
  transform: none;
}

.hx-case-gallery[data-case-fullscreen] .hx-case-gallery__slide.is-active img {
  cursor: zoom-in;
}

.hx-case-gallery__expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: var(--hx-ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 24, 32, 0.12);
  transition: transform 0.25s var(--hx-ease), background 0.25s;
}

.hx-case-gallery__expand:hover {
  transform: scale(1.05);
  background: #fff;
}

.hx-case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  flex-direction: column;
  padding: 16px;
  background: rgba(8, 10, 16, 0.94);
  backdrop-filter: blur(8px);
}

.hx-case-lightbox.is-open {
  display: flex;
}

body.case-lightbox-open {
  overflow: hidden;
}

.hx-case-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.hx-case-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hx-case-lightbox__toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 52px 12px 8px;
  color: rgba(255, 255, 255, 0.88);
}

.hx-case-lightbox__caption {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hx-case-lightbox__counter {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.hx-case-lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
}

.hx-case-lightbox__img {
  max-width: min(100%, 1280px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.hx-case-lightbox__nav {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.2rem;
  cursor: pointer;
}

.hx-case-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hx-case-lightbox__nav[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .hx-case-lightbox {
    padding: 12px;
  }

  .hx-case-lightbox__nav {
    position: absolute;
    bottom: 20px;
    z-index: 2;
  }

  .hx-case-lightbox__nav--prev {
    left: 12px;
  }

  .hx-case-lightbox__nav--next {
    right: 12px;
  }

  .hx-case-lightbox__stage {
    padding-bottom: 56px;
  }

  .hx-case-lightbox__img {
    max-height: calc(100vh - 140px);
  }
}

.hx-featured-case__index {
  display: block;
  margin-bottom: 14px;
  color: var(--hx-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hx-featured-case__body h3 {
  margin-bottom: 18px;
  font-family: var(--hx-font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hx-featured-case__lead {
  color: var(--hx-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hx-featured-case__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 24, 32, 0.1);
}

.hx-featured-case__facts dt {
  margin-bottom: 5px;
  color: var(--hx-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hx-featured-case__facts dd {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.hx-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.hx-chipset span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--hx-bg-2);
  color: var(--hx-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.hx-cases-v2__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(56px, 8vw, 88px);
}

/* Start cards */
.hx-start {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--hx-white);
}

.hx-start__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.hx-start-card {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: calc(var(--hx-radius) + 8px);
  border: var(--hx-card-border);
  background: var(--hx-bg);
  color: var(--hx-ink);
}

.hx-start-card--dark {
  background: var(--hx-ink);
  color: var(--hx-white);
}

.hx-start-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
}

.hx-start-card__eyebrow {
  margin-bottom: 16px;
  color: var(--hx-accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hx-start-card h3 {
  margin-bottom: 16px;
  font-family: var(--hx-font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hx-start-card p {
  margin-bottom: 28px;
  color: var(--hx-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.hx-start-card--dark p {
  color: rgba(255, 255, 255, 0.68);
}

.hx-start-card__preview {
  align-self: stretch;
  min-width: 0;
  margin: 24px 24px 24px 0;
  padding: 26px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hx-start-card__preview span,
.hx-start-card__preview small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  line-height: 1.4;
}

.hx-start-card__preview strong {
  display: block;
  margin: 10px 0 20px;
  font-family: var(--hx-font-numeric);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.hx-start-card__preview i {
  display: block;
  width: 100%;
  height: 7px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.hx-start-card__preview b {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hx-accent), #ffad76);
}

.hx-start-card__visual {
  min-width: 0;
  overflow: hidden;
}

.hx-start-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* Process */
.page-home .hx-process {
  margin-top: 0;
  border-radius: 0;
  padding: clamp(80px, 10vw, 120px) 0;
}

.hx-process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-process__grid::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(20, 24, 32, 0.12);
}

.hx-process__grid li {
  position: relative;
  padding: 0 22px;
  text-align: center;
}

.hx-process__grid span {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--hx-white);
  border: 1px solid rgba(20, 24, 32, 0.12);
  color: var(--hx-accent);
  font-family: var(--hx-font-numeric);
  font-size: 0.75rem;
  font-weight: 800;
}

.hx-process__grid h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.hx-process__grid p {
  color: var(--hx-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Team and reviews */
.hx-proof {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--hx-bg-2);
}

.hx-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(44px, 7vw, 88px);
  align-items: center;
}

.hx-team .hx-text {
  margin-bottom: 28px;
}

.hx-team__people {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.hx-team__people article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-team__avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hx-ink);
  color: var(--hx-white);
  font-size: 0.7rem;
  font-weight: 800;
}

.hx-team__avatar--blue {
  background: var(--hx-accent-2);
}

.hx-team__people h3 {
  margin-bottom: 3px;
  font-size: 0.94rem;
}

.hx-team__people p {
  color: var(--hx-muted);
  font-size: 0.78rem;
}

.hx-review-stack {
  min-width: 0;
}

.hx-review-featured {
  position: relative;
  margin: 0;
  padding: clamp(32px, 5vw, 52px);
  overflow: hidden;
  border-radius: calc(var(--hx-radius) + 10px);
  background: var(--hx-ink);
  color: var(--hx-white);
  box-shadow: 0 28px 70px rgba(20, 24, 32, 0.18);
}

.hx-review-featured::after {
  content: "“";
  position: absolute;
  top: -34px;
  right: 24px;
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  font-size: 13rem;
  line-height: 1;
}

.hx-review-featured__company {
  margin-bottom: 28px;
  color: var(--hx-accent);
  font-family: var(--hx-font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hx-review-featured > p {
  position: relative;
  z-index: 1;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.hx-review-featured footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
}

.hx-review-featured footer strong {
  font-size: 0.9rem;
}

.hx-review-featured footer span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.hx-review-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.hx-review-mini blockquote {
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 24, 32, 0.06);
}

.hx-review-mini p {
  margin-bottom: 13px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hx-review-mini cite {
  color: var(--hx-muted);
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.4;
}

/* Calculator CTA */
.hx-calc-cta {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 9vw, 110px) 0;
  background: var(--hx-white);
}

.hx-calc-cta__box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding: clamp(40px, 6vw, 70px);
  overflow: hidden;
  border-radius: calc(var(--hx-radius) + 12px);
  background:
    radial-gradient(circle at 88% 20%, rgba(47,111,237,.22), transparent 30%),
    radial-gradient(circle at 70% 100%, rgba(255,92,58,.2), transparent 35%),
    var(--hx-ink);
  color: var(--hx-white);
}

.hx-calc-cta__box .hx-tag {
  color: rgba(255, 255, 255, 0.55);
}

.hx-calc-cta__box > div > p:last-child {
  max-width: 580px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.hx-calc-cta__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
}

.hx-calc-cta__action span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

/* FAQ and final CTA */
.page-home .hx-faq-section {
  margin-top: 0;
  border-radius: 0;
  padding: clamp(80px, 10vw, 120px) 0;
}

.hx-faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: start;
}

.hx-faq-layout .hx-section__head {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  margin: 0;
}

.hx-faq-layout .hx-faq {
  max-width: none;
}

.page-home .hx-faq details {
  padding: 25px 0;
}

.page-home .hx-cta {
  margin-top: 0;
  border-radius: 0;
  padding-top: 0;
  background: var(--hx-white);
}

.page-home .hx-cta__box > .hx-tag {
  position: relative;
  z-index: 1;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
}

.page-home .site-footer {
  margin-top: -40px;
}

/* Focus treatment for the new interactive elements */
.hx-card--link:focus-visible,
.hx-text-link:focus-visible,
.hx-featured-case a:focus-visible,
.hx-start-card a:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.35);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .page-home .hx-hero {
    min-height: auto;
  }

  .page-home .hx-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-home .hx-hero__copy {
    max-width: 760px;
  }

  .page-home .hx-scene {
    width: min(700px, 100%);
    height: 590px;
    margin: 0 auto;
  }

  .hx-clientbar__logos {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }

  .hx-start-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hx-start-card__preview {
    width: auto;
    margin: 0 24px 24px;
    border-radius: 22px;
  }

  .hx-start-card__visual {
    min-height: 170px;
  }
}

@media (max-width: 900px) {
  .hx-featured-case,
  .hx-proof__grid,
  .hx-calc-cta__box,
  .hx-faq-layout {
    grid-template-columns: 1fr;
  }

  .hx-featured-case--reverse .hx-featured-case__visual {
    order: 0;
  }

  .hx-featured-case--reverse {
    grid-template-columns: 1fr;
  }

  .hx-featured-case__body {
    max-width: 680px;
  }

  .hx-start__grid {
    grid-template-columns: 1fr;
  }

  .hx-start-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hx-process__grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 0;
  }

  .hx-process__grid::before {
    display: none;
  }

  .hx-faq-layout .hx-section__head {
    position: static;
  }

  .hx-calc-cta__action {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page-home .hx-services .hx-cards--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-home .hx-hero {
    padding-top: calc(var(--header-h) + 34px);
    padding-bottom: 60px;
  }

  .page-home .hx-display {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .page-home .hx-hero__lead {
    font-size: 1rem;
  }

  .page-home .hx-hero__cta .hx-btn {
    width: 100%;
  }

  .page-home .hx-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .page-home .hx-metrics strong {
    font-size: 1.6rem;
  }

  .page-home .hx-metrics span {
    font-size: 0.68rem;
  }

  .page-home .hx-scene {
    height: 470px;
  }

  .page-home .hx-scene__win {
    inset: 18px 14px 14px 0;
  }

  .page-home .hx-scene__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .page-home .hx-scene__grid div {
    padding: 6px 4px;
  }

  .page-home .hx-scene__grid img {
    height: 85px;
  }

  .page-home .hx-scene__grid b,
  .page-home .hx-scene__grid em {
    font-size: 0.58rem;
  }

  .page-home .hx-scene__toasts {
    top: 32px;
    width: 58%;
  }

  .page-home .hx-scene__card,
  .page-home .hx-scene__card--1,
  .page-home .hx-scene__card--2,
  .page-home .hx-scene__card--3,
  .page-home .hx-scene__card--4 {
    padding: 10px 12px;
    margin-bottom: 6px;
  }

  .page-home .hx-scene__card strong { font-size: 0.76rem; }
  .page-home .hx-scene__card small,
  .page-home .hx-scene__card em { font-size: 0.58rem; }

  .hx-clientbar .hx-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hx-clientbar__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-home .hx-card {
    min-height: 240px;
  }

  .hx-featured-case__visual {
    padding: 14px;
  }

  .hx-featured-case__facts {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hx-start-card {
    min-height: 0;
  }

  .hx-start-card__preview {
    width: auto;
    margin: 0 20px 20px;
  }

  .hx-start-card__visual {
    min-height: 210px;
  }

  .hx-process__grid {
    grid-template-columns: 1fr;
  }

  .hx-process__grid li {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    padding: 0;
    text-align: left;
  }

  .hx-process__grid span {
    grid-row: span 2;
    margin: 0;
  }

  .hx-review-mini {
    grid-template-columns: 1fr;
  }

  .hx-calc-cta__box {
    gap: 32px;
    padding: 34px 24px;
  }

  .hx-calc-cta__action .hx-btn {
    width: 100%;
  }

  .page-home .hx-faq summary {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-browser,
  .hx-card__icon,
  .hx-text-link span {
    transition: none;
    transform: none;
  }
}
