/*
  Дизайн-токени ASDigital: преміум dark, індиго-акцент, «скляні» поверхні.
  Змінюйте --accent та --bg-* для швидкого ребрендингу.
*/
:root {
  --bg-void: #030306;
  --bg-deep: #06060a;
  --bg: #0c0c12;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1a1a26;
  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b92a8;
  --accent: #6366f1;
  --accent-dim: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.28);
  --accent-glow: rgba(99, 102, 241, 0.5);
  --cyan-glow: rgba(34, 211, 238, 0.08);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-card-hover: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.12) inset;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font-sans);
  --nav-h: 88px;
  --container: min(1240px, 100% - clamp(1.25rem, 4vw, 2.25rem));
  --grid-line: rgba(129, 140, 248, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  /* Відступи: єдиний ритм по сторінці */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.75rem;
  --space-3xl: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: -0.006em;
  color: var(--text);
  background-color: var(--bg-void);
  background-image: radial-gradient(ellipse 100% 72% at 50% -22%, rgba(99, 102, 241, 0.28), transparent 52%),
    radial-gradient(ellipse 50% 45% at 100% 15%, rgba(34, 211, 238, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 40%, rgba(99, 102, 241, 0.05), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 55%, var(--bg-void) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page .hero,
.page .main,
.page .footer {
  transition: filter 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.page.menu-open .hero,
.page.menu-open .main,
.page.menu-open .footer {
  filter: blur(10px);
  transform: scale(0.995);
}

.page ::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* Легка сітка + глибина сторінки (не картинка — лише CSS) */
body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 8%, #000 20%, transparent 72%);
}

.main {
  position: relative;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Утиліта контейнера (mobile first) */
.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  --container: min(720px, 100% - 2rem);
}

/* Кнопки: градієнт + легкий «shine» при hover */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-out), border-color 0.25s, color 0.25s, background 0.25s;
}

.btn--lg {
  padding: 0.92rem 1.65rem;
  font-size: 1.02rem;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #818cf8 0%, var(--accent-dim) 48%, #4338ca 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), 0 12px 40px rgba(67, 56, 202, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45), 0 20px 50px rgba(49, 46, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--outline {
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: rgba(129, 140, 248, 0.55);
  color: #fff;
  background: rgba(99, 102, 241, 0.14);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* Каркас секцій + чергування «смуг» фону (щільніше, менше «порожнечі») */
.section {
  padding: clamp(var(--space-2xl), 6.5vw, var(--space-3xl)) 0;
  position: relative;
}

main > .section:nth-child(even) {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0.02) 22%, transparent 50%, rgba(0, 0, 0, 0.18) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(1.85rem, 4vw, 2.65rem);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(99, 102, 241, 0.1);
}

.section__eyebrow--left {
  margin-left: 0;
  align-self: flex-start;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  margin-bottom: 0.85rem;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Якщо clip не підтримується — запасний колір через @supports */
@supports not (background-clip: text) {
  .section__title {
    color: var(--text);
    background: none;
  }
}

.section__title--left {
  text-align: left;
  background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .section__title--left {
    color: var(--text);
    background: none;
  }
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.62;
  letter-spacing: -0.004em;
  max-width: 52ch;
  margin-inline: auto;
  margin-top: 0.35rem;
}

.section__line {
  display: block;
  width: 56px;
  height: 4px;
  margin: 1.15rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), #22d3ee, transparent);
  opacity: 0.95;
}

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 40%), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

/* ---------- Навігація ---------- */
.nav {
  position: fixed;
  inset: 10px 5px auto 5px;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* Не clip: дочірня .nav__panel — position:fixed, інакше обрізається до висоти шапки */
  overflow: visible;
  transition: background 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.nav__bar {
  width: 100%;
}

.nav__shell {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.3vw, 0.8rem);
  padding: 0.4rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(16, 16, 26, 0.92) 0%, rgba(5, 7, 14, 0.96) 100%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(1.15);
}

.nav__bar-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.7rem, 1.8vw, 1.1rem);
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding-block: clamp(0.35rem, 1vw, 0.6rem);
}

/* Зліва: кнопка «Меню» + панель над нею */
.nav__trigger-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.nav__logo--brand {
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.44rem 0.62rem 0.44rem 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(148, 163, 184, 0.07);
  min-height: 50px;
}

.nav__brand-text {
  display: grid;
  gap: 0.05rem;
}

.nav__brand-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.1;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.nav__brand-text small {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav__inline-links {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.7rem);
  padding: 0.25rem;
}

.nav__inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}

.nav__inline-links a:hover,
.nav__inline-links a:focus-visible {
  color: #fff;
  background: rgba(99, 102, 241, 0.16);
  transform: translateY(-1px);
}

.nav__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__cluster {
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.58rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}

.nav__cluster--menu {
  min-width: 170px;
}

.nav__cluster--contacts {
  min-width: 260px;
}

.nav__cluster-title {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.nav__quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.nav__quick-links a {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav__quick-links a:hover {
  color: #e2e8f0;
}

.nav__cluster-phone {
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__cluster-mail {
  color: #94a3b8;
  font-size: 0.74rem;
}

.nav__info-chip {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.38rem 0.62rem;
}

.nav__info-chip p {
  margin: 0;
}

.nav__info-chip--about {
  flex: 1 1 auto;
  min-width: 210px;
}

.nav__info-chip--about p {
  width: 100%;
  max-width: none;
  color: #e2e8f0;
  font-size: 0.68rem;
  line-height: 1.28;
}

.nav__info-chip--social {
  gap: 0.65rem;
}

.nav__info-label {
  margin: 0;
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 12ch;
}

.nav__header-social {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.nav__header-social-btn {
  width: auto;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.7);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.nav__header-social-btn:hover {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-1px);
}

.nav__info-chip--phone {
  min-width: 200px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}

.nav__header-cta {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 58%, #22d3ee 100%);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}

.nav__header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.42);
  filter: brightness(1.03);
}

.nav__phone--top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 170px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.42);
  font-size: 0.8rem;
  line-height: 1;
}

/* Діалог-панель */
.nav__panel {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 0.8rem) clamp(0.85rem, 2.6vw, 2rem) max(var(--space-md), env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.nav__panel[hidden] {
  display: none !important;
}

.nav__panel.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.nav__panel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 8, 0.58);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  cursor: pointer;
}

.nav__panel-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(980px, 100%);
  margin-inline: auto;
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(22, 22, 34, 0.96) 0%, rgba(10, 10, 18, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(99, 102, 241, 0.12) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.35s var(--ease-out);
}

/* Світле повноформатне меню (макет) */
.nav__panel-window--light {
  --mega-teal: #22d3ee;
  --mega-text: #f8fafc;
  --mega-muted: #94a3b8;
  --mega-line: rgba(148, 163, 184, 0.26);
  max-width: min(980px, 100%);
  max-height: min(88vh, 720px);
  border-radius: clamp(18px, 3.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(22, 22, 34, 0.98) 0%, rgba(8, 8, 14, 0.99) 52%, rgba(5, 6, 11, 1) 100%);
  /* overflow:visible — тінь не обрізається; скрол і низ скруглені в .nav__panel-scroll */
  overflow: visible;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.16) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.nav__panel-window--light .nav__panel-scroll {
  padding: clamp(1.1rem, 2.5vw, 1.45rem) clamp(1rem, 2.5vw, 1.5rem) clamp(1.05rem, 2.2vw, 1.25rem);
  padding-top: clamp(2.3rem, 3.4vw, 2.7rem);
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, transparent 35%);
  border-radius: 0 0 clamp(16px, 2.8vw, 22px) clamp(16px, 2.8vw, 22px);
}

.nav__panel-head--mega {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.nav__mega-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.nav__mega-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mega-text);
}

.nav__mega-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.nav__mega-logo-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #cbd5e1;
}

.nav__mega-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  letter-spacing: -0.03em;
  color: var(--mega-text);
}

.nav__mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  padding-bottom: clamp(0.95rem, 2.3vw, 1.2rem);
  border-bottom: 1px solid var(--mega-line);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.nav__mega-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.nav__mega-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.04rem, 2.1vw, 1.28rem);
  letter-spacing: -0.02em;
  color: var(--mega-text);
  padding: 0.52rem 0;
  line-height: 1.2;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}

.nav__mega-link:hover,
.nav__mega-link:focus-visible {
  color: var(--mega-teal);
  transform: translateX(2px);
}

.nav__mega-link:focus-visible {
  outline: 2px solid var(--mega-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav__mega-link--accent {
  color: var(--mega-teal);
}

.nav__mega-divider {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--mega-line);
  margin: 0.15rem 0 0.5rem;
}

.nav__mega-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.nav__mega-foot-online {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.nav__mega-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.nav__mega-foot-note {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mega-muted);
  line-height: 1.35;
  max-width: 20ch;
}

.nav__mega-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav__mega-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(226, 232, 240, 0.3);
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.08);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), background 0.2s;
}

.nav__mega-social-btn:hover {
  border-color: var(--mega-teal);
  color: var(--mega-teal);
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

.nav__mega-social-btn:focus-visible {
  outline: 2px solid var(--mega-teal);
  outline-offset: 3px;
}

.nav__mega-social-ico {
  display: block;
}

.nav__mega-phone-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  min-width: 0;
}

.nav__mega-phone-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav__mega-phone-head .nav__mega-foot-note {
  max-width: none;
}

.nav__mega-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
  color: #e2e8f0;
  white-space: nowrap;
}

.nav__mega-phone:hover {
  color: var(--mega-teal);
}

.nav__mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem 0.65rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #22d3ee 100%);
  box-shadow: 0 7px 20px rgba(79, 70, 229, 0.38);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}

.nav__mega-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
}

.nav__mega-cta:focus-visible {
  outline: 2px solid #0a5c54;
  outline-offset: 3px;
}

.nav__mega-cta-ico {
  display: flex;
  color: #fff;
}

.nav__mega-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav__mega-brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  background: repeating-linear-gradient(
    125deg,
    #e2e8f0 0px,
    #e2e8f0 3px,
    transparent 3px,
    transparent 6px
  );
  border-radius: 4px;
  opacity: 0.92;
}

.nav__mega-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--mega-text);
}

.nav__panel-close--round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(148, 163, 184, 0.08);
}

.nav__panel-close--round:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(148, 163, 184, 0.14);
}

.nav__panel-close--round .nav__panel-close-line {
  display: none;
}

.nav__panel-close-x {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  color: #e2e8f0;
  margin-top: -2px;
}

.nav__panel-window--light .nav__panel-close:focus-visible {
  outline: 2px solid var(--mega-teal);
  outline-offset: 3px;
}

.nav__panel.is-open .nav__panel-window {
  /* none замість translateY(0) scale(1) — зменшує ризик обрізання через filter/transform на предках */
  transform: none;
  opacity: 1;
}

.nav__panel-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease-out);
}

.nav__panel-close:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.12);
}

.nav__panel-close-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e2e8f0, #a5b4fc);
}

.nav__panel-close-line:first-child {
  transform: rotate(45deg);
}

.nav__panel-close-line:last-child {
  transform: rotate(-45deg);
}

.nav__panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  padding-top: calc(var(--space-2xl) + var(--space-sm));
}

.nav__panel-head {
  margin-bottom: var(--space-lg);
}

.nav__panel-eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.nav__panel-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 42ch;
}

.nav__panel-grid {
  display: grid;
  gap: var(--space-lg);
}

.nav__panel-aside {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.nav__panel-aside-title {
  margin: 0 0 var(--space-sm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__panel-aside-link {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__panel-aside-link:hover {
  color: #c7d2fe;
}

.nav__panel-cta {
  margin-top: var(--space-md);
  position: relative;
  overflow: hidden;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav__right {
  margin-left: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1.15rem);
}

.nav__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.nav__phone {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__phone:hover,
.nav__phone:focus-visible {
  color: #c7d2fe;
}

.nav__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* Логотип-зображення: покладіть файл у images/ (logo.svg, logo.png …) */
.nav__logo-icon,
.footer__logo-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-icon {
  height: clamp(40px, 5vw, 52px);
  min-width: 40px;
  max-width: min(140px, 28vw);
}

.footer__logo-icon {
  height: 36px;
  min-width: 36px;
  max-width: 140px;
}

.nav__logo-img,
.footer__logo-img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 11px;
}

.nav__logo-mark,
.footer__logo-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 28% 22%, #e0e7ff 0%, #a5b4fc 35%, var(--accent-dim) 65%, #1e1b4b 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 4px 20px rgba(99, 102, 241, 0.45);
  transition: opacity 0.25s ease;
}

.footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.nav__logo-icon:not(.logo-icon--fallback) .nav__logo-mark,
.footer__logo-icon:not(.logo-icon--fallback) .footer__logo-mark {
  opacity: 0;
  pointer-events: none;
}

.nav__logo-icon.logo-icon--fallback .nav__logo-img,
.footer__logo-icon.logo-icon--fallback .footer__logo-img {
  display: none;
}

.nav__logo-icon.logo-icon--fallback .nav__logo-mark,
.footer__logo-icon.logo-icon--fallback .footer__logo-mark {
  opacity: 1;
}

.nav__logo-accent {
  background: linear-gradient(135deg, #a5b4fc, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .nav__logo-accent {
    color: var(--accent);
    background: none;
  }
}

/* Кнопка меню — капсула з підписом */
.nav__toggle {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.48rem 1.15rem 0.48rem 0.95rem;
  min-height: 44px;
  white-space: nowrap;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.38) 100%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}

.nav__toggle-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav__toggle-bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__toggle:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.22);
}

.nav__toggle-bar {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0, #a5b4fc);
  border-radius: 2px;
  transition: transform 0.32s var(--ease-spring), opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] {
  border-color: rgba(129, 140, 248, 0.5);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Пункти всередині панелі */
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-md);
  row-gap: 0.2rem;
  align-items: start;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.38) 100%);
  color: #f1f5f9;
  font-family: var(--font-display);
  overflow: hidden;
  transition: border-color 0.28s, transform 0.28s var(--ease-spring), box-shadow 0.28s;
}

.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(99, 102, 241, 0.14) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

.nav__link:hover::before,
.nav__link:focus-visible::before {
  transform: translateX(100%);
}

.nav__link:hover,
.nav__link:focus-visible {
  border-color: rgba(129, 140, 248, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(99, 102, 241, 0.12);
  outline: none;
}

.nav__link-num {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #a5b4fc;
  opacity: 0.88;
}

.nav__link-label {
  grid-column: 2;
  font-weight: 700;
  font-size: clamp(1.02rem, 2.8vw, 1.18rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.nav__link-desc {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
}

.nav__cta-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.nav__panel-cta.btn--primary:hover {
  transform: translateY(-2px);
}

/* Десктоп: вікно над кнопкою. Без filter:drop-shadow — інакше вміст часто обрізається по «коробці» панелі */
@media (min-width: 900px) {
  .nav__bar-inner {
    gap: 1rem;
  }

  .nav__phone {
    font-size: 0.92rem;
  }

  .nav__status {
    font-size: 0.66rem;
  }

  .nav__toggle {
    min-height: 40px;
    padding: 0.44rem 0.8rem;
    background: rgba(148, 163, 184, 0.06);
    box-shadow: none;
  }

  .nav__panel {
    position: fixed;
    inset: 0;
    width: 100%;
    max-height: none;
    padding: calc(var(--nav-h) + 0.85rem) clamp(1rem, 2vw, 1.6rem) 1rem;
    justify-content: flex-start;
    align-items: center;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  }

  .nav__panel-scrim {
    display: block;
  }

  .nav__panel-window {
    max-width: 100%;
    max-height: min(82vh, 760px);
    margin: 0;
    transform-origin: top center;
  }

  .nav__panel-scroll {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    padding-top: calc(var(--space-xl) + var(--space-sm));
  }

  .nav__panel-window--light .nav__panel-scroll {
    padding: clamp(1.1rem, 1.9vw, 1.35rem) clamp(1.1rem, 1.9vw, 1.45rem) clamp(0.95rem, 1.6vw, 1.2rem);
    padding-top: clamp(2.2rem, 2.9vw, 2.5rem);
  }

  .nav__mega-foot {
    flex-wrap: nowrap;
    gap: 0.8rem;
  }

  .nav__mega-foot-note {
    max-width: 24ch;
  }
}

@media (min-width: 1100px) {
  .nav__panel-window--light {
    max-width: min(1020px, 100%);
  }

  .nav__mega-foot {
    flex-wrap: nowrap;
  }
}

@media (max-width: 640px) {
  .nav__shell {
    border-radius: 18px;
    gap: 0.35rem;
    padding: 0.3rem;
  }

  .nav__brand-text small,
  .nav__info-chip--about,
  .nav__info-chip--social,
  .nav__info-chip--phone,
  .nav__header-cta,
  .nav__phone--top,
  .nav__inline-links {
    display: none;
  }

  .nav__logo--brand {
    min-height: 46px;
    padding: 0.4rem 0.62rem 0.4rem 0.45rem;
  }

  .nav__logo-icon {
    height: 34px;
    min-width: 34px;
    max-width: 80px;
  }

  .nav__brand-text strong {
    font-size: 0.84rem;
  }

  .nav__toggle {
    min-height: 46px;
    padding: 0.42rem 0.92rem;
    gap: 0.5rem;
  }

  .nav__toggle-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .nav__panel {
    padding-top: calc(var(--nav-h) + 0.6rem);
  }

  .nav__panel-window--light {
    border-radius: 16px;
  }

  .nav__mega-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__mega-brand {
    order: 10;
    justify-content: flex-end;
    padding-top: 0.25rem;
  }

  .nav__mega-cols {
    grid-template-columns: 1fr;
    gap: 0.5rem 0;
  }

  .nav__mega-col:last-child .nav__mega-link:first-child {
    padding-top: 0.25rem;
  }

  .nav__mega-col:last-child .nav__mega-divider:first-of-type {
    margin-top: 0.35rem;
  }
}

@media (max-width: 1200px) {
  .nav__info-chip--about {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav__header-cta {
    padding-inline: 0.95rem;
    font-size: 0.76rem;
  }

  .nav__phone--top {
    display: none;
  }

  .nav__toggle {
    min-height: 50px;
  }
}

@media (max-width: 820px) {
  .nav__header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__panel,
  .nav__panel-window,
  .nav__toggle-bar {
    transition: none !important;
  }

  .nav__panel.is-open .nav__panel-window {
    transform: none;
    opacity: 1;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 clamp(3.5rem, 8vw, 5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -25% -15% auto -15%;
  height: 85%;
  background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(99, 102, 241, 0.35), transparent 58%),
    radial-gradient(circle at 85% 25%, rgba(34, 211, 238, 0.12), transparent 42%);
  pointer-events: none;
  filter: blur(0.5px);
}

/* Додаткові «орби» глибини (другий шар під градієнтом) */
.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 70%, rgba(99, 102, 241, 0.12), transparent 30%),
    radial-gradient(circle at 92% 80%, rgba(168, 85, 247, 0.1), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.06), transparent 40%);
  opacity: 0.95;
}

.hero__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000, transparent 75%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.35rem);
  align-items: stretch;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  max-width: 640px;
}

/* Hero: фото + вікно коду — композиція з накладенням на десктопі */
.hero__visual {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero__photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
}

.hero__photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
  background: linear-gradient(to top, rgba(3, 3, 8, 0.92) 30%, transparent);
}

.hero__mini-photo {
  display: none;
  margin: 0;
}

.hero__mini-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(99, 102, 241, 0.14);
  object-fit: cover;
  object-position: center 22%;
}

.hero__ide {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero__signal {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.94) 0%, rgba(2, 6, 23, 0.94) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  padding: 0.9rem 1rem;
}

.hero__signal-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
}

.hero__signal-list {
  display: grid;
  gap: 0.45rem;
}

.hero__signal-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.hero__signal-list strong {
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 700;
  text-align: right;
}

@media (min-width: 1024px) {
  .hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 40%);
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
    align-items: center;
  }

  .hero__visual {
    max-width: none;
    margin-inline: 0;
    margin-left: auto;
    gap: 0.9rem;
    width: 100%;
  }

  .hero__photo {
    width: 91%;
    transform: none;
    transform-origin: 50% 50%;
  }

  .hero__ide {
    width: min(100%, 430px);
    margin-top: 0;
    margin-left: auto;
    transform: none;
  }

  .hero__signal {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(300px, 72%);
    transform: none;
    margin-left: auto;
    z-index: 1;
  }

  .hero__photo img {
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .hero__photo,
  .hero__ide {
    transform: none;
  }
}

/* ---------- Вікно редактора (стиль macOS) + легка левітація ---------- */
.code-window {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(168deg, #1e1e2a 0%, #12121a 42%, #0a0a10 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 100px rgba(99, 102, 241, 0.14);
  overflow: hidden;
  animation: code-window-float 5.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .code-window {
    animation: none;
  }
}

@keyframes code-window-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.code-window__titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.35) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-window__traffic {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.code-window__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35) inset;
}

.code-window__dot--red {
  background: #ff5f57;
}

.code-window__dot--yellow {
  background: #febc2e;
}

.code-window__dot--green {
  background: #28c840;
}

.code-window__filename {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-window__body {
  padding: 0.85rem 1rem 1.1rem;
}

.code-window__pre {
  margin: 0;
  position: relative;
  min-height: 11.5rem;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.68rem, 1.35vw, 0.8rem);
  line-height: 1.55;
  tab-size: 2;
}

.code-window__code {
  display: block;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Підсвітка «синтаксису» (кольори задаються класами з JS) */
.code-window__code .tok-doctype {
  color: #f472b6;
}

.code-window__code .tok-tag {
  color: #818cf8;
}

.code-window__code .tok-attr {
  color: #c4b5fd;
}

.code-window__code .tok-plain {
  color: #94a3b8;
}

.code-window__code .tok-string {
  color: #34d399;
}

.code-window__code .tok-text {
  color: #f4f4f5;
}

.code-window__code .tok-comment {
  color: #64748b;
  font-style: italic;
}

.code-window__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  border-radius: 1px;
  animation: code-cursor-blink 1s step-end infinite;
}

@keyframes code-cursor-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-window__cursor {
    animation: none;
    opacity: 1;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #c7d2fe;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

.hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.hero__badge-row .hero__eyebrow {
  margin-bottom: 0;
}

.hero__live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.42rem 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-size: clamp(1.95rem, 5.8vw, 3.35rem);
  max-width: min(13.5ch, 100%);
  margin-bottom: 1rem;
  color: #f8fafc;
}

.hero__title-line {
  display: inline;
  background: linear-gradient(105deg, #e0e7ff 0%, #a5b4fc 35%, #818cf8 55%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hero__title-line {
    color: #a5b4fc;
    background: none;
  }
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(0.99rem, 2.1vw, 1.1rem);
  line-height: 1.58;
  letter-spacing: -0.004em;
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.hero__value-list {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 1.4rem;
}

.hero__value-item {
  position: relative;
  padding-left: 1.2rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero__value-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #22d3ee 0%, #6366f1 100%);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #c7d2fe;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s, transform 0.2s var(--ease-out);
}

.hero__text-link::after {
  content: "→";
  transition: transform 0.2s var(--ease-out);
}

.hero__text-link:hover,
.hero__text-link:focus-visible {
  color: #e0e7ff;
  transform: translateX(1px);
}

.hero__text-link:hover::after,
.hero__text-link:focus-visible::after {
  transform: translateX(2px);
}

.hero__proofbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero__proof-item {
  padding: 0.7rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  gap: 0.16rem;
}

.hero__proof-item strong {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.hero__proof-item span {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero__proofbar {
    grid-template-columns: 1fr;
  }
}

/* ---------- Про мене ---------- */
.about__grid {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

.about__portrait {
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.about__portrait-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.about__portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 3, 8, 0.45) 100%);
  opacity: 0.85;
}

.about__portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: min(520px, 70vh);
  object-fit: cover;
  object-position: center 15%;
}

.about__portrait-cap {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

.about__intro {
  padding: 1.5rem 1.45rem;
  border-radius: var(--radius-lg);
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.72;
}

.about__aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}

.about__accent-strip {
  flex: 1;
  min-height: 72px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(110deg, rgba(99, 102, 241, 0.22) 0%, rgba(15, 23, 42, 0.85) 42%, rgba(34, 211, 238, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about__accent-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.about__accent-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f8fafc;
  max-width: 42ch;
}

.about__accent-list {
  display: grid;
  gap: 0.4rem;
}

.about__accent-list li {
  position: relative;
  padding-left: 1rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.45;
}

.about__accent-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.about__accent-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e2e8f0;
  padding: 0.46rem 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.45);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), background 0.2s;
}

.about__accent-link::after {
  content: "→";
}

.about__accent-link:hover,
.about__accent-link:focus-visible {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(30, 41, 59, 0.56);
  transform: translateY(-1px);
}

.about__stats {
  display: grid;
  gap: 0.75rem;
}

.about__stat {
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.about__stat:hover {
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.about__stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.about__stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(240px, 32%) 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.25rem 1.5rem;
    align-items: stretch;
  }

  .about__portrait {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: stretch;
    margin: 0;
    max-width: none;
    width: auto;
  }

  .about__portrait-cap {
    text-align: left;
  }

  .about__intro {
    grid-column: 2;
    grid-row: 1;
  }

  .about__aside {
    grid-column: 2;
    grid-row: 2;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .about__stat {
    padding: 1.1rem 1rem;
  }

  .about__stat-value {
    font-size: 1.15rem;
  }

  .about__accent-strip {
    min-height: 88px;
    padding: 1rem;
  }
}

@media (min-width: 1100px) {
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__accent-strip {
    padding: 1.2rem 1.25rem;
  }

  .about__accent-title {
    max-width: 40ch;
  }
}

/* ---------- Послуги ---------- */
.services .section__header {
  max-width: 760px;
}

.services .section__lead {
  color: #aeb6c7;
}

.services__grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  align-items: stretch;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 12.6rem;
  padding: 1.45rem 1.25rem 1.3rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(11, 14, 24, 0.94) 52%, rgba(7, 10, 18, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(99, 102, 241, 0.07) inset;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.35s, background 0.3s, filter 0.3s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.28), transparent 48%),
    radial-gradient(circle at 0% 100%, rgba(34, 211, 238, 0.08), transparent 40%);
  opacity: 0.38;
  transition: opacity 0.4s var(--ease-out);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.95rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(34, 211, 238, 0.45));
  opacity: 0.28;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(99, 102, 241, 0.14) inset;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.14) 0%, rgba(255, 255, 255, 0.04) 52%, rgba(4, 6, 12, 0.94) 100%);
  filter: saturate(1.06);
}

.service-card:hover::before {
  opacity: 0.8;
}

.service-card:hover::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.service-card:nth-child(2)::before {
  background: radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.24), transparent 48%),
    radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.09), transparent 40%);
}

.service-card:nth-child(3)::before {
  background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.24), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.1), transparent 40%);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.12);
  font-family: var(--font-display);
  font-weight: 800;
  color: #a5b4fc;
  opacity: 1;
  margin-bottom: 0.95rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.service-card__text {
  margin-top: auto;
  color: #aeb6c7;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Пакети ---------- */
.offers__grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}

.offers__card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(11, 14, 24, 0.94) 58%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  padding: 1.2rem 1.1rem;
}

.offers__card--featured {
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(99, 102, 241, 0.15) inset;
}

.offers__name {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.offers__price {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.offers__desc {
  margin: 0 0 0.75rem;
  color: #aeb6c7;
  line-height: 1.45;
  font-size: 0.9rem;
}

.offers__list {
  display: grid;
  gap: 0.4rem;
}

.offers__list li {
  position: relative;
  padding-left: 0.95rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.4;
}

.offers__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #22d3ee, #6366f1);
}

@media (min-width: 900px) {
  .offers__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.offers__support {
  margin-top: 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.14) 0%, rgba(11, 14, 24, 0.94) 56%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  padding: 1.05rem 1rem;
}

.offers__support-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.offers__support-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.28;
  color: #eef2ff;
}

.offers__support-text {
  margin: 0 0 0.68rem;
  color: #c7cfdf;
  font-size: 0.88rem;
  line-height: 1.48;
}

.offers__support-list {
  display: grid;
  gap: 0.36rem;
}

.offers__support-list li {
  position: relative;
  padding-left: 0.95rem;
  color: #d7deed;
  font-size: 0.83rem;
  line-height: 1.4;
}

.offers__support-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

/* ---------- Портфоліо (сітка + hover) ---------- */
.portfolio > .container {
  width: 100%;
  max-width: none;
}

.portfolio .section__header {
  max-width: 760px;
  padding-inline: clamp(1rem, 3vw, 2.2rem);
}

.portfolio .section__title {
  margin-bottom: 0.7rem;
}

.portfolio .section__lead {
  max-width: 60ch;
  color: #a8b1c4;
}

.portfolio__tagline {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.15rem auto 1.9rem;
  padding: 0.62rem 1.3rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.96rem, 2vw, 1.1rem);
  color: #eef2ff;
  line-height: 1.45;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.34);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(34, 211, 238, 0.12) 100%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio__grid {
  display: flex;
  gap: clamp(0.95rem, 2vw, 1.3rem);
  align-items: stretch;
  cursor: grab;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scroll-padding-left: clamp(0.3rem, 1vw, 0.7rem);
  padding: 0.35rem clamp(0.2rem, 1vw, 0.9rem) 0.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portfolio__grid.is-manual {
  scroll-snap-type: x proximity;
}

.portfolio__grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.portfolio__grid.is-dragging .portfolio-card,
.portfolio__grid.is-dragging .portfolio-card * {
  user-select: none;
}

.portfolio__grid::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .portfolio__grid {
    padding-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .portfolio__grid {
    padding-bottom: 0.85rem;
  }
}

.portfolio-card {
  position: relative;
  flex: 0 0 clamp(320px, 30vw, 410px);
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(11, 14, 24, 0.96) 36%, rgba(8, 10, 18, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(99, 102, 241, 0.08) inset;
  transition: transform 0.38s var(--ease-out), box-shadow 0.38s, border-color 0.3s, filter 0.3s;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 10%, rgba(129, 140, 248, 0.16), transparent 44%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 1;
}

.portfolio-card:has(.portfolio-card__link:hover),
.portfolio-card:has(.portfolio-card__link:focus-visible) {
  transform: translateY(-8px);
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(99, 102, 241, 0.16) inset;
  filter: saturate(1.05);
}

.portfolio-card:has(.portfolio-card__link:hover)::before,
.portfolio-card:has(.portfolio-card__link:focus-visible)::before {
  opacity: 1;
}

.portfolio-card__link {
  display: block;
  position: relative;
  color: inherit;
  height: 100%;
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background-size: 200% 200%;
  transition: transform 0.6s var(--ease-out), filter 0.4s var(--ease-out);
  isolation: isolate;
}

/* Фото кейсу: покладіть файли в images/cases/ (див. README у цій папці) */
.portfolio-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  filter: contrast(1.02) saturate(1.03);
  transition: transform 0.62s var(--ease-out), filter 0.4s var(--ease-out);
}

.portfolio-card__img--missing {
  display: none;
}

/* Легкий віньєт поверх фото — бейдж і градієнт-запас читаються краще */
.portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 3, 8, 0.2) 0%, transparent 40%, rgba(3, 3, 8, 0.42) 100%);
}

.portfolio-card__media--1 {
  background-image: linear-gradient(135deg, #1e1b4b 0%, var(--accent) 45%, #312e81 100%);
}

.portfolio-card__media--2 {
  background-image: linear-gradient(135deg, #064e3b 0%, #10b981 40%, #022c22 100%);
}

.portfolio-card__media--3 {
  background-image: linear-gradient(135deg, #451a03 0%, #f97316 42%, #1c1917 100%);
}

.portfolio-card__media--4 {
  background-image: linear-gradient(135deg, #0c4a6e 0%, #38bdf8 38%, #082f49 100%);
}

.portfolio-card__media--5 {
  background-image: linear-gradient(135deg, #365314 0%, #84cc16 36%, #1a2e05 100%);
}

.portfolio-card__media--6 {
  background-image: linear-gradient(135deg, #164e63 0%, #22d3ee 40%, #0c1a1f 100%);
}

.portfolio-card__media--7 {
  background-image: linear-gradient(135deg, #312e81 0%, #a855f7 42%, #1e1b4b 100%);
}

.portfolio-card--featured {
  flex-basis: clamp(360px, 36vw, 470px);
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.12), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  background: rgba(8, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.portfolio-card__body {
  padding: 1.1rem 1rem calc(1.8rem + var(--space-sm));
  position: relative;
}

.portfolio-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  margin-bottom: 0.38rem;
  letter-spacing: -0.02em;
  padding-right: 0.25rem;
}

.portfolio-card__link::after {
  content: "↗";
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  opacity: 0.65;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  pointer-events: none;
}

.portfolio-card__link:hover::after,
.portfolio-card__link:focus-visible::after {
  color: #fff;
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.2);
  transform: translate(2px, -2px);
  opacity: 1;
}

.portfolio-card__excerpt {
  color: #aeb6c7;
  font-size: 0.9rem;
  line-height: 1.52;
}

/* Overlay з описом при hover/focus */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.92), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.portfolio-card__overlay-text {
  color: #e4e4e7;
  font-size: 0.88rem;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease-out);
  line-height: 1.45;
}

.portfolio-card__link:hover .portfolio-card__media,
.portfolio-card__link:focus-visible .portfolio-card__media {
  transform: scale(1.045);
}

.portfolio-card__link:hover .portfolio-card__img,
.portfolio-card__link:focus-visible .portfolio-card__img {
  transform: scale(1.075);
  filter: contrast(1.04) saturate(1.08);
}

.portfolio-card__link:hover .portfolio-card__overlay,
.portfolio-card__link:focus-visible .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__link:hover .portfolio-card__overlay-text,
.portfolio-card__link:focus-visible .portfolio-card__overlay-text {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .portfolio__grid {
    gap: 0.85rem;
    scroll-padding-left: 0.2rem;
    padding: 0.3rem 0 0.55rem;
  }

  .portfolio-card {
    flex-basis: 86vw;
  }

  .portfolio-card--featured {
    flex-basis: 88vw;
  }

  .portfolio-card__body {
    padding: 1rem 0.9rem calc(1.6rem + var(--space-sm));
  }
}

/* ---------- Результати ---------- */
.results__grid {
  display: grid;
  gap: 0.85rem;
}

.results__item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12) 0%, rgba(11, 14, 24, 0.94) 58%);
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.results__value {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: #eef2ff;
  letter-spacing: -0.02em;
}

.results__label {
  margin: 0;
  color: #aeb6c7;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .results__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Таймлайн процесу ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.58rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 3px;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.85) 0%, rgba(99, 102, 241, 0.45) 38%, rgba(34, 211, 238, 0.65) 100%);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}

.timeline__item {
  position: relative;
  padding-left: 0.55rem;
}

.timeline__dot {
  position: absolute;
  left: -1.08rem;
  top: 1.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c4b5fd, #6366f1 60%, #22d3ee 100%);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 22px rgba(99, 102, 241, 0.45);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s;
}

.timeline__content {
  position: relative;
  overflow: hidden;
  padding: 1.45rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(11, 14, 24, 0.95) 58%, rgba(6, 8, 16, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(99, 102, 241, 0.07) inset;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out), background 0.25s;
}

.timeline__content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.95), rgba(34, 211, 238, 0.65));
  opacity: 0.75;
}

.timeline__content::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -92px;
  top: -92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.24), transparent 68%);
  opacity: 0.65;
  pointer-events: none;
}

.timeline__content:hover {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(99, 102, 241, 0.14) inset;
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12) 0%, rgba(11, 14, 24, 0.95) 58%, rgba(6, 8, 16, 0.98) 100%);
}

.timeline__item:hover .timeline__dot {
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.2), 0 0 26px rgba(99, 102, 241, 0.55);
}

.timeline__step {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c7d2fe;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.14);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 2vw, 1.18rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.timeline__text {
  color: #aeb6c7;
  font-size: 0.92rem;
  line-height: 1.52;
  max-width: 68ch;
}

@media (min-width: 768px) {
  .timeline {
    padding-left: 2.1rem;
  }

  .timeline__dot {
    left: -1.45rem;
  }
}

@media (min-width: 1100px) {
  .timeline__item:nth-child(even) .timeline__content {
    margin-left: 0.85rem;
  }
}

/* ---------- Відгуки ---------- */
.testimonials__lead {
  max-width: 66ch;
}

.testimonials__note {
  margin: 0 auto 1rem;
  max-width: 72ch;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.24);
  background: rgba(99, 102, 241, 0.09);
  color: #c7d2fe;
  font-size: 0.8rem;
  line-height: 1.42;
  text-align: center;
}

.testimonials__reviews {
  display: grid;
  gap: 0.9rem;
}

.review-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.05) 0%, rgba(11, 14, 24, 0.94) 60%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  padding: 0.95rem 0.92rem 1rem;
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.review-card__person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.review-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.28), rgba(34, 211, 238, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.review-card__avatar--has-image {
  color: transparent;
}

.review-card__avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__meta {
  min-width: 0;
}

.review-card__name {
  margin: 0;
  color: #eef2ff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}

.review-card__role {
  margin: 0.12rem 0 0;
  color: #9aa4ba;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card__date {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.58rem;
}

.review-card__stars {
  color: #fbbf24;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.review-card__rating-label {
  display: none;
}

.review-card__text {
  margin: 0;
  color: #d3daea;
  font-size: 0.87rem;
  line-height: 1.52;
}

.review-card__proof {
  margin: 0.68rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.45);
}

.review-card__proof-img {
  display: block;
  width: 100%;
  height: auto;
}

.testimonials__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.testimonials__more {
  min-width: min(320px, 100%);
}

.testimonials__more.is-closed,
.testimonials__more:disabled {
  opacity: 0.72;
  cursor: pointer;
  border-color: rgba(148, 163, 184, 0.28);
  color: #a8b3c7;
  background: rgba(148, 163, 184, 0.08);
  transform: none;
}

@media (min-width: 900px) {
  .testimonials__reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .testimonials__reviews {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .review-card {
    padding: 1rem 0.95rem 1.05rem;
  }

  .review-card__text {
    font-size: 0.84rem;
    line-height: 1.48;
  }
}

.review-card__author {
  margin: 0;
  color: #93a0b8;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ---------- FAQ акордеон ---------- */
.accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, var(--bg-elevated) 100%);
  box-shadow: var(--shadow-card);
}

.accordion__item + .accordion__item {
  border-top: 1px solid var(--border);
}

.accordion__trigger {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.22s, color 0.22s;
}

.accordion__trigger:hover {
  background: rgba(99, 102, 241, 0.1);
}

.accordion__trigger[aria-expanded="true"] {
  background: rgba(99, 102, 241, 0.14);
  color: #f1f5f9;
}

.accordion__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-out);
}

.accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion__panel {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion__panel[hidden] {
  display: none;
}

/* ---------- Контакти / форма ---------- */
.contact {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.contact__layout {
  display: grid;
  gap: var(--space-xl);
}

.contact__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.contact__lead {
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  max-width: 42ch;
}

.contact__bullets {
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact__bullets li {
  position: relative;
  padding-left: 1.35rem;
}

.contact__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.contact-form {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, var(--bg-card) 50%);
  box-shadow: var(--shadow-card);
}

.form__row {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e4e4e7;
}

.form__input {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 3, 8, 0.55);
  color: var(--text);
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.form__input::placeholder {
  color: #64748b;
}

.form__input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  background: rgba(8, 8, 16, 0.75);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.25em;
}

@media (min-width: 900px) {
  .contact__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-3xl);
  }

  .contact-form {
    padding: calc(var(--space-2xl) + var(--space-xs)) var(--space-xl);
  }
}

/* ---------- Футер ---------- */
.footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.35rem, 2.8vw, 2rem) 0 1rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(99, 102, 241, 0.13), transparent 55%),
    linear-gradient(180deg, rgba(7, 9, 18, 0.94) 0%, rgba(3, 4, 10, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.footer::before {
  display: none;
}

.footer__container {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(1rem, 2.2vw, 1.35rem) clamp(0.95rem, 2.2vw, 1.5rem) 0.85rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(8, 10, 18, 0.9) 55%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__col {
  min-width: 0;
}

.footer__col--menu,
.footer__col--contacts {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: clamp(0.8rem, 1.8vw, 1.15rem);
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__brand-desc {
  margin: 0;
  max-width: 30ch;
  font-size: 0.8rem;
  line-height: 1.48;
  color: #aab2c3;
}

.footer__title {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dbe5ff;
}

.footer__menu-link {
  display: block;
  color: #a9b3c8;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.2rem;
  transition: color 0.2s, transform 0.2s var(--ease-out);
}

.footer__menu-link:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer__contact-link {
  display: block;
  color: #a9b3c8;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 0.18rem;
  transition: color 0.2s;
}

.footer__contact-link:hover {
  color: #e2e8f0;
}

.footer__social {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.26) 0%, rgba(34, 211, 238, 0.18) 100%);
  color: #f8fafc;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.footer__social-btn:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.34) 0%, rgba(34, 211, 238, 0.26) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.footer__bottom {
  padding-top: 0.68rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.footer__copy,
.footer__note {
  margin: 0;
  font-size: 0.68rem;
  color: #97a0b3;
}

/* ---------- Мобільний CTA ---------- */
.quick-cta {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 1100;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #22d3ee 100%);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out);
}

.quick-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page.menu-open .quick-cta {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 901px) {
  .quick-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .page {
    padding-bottom: calc(4.3rem + env(safe-area-inset-bottom, 0px));
  }

  .quick-cta {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 680px) {
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__proof-item {
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  body.page::before {
    opacity: 0.45;
    background-size: 72px 72px;
  }

  .page.menu-open .hero,
  .page.menu-open .main,
  .page.menu-open .footer {
    filter: blur(6px);
    transform: scale(0.998);
  }

  .section {
    padding: clamp(2rem, 8vw, 2.5rem) 0;
  }

  .section__header {
    margin-bottom: 1.35rem;
  }

  .section__lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--nav-h) + 1.8rem);
    padding-bottom: 1.2rem;
  }

  .hero__layout {
    min-height: calc(100dvh - var(--nav-h) - 1.8rem);
    gap: 0.95rem;
    align-content: start;
  }

  .hero__texture {
    opacity: 0.16;
  }

  .hero__content {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100dvh - var(--nav-h) - 3rem);
  }

  .hero__actions {
    order: 4;
    margin-top: auto;
    margin-bottom: 0;
  }

  .hero__mini-photo {
    display: block;
    order: 1;
    width: min(260px, 74%);
    margin: 0.18rem auto 0.52rem;
  }

  .hero__value-list {
    order: 2;
    margin-bottom: 0.58rem;
  }

  .hero__proofbar {
    order: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8.2vw, 2.18rem);
    margin-bottom: 0.75rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.52;
    margin-bottom: 0.72rem;
  }

  .hero__value-list {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .hero__value-item {
    font-size: 0.87rem;
  }

  .hero__proofbar {
    gap: 0.5rem;
    margin-bottom: 0;
  }

  .hero__proof-item strong {
    font-size: 0.74rem;
    text-align: center;
  }

  .hero__proof-item span {
    font-size: 0.63rem;
    text-align: center;
  }

  .hero__visual {
    display: none;
  }

  .code-window {
    animation: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  }

  .code-window__pre {
    min-height: 8.8rem;
  }

  .service-card,
  .offers__card,
  .results__item,
  .review-card,
  .offers__support {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  }

  .services__grid {
    gap: 0.72rem;
  }

  .service-card {
    min-height: 0;
    border-radius: 15px;
    border-color: rgba(129, 140, 248, 0.24);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2) 0%, rgba(12, 16, 30, 0.96) 52%, rgba(8, 11, 22, 0.98) 100%);
    padding: 0.88rem 0.9rem 0.82rem 0.95rem;
  }

  .service-card::before {
    opacity: 0.68;
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.38), transparent 52%),
      radial-gradient(circle at 0% 100%, rgba(34, 211, 238, 0.15), transparent 44%);
  }

  .service-card::after {
    left: 1rem;
    right: 1rem;
    bottom: 0.72rem;
    height: 3px;
    opacity: 0.55;
    transform: scaleX(1);
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.58), rgba(34, 211, 238, 0.58));
  }

  .service-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.78rem;
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(15, 23, 42, 0.58);
    color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  }

  .service-card__title {
    margin-bottom: 0.42rem;
    font-size: 1rem;
    line-height: 1.24;
  }

  .service-card__text {
    margin-top: 0.34rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #c1cbde;
  }

  .results__grid {
    gap: 0.7rem;
  }

  .results__item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border-color: rgba(129, 140, 248, 0.26);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2) 0%, rgba(12, 16, 30, 0.96) 52%, rgba(8, 11, 22, 0.98) 100%);
    padding: 0.95rem 0.92rem 0.9rem 0.98rem;
  }

  .results__item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.95), rgba(34, 211, 238, 0.75));
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
  }

  .results__item::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -40px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.34) 0%, rgba(99, 102, 241, 0) 72%);
    pointer-events: none;
  }

  .results__value {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.42rem;
    padding: 0.15rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: rgba(7, 10, 20, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    line-height: 1.1;
  }

  .results__label {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #c1cbde;
    max-width: 34ch;
  }

  .portfolio__grid {
    scroll-padding-left: 0.65rem;
  }

  .portfolio-card {
    flex-basis: min(86vw, 360px);
  }

  .portfolio-card--featured {
    flex-basis: min(88vw, 380px);
  }

  .portfolio-card__overlay {
    display: none;
  }

  .timeline {
    gap: 0.8rem;
    padding-left: 1.35rem;
  }

  .timeline__dot {
    width: 12px;
    height: 12px;
  }

  .timeline__content {
    padding: 1.05rem 1rem;
  }

  .accordion__trigger {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .accordion__panel {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  .testimonials__note {
    margin-bottom: 0.75rem;
    font-size: 0.74rem;
    text-align: left;
  }

  .review-card {
    padding: 0.82rem 0.75rem 0.86rem;
  }

  .review-card__avatar {
    width: 34px;
    height: 34px;
    font-size: 0.66rem;
  }

  .review-card__name {
    font-size: 0.81rem;
  }

  .review-card__role,
  .review-card__date,
  .review-card__rating-label {
    font-size: 0.68rem;
  }

  .review-card__stars {
    font-size: 0.78rem;
  }

  .review-card__text {
    font-size: 0.81rem;
    line-height: 1.44;
  }

  .testimonials__actions {
    margin-top: 0.8rem;
  }

  .testimonials__more {
    width: 100%;
    min-width: 0;
  }

  .contact {
    padding-bottom: 2.6rem;
  }

  .contact__lead {
    margin: 0.6rem 0 0.95rem;
  }

  .contact-form {
    padding: 1.1rem 0.95rem;
  }

  .offers__support {
    margin-top: 0.8rem;
    padding: 0.9rem 0.82rem;
  }

  .offers__support-text {
    font-size: 0.84rem;
  }

  .offers__grid {
    gap: 0.78rem;
  }

  .offers__card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border-color: rgba(129, 140, 248, 0.26);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2) 0%, rgba(12, 16, 30, 0.96) 52%, rgba(8, 11, 22, 0.98) 100%);
    padding: 0.98rem 0.92rem 0.9rem 1rem;
  }

  .offers__card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.92), rgba(34, 211, 238, 0.7));
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.42);
  }

  .offers__card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -40px;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 72%);
    pointer-events: none;
  }

  .offers__card--featured {
    order: -1;
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(99, 102, 241, 0.2) inset;
  }

  .offers__name {
    margin-bottom: 0.28rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .offers__price {
    margin-bottom: 0.4rem;
    font-size: 1.34rem;
    line-height: 1.14;
  }

  .offers__desc {
    margin-bottom: 0.62rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #c3ccdf;
  }

  .offers__list {
    gap: 0.32rem;
  }

  .offers__list li {
    font-size: 0.76rem;
    line-height: 1.36;
    color: #d4ddee;
  }

  .about__portrait {
    order: 1;
  }

  .about__intro {
    order: 2;
  }

  .about__aside {
    order: 3;
  }

  .contact-form {
    order: 2;
  }

  .contact__intro {
    order: 1;
  }

  .form__input {
    min-height: 46px;
    font-size: 16px;
  }

  .hero__bg {
    inset: -16% -8% auto -8%;
    height: 68%;
    background: radial-gradient(ellipse 72% 50% at 50% 0%, rgba(99, 102, 241, 0.24), transparent 60%),
      radial-gradient(circle at 92% 18%, rgba(34, 211, 238, 0.08), transparent 46%);
  }

  .hero__ambient {
    background: radial-gradient(circle at 8% 76%, rgba(99, 102, 241, 0.08), transparent 30%),
      radial-gradient(circle at 94% 72%, rgba(168, 85, 247, 0.07), transparent 28%),
      radial-gradient(circle at 52% 100%, rgba(34, 211, 238, 0.04), transparent 40%);
    opacity: 0.75;
  }

  .footer {
    background: linear-gradient(180deg, rgba(7, 9, 18, 0.96) 0%, rgba(3, 4, 10, 0.98) 100%);
  }

  .footer::before,
  .footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
    z-index: 0;
  }

  .footer::before {
    width: 170px;
    height: 170px;
    right: -90px;
    top: 52%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 70%);
  }

  .footer::after {
    width: 150px;
    height: 150px;
    left: -86px;
    top: 46%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, rgba(34, 211, 238, 0) 68%);
  }

  .footer__container {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 700px) {
  .hero__ide {
    display: none;
  }

  .hero__photo-cap {
    display: none;
  }

  .hero__text-link {
    display: none;
  }

  .quick-cta {
    left: 0.8rem;
    right: 0.8rem;
    width: auto;
    justify-content: center;
    min-height: 46px;
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .footer__col--menu,
  .footer__col--contacts {
    border-left: 0;
    padding-left: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.52rem;
  }
}

@media (max-width: 700px) {
  .footer {
    margin-top: 1.5rem;
    padding: 1rem 0 0.75rem;
  }

  .footer__container {
    border-radius: 18px;
    padding: 0.85rem 0.78rem 0.65rem;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.8rem;
    padding-bottom: 0.72rem;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }

  .footer__brand-link {
    margin-bottom: 0.4rem;
  }

  .footer__brand-name {
    font-size: 1.02rem;
  }

  .footer__brand-desc {
    max-width: none;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .footer__title {
    margin-bottom: 0.32rem;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .footer__col--menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.45rem;
    row-gap: 0.06rem;
  }

  .footer__col--menu .footer__title {
    grid-column: 1 / -1;
  }

  .footer__menu-link {
    margin-bottom: 0;
    font-size: 0.72rem;
    line-height: 1.34;
  }

  .footer__contact-link {
    margin-bottom: 0.06rem;
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .footer__social {
    margin-top: 0.4rem;
  }

  .footer__social-btn {
    height: 28px;
    padding: 0 0.7rem;
    font-size: 0.58rem;
  }

  .footer__copy,
  .footer__note {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .footer__note {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-h: 82px;
  }

  .section {
    padding: 1.85rem 0;
  }

  .section__eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    padding: 0.3rem 0.64rem;
  }

  .section__title {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
    margin-bottom: 0.62rem;
  }

  .section__lead {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.2rem);
    padding-bottom: 2rem;
  }

  .hero__badge-row {
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  .hero__eyebrow,
  .hero__live-pill {
    font-size: 0.64rem;
  }

  .hero__title {
    font-size: clamp(1.58rem, 8.8vw, 1.92rem);
    line-height: 1.1;
    margin-bottom: 0.64rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    line-height: 1.46;
    margin-bottom: 0.85rem;
  }

  .hero__actions {
    margin-top: clamp(1.6rem, 10vh, 3.2rem);
    gap: 0.56rem;
  }

  .hero__mini-photo {
    width: min(234px, 72%);
    margin-bottom: 0.45rem;
  }

  .hero__value-item {
    font-size: 0.83rem;
    line-height: 1.38;
  }

  .hero__proof-item {
    border-radius: 10px;
    padding: 0.66rem 0.72rem;
  }

  .service-card {
    min-height: 0;
    padding: 0.78rem 0.76rem 0.72rem 0.82rem;
  }

  .service-card__icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.62rem;
    font-size: 0.72rem;
  }

  .service-card__title {
    font-size: 0.92rem;
    margin-bottom: 0.34rem;
  }

  .service-card__text {
    margin-top: 0.28rem;
    font-size: 0.74rem;
    line-height: 1.32;
  }

  .offers__price {
    font-size: 1.24rem;
  }

  .offers__card {
    padding: 0.9rem 0.82rem 0.84rem 0.9rem;
  }

  .offers__name {
    font-size: 0.68rem;
  }

  .offers__desc {
    font-size: 0.76rem;
    line-height: 1.36;
  }

  .offers__list li {
    font-size: 0.73rem;
  }

  .results__value {
    font-size: 1.35rem;
  }

  .results__item {
    padding: 0.88rem 0.84rem 0.84rem 0.92rem;
  }

  .results__value {
    margin-bottom: 0.36rem;
    padding: 0.12rem 0.52rem;
  }

  .results__label {
    font-size: 0.76rem;
    line-height: 1.36;
  }

  .portfolio__tagline {
    width: calc(100% - 0.9rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.2rem;
    padding: 0.52rem 0.8rem;
    box-sizing: border-box;
    font-size: 0.82rem;
    line-height: 1.38;
    text-align: left;
  }

  .portfolio-card {
    flex-basis: 89vw;
  }

  .portfolio-card--featured {
    flex-basis: 91vw;
  }

  .portfolio-card__title {
    font-size: 1rem;
  }

  .portfolio-card__excerpt {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .timeline__content {
    padding: 0.92rem 0.85rem;
  }

  .timeline__title {
    font-size: 0.96rem;
  }

  .timeline__text {
    font-size: 0.84rem;
  }

  .accordion__trigger {
    padding: 0.86rem 0.9rem;
    font-size: 0.9rem;
  }

  .accordion__panel {
    padding: 0 0.9rem 0.9rem;
    font-size: 0.86rem;
  }

  .review-card {
    border-radius: 14px;
  }

  .testimonials__reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .review-card__head {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .review-card__role {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .review-card__date {
    padding-top: 0.08rem;
  }

  .review-card__text {
    font-size: 0.75rem;
    line-height: 1.36;
  }

  .testimonials__more {
    min-height: 44px;
    font-size: 0.84rem;
  }

  .contact__bullets {
    font-size: 0.88rem;
    gap: 0.42rem;
  }

  .contact-form {
    padding: 0.96rem 0.82rem;
  }

  .form__label {
    font-size: 0.8rem;
  }

  .form__input {
    min-height: 44px;
  }

  .quick-cta {
    min-height: 44px;
    font-size: 0.79rem;
    left: 0.7rem;
    right: 0.7rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 1.05rem, 100%);
  }

  .nav__logo--brand {
    min-height: 42px;
    padding: 0.35rem 0.56rem 0.35rem 0.42rem;
  }

  .nav__brand-text strong {
    font-size: 0.8rem;
  }

  .nav__toggle {
    min-height: 42px;
    padding: 0.36rem 0.72rem;
  }

  .hero__title {
    font-size: clamp(1.48rem, 9.3vw, 1.74rem);
  }

  .hero__actions {
    gap: 0.52rem;
  }

  .review-card__avatar {
    width: 32px;
    height: 32px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .footer__col--menu {
    grid-template-columns: 1fr;
    row-gap: 0.04rem;
  }
}

/* ---------- Анімація появи (Intersection Observer) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), filter 0.75s var(--ease-out);
  will-change: opacity, transform, filter;
}

@media (max-width: 639px) {
  .reveal {
    filter: blur(2px);
  }
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .service-card,
  .portfolio-card__media,
  .portfolio-card__overlay-text {
    transition: none !important;
  }

  .portfolio-card:has(.portfolio-card__link:hover) {
    transform: none;
  }
}
