@import url("tokens.css");

/* ============================================================
   Bulgaria Digital Services — Premium Dark Digital Agency (Multi-page)
   Components & layout. ALL tokens live in tokens.css (imported
   above) — this file must never introduce raw hex / random
   radius / random shadow / random animation values.
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Тук стоеше `body { opacity: 0 }` + `body.loaded { opacity: 1 }`.
   Ефектът беше плавно появяване, но цената беше твърде висока:
   страницата оставаше НЕВИДИМА, докато app.js (defer) не се изпълни
   и не добави класа. При Lighthouse-mobile условия това изтласкваше
   FCP и LCP до ~4.3 s — първото изрисуване чакаше JavaScript.
   Заглавието и hero изображението нямат собствена входна анимация,
   затова се рисуват веднага щом CSS е готов.
   Преходът между страници (.page-transition) е запазен. */

/* Ambient + animated aurora background */
.bg-aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
/* Многостъпков градиент вместо filter: blur(120px).
   Изглежда еднакво, но не минава през blur pass — а blur с такъв радиус
   върху 60vw елемент е най-скъпото нещо, което може да стои на екрана. */
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; border-radius: 50%;
}
.bg-aurora::before {
  width: 82vw; height: 82vw; top: -30vw; left: -20vw;
  background: radial-gradient(circle closest-side,
    rgba(0, 89, 255, 0.14) 0%, rgba(0, 89, 255, 0.10) 26%,
    rgba(0, 89, 255, 0.045) 52%, rgba(0, 89, 255, 0.015) 72%, rgba(0, 89, 255, 0) 88%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.bg-aurora::after {
  width: 70vw; height: 70vw; bottom: -30vw; right: -20vw;
  background: radial-gradient(circle closest-side,
    rgba(164, 192, 235, 0.07) 0%, rgba(164, 192, 235, 0.05) 30%,
    rgba(164, 192, 235, 0.02) 58%, rgba(164, 192, 235, 0) 84%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, -8vh) scale(1.1); } }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image: linear-gradient(rgba(120, 170, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 90%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Accessibility: visible keyboard focus + skip link */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Минимална цел за пръст: 44px ----------
   WCAG 2.5.5 (AAA) иска 44×44. Мерено в браузър, преди това бяхме на
   35px в подвала и контактите, 40px на логото и 43px на бутоните —
   тоест под целта навсякъде, включително на телефона и имейла.
   `min-height` върху inline-flex елемент центрира допълнителната
   височина и не разлюлява вида — за разлика от увеличен padding. */
.btn,
.skip-link,
.brand,
.footer__bottom a,
.footer__legal a,
.footer__col a,
.tinfo__list a {
  min-height: 44px;
}
.skip-link,
.footer__bottom a,
.footer__legal a,
.tinfo__list a {
  display: inline-flex;
  align-items: center;
}
.footer__col a { display: flex; align-items: center; }
.skip-link {
  position: fixed; top: -70px; left: 12px; z-index: 10001;
  background: var(--brand-grad); color: var(--brand-ink);
  padding: 10px 18px; border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: var(--fw-semibold); font-size: 0.9rem;
  box-shadow: var(--shadow-btn); transition: top var(--duration-normal) var(--ease-premium);
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

.text-chrome {
  background: var(--chrome-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Синият вариант на същия акцент — когато хромът се губи върху светло. */
.text-brand {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #0059ff, #5aa9ff); z-index: 200; box-shadow: 0 0 14px rgba(61, 155, 255, 0.75);
  transition: width 0.1s linear;
}

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); transform: translateY(100%);
}
.page-transition.cover { animation: ptCover 0.46s var(--ease-out) forwards; pointer-events: all; }
@keyframes ptCover { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: var(--bg);
  transition: opacity var(--duration-slow) var(--ease-soft), visibility var(--duration-slow) var(--ease-soft);
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader__mark {
  width: clamp(180px, 34vw, 260px); display: grid; place-items: center;
  animation: preloaderPulse 1.4s var(--ease) infinite;
}
.preloader__mark img { width: 100%; height: auto; }
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(61, 155, 255,0.35)); }
  50%      { transform: scale(1.09); filter: drop-shadow(0 0 22px rgba(61, 155, 255,0.75)); }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; position: relative; z-index: 1; }
.container--narrow { max-width: 820px; }

.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; z-index: 1; }
.section--alt { background: linear-gradient(180deg, rgba(13,13,16,0.6), rgba(8,8,10,0)); border-block: 1px solid var(--line); }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 16px;
}
.section__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.section__lead { color: var(--text-2); font-size: 1.08rem; margin-top: 18px; }
.section__cta { margin-top: 40px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 13px 26px; border-radius: var(--r-button); font-family: var(--font-head);
  font-weight: var(--fw-semibold); font-size: 0.95rem; letter-spacing: -0.01em;
  transition: transform var(--duration-normal) var(--ease-premium), box-shadow var(--duration-normal) var(--ease-premium), background var(--duration-normal) var(--ease-premium), color var(--duration-normal) var(--ease-premium), border-color var(--duration-normal) var(--ease-premium), filter var(--duration-normal) var(--ease-premium);
  white-space: nowrap; position: relative; will-change: transform;
}
.btn:active { transform: translateY(0) scale(0.98); }
/* Primary */
.btn--brand { background: var(--brand-grad); color: var(--brand-ink); box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn--brand:not(.nav__cta):hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); filter: brightness(1.04); }
.btn--brand:not(.nav__cta):active { transform: translateY(0) scale(0.98); filter: brightness(0.98); }
/* Secondary */
.btn--secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-2); }
/* Outline */
.btn--outline { background: transparent; color: var(--brand-2); border: 1px solid var(--brand-border); }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-soft); }
/* Ghost */
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-2); background: rgba(255, 255, 255, 0.045); }
/* Icon button */
.btn--icon { padding: 0; width: 44px; height: 44px; border-radius: var(--r-icon); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); color: var(--text); }
.btn--icon:hover { border-color: var(--brand); color: var(--brand-2); background: var(--brand-soft); }
/* Sizes / modifiers */
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header (floating pill) ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 24px 0; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1400px; margin-inline: auto; height: 66px;
  padding: 0 14px 0 24px; border-radius: var(--r-navbar);
  background: rgba(12, 12, 15, 0.6);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: height 300ms var(--ease), padding 300ms var(--ease), background 300ms var(--ease),
              box-shadow 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
.header.scrolled .nav {
  height: 56px; padding: 0 12px 0 22px;
  background: rgba(10, 10, 13, 0.8);
  border-color: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 20px 52px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand { display: inline-flex; align-items: center; }
/* Логотипът носи и знака, и името — затова няма отделен текстов wordmark. */
.brand__logo {
  height: 52px; width: auto;
  filter: drop-shadow(0 0 14px rgba(61, 155, 255, 0.30));
  transition: height 300ms var(--ease), transform 300ms var(--ease), filter 300ms var(--ease);
}
.header.scrolled .brand__logo { height: 44px; }
.brand:hover .brand__logo { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(61, 155, 255, 0.55)); }
.footer__brand .brand__logo { height: 76px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.94rem; font-weight: 500; position: relative; }
.nav__links a:not(.btn) { color: var(--text-2); transition: color 250ms var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--brand-2); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px;
  background: var(--brand-grad); border-radius: 2px; transition: width 300ms var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta-mobile { display: none; }

.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__cta { box-shadow: 0 8px 24px -8px rgba(61, 155, 255,0.55); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.nav__cta:hover { transform: scale(1.05); box-shadow: 0 12px 34px -8px rgba(61, 155, 255,0.8), 0 0 24px -4px rgba(61, 155, 255,0.5); }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); position: relative; z-index: 101; transition: background 250ms var(--ease), border-color 250ms var(--ease); }
.nav__toggle:hover { background: rgba(61, 155, 255,0.1); border-color: rgba(61, 155, 255,0.3); }
.nav__toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 300ms var(--ease), opacity 250ms var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 90px;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; width: 100%; }
.hero__content { text-align: center; max-width: 1080px; margin-inline: auto; }
.hero__content .badge { margin-inline: auto; }

/* Background layers */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 72% 12%, rgba(0, 89, 255, 0.13), transparent 55%),
    radial-gradient(110% 95% at 15% 95%, rgba(164, 192, 235, 0.05), transparent 52%);
}
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(61, 155, 255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 155, 255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 38%, #000 38%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 38%, #000 38%, transparent 76%);
}
/* Без filter и без will-change: три постоянни компоузитърни слоя с голям
   blur са точно причината първият екран да „заби“, а по-надолу да е гладко. */
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; animation: heroGlowFloat 14s var(--ease) infinite alternate; }
@keyframes heroGlowFloat { from { opacity: 0.7; } to { opacity: 1; } }
.hero__glow--1 {
  width: 700px; height: 700px; top: -210px; left: -190px;
  background: radial-gradient(circle closest-side,
    rgba(0, 89, 255, 0.17) 0%, rgba(0, 89, 255, 0.13) 34%,
    rgba(0, 89, 255, 0.05) 60%, rgba(0, 89, 255, 0) 82%);
}
.hero__glow--2 {
  width: 600px; height: 600px; bottom: -230px; right: -170px;
  background: radial-gradient(circle closest-side,
    rgba(61, 155, 255, 0.11) 0%, rgba(61, 155, 255, 0.08) 34%,
    rgba(61, 155, 255, 0.03) 60%, rgba(61, 155, 255, 0) 82%);
  animation-duration: 18s; animation-delay: -5s;
}
.hero__glow--3 {
  width: 520px; height: 520px; top: 26%; left: 42%;
  background: radial-gradient(circle closest-side,
    rgba(164, 192, 235, 0.07) 0%, rgba(164, 192, 235, 0.04) 38%,
    rgba(164, 192, 235, 0) 78%);
  animation-duration: 16s; animation-delay: -9s;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 500;
  color: var(--brand-2); border: 1px solid rgba(61, 155, 255,0.28);
  background: rgba(61, 155, 255,0.06); margin-bottom: 26px; letter-spacing: 0.01em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.badge__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(61, 155, 255, 0.55);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(3.5); opacity: 0; }
  100% { transform: scale(3.5); opacity: 0; }
}

.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.hero__subtitle { color: var(--text-2); font-size: 1.14rem; line-height: 1.6; margin: 24px auto 34px; max-width: 640px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Втори ред: конкретните заявки — по-леки, за да не се борят с главния CTA. */
.hero__requests {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-top: 22px;
}
.hero__requests .btn { padding: 10px 18px; font-size: 0.88rem; }
.hero__requests-label {
  font-size: 0.86rem; color: var(--text-3); margin-right: 4px;
}

/* Hero staged entrance */
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroInVisual { from { opacity: 0; transform: translateY(32px) scale(0.965); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-anim { opacity: 0; animation: heroIn 0.9s var(--ease-out) both; animation-delay: var(--d, 0s); }
.hero-anim--visual { animation-name: heroInVisual; animation-duration: 1.15s; }

.hero__mini-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; justify-content: center; }
.hero__mini-stats div { display: flex; flex-direction: column; }
.hero__mini-stats strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--brand-2); }
.hero__mini-stats span { font-size: 0.82rem; color: var(--text-3); }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { position: relative; padding: 150px 0 60px; text-align: center; overflow: hidden; }
.page-hero--slim { padding: calc(var(--nav-h) + 24px) 0 0; }
.page-hero--slim .breadcrumb { margin-bottom: 0; }
.section--tight-top { padding-top: var(--space-8); }
.page-hero__glow { position: absolute; width: 840px; height: 840px; border-radius: 50%; top: -380px; left: 50%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(61, 155, 255, 0.11) 0%, rgba(61, 155, 255, 0.07) 34%, rgba(61, 155, 255, 0.02) 62%, rgba(61, 155, 255, 0) 84%); }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
.page-hero p { color: var(--text-2); font-size: 1.12rem; max-width: 620px; margin: 20px auto 0; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb span { color: var(--brand-2); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; position: relative; z-index: 1; background: rgba(13,13,16,0.4); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scrollX 32s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.marquee__track span::before { content: "◆"; color: var(--brand); font-size: 0.7rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Stats (count-up) ---------- */
/* ---------- Trust badges (under hero) ---------- */
.trust-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.trust-badge {
  position: relative; padding: 32px 26px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.trust-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(61, 155, 255,0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.trust-badge:hover { transform: translateY(-6px); border-color: rgba(61, 155, 255,0.35); box-shadow: var(--glow-brand); }
.trust-badge:hover::before { opacity: 1; }
.trust-badge__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: var(--r-input);
  font-size: 1.25rem; color: var(--brand-2);
  background: rgba(61, 155, 255,0.08); border: 1px solid rgba(61, 155, 255,0.22);
}
.trust-badge__title { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.trust-badge__text { color: var(--text-3); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Trust ---------- */
.trust__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.trust__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.4s var(--ease), border-color 0.4s;
}
.trust__item:hover { transform: translateY(-5px); border-color: rgba(61, 155, 255,0.3); }
.trust__icon { display: inline-block; font-size: 1.4rem; color: var(--brand-2); margin-bottom: 12px; }
.trust__item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.trust__item p { font-size: 0.9rem; color: var(--text-3); }

/* ---------- Cards (services) ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d; will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(61, 155, 255,0.6), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.card::after {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 155, 255,0.14), transparent 70%);
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%,-50%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover { border-color: transparent; box-shadow: var(--shadow); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__icon { font-size: 2rem; margin-bottom: 18px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); position: relative; transition: transform var(--duration-slow) var(--ease-premium); }
.card:hover .card__icon { transform: scale(1.08) translateY(-2px); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; position: relative; }
.card p { color: var(--text-2); font-size: 0.96rem; position: relative; }
.card__link { display: inline-flex; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--brand-2); position: relative; }
.card__link .btn__arrow { margin-left: 6px; }

/* ---------- Service detail (services page) ---------- */
.svc-detail { display: grid; gap: 26px; }
.svc-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; transition: transform 0.4s var(--ease), border-color 0.4s;
}
.svc-row:hover { transform: translateX(6px); border-color: rgba(61, 155, 255,0.3); }
.svc-row__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: var(--r-lg); background: rgba(61, 155, 255,0.08); border: 1px solid rgba(61, 155, 255,0.25); font-size: 1.8rem; }
.svc-row__body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.svc-row__body p { color: var(--text-2); font-size: 0.98rem; margin-bottom: 12px; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-row__tags span { font-size: 0.78rem; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text-3); }
.svc-row__price { text-align: right; }
.svc-row__price b { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--brand-2); }
.svc-row__price small { color: var(--text-3); font-size: 0.8rem; }

/* ---------- Projects ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-family: var(--font-head);
  font-weight: 500; font-size: 0.9rem; color: var(--text-2); transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand-2); }
.filter-btn.active { background: var(--brand-grad); color: var(--brand-ink); border-color: transparent; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.project {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, opacity 0.4s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(61, 155, 255,0.3); box-shadow: var(--shadow); }
.project.hide { display: none; }
.project.filtering { opacity: 0; transform: scale(0.96); }
.project__thumb {
  height: 190px; display: grid; place-items: center; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project__thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(61, 155, 255,0.22), transparent 60%); }
.project__logo { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-align: center; color: rgba(255,255,255,0.92); text-shadow: 0 2px 20px rgba(0,0,0,0.5); position: relative; z-index: 1; line-height: 1.2; transition: transform 0.5s var(--ease); }
.project:hover .project__logo { transform: scale(1.06); }
.project__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--duration-slow) var(--ease-premium); }
.project:hover .project__img { transform: scale(1.05); }
.project__thumb--restaurant { background: linear-gradient(135deg, #1b2440, #0b0f1c); }
.project__thumb--beauty     { background: linear-gradient(135deg, #241a3d, #0f0b1a); }
.project__thumb--climate    { background: linear-gradient(135deg, #0d2a3a, #071620); }
.project__thumb--tattoo     { background: linear-gradient(135deg, #1c2130, var(--surface)); }
.project__thumb--auto       { background: linear-gradient(135deg, #12294d, #080f1c); }
.project__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__cat { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; }
.project__body h3 { font-size: 1.25rem; }
.project__body > p { color: var(--text-2); font-size: 0.94rem; }
.project__spec { display: grid; gap: 7px; margin: 8px 0 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.project__spec li { position: relative; padding-left: 20px; font-size: 0.86rem; color: var(--text-2); line-height: 1.5; }
.project__spec li::before {
  content: ""; position: absolute; left: 3px; top: 0.55em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-grad); box-shadow: 0 0 8px rgba(61, 155, 255,0.5);
}
.project__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project__stack span {
  font-size: 0.72rem; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text-3);
}
.project__case { display: grid; gap: 6px; margin: 6px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.project__case li { font-size: 0.86rem; color: var(--text-3); }
.project__case b { color: var(--text); font-weight: 600; }
.project__link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--brand-2); transition: color 0.3s; display: inline-flex; align-items: center; gap: 6px; }
.project__link:hover { color: var(--brand-3); }
.project__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.project__actions .project__link { margin-top: 0; }
.project__live {
  font-family: var(--font-head); font-weight: 600; font-size: 0.86rem;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(61, 155, 255,0.4);
  color: var(--brand-2); transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.project__live:hover { background: var(--brand-grad); border-color: transparent; color: var(--brand-ink); }

/* ---------- Featured case studies (home) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.case {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.case:hover { transform: translateY(-6px); border-color: rgba(61, 155, 255,0.42); box-shadow: var(--shadow), var(--glow-brand); }

/* Browser window preview */
.case__preview {
  position: relative; margin: 24px 24px 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: #0b0f17;
  box-shadow: 0 22px 44px -26px rgba(0,0,0,0.85);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.case:hover .case__preview { transform: translateY(-4px); border-color: rgba(61, 155, 255,0.34); box-shadow: 0 30px 58px -26px rgba(0,0,0,0.9); }
.case__bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; background: rgba(255,255,255,0.045); border-bottom: 1px solid rgba(255,255,255,0.06); }
.case__bar > span { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mock-dot); }
.case__bar > span:nth-child(1) { background: var(--danger-dot); }
.case__bar > span:nth-child(2) { background: var(--warning); }
.case__bar > span:nth-child(3) { background: var(--success); }
.case__url { margin-left: 10px; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; color: var(--text-3); background: rgba(0,0,0,0.35); padding: 4px 14px; border-radius: var(--r-pill); letter-spacing: 0.01em; transition: color var(--duration-normal) var(--ease-premium), background var(--duration-normal) var(--ease-premium); }
.case:hover .case__url { color: var(--brand-2); background: rgba(61, 155, 255,0.1); }

/* Screenshot placeholder (fake rendered page) */
.case__shot { height: 224px; position: relative; overflow: hidden; }
.case__shot::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at 50% 130%, rgba(61, 155, 255,0.2), transparent 58%); }
.case__shot--restaurant { background: linear-gradient(140deg, #1b2440, #080b14); }
.case__shot--beauty     { background: linear-gradient(140deg, #241a3d, #0c0817); }
.case__shot--climate    { background: linear-gradient(140deg, #0d2a3a, #06121a); }
.case__shot--auto       { background: linear-gradient(140deg, #12294d, #070c16); }

.case__tag {
  position: absolute; top: 13px; right: 13px; z-index: 4;
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-2);
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(18,14,6,0.72); border: 1px solid rgba(61, 155, 255,0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: box-shadow var(--duration-normal) var(--ease-premium), border-color var(--duration-normal) var(--ease-premium);
}
.case:hover .case__tag { border-color: var(--brand); box-shadow: 0 0 20px -4px rgba(61, 155, 255,0.55); }
.case:hover .case__screen-btn { box-shadow: 0 10px 26px -6px rgba(61, 155, 255,0.75); }

/* Real screenshot inside the browser frame */
.case__img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform var(--duration-slow) var(--ease-premium);
}
.case:hover .case__img { transform: scale(1.05); }

.case__screen {
  position: absolute; inset: 0; z-index: 1; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform-origin: 50% 44%; transition: transform 0.6s var(--ease);
}
.case:hover .case__screen { transform: scale(1.045); }
.case__screen-head { display: flex; align-items: center; justify-content: space-between; }
.case__screen-logo { width: 46px; height: 12px; border-radius: 4px; background: var(--brand-grad); opacity: 0.92; }
.case__screen-nav { display: flex; gap: 8px; }
.case__screen-nav i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); }
.case__screen-hero { display: flex; flex-direction: column; gap: 9px; }
.case__screen-eyebrow { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; }
.case__screen-title { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; line-height: 1.08; color: rgba(255,255,255,0.96); text-shadow: 0 2px 20px rgba(0,0,0,0.55); max-width: 82%; }
.case__screen-btn { width: 94px; height: 26px; border-radius: var(--r-pill); background: var(--brand-grad); margin-top: 4px; box-shadow: 0 8px 20px -8px rgba(61, 155, 255,0.6); transition: box-shadow var(--duration-normal) var(--ease-premium); }
.case__screen-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.case__screen-cards i { height: 30px; border-radius: 7px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); }
.case__screen-cards i:nth-child(2) { background: rgba(61, 155, 255,0.1); border-color: rgba(61, 155, 255,0.28); }

/* Body */
.case__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.case__cat { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; }
.case__name { font-size: 1.4rem; margin: 10px 0 8px; }
.case__desc { color: var(--text-2); font-size: 0.96rem; line-height: 1.55; }
.case__facts { display: grid; gap: 11px; margin: 18px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.case__facts li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: baseline; }
.case__facts li > span { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; }
.case__facts li > b { color: var(--text-2); font-weight: 500; font-size: 0.9rem; line-height: 1.45; }
.case__link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 0.94rem; color: var(--brand-2); transition: color 0.3s, gap 0.3s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.case__link:hover { color: var(--brand-3); }
.case:hover .case__link { color: var(--brand-3); gap: 10px; }
.case:hover .case__link .btn__arrow { transform: translateX(4px); }
.case__link:hover .btn__arrow { transform: translateX(4px); }

/* CTA after cases */
.case-cta { margin-top: 46px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.case-cta__title { font-family: var(--font-head); font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; max-width: 620px; }
.case-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Trust section (real projects) ---------- */
.trust-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-card {
  position: relative; padding: 32px 28px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.trust-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 155, 255,0.7), transparent);
  opacity: 0; transition: opacity 0.45s;
}
.trust-card:hover::before { opacity: 1; }
.trust-card:hover {
  transform: translateY(-6px); border-color: rgba(61, 155, 255,0.3);
  box-shadow: var(--glow-premium);
}
.trust-card__icon {
  width: 50px; height: 50px; border-radius: var(--r-icon); display: grid; place-items: center;
  color: var(--brand-2); background: rgba(61, 155, 255,0.08); border: 1px solid rgba(61, 155, 255,0.22);
  margin-bottom: 20px; transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s;
}
.trust-card:hover .trust-card__icon { transform: translateY(-2px) scale(1.05); background: rgba(61, 155, 255,0.13); border-color: rgba(61, 155, 255,0.4); }
.trust-card__icon svg { width: 23px; height: 23px; }
.trust-card__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.trust-card__text { color: var(--text-2); font-size: 0.92rem; line-height: 1.6; }

/* Featured clients — logo strip (marquee) */
.clients { margin-top: clamp(56px, 8vw, 90px); text-align: center; }
.clients__label {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3); margin-bottom: 30px;
}
.clients__strip { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.clients__track { display: flex; width: max-content; gap: 72px; animation: scrollX 42s linear infinite; }
.clients__strip:hover .clients__track { animation-play-state: paused; }
.client {
  flex: none; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.01em; white-space: nowrap; color: var(--text-3); opacity: 0.55;
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.client:hover { color: var(--brand-2); opacity: 1; }

/* What you get — minimal check cards */
.get { margin-top: clamp(56px, 8vw, 90px); }
.get__title { text-align: center; font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; margin-bottom: 34px; }
.get-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.get-card {
  display: flex; align-items: center; gap: 13px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--text);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.get-card:hover { transform: translateY(-4px); border-color: rgba(61, 155, 255,0.32); box-shadow: var(--shadow-md); }
.get-card__check {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-pill);
  background: rgba(61, 155, 255,0.14); border: 1px solid rgba(61, 155, 255,0.4); color: var(--brand-2);
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.why-card {
  position: relative; padding: 36px 32px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
/* Linear-style hairline accent on hover */
.why-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 155, 255,0.75), transparent);
  opacity: 0; transition: opacity 0.45s;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover {
  transform: translateY(-6px); border-color: rgba(61, 155, 255,0.32);
  box-shadow: var(--glow-premium);
}
.why-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
  color: var(--brand-2); background: rgba(61, 155, 255,0.08); border: 1px solid rgba(61, 155, 255,0.22);
  margin-bottom: 22px; transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s;
}
.why-card:hover .why-card__icon { transform: translateY(-2px) scale(1.05); background: rgba(61, 155, 255,0.13); border-color: rgba(61, 155, 255,0.4); }
.why-card__icon svg { width: 24px; height: 24px; }
.why-card__title { font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.why-card__text { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }

/* Premium CTA panel after the cards */
.why-cta {
  position: relative; overflow: hidden; margin-top: 34px; text-align: center;
  padding: 56px 40px; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(22,22,27,0.92), rgba(13,13,16,0.92));
  border: 1px solid var(--line-2);
}
.why-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 130% at 50% 0%, rgba(61, 155, 255,0.13), transparent 62%);
}
.why-cta > * { position: relative; }
.why-cta__title { font-family: var(--font-head); font-size: clamp(1.55rem, 3.2vw, 2.15rem); font-weight: 800; letter-spacing: -0.02em; }
.why-cta__text { color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 560px; margin: 14px auto 28px; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.timeline__step {
  position: relative; padding: 30px 26px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.timeline__step:hover { transform: translateY(-6px); border-color: rgba(61, 155, 255,0.35); }
.timeline__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-input);
  background: rgba(61, 155, 255,0.1); border: 1px solid rgba(61, 155, 255,0.3);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--brand-2);
  margin-bottom: 18px;
}
.timeline__step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline__step p { font-size: 0.92rem; color: var(--text-2); }

/* Vertical timeline (process page) */
.vtimeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 40px; }
.vtimeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--brand), rgba(61, 155, 255,0.1)); }
.vstep { position: relative; padding: 0 0 40px 34px; }
.vstep:last-child { padding-bottom: 0; }
.vstep::before {
  content: ""; position: absolute; left: -32px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--brand); box-shadow: 0 0 0 5px rgba(61, 155, 255,0.12);
}
.vstep__label { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; }
.vstep h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.vstep p { color: var(--text-2); }

/* ---------- Before / After ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.ba__col { padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); }
.ba__col--before { background: linear-gradient(160deg, #14171f, #0b0d13); }
.ba__col--after { background: linear-gradient(160deg, rgba(61, 155, 255,0.12), #0b111c); border-color: rgba(61, 155, 255,0.28); box-shadow: var(--glow-brand); }
.ba__tag { display: inline-block; font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px; }
.ba__tag--before { color: var(--text-3); border: 1px solid var(--line-2); }
.ba__tag--after { color: var(--brand-ink); background: var(--brand-grad); }
.ba__col h3 { font-size: 1.25rem; margin-bottom: 18px; }
.ba__col ul { display: grid; gap: 11px; }
.ba__col li { position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--text-2); }
.ba__col--before li::before { content: "✕"; position: absolute; left: 0; color: var(--error-border); }
.ba__col--after li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.ba__arrow { font-size: 2rem; color: var(--brand-2); }

/* ---------- Values (about) ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value { padding: 30px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.4s var(--ease), border-color 0.4s; }
.value:hover { transform: translateY(-5px); border-color: rgba(61, 155, 255,0.3); }
.value__icon { font-size: 1.8rem; margin-bottom: 14px; }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { color: var(--text-2); font-size: 0.94rem; }

/* Split content (about) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split__media { border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden; background: linear-gradient(145deg, #161c28, var(--surface)); box-shadow: var(--shadow), var(--glow-brand); aspect-ratio: 4/3; display: grid; place-items: center; position: relative; }
.split__media .brand__logo { height: auto; width: 72%; opacity: 0.95; }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.split p { color: var(--text-2); margin-bottom: 16px; }
.split ul { display: grid; gap: 10px; margin-top: 8px; }
.split li { position: relative; padding-left: 26px; color: var(--text-2); }
.split li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }

/* Contact lists inside a split keep their own styling — no checkmark bullets */
.split .cta__contacts { gap: var(--space-4); margin-top: var(--space-8); }
.split .cta__contacts li { padding-left: 0; }
.split .cta__contacts li::before { content: none; }

/* Portrait variant of the split media (founder photo) */
.split__media--portrait { aspect-ratio: 4/5; place-items: stretch; }
.split__media--portrait picture { display: block; width: 100%; height: 100%; }
.split__media--portrait img { width: 100%; height: 100%; object-fit: cover; }
/* gold wash from the top so the photo shares the page's light */
.split__media--portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 85% at 50% 0%, var(--brand-soft-2), transparent 62%);
}
.split__media--portrait figcaption {
  position: absolute; left: var(--space-6); bottom: var(--space-6); z-index: 1;
  font-family: var(--font-head); font-weight: var(--fw-semibold);
  font-size: var(--fs-caption); letter-spacing: var(--ls-wider);
  text-transform: uppercase; color: var(--brand-2);
}
.split__media--portrait figcaption::before {
  content: ""; display: inline-block; width: var(--space-6); height: 1px;
  margin-right: var(--space-3); vertical-align: middle; background: var(--brand);
}

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testimonial {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.testimonial:hover { transform: translateY(-5px); border-color: rgba(61, 155, 255,0.3); }
.testimonial__stars { color: var(--brand); letter-spacing: 3px; font-size: 0.95rem; }
.testimonial blockquote { font-size: 1rem; color: var(--text); line-height: 1.65; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-grad); color: var(--brand-ink); font-family: var(--font-head); font-weight: 700; }
.testimonial figcaption b { display: block; font-size: 0.92rem; }
.testimonial figcaption small { color: var(--text-3); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--duration-normal) var(--ease-premium), box-shadow var(--duration-normal) var(--ease-premium); }
.faq__item:hover { border-color: var(--brand-border); }
.faq__item.active { border-color: rgba(61, 155, 255,0.35); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; text-align: left; transition: color var(--duration-normal) var(--ease-premium); }
.faq__q:hover { color: var(--brand-2); }
.faq__icon { flex-shrink: 0; font-size: 1.4rem; color: var(--brand-2); transition: transform var(--duration-normal) var(--ease-premium); }
.faq__item.active .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--duration-slow) var(--ease-premium); }
.faq__a p { padding: 0 24px 22px; color: var(--text-2); font-size: 0.96rem; opacity: 0; transform: translateY(-6px); transition: opacity var(--duration-slow) var(--ease-premium), transform var(--duration-slow) var(--ease-premium); }
.faq__item.active .faq__a p { opacity: 1; transform: none; }

/* ---------- CTA / Contact ---------- */
.cta { position: relative; overflow: hidden; }
.cta__glow { position: absolute; width: 940px; height: 940px; border-radius: 50%; top: -320px; left: 50%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(61, 155, 255, 0.11) 0%, rgba(61, 155, 255, 0.07) 34%, rgba(61, 155, 255, 0.02) 62%, rgba(61, 155, 255, 0) 84%); }
.cta__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.cta__text { text-align: left; }
.cta__text .section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta__text .section__lead { margin-left: 0; }
.cta__contacts { margin-top: 30px; display: grid; gap: 14px; }
.cta__contacts li { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.cta__contacts span.ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(61, 155, 255,0.1); border: 1px solid rgba(61, 155, 255,0.25); color: var(--brand-2); }
.cta__contacts a:hover { color: var(--brand-2); }

/* Simple centered CTA band */
.cta-band { text-align: center; }
.cta-band .section__title { max-width: 760px; margin-inline: auto; }

/* ---------- Form ---------- */
/* Left column — perks & checklist */
.cta__perks { margin-top: 30px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,0.02); }
.cta__perks-title { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.cta__perks ul { display: grid; gap: 12px; }
.cta__perks li { display: flex; align-items: center; gap: 13px; color: var(--text-2); font-size: 0.95rem; }
.cta__check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-pill); background: rgba(61, 155, 255,0.14); border: 1px solid rgba(61, 155, 255,0.4); color: var(--brand-2); font-size: 0.72rem; font-weight: 700; }
.cta__contacts { margin-top: 26px; }

/* Right column — premium lead form card */
.form {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: 38px; display: grid; gap: 18px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85);
}
.form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 155, 255,0.8), transparent);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* Авторско display правило бие UA правилото за [hidden], затова
   .form__field { display: grid } показваше скритото поле "Адрес на
   сайта" въпреки атрибута hidden. Условната логика в app.js
   работеше — просто нямаше визуален ефект. */
[hidden] { display: none !important; }

.form__field { display: grid; gap: 7px; }
.form__field label { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.form input, .form select, .form textarea {
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-input);
  padding: 13px 15px; color: var(--text); font-size: 0.95rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%; min-height: 48px;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-3); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--brand-border); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61, 155, 255,0.18), 0 0 20px -6px rgba(61, 155, 255,0.35); }
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235aa9ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form select:invalid, .form select option[value=""] { color: var(--text-3); }
.form textarea { resize: vertical; min-height: 110px; }

/* iOS Safari сам увеличава страницата, когато фокусираш поле с шрифт
   под 16px — потребителят после трябва да щипе, за да се върне.
   Само за докосване; на десктоп полетата остават 0.95rem. */
@media (max-width: 640px), (pointer: coarse) {
  .form input, .form select, .form textarea { font-size: 16px; }
}
.form .btn--block { margin-top: 4px; transition: transform var(--duration-normal) var(--ease-premium), box-shadow var(--duration-normal) var(--ease-premium), filter var(--duration-normal) var(--ease-premium); }
.form .btn--block:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -12px rgba(61, 155, 255,0.8), 0 0 30px -6px rgba(61, 155, 255,0.5); }
/* Loading state */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(26,20,8,0.35); border-top-color: var(--brand-ink); border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.form__trust { text-align: center; font-size: 0.82rem; color: var(--text-3); line-height: 1.5; }
.form__note {
  text-align: center; font-size: 0.9rem; min-height: 1.2em;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--duration-normal) var(--ease-premium), transform var(--duration-normal) var(--ease-premium);
}
.form__note:empty { min-height: 0; }
.form__note.success, .form__note.error { opacity: 1; transform: none; }
.form__note.success { color: var(--brand-2); }
.form__note.error { color: var(--error); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 30px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--text-3); font-size: 0.92rem; margin: 16px 0 20px; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: 0.8rem; font-weight: 600; color: var(--text-2); transition: all 0.3s; }
.footer__social a:hover { border-color: var(--brand); color: var(--brand-2); transform: translateY(-3px); }
.footer__col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
/* padding 5px 0 даваше ~23px висока цел за пръст — под минимума 24px
   на WCAG 2.5.8. В колоната стоят телефонът и имейлът, тоест реални
   пътища към заявка, а не само навигация. 10px вдига целта до ~33px,
   без да разтяга видимо footer-а. */
.footer__col a { display: block; color: var(--text-3); font-size: 0.9rem; padding: 10px 0; transition: color 0.25s; }
.footer__col > span { display: block; color: var(--text-3); font-size: 0.9rem; padding: 5px 0; }
.footer__col a:hover { color: var(--brand-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.82rem; }
/* В landing footer-а тук са телефонът и имейлът — реални пътища към
   заявка от телефон, не просто навигация. Без padding целта беше ~23px. */
.footer__bottom a { display: inline-block; padding-block: 10px; }
/* wrap, защото „Настройки за бисквитките“ е четвъртият елемент в реда и
   на 320px не се побира. Без него flex го свиваше до 80px, текстът
   излизаше до 370px и разтягаше layout viewport-а на целия сайт. */
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
/* WCAG 2.5.8 иска минимум 24x24px цел. Без padding връзките са 21px. */
/* inline-block + padding-block вдига целта за пръст от ~21px до ~33px.
   На landing footer-а тук стоят и поверителност, и общи условия. */
.footer__legal a { display: inline-block; color: var(--text-3); padding-block: 10px; transition: color var(--duration-normal) var(--ease-premium); }
.footer__legal a:hover { color: var(--brand-2); }

/* ---------- Floating action button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  background: var(--brand-grad); color: var(--brand-ink); font-family: var(--font-head); font-weight: 700;
  padding: 13px 22px; border-radius: var(--r-pill); font-size: 0.9rem;
  box-shadow: 0 12px 30px -8px rgba(61, 155, 255,0.6);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.fab.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab:hover { transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px) scale(0.985);
  transition: opacity var(--duration-reveal) var(--ease-premium),
              transform var(--duration-reveal) var(--ease-premium);
}
.reveal.in { opacity: 1; transform: none; }
.reveal--delay { transition-delay: 0.12s; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }
[data-delay="7"] { transition-delay: 0.56s; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { max-width: 760px; }
.legal__updated { color: var(--text-3); font-size: 0.85rem; margin-bottom: var(--space-8); }
.legal h2 { font-size: 1.22rem; margin: var(--space-8) 0 var(--space-3); }
.legal p { color: var(--text-2); margin-bottom: var(--space-3); line-height: 1.75; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: var(--space-4); color: var(--text-2); display: grid; gap: var(--space-2); }
.legal a { color: var(--brand-2); transition: color var(--duration-normal) var(--ease-premium); }
.legal a:hover { color: var(--brand-3); }
.legal code { background: var(--card); padding: 2px 6px; border-radius: var(--r-xs); font-size: 0.9em; }
.legal__back { margin-top: var(--space-12); }

/* ---------- Pricing (пакети) ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
  align-items: stretch; max-width: 1120px; margin-inline: auto;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 38px 30px; border-radius: var(--r-xl); overflow: hidden;
  background: rgba(22, 22, 27, 0.55);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-slow) var(--ease-premium),
              border-color var(--duration-slow) var(--ease-premium),
              box-shadow var(--duration-slow) var(--ease-premium);
}
.price-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 155, 255,0.6), transparent);
  opacity: 0; transition: opacity var(--duration-slow) var(--ease-premium);
}
.price-card:hover::before { opacity: 1; }
.price-card:hover { transform: translateY(-8px); border-color: var(--brand-border); box-shadow: var(--glow-premium); }

/* Featured PRO — по-голяма и изпъкнала */
.price-card--featured {
  border-color: var(--brand-border);
  box-shadow: var(--glow-premium), 0 0 0 1px rgba(61, 155, 255,0.22);
  transform: scale(1.045); z-index: 2;
}
.price-card--featured::before { opacity: 1; }
.price-card--featured:hover { transform: scale(1.045) translateY(-8px); }

.price-card__badge {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink);
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--brand-grad);
  box-shadow: var(--shadow-btn);
}
.price-card__head { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-card__name { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.16em; color: var(--brand-2); }
.price-card__price { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1.1; margin-top: 14px; color: var(--text); }
.price-card__price span { font-size: 1.35rem; color: var(--text-2); font-weight: 700; }
.price-card__note { font-size: 0.78rem; color: var(--text-3); font-style: italic; margin-top: 8px; }
.price-card__for { font-size: 0.92rem; color: var(--text-2); margin-top: 14px; line-height: 1.5; }
.price-card__plus { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--brand-2); margin-bottom: 14px; }
.price-card__feats { display: grid; gap: 11px; margin-bottom: 28px; }
.price-card__feats li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.92rem; color: var(--text-2); line-height: 1.45; }
.price-feat__ico {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px;
  border-radius: var(--r-pill); background: var(--brand-soft-2); border: 1px solid var(--brand-border);
  color: var(--brand-2); font-size: 0.64rem; font-weight: 700;
}
.price-card__btn { margin-top: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: auto; padding: calc(var(--nav-h) + 56px) 0 80px; }
  .cta__grid, .split { grid-template-columns: 1fr; gap: 34px; }
  .trust__grid, .trust-badges { grid-template-columns: repeat(2,1fr); }
  .cards, .why, .timeline, .testimonials, .values { grid-template-columns: repeat(2,1fr); }
  .trust-cards, .get-cards { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); justify-self: center; }
  .svc-row { grid-template-columns: 64px 1fr; }
  .svc-row__price { grid-column: 2; text-align: left; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-8px); }
}

@media (max-width: 720px) {
  .header { padding: 14px 14px 0; }
  .nav { height: 58px; padding: 0 10px 0 18px; gap: 12px; }

  /* Fullscreen mobile menu */
  .nav__links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    z-index: 90;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: #08080a;
    padding: 96px 28px 44px;
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity 320ms var(--ease), visibility 320ms var(--ease);
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__links li {
    width: 100%; max-width: 320px; text-align: center; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(24px);
    transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  }
  .nav__links.open li { opacity: 1; transform: none; }
  .nav__links.open li:nth-child(1) { transition-delay: 0.10s; }
  .nav__links.open li:nth-child(2) { transition-delay: 0.16s; }
  .nav__links.open li:nth-child(3) { transition-delay: 0.22s; }
  .nav__links.open li:nth-child(4) { transition-delay: 0.28s; }
  .nav__links.open li:nth-child(5) { transition-delay: 0.34s; }
  .nav__links.open li:nth-child(6) { transition-delay: 0.40s; }
  .nav__links.open li:nth-child(7) { transition-delay: 0.46s; }
  .nav__links a:not(.btn) { display: block; padding: 20px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--text); }
  .nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--brand-2); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta-mobile { display: block; border-bottom: none; padding-top: 24px; }
  .nav__cta-mobile .btn { width: 100%; padding: 16px; font-size: 1.02rem; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .cards, .why, .timeline, .testimonials, .trust__grid, .trust-badges, .values { grid-template-columns: 1fr; }
  .trust-cards, .get-cards { grid-template-columns: 1fr; }
  .clients__track { gap: 46px; }
  .client { font-size: 1.05rem; }
  .projects { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__mini-stats { gap: 20px; }
  .fab { display: none; }
  .hero { padding-top: 120px; }
}

@media (max-width: 860px) {
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  /* Логотипът е широк (2.57:1) — на тесен екран се смалява, за да остане
     място на бургера. */
  .brand__logo { height: 40px; }
  .header.scrolled .brand__logo { height: 36px; }
  .footer__brand .brand__logo { height: 62px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__requests { gap: 8px; }
  .hero__requests-label { width: 100%; margin: 0 0 2px; }
  .case__preview { margin: 16px 16px 0; }
  .case__shot { height: 200px; }
  .case__screen { padding: 15px 16px; }
  .case__screen-title { font-size: 1.2rem; }
  .case__body { padding: 22px 20px 24px; }
  .case-cta__actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-anim { opacity: 1 !important; animation: none !important; }
  .hero__glow { animation: none !important; }
  .marquee__track, .clients__track { animation: none !important; }
  .preloader__mark { animation: none !important; }
  html { scroll-behavior: auto; }
  body { opacity: 1; }
}

/* ============================================================
   Съгласие за бисквитки
   ------------------------------------------------------------
   Банерът се рисува от bds-consent.js СЛЕД зареждане и стои
   `fixed` — затова не участва в потока и не мести съдържание
   (CLS остава 0). „Само необходимите“ е със същата големина и на
   същото място като „Приемам всички“ — без dark patterns.
   ============================================================ */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  padding: var(--space-4);
  background: var(--bg-2);
  border-top: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.consent__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap;
}
.consent__text { flex: 1 1 380px; }
.consent__title {
  font-family: var(--font-head); font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold); margin-bottom: var(--space-2);
}
.consent__text p { font-size: var(--fs-small); line-height: var(--lh-normal); color: var(--text-2); }
.consent__link { color: var(--brand-2); text-decoration: underline; }
.consent__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.consent__btn { font-size: var(--fs-small); }

@media (max-width: 720px) {
  .consent__inner { flex-direction: column; align-items: stretch; gap: var(--space-4); }
  /* `flex: 1 1 380px` върху текста е основа за ШИРИНАТА, докато редът е
     хоризонтален. В колона същите 380px стават ВИСОЧИНА и банерът
     изяждаше две трети от екрана с празнина по средата. */
  .consent__text { flex: 0 0 auto; }
  /* Трите избора са равни по ширина — нито един не е по-лесен от другите. */
  .consent__actions { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
  .consent__btn { width: 100%; }
}

/* ---------- Панел с настройки ---------- */
.consent-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: var(--space-4); }
.consent-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 4, 9, 0.72); }
.consent-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh; overflow-y: auto;
  padding: var(--space-8);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.consent-modal__title {
  font-family: var(--font-head); font-size: var(--fs-h3);
  font-weight: var(--fw-bold); margin-bottom: var(--space-6);
}
.consent-opt { padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.consent-opt:first-of-type { border-top: 0; padding-top: 0; }
.consent-opt__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 44px; cursor: pointer;
}
.consent-opt__name { font-family: var(--font-head); font-weight: var(--fw-semibold); }
.consent-opt__always { font-size: var(--fs-small); color: var(--text-3); }
.consent-opt__box { width: 22px; height: 22px; accent-color: var(--brand); cursor: pointer; }
.consent-opt__desc { margin-top: var(--space-2); font-size: var(--fs-small); line-height: var(--lh-normal); color: var(--text-2); }
.consent-modal__actions { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-6); flex-wrap: wrap; }

body.consent-open { overflow: hidden; }

@media (max-width: 480px) {
  .consent-modal__panel { padding: var(--space-6); }
  .consent-modal__actions { flex-direction: column-reverse; }
  .consent-modal__actions .btn { width: 100%; }
}

/* Изглежда като другите връзки в подвала, но е <button> — защото
   отваря панел, а не води към адрес. */
.footer__consent {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-3); font-size: inherit; font-family: inherit;
  text-align: left; padding: 0;
  transition: color var(--duration-normal) var(--ease-premium);
}
.footer__consent:hover { color: var(--brand-2); }

@media (max-width: 380px), (max-height: 620px) {
  /* На нисък или тесен екран банерът не бива да изяжда първия екран —
     под него стои hero-то, за което е платен кликът. */
  .consent { padding: var(--space-3); }
  .consent__inner { gap: var(--space-3); }
  .consent__title { font-size: var(--fs-body); margin-bottom: 4px; }
  .consent__text p { font-size: 0.82rem; line-height: 1.45; }
}
