/* =====================================================================
   کافی‌نت یاس — Style System
   Theme: Black · Lilac Purple · Glassmorphism · Subtle Neon Glow
   ===================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Variable.woff2') format('woff2-variations'),
       url('assets/fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Fallback با متریک‌های نزدیک به وزیرمتن برای کاهش جابه‌جایی هنگام بارگذاری فونت */
@font-face {
  font-family: 'Vazirmatn Fallback';
  src: local('Tahoma'), local('Segoe UI'), local('Arial');
  ascent-override: 102.5%;
  descent-override: 53.7%;
  line-gap-override: 0%;
  size-adjust: 104%;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #08080D;
  --bg-2: #0C0C14;
  --bg-3: #11111B;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --lilac-100: #EFE6FF;
  --lilac-200: #D6BDFF;
  --lilac-300: #C4A1FF;
  --lilac-400: #B48CFF;
  --lilac-500: #9D6BFF;
  --lilac-600: #8B5CF6;
  --lilac-700: #6D3BE0;
  --lilac-900: #2A1A57;

  --brand: var(--lilac-400);
  --brand-rgb: 180, 140, 255;
  --brand-line: rgba(var(--brand-rgb), 0.28);
  --brand-glow: rgba(var(--brand-rgb), 0.35);

  --text: #F4F2FA;
  --text-2: #B9B6C9;
  --text-3: #7E7B90;
  --on-brand: #120A22;

  --gradient-brand: linear-gradient(135deg, #D6BDFF 0%, #A874FF 45%, #7C4DFF 100%);
  --gradient-text: linear-gradient(120deg, #F0E7FF 0%, #C4A1FF 45%, #9D6BFF 100%);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-soft: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 24px 64px -24px rgba(var(--brand-rgb), 0.45);

  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur: 0.45s;

  --font: 'Vazirmatn', 'Vazirmatn Fallback', 'Vazir', 'IRANSans', Tahoma, system-ui, sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  font-feature-settings: 'ss01' 1; /* ارقام فارسی برای متن‌های فارسی */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  direction: rtl;
}

body.is-locked { overflow: hidden; }

.num, [dir="ltr"], input, textarea, code, kbd {
  font-feature-settings: 'ss01' 0, 'tnum' 1;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }
small { font-size: 0.8125em; }

::selection { background: rgba(var(--brand-rgb), 0.35); color: #fff; }

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

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232331; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3A3050; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

.icon {
  width: 1.25em; height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.skip-link {
  position: fixed; top: -100px; inset-inline-start: 16px;
  z-index: 1000;
  background: var(--lilac-400); color: var(--on-brand);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Glass & cards */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.glass-panel {
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(var(--brand-rgb), 0.07), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.05);
}

.glow-card {
  position: relative;
  --mx: 50%; --my: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur), background var(--dur);
  isolation: isolate;
}
.glow-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--brand-rgb), 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.glow-card::after {
  content: "";
  position: absolute; inset: -1px; z-index: -2;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(var(--brand-rgb), 0.45), transparent 40%, transparent 60%, rgba(var(--brand-rgb), 0.25));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .glow-card:hover { transform: translateY(-5px); border-color: var(--brand-line); box-shadow: var(--shadow-glow); }
  .glow-card:hover::before, .glow-card:hover::after { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
  overflow: hidden;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease-out); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { --btn-h: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn--lg { --btn-h: 56px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--gradient-brand);
  color: var(--on-brand);
  box-shadow: 0 10px 28px -10px rgba(var(--brand-rgb), 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.7s var(--ease-out);
}
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(var(--brand-rgb), 0.75), inset 0 1px 0 rgba(255,255,255,0.45); }
  .btn--primary:hover::after { transform: translateX(-120%); }
  .btn--primary:hover .icon { transform: translateX(-4px); }
}

.btn--ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (hover: hover) {
  .btn--ghost:hover { border-color: var(--brand-line); background: rgba(var(--brand-rgb), 0.08); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08); transform: translateY(-2px); }
}

.btn--social {
  --btn-h: 46px;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
@media (hover: hover) {
  .btn--social:hover { background: var(--social); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--social); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, height 0.4s, transform 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 8, 13, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  transition: opacity 0.4s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8); }
.site-header.is-scrolled::before, .site-header:has(.nav-toggle[aria-expanded="true"])::before { opacity: 1; }

.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { flex-shrink: 0; filter: drop-shadow(0 6px 16px rgba(var(--brand-rgb), 0.35)); transition: transform 0.4s var(--ease-spring); }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); } }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.brand__text small { font-size: 0.72rem; color: var(--text-3); font-weight: 500; margin-top: 3px; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600; font-size: 0.95rem;
  transition: color 0.3s, background 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute; inset-inline: 16px; bottom: 6px;
  height: 2px; border-radius: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(8, 8, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  animation: fadeIn 0.3s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font-size: 1.25rem; font-weight: 700;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px);
  animation: slideUp 0.5s var(--ease-out) forwards;
}
.mobile-menu__list li:nth-child(1) a { animation-delay: 0.05s; }
.mobile-menu__list li:nth-child(2) a { animation-delay: 0.1s; }
.mobile-menu__list li:nth-child(3) a { animation-delay: 0.15s; }
.mobile-menu__list li:nth-child(4) a { animation-delay: 0.2s; }
.mobile-menu__footer { display: grid; gap: 12px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(40px, 8vh, 80px)) 0 clamp(64px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero__orb--1 {
  width: 640px; height: 640px;
  inset-inline-end: -180px; top: -160px;
  background: radial-gradient(circle, rgba(140, 92, 255, 0.35), rgba(140, 92, 255, 0) 70%);
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.hero__orb--2 {
  width: 520px; height: 520px;
  inset-inline-start: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(196, 161, 255, 0.22), rgba(196, 161, 255, 0) 70%);
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero__lines {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 38%, rgba(var(--brand-rgb), 0.18) 50%, transparent 62%) 0 0 / 100% 1px no-repeat,
    linear-gradient(115deg, transparent 20%, rgba(var(--brand-rgb), 0.12) 50%, transparent 80%) 0 0 / 100% 1px no-repeat;
  background-position: 0 32%, 0 68%;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--lilac-200);
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .icon { width: 1em; height: 1em; }

.hero__title { display: flex; flex-direction: column; gap: 6px; line-height: 1.15; }
.hero__brand {
  font-size: clamp(2.7rem, 6.2vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 8px 30px rgba(var(--brand-rgb), 0.25));
}
.hero__tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.hero__lead {
  max-width: 56ch;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__phone {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 30px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.hero__phone-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--lilac-300);
  position: relative;
}
.hero__phone-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(var(--brand-rgb), 0.5);
  animation: ping 2.4s var(--ease-out) infinite;
}
.hero__phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero__phone-text small { color: var(--text-3); font-size: 0.75rem; }
.hero__phone-text strong { font-size: 1.25rem; letter-spacing: 0.06em; font-weight: 800; }
@media (hover: hover) { .hero__phone:hover { border-color: var(--brand-line); background: rgba(var(--brand-rgb), 0.06); transform: translateY(-2px); } }

.hero__visual { position: relative; perspective: 1200px; }
.hero__visual-glow {
  position: absolute; inset: 10% 8%;
  background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), 0.35), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}
.hero__figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0B0A12;
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,0.9),
    0 30px 80px -30px rgba(var(--brand-rgb), 0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}
.hero__figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 30%, transparent 80%, rgba(8,8,13,0.35));
  pointer-events: none;
}
.hero__figure img { width: 100%; aspect-ratio: 1280 / 890; object-fit: cover; }

.hero__chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 16px;
  background: rgba(14, 14, 22, 0.75);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
  font-size: 0.85rem; line-height: 1.25;
  animation: chipFloat 6s ease-in-out infinite;
  z-index: 2;
}
.hero__chip span:last-child { display: flex; flex-direction: column; }
.hero__chip small { color: var(--text-3); font-size: 0.72rem; }
.hero__chip-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(46, 204, 138, 0.15); color: #5EE3A6;
}
.hero__chip-icon--alt { background: rgba(var(--brand-rgb), 0.15); color: var(--lilac-300); }
.hero__chip .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.hero__chip--1 { inset-inline-start: -14px; top: 14%; }
.hero__chip--2 { inset-inline-end: -10px; bottom: 12%; animation-delay: -3s; }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  display: flex; justify-content: center;
  padding-top: 7px;
  opacity: 0.8;
  transition: opacity 0.3s, border-color 0.3s;
}
.hero__scroll:hover { opacity: 1; border-color: var(--brand-line); }
.hero__scroll-dot { width: 4px; height: 8px; border-radius: 4px; background: var(--lilac-300); animation: scrollDot 1.8s var(--ease-out) infinite; }

/* Hero entrance animations */
.reveal-hero {
  opacity: 0;
  translate: 0 22px;
  animation: heroIn 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(8px);
  animation: wordIn 0.9s var(--ease-out) forwards;
  animation-delay: var(--wd, 0s);
  will-change: transform, opacity, filter;
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 8.5vw, 108px); }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lilac-300);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.section__kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lilac-300);
  box-shadow: 0 0 12px 2px rgba(var(--brand-rgb), 0.6);
}
.section__title {
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.section__desc { margin-top: 14px; color: var(--text-2); font-size: clamp(0.95rem, 1.2vw, 1.05rem); }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, translate;
}
[data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, transparent, rgba(var(--brand-rgb), 0.025) 40%, transparent); }
.services::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), 0.35), transparent);
}

.carousel { position: relative; margin-bottom: 26px; }
.carousel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s, opacity 0.3s;
}
.carousel__btn .icon { width: 20px; height: 20px; }
.carousel__btn:hover { background: rgba(var(--brand-rgb), 0.1); border-color: var(--brand-line); color: var(--text); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }

.search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-3);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.search:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); background: rgba(var(--brand-rgb), 0.04); color: var(--lilac-300); }
.search .icon { width: 20px; height: 20px; }
.search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: none;
  color: var(--text); font-size: 0.95rem;
  font-feature-settings: 'ss01' 1;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.carousel__track {
  display: flex; gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  margin-inline: -4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }

.cat-card {
  --hue: 265;
  flex: 0 0 clamp(210px, 22vw, 250px);
  scroll-snap-align: start;
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  text-align: start;
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s, background 0.4s;
  isolation: isolate;
  min-height: 176px;
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 90% at 100% 0%, hsla(var(--hue), 90%, 72%, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.cat-card::after {
  content: "";
  position: absolute; inset-inline: 22px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, hsl(var(--hue), 90%, 74%), transparent);
  opacity: 0; transform: scaleX(0.4);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
@media (hover: hover) {
  .cat-card:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb), 0.28); }
  .cat-card:hover::before { opacity: 0.7; }
}
.cat-card.is-active {
  border-color: rgba(var(--brand-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.25), 0 24px 50px -24px rgba(var(--brand-rgb), 0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.1), rgba(var(--brand-rgb), 0.03));
}
.cat-card.is-active::before { opacity: 1; }
.cat-card.is-active::after { opacity: 1; transform: none; }

.cat-card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: hsla(var(--hue), 80%, 70%, 0.12);
  border: 1px solid hsla(var(--hue), 80%, 75%, 0.22);
  color: hsl(var(--hue), 90%, 80%);
  transition: transform 0.4s var(--ease-spring), background 0.4s, box-shadow 0.4s;
}
.cat-card__icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.cat-card.is-active .cat-card__icon, .cat-card:hover .cat-card__icon { transform: scale(1.06) rotate(-4deg); box-shadow: 0 0 24px -4px hsla(var(--hue), 90%, 70%, 0.45); }
.cat-card__title { font-weight: 800; font-size: 1.02rem; line-height: 1.35; margin-top: 2px; }
.cat-card__short { color: var(--text-3); font-size: 0.8rem; line-height: 1.6; }
.cat-card__count {
  margin-top: auto;
  font-size: 0.75rem; color: var(--lilac-200);
  padding: 3px 10px; border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.1);
}

.carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.carousel__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.15);
  transition: width 0.35s var(--ease-out), background 0.35s;
}
.carousel__dot.is-active { width: 22px; background: var(--lilac-300); box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.6); }

/* Services panel */
.services-panel { padding: clamp(20px, 3vw, 32px); overflow: hidden; }
.services-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.services-panel__title-wrap { display: flex; align-items: center; gap: 14px; }
.services-panel__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid var(--brand-line);
  color: var(--lilac-200);
  box-shadow: 0 0 28px -6px rgba(var(--brand-rgb), 0.5);
  flex-shrink: 0;
}
.services-panel__icon .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.services-panel__title { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; line-height: 1.3; }
.services-panel__sub { color: var(--text-3); font-size: 0.85rem; margin-top: 2px; }
.services-panel__count {
  flex-shrink: 0;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2); font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 12px;
}
.service-item { opacity: 0; transform: translateY(14px); animation: itemIn 0.55s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
.service-item__btn {
  width: 100%; height: 100%;
  display: flex; align-items: center; gap: 14px;
  text-align: start;
  padding: 14px 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.service-item__num {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--lilac-300);
  font-size: 0.85rem; font-weight: 800;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease-spring);
}
.service-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.45; }
.service-item__body strong { font-size: 0.95rem; font-weight: 700; }
.service-item__body small { color: var(--text-3); font-size: 0.78rem; line-height: 1.5; }
.service-item__body .service-item__cat { color: var(--lilac-300); font-size: 0.72rem; font-weight: 600; }
.service-item__cta {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--text-3);
  border: 1px solid transparent;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease-out), border-color 0.35s;
}
.service-item__cta .icon { width: 16px; height: 16px; stroke-width: 2.2; }
@media (hover: hover) {
  .service-item__btn:hover { transform: translateY(-3px); border-color: var(--brand-line); background: rgba(var(--brand-rgb), 0.06); box-shadow: 0 18px 40px -20px rgba(var(--brand-rgb), 0.5); }
  .service-item__btn:hover .service-item__num { background: var(--gradient-brand); color: var(--on-brand); transform: scale(1.05); }
  .service-item__btn:hover .service-item__cta { background: rgba(var(--brand-rgb), 0.15); color: var(--lilac-200); transform: translateX(-3px); border-color: var(--brand-line); }
}
.services-panel__empty { text-align: center; color: var(--text-2); padding: 28px 12px; }
.services-panel__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
  color: var(--text-2); font-size: 0.92rem;
}

/* ---------- Stats ---------- */
.stats { position: relative; padding-block: clamp(28px, 4vw, 44px); }
.stats::before, .stats::after {
  content: "";
  position: absolute; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  position: relative;
  text-align: center;
  padding: 22px 12px;
  border-radius: var(--radius);
  transition: background 0.4s;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute; inset-inline-end: 0; top: 25%;
  width: 1px; height: 50%;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.stat__value {
  display: block;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(var(--brand-rgb), 0.25));
  letter-spacing: -0.01em;
}
.stat__value--word { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
.stat__label { display: block; margin-top: 6px; color: var(--text-2); font-weight: 600; font-size: 0.95rem; }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 28px 24px 26px; overflow: hidden; }
.feature__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(145deg, rgba(var(--brand-rgb), 0.2), rgba(var(--brand-rgb), 0.05));
  border: 1px solid var(--brand-line);
  color: var(--lilac-200);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 30px -14px rgba(var(--brand-rgb), 0.6);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s;
}
.feature__icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.glow-card:hover .feature__icon { transform: translateY(-3px) rotate(-6deg); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 14px 34px -12px rgba(var(--brand-rgb), 0.8); }
.feature__title { margin-top: 20px; font-size: 1.2rem; font-weight: 800; }
.feature__desc { margin-top: 8px; color: var(--text-2); font-size: 0.95rem; }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about::before {
  content: "";
  position: absolute; inset-inline-start: -200px; top: 20%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.16), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__content .section__title { margin-bottom: 20px; }
.about__lead { font-size: 1.08rem; color: var(--text); line-height: 1.9; }
.about__text { margin-top: 14px; color: var(--text-2); }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 26px; }
.about__points li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text-2); font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.about__points li:hover { border-color: var(--brand-line); background: rgba(var(--brand-rgb), 0.05); transform: translateX(-3px); }
.about__points .icon { color: var(--lilac-300); width: 22px; height: 22px; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.about__visual { position: relative; perspective: 1200px; }
.about__figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9), 0 30px 80px -30px rgba(var(--brand-rgb), 0.3);
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}
.about__figure::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 30%, transparent 70%, rgba(8,8,13,0.45));
  pointer-events: none;
}
.about__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__badge {
  position: absolute; inset-inline-end: -14px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9);
  animation: chipFloat 7s ease-in-out infinite;
  z-index: 2;
}
.about__badge .icon { width: 26px; height: 26px; color: var(--lilac-300); }
.about__badge span { display: flex; flex-direction: column; line-height: 1.25; }
.about__badge strong { font-size: 1.05rem; }
.about__badge small { color: var(--text-3); font-size: 0.75rem; }

/* ---------- Social ---------- */
.social { background: linear-gradient(180deg, transparent, rgba(var(--brand-rgb), 0.03), transparent); }
.social__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin-inline: auto; }
.social-card {
  --social: var(--lilac-500);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 26px 26px;
  overflow: hidden;
}
.social-card::before { background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--social) 22%, transparent), transparent 62%); }
.social-card::after { background: linear-gradient(140deg, color-mix(in srgb, var(--social) 55%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--social) 30%, transparent)); }
.social-card--telegram { --social: #2AABEE; }
.social-card--bale { --social: #0AC898; }
.social-card--eitaa { --social: #EF7F1A; }
@media (hover: hover) { .social-card:hover { border-color: color-mix(in srgb, var(--social) 45%, transparent); box-shadow: 0 24px 64px -24px color-mix(in srgb, var(--social) 55%, transparent); } }
.social-card__logo {
  filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--social) 45%, transparent));
  transition: transform 0.5s var(--ease-spring);
}
.glow-card:hover .social-card__logo { transform: translateY(-4px) scale(1.06); }
.social-card__title { margin-top: 18px; font-size: 1.25rem; font-weight: 800; }
.social-card__handle { color: var(--text-3); font-size: 0.85rem; margin: 4px 0 20px; }

.social-mini {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.social-mini:hover { transform: translateY(-3px) scale(1.04); border-color: var(--line-strong); background: rgba(255,255,255,0.07); box-shadow: 0 12px 24px -12px rgba(0,0,0,0.8); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::after {
  content: "";
  position: absolute; inset-inline-end: -160px; bottom: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.15), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__info .section__desc { margin-bottom: 28px; }

.contact__phone {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  overflow: hidden;
}
.contact__phone-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--gradient-brand); color: var(--on-brand);
  box-shadow: 0 12px 30px -10px rgba(var(--brand-rgb), 0.7);
  flex-shrink: 0;
}
.contact__phone-icon .icon { width: 24px; height: 24px; stroke-width: 2.1; }
.contact__phone-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.contact__phone-text small { color: var(--text-3); font-size: 0.78rem; }
.contact__phone-text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.06em; }
.contact__phone-cta {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--brand-line);
  color: var(--lilac-200); font-size: 0.82rem; font-weight: 700;
  background: rgba(var(--brand-rgb), 0.08);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.contact__phone:hover .contact__phone-cta { background: var(--lilac-400); color: var(--on-brand); }

.contact__meta { display: grid; gap: 10px; margin-top: 24px; }
.contact__meta li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 0.92rem; }
.contact__meta .icon { color: var(--lilac-300); width: 20px; height: 20px; }
.contact__social { display: flex; gap: 10px; margin-top: 24px; }

.contact-form { padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--text-2); }
.field input, .field textarea {
  width: 100%;
  padding: 0 16px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 120px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { border-color: var(--brand-line); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12); background: rgba(var(--brand-rgb), 0.04); }
.field input[dir="ltr"] { text-align: left; }
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(255, 99, 132, 0.6); box-shadow: 0 0 0 4px rgba(255, 99, 132, 0.1); }
.field__error { min-height: 0; font-size: 0.78rem; color: #FF7A94; display: none; }
.field.is-invalid .field__error { display: block; }
.contact-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.contact-form__hint { color: var(--text-3); font-size: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #050508;
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 72px);
}
.site-footer::before {
  content: "";
  position: absolute; inset-inline: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), 0.5), transparent);
}
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: clamp(28px, 4vw, 48px); }
.site-footer__desc { margin-top: 18px; color: var(--text-2); font-size: 0.92rem; max-width: 34ch; }
.site-footer__trust { display: none; margin-top: 18px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); transition: border-color 0.3s; }
.site-footer__trust:hover { border-color: var(--line-strong); }
.site-footer__trust img { width: 80px; height: 80px; object-fit: contain; }
.site-footer__trust.is-loaded { display: inline-block; }
.site-footer__col h3 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col ul a, .site-footer__col ul button {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 0.92rem;
  transition: color 0.3s, transform 0.3s var(--ease-out);
  text-align: start;
}
.site-footer__col ul a:hover, .site-footer__col ul button:hover { color: var(--lilac-200); transform: translateX(-4px); }
.site-footer__col ul a::before, .site-footer__col ul button::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--lilac-500); opacity: 0.5; flex-shrink: 0;
}
.site-footer__contact a::before { display: none; }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--lilac-300); }
.site-footer__h-social { margin-top: 26px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.85rem;
}

/* ---------- Floating ---------- */
.to-top {
  position: fixed; inset-inline-start: 22px; bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(14,14,22,0.8);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center;
  color: var(--text-2);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s, border-color 0.3s, color 0.3s;
}
.to-top .icon { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand-line); color: var(--lilac-200); }

.fab-call {
  position: fixed; inset-inline-end: 18px; bottom: 18px;
  z-index: 90;
  display: none;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-brand); color: var(--on-brand);
  place-items: center;
  box-shadow: 0 14px 34px -10px rgba(var(--brand-rgb), 0.8);
}
.fab-call { opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9); transition: opacity 0.35s, transform 0.35s var(--ease-spring), visibility 0.35s; }
.fab-call.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-call::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(var(--brand-rgb), 0.6);
  animation: ping 2.2s var(--ease-out) infinite;
}
.fab-call .icon { width: 24px; height: 24px; stroke-width: 2.2; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 3, 6, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn 0.3s var(--ease-out); }
.modal__panel {
  position: relative;
  width: min(100%, 520px);
  padding: 40px 28px 24px;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--brand-rgb), 0.14), transparent 55%),
    linear-gradient(180deg, #141322, #0D0D16);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,1), 0 30px 80px -30px rgba(var(--brand-rgb), 0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  text-align: center;
  animation: modalIn 0.45s var(--ease-spring);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.modal__close {
  position: absolute; top: 14px; inset-inline-start: 14px;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: background 0.3s, color 0.3s;
}
.modal__close:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.modal__close .icon { width: 18px; height: 18px; }
.modal__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px;
  margin: 0 auto 16px;
  background: var(--gradient-brand); color: var(--on-brand);
  box-shadow: 0 16px 40px -12px rgba(var(--brand-rgb), 0.8);
}
.modal__icon .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.modal__title { font-size: 1.35rem; font-weight: 800; }
.modal__desc { margin-top: 8px; color: var(--text-2); font-size: 0.92rem; }
.modal__service {
  display: inline-block;
  margin-top: 14px; padding: 8px 14px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.1); border: 1px solid var(--brand-line);
  color: var(--lilac-100); font-size: 0.88rem;
}
.modal__service[hidden] { display: none; }
.modal__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.social-btn {
  --social: var(--lilac-500);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  font-weight: 700; font-size: 0.92rem;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.social-btn--telegram { --social: #2AABEE; }
.social-btn--bale { --social: #0AC898; }
.social-btn--eitaa { --social: #EF7F1A; }
.social-btn:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--social) 55%, transparent); background: color-mix(in srgb, var(--social) 12%, transparent); box-shadow: 0 18px 40px -20px var(--social); }
.modal__foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.modal__foot [hidden] { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 20px);
  z-index: 300;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(20, 19, 34, 0.95);
  border: 1px solid var(--brand-line);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,1);
  color: var(--text); font-size: 0.9rem; font-weight: 600;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Keyframes ---------- */
@keyframes heroIn { to { opacity: 1; translate: 0 0; } }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes itemIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes orbFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions .btn { display: none; }
  .brand__text small { display: none; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); text-align: center; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { max-width: 60ch; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__chip--1 { inset-inline-start: 4px; top: 8%; }
  .hero__chip--2 { inset-inline-end: 4px; bottom: 8%; }
  .hero__scroll { display: none; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; max-width: 640px; margin-inline: auto; width: 100%; }
  .about__badge { inset-inline-end: 12px; bottom: 16px; }
  .social__grid { grid-template-columns: 1fr; max-width: 520px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .fab-call { display: grid; }
  .to-top { bottom: 84px; inset-inline-start: 16px; }
}

@media (max-width: 640px) {
  body { line-height: 1.75; }
  .hero__title { gap: 10px; }
  .hero__phone { width: 100%; justify-content: center; }
  .hero__chip { font-size: 0.78rem; padding: 8px 12px 8px 10px; }
  .why__grid { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { justify-content: center; text-align: center; }
  .carousel__head { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .carousel__nav { justify-content: flex-end; }
  .cat-card { flex-basis: 78vw; max-width: 300px; }
  .services-panel__head { flex-direction: column; align-items: flex-start; }
  .services-panel__foot { justify-content: center; text-align: center; }
  .modal__links { grid-template-columns: 1fr; }
  .social-btn { flex-direction: row; justify-content: center; }
  .stat__value { font-size: 2rem; }
  .stat__value--word { font-size: 1.4rem; }
  .btn--lg { --btn-h: 52px; padding: 0 22px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .hero__brand { font-size: 2.4rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal-hero, .split-word, [data-reveal], .service-item { opacity: 1 !important; transform: none !important; translate: none !important; filter: none !important; }
  .hero__particles { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero__bg, .to-top, .fab-call, .modal, .toast, .carousel__nav, .hero__scroll { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1; translate: none; }
}
