/* ==========================================================================
   Навчальна платформа — лендінг

   Композиція, ефекти й типографічна логіка перенесені з темплейту
   TemplateMo 622 Clearwave (templatemo.com/tm-622-clearwave).

   Палітра платформи: lilac-полотно #ece6fb, індиго-акцент #4f46e5, чорнило #17132a.
   Оформлення — glassmorphism (скляні картки на градієнтному фоні) з міксом
   світлих і темних секцій. Шрифт — Manrope (як на платформі).
   ========================================================================== */

/* ── TOKENS (палітра платформи: індиго + lilac, glassmorphism) ── */
:root {
  /* Полотно (lilac) */
  --bg:            #ece6fb;
  --bg-alt:        #e2d9f8;
  --surface:       rgba(255, 255, 255, .50);
  --surface-2:     rgba(255, 255, 255, .62);

  /* Акцент (індиго) */
  --accent:        #4f46e5;
  --accent-mid:    #6366f1;
  --accent-light:  #a5b4fc;
  --accent-ghost:  rgba(79, 70, 229, .07);
  --accent-border: rgba(79, 70, 229, .22);
  --gold:          #818cf8;
  --gold-light:    #c7d2fe;

  /* Текст */
  --text-1:        #17132a;
  --text-2:        rgba(23, 19, 42, .70);
  --text-3:        rgba(23, 19, 42, .50);
  --border:        rgba(40, 30, 90, .12);

  /* На темних поверхнях */
  --on-dark:       rgba(255, 255, 255, .72);
  --on-dark-line:  rgba(255, 255, 255, .18);

  --shadow-sm:     0 2px 12px rgba(70, 50, 150, .08);
  --shadow-md:     0 10px 34px rgba(70, 50, 150, .13);
  --shadow-lg:     0 26px 64px rgba(70, 50, 150, .18);

  --silk:          cubic-bezier(0.16, 1, 0.3, 1);
  --silk-dur:      0.8s;
  --radius:        16px;
  --radius-lg:     24px;

  --font-sans:  "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--surface-2); }

/* ── ЛЕГКА ЗЕРНИСТА ТЕКСТУРА ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 2000;
  background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: 100px; font-weight: 600;
  transition: top .2s var(--silk);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── UTILITY ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* Заголовки — serif капсом. Акцентні слова тим самим шрифтом курсивом:
   різницю тримає накреслення, а не колір */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.18;
  color: var(--accent);
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 500; }
.section-title strong { font-weight: 800; }
.section-title em strong, .section-title strong em { font-weight: 800; font-style: italic; }

.section-sub {
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--text-2); max-width: 520px; margin-top: 16px;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--silk), transform .7s var(--silk); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

/* ══════════════════════════════════════════
   1. NAV
   ══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: padding var(--silk-dur) var(--silk), background var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(242, 244, 239, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
}
@media (max-width: 600px) { .nav-inner { padding: 0 20px; } }

/* Трекінг майже нейтральний: від'ємний стискав довгий кириличний рядок
   з двох слів, а коротке однослівне ім'я від цього тільки програє */
/* Без gap: у flex-контейнері «Vlas» і <span>nium</span> — окремі елементи,
   і проміжок розривав слово навпіл. Відступ потрібен лише іконці */
.nav-logo {
  display: inline-flex; align-items: center;
  font-size: 1.1875rem; font-weight: 800; letter-spacing: -.005em;
  color: var(--text-1);
}
.nav-logo svg { color: #4f46e5; flex-shrink: 0; margin-right: 9px; }
.nav-logo span { color: #4f46e5; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  padding: 7px 16px; border-radius: 100px;
  box-shadow: inset 0 0 0 0 var(--accent-border);
  transition: color .4s var(--silk), background .4s var(--silk), box-shadow .4s var(--silk);
}
.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-ghost);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn-primary {
  font-size: .875rem; font-weight: 600; color: #fff;
  background: var(--accent); padding: 11px 22px; border-radius: 100px;
  transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
  box-shadow: 0 4px 16px rgba(79, 70, 229, .22);
}
.btn-primary:hover { background: var(--accent-mid); transform: scale(1.02); box-shadow: 0 6px 24px rgba(79, 70, 229, .3); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; padding: 12px 8px;
  align-items: stretch; justify-content: center;
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--text-1);
  border-radius: 2px; transition: all .4s var(--silk);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--silk);
  overflow-y: auto;
  padding: 100px 32px;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--text-1); padding: 16px 0; width: 100%; text-align: center;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--silk), transform .5s var(--silk), color .3s;
}
.mobile-menu a:first-child { border-top: 1px solid var(--border); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a:nth-child(1) { transition-delay: .05s; }
.mobile-menu a:nth-child(2) { transition-delay: .10s; }
.mobile-menu a:nth-child(3) { transition-delay: .15s; }
.mobile-menu a:nth-child(4) { transition-delay: .20s; }
.mobile-menu a:nth-child(5) { transition-delay: .25s; }
.mobile-menu .mobile-cta {
  margin-top: 28px;
  font-size: .9375rem; font-weight: 600;
  background: var(--accent); color: #fff;
  padding: 15px 40px; border-radius: 100px;
  border: none; width: auto;
  transition: opacity .5s var(--silk) .3s, transform .5s var(--silk) .3s, background .3s;
}
.mobile-menu.open .mobile-cta { opacity: 1; transform: none; }
.mobile-menu .mobile-cta:hover { background: var(--accent-mid); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }   /* лишається тільки бургер */
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════════
   2. HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  /* Нижній відступ тримає повітря під кнопкою: наступна секція починається
     впритул, без власного margin, і без цього торкалася б її */
  padding: 140px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -10%; right: -5%;
  width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, .07) 0%, rgba(79, 70, 229, .02) 50%, transparent 75%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -15%; left: -8%;
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, .07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1300px;              /* ширше за решту секцій: скріну потрібне місце */
  display: grid; grid-template-columns: 1fr 1.3fr;
  align-items: center; gap: 56px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.16;
  color: var(--accent);
  margin-bottom: 24px; text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 500; }
.hero-title strong { font-weight: 800; }
.hero-sub {
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--text-2); max-width: 480px; margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-primary-lg {
  font-size: .9375rem; font-weight: 600; color: #fff;
  background: var(--accent); padding: 15px 32px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
  box-shadow: 0 6px 24px rgba(79, 70, 229, .26);
}
.btn-primary-lg:hover { background: var(--accent-mid); transform: scale(1.02); box-shadow: 0 8px 32px rgba(79, 70, 229, .34); }
.btn-arrow { transition: transform .4s var(--silk); }
.btn-primary-lg:hover .btn-arrow { transform: translateX(4px); }



.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

/* Плаваючі картки поверх скріна: беруть реальні цифри з інтерфейсу */
.hero-visual { position: relative; }
.hero-float-badge {
  position: absolute; bottom: -18px; left: -22px; z-index: 2;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  animation: floatBadge 4s ease-in-out infinite;
}
.hero-float-badge svg { color: var(--accent); flex-shrink: 0; }
.float-badge-val { font-size: 1rem; font-weight: 700; line-height: 1.1; }
/* Пілюля висить на темному тлі героя, де --text-3 (біле 55%) для кегля
   12px замало. --text-2 (біле 82%) читається, а скло лишається склом */
.float-badge-label {
  font-size: .75rem; color: var(--text-2);
  margin-top: 2px; white-space: nowrap;
}

/* Текст тут суцільно білий, а не --surface-2: цей токен напівпрозорий
   (біле 62%), і поверх індиго давав контраст 3.4 замість потрібних 4.5.
   Стовпчик — щоб пілюля читалась так само, як сусідня */
.hero-float-badge-2 {
  position: absolute; top: 22px; right: -18px; z-index: 2;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); padding: 11px 16px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .3);
  display: flex; flex-direction: column;
  animation: floatBadge2 4s ease-in-out 2s infinite;
}
.hero-float-badge-2 .float-badge-val { font-size: .9375rem; }
.hero-float-badge-2 .float-badge-label { color: rgba(255, 255, 255, .88); }

@keyframes floatBadge  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floatBadge2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 620px) {
  .hero-float-badge  { left: -6px; bottom: -14px; padding: 10px 13px; }
  .hero-float-badge-2 { right: -4px; top: 14px; padding: 9px 13px; }
}

.hero-dashboard {
  width: 100%; max-width: 760px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--silk-dur) var(--silk);
}
.hero-dashboard:hover { transform: scale(1.01); }
/* Світла шапка навмисно: вона обрамляє темний скрін і тим його виділяє
   (контраст рамки до фото 15.2). Відтінок приглушений, з ледь помітним
   градієнтом, як у справжньої шапки вікна; --bg-alt тут не годився —
   надто насичений лілово, через що смуга перетягувала увагу на себе */
.dashboard-bar {
  background: linear-gradient(#f6f4fb, #ece8f6);
  padding: 11px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(40, 30, 90, .1);
}
/* Кнопки вікна кольорами macOS, діаметр як у справжніх. На світлій шапці
   вони дають контраст 1.5-2.7, тож край тримає тонка внутрішня обводка —
   той самий прийом, що й у macOS */
.db-dot {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}
.db-dot:nth-child(1) { background: #ff5f57; }
.db-dot:nth-child(2) { background: #febc2e; }
.db-dot:nth-child(3) { background: #28c840; }
.dashboard-shot { background: var(--surface-2); }
.dashboard-shot img { width: 100%; height: auto; }


/* ══════════════════════════════════════════
   3. НІШІ (нескінченна стрічка)
   ══════════════════════════════════════════ */
.niches-section {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
  overflow: hidden;
}
.niches-lead {
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--text-2);
  max-width: 680px;
  margin-top: 16px;
}

/* Стрічка з карток. Друга половина треку — копія першої, тож при
   досягненні середини скрол вертається на початок непомітно.

   Це саме скрол-контейнер, а не CSS-анімація: pan-x віддає браузеру
   лише горизонтальний жест, тож гортання стрічки більше не тягне
   сторінку вниз, а сама стрічка гортається пальцем і колесом. */
.ticker-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: clamp(32px, 4vw, 44px) 0;
}
.ticker-wrap::-webkit-scrollbar { display: none; }
.ticker-track {
  display: flex; align-items: stretch; gap: 20px;
  width: max-content;
  padding-inline: 32px;
}

.niche-card {
  flex-shrink: 0;
  width: 310px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 24px 26px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .4s var(--silk), transform .4s var(--silk);
}
.niche-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.niche-card h3 {
  font-size: 1.0625rem; font-weight: 700; line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--text-1);
}
.niche-card p {
  font-size: .875rem; line-height: 1.6;
  color: var(--text-2);
}

/* Заклик для тих, хто не знайшов себе у переліку */
.niches-note {
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-ghost);
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3.5vw, 36px);
  display: grid; gap: 8px;
}
.niches-note h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--accent);
}
.niches-note p { font-size: 1rem; line-height: 1.7; color: var(--text-2); max-width: 720px; }

@media (max-width: 600px) {
  .ticker-track { padding-inline: 20px; gap: 14px; }
  .niche-card { width: 264px; padding: 20px 20px 22px; }
}

/* ══════════════════════════════════════════
   4. БОЛІ
   ══════════════════════════════════════════ */
/* Секція починається одразу плашкою, без відступу зверху */
.pains-section { padding: 0 0 110px; background: var(--surface); border-bottom: 1px solid var(--border); }

/* Заголовок на суцільній червоній плашці на всю ширину екрана */
.pains-header {
  background: var(--accent);
  padding-block: clamp(36px, 4.5vw, 60px);
  margin-bottom: clamp(48px, 6vw, 76px);
}
.pains-header .section-title {
  color: var(--surface-2);
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 32px;
}
@media (max-width: 600px) { .pains-header .section-title { padding-inline: 20px; } }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-ghost); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 20px;
}
.pain-card h3 {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 700;
  font-size: 1.125rem; line-height: 1.35;
  margin-bottom: 10px;
}
.pain-card p { font-size: .9rem; line-height: 1.7; color: var(--text-2); }

@media (max-width: 900px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pain-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   4. 3D КАРУСЕЛЬ ЕКРАНІВ
   ══════════════════════════════════════════ */
.carousel-section { padding: 110px 0; overflow: hidden; }
.carousel-header { text-align: center; }
.carousel-header .section-sub { margin: 16px auto 0; text-align: center; }


/* Перемикачі «роль» і «пристрій»: комбінація без скрінів блокується */
/* Керування над сценою: перемикач вигляду і масштаб */
.carousel-tools {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
}
/* Зум винесено в окремий центрований рядок під тумблерами */
.carousel-zoom-row {
  display: flex; justify-content: center;
  margin-top: 14px;
}

.carousel-zoom {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.zoom-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background .35s var(--silk), color .35s var(--silk),
              border-color .35s var(--silk), opacity .3s;
}
.zoom-btn:hover:not(:disabled) {
  background: var(--accent); color: var(--surface-2); border-color: var(--accent);
}
.zoom-btn:disabled { opacity: .28; cursor: not-allowed; }

.zoom-pips { display: flex; align-items: center; gap: 5px; }
.zoom-pip {
  width: 7px; height: 7px; border-radius: 50%;
  padding: 0; background: var(--accent-border);
  transition: background .3s var(--silk), transform .3s var(--silk);
}
.zoom-pip.active { background: var(--accent); transform: scale(1.4); }

.carousel-switch {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.carousel-switch button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 8px 18px;
  border-radius: 100px;
  font-size: .8125rem; font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: background .4s var(--silk), color .4s var(--silk), opacity .3s;
}
.carousel-switch button svg { flex-shrink: 0; }
.carousel-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--surface-2);
}
.carousel-switch button:disabled { opacity: .3; cursor: not-allowed; }

.carousel-stage {
  position: relative;
  /* Горизонтальний жест лишається скрипту, вертикальний скрол і
     масштабування двома пальцями — браузеру */
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none; user-select: none;
  /* Крайні картки заходять за межу сцени — без цього вони тягнуть
     горизонтальний скрол усієї сторінки */
  overflow: hidden;
  /* Запасне значення: точну висоту скрипт рахує від ширини картки */
  height: clamp(240px, 30vw, 420px);
  perspective: clamp(1000px, 130vw, 2000px);
  perspective-origin: center center;
  display: flex; align-items: center; justify-content: center;
  margin-top: 48px;
}
.carousel-track {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  display: flex; align-items: center; justify-content: center;
}

.screen-card {
  position: absolute;
  transition: transform .6s var(--silk), opacity .6s var(--silk), width .5s var(--silk);
  border: 0; padding: 0; background: none;
  display: block;
}
/* Картинка не має ловити подій: інакше браузер починає власне
   перетягування зображення і жест каруселі обривається */
.screen-frame img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* display:block обов'язковий: це <span> усередині <button>, а на інлайнових
   елементах aspect-ratio не діє і скрін розгортається на натуральну висоту */
.screen-shell {
  display: block;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 0 0 1px var(--border), 0 24px 56px rgba(0, 0, 0, .14);
  transition: box-shadow .6s var(--silk);
}

/* Мобільні скріни живуть у корпусі телефона: без нього вертикальний
   знімок читається як обрізаний прямокутник, а не як екран пристрою */
.screen-shell--phone {
  background: linear-gradient(160deg, #e6e9e1, #d5d9d0);
  border-radius: 30px;
  padding: 7px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .09),
    0 24px 56px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .75);
}
.screen-shell--phone .screen-frame { border-radius: 24px; }

/* Центральна картка виступає вперед не лише масштабом, а й тінню */
.screen-card[data-pos="center"] .screen-shell {
  box-shadow: 0 0 0 1px var(--border), 0 40px 80px rgba(0, 0, 0, .2);
}
.screen-card[data-pos="center"] .screen-shell--phone {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .1),
    0 40px 80px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}
/* Рамка повторює пропорції самого скріна: розмір картки рахує скрипт
   з атрибутів width і height, вписуючи її в дозволений прямокутник.
   Так нічого не обрізається і не лишається порожніх полів */
.screen-frame {
  display: block;
  background: var(--surface-2);
  border-radius: 9px;
  overflow: hidden;
}
.screen-frame img { width: 100%; height: auto; }

.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 40px;
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background .4s var(--silk), border-color .4s var(--silk);
}
.carousel-btn:hover { background: var(--accent-ghost); border-color: var(--accent); }
.carousel-dots { display: flex; align-items: center; gap: 7px; }
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); padding: 0;
  transition: background .4s var(--silk), width .4s var(--silk);
}
.carousel-dot.active { background: var(--accent); width: 24px; border-radius: 100px; }


/* ══════════════════════════════════════════
   5. ХТО Я
   ══════════════════════════════════════════ */
.about-section { padding: 110px 0; background: var(--surface); border-block: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.about-text p { font-size: 1rem; line-height: 1.8; color: var(--text-2); }
.about-text p + p { margin-top: 18px; }
.about-text .lead-p { font-size: 1.125rem; color: var(--text-1); line-height: 1.7; }
.about-text em { font-style: italic; font-family: var(--font-serif); font-weight: 600; color: var(--accent); font-size: 1.1em; }

/* ══════════════════════════════════════════
   6. ПОРІВНЯННЯ
   ══════════════════════════════════════════ */
.compare-section { padding: 110px 0; }
.compare-header { text-align: center; margin-bottom: 56px; }
.compare-header .section-sub { margin: 16px auto 0; text-align: center; }

.compare-wrap {
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.compare { width: 100%; min-width: 660px; border-collapse: collapse; }
.compare th, .compare td { padding: 22px 26px; text-align: left; vertical-align: top; }
.compare thead th {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.compare thead th:nth-child(2) { color: var(--accent); }
.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid var(--border); }
.compare td { font-size: .9rem; color: var(--text-2); line-height: 1.7; }
.compare .row-label { font-weight: 700; color: var(--text-1); width: 20%; font-size: .9375rem; }
.compare .col-own { color: var(--text-1); }
.compare .col-saas { background: var(--accent-ghost); }
.compare .cell { display: flex; gap: 10px; align-items: flex-start; }
.compare .cell svg { flex-shrink: 0; margin-top: 3px; }
.col-own .cell svg { color: var(--accent); }
.col-saas .cell svg { color: var(--text-3); }

@media (max-width: 767px) {
  .compare-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
  .compare { min-width: 0; display: block; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 16px; }
  .compare tr {
    display: block; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm);
  }
  .compare th, .compare td { display: block; width: auto; padding: 0; }
  .compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 0; }
  .compare .row-label { width: auto; font-size: 1rem; margin-bottom: 16px; }
  .compare td + td { margin-top: 16px; }
  /* Підсвітка «готового варіанта» лишається і на мобільному,
     тільки як окрема плашка всередині картки, а не колонка */
  .compare .col-saas {
    background: var(--accent-ghost);
    border-radius: 10px;
    padding: 14px 16px;
  }
  .compare td::before {
    content: attr(data-col);
    display: block;
    font-size: .68rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 8px;
  }
  .compare .col-own::before { color: var(--accent); }
  .compare .col-saas::before { color: var(--text-3); }
}

.compare-note {
  margin: 32px auto 0; max-width: 640px; text-align: center;
  font-size: 1rem; line-height: 1.75; color: var(--text-2);
}

/* ══════════════════════════════════════════
   7. ПАКЕТИ
   ══════════════════════════════════════════ */
.pricing-section { padding: 110px 0; background: var(--surface); border-block: 1px solid var(--border); }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-header .section-sub { margin: 16px auto 0; text-align: center; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--surface-2); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
  position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.pricing-card:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 18px 50px rgba(79, 70, 229, .13);
}
.pricing-badge {
  position: absolute; top: -13px; left: 32px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--surface-2);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.pricing-name { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.pricing-goal { font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; color: var(--accent); margin-bottom: 20px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pricing-amount { font-size: 2.75rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.pricing-period { font-size: .875rem; color: var(--text-3); font-weight: 500; }
.pricing-desc { font-size: .875rem; line-height: 1.7; color: var(--text-2); margin-bottom: 24px; }
/* Пункти пакета — акордеон: клік розгортає опис «як працює / навіщо» */
.pricing-features { display: flex; flex-direction: column; margin-bottom: 28px; }
.pricing-item { border-bottom: 1px solid var(--border); }
.pricing-item:first-child { border-top: 1px solid var(--border); }

.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; text-align: left;
  padding: 13px 0; min-height: 44px;
  font-size: .875rem; font-weight: 600; color: var(--text-1);
  transition: color .3s var(--silk);
}
.pricing-feature:hover { color: var(--accent); }
.pricing-feature > svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.pf-name { flex: 1; line-height: 1.45; }
.pf-chev { margin-top: 3px; transition: transform .4s var(--silk); }
.pricing-item.open .pf-chev { transform: rotate(180deg); }

.pricing-detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--silk), visibility .4s;
  visibility: hidden;
}
.pricing-item.open .pricing-detail { grid-template-rows: 1fr; visibility: visible; }
.pricing-detail > div { overflow: hidden; min-height: 0; }
.pricing-detail p {
  font-size: .8125rem; line-height: 1.65; color: var(--text-2);
  padding: 0 0 14px 25px;
}
.pricing-note {
  font-size: .78rem; line-height: 1.6; color: var(--text-3);
  border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 24px;
}
.pricing-cta { margin-top: auto; }
.btn-pricing {
  display: block; width: 100%; text-align: center;
  font-size: .875rem; font-weight: 600;
  padding: 14px 24px; border-radius: 100px;
  border: 1.5px solid var(--accent-border); color: var(--accent);
  transition: background .4s var(--silk), border-color .4s var(--silk);
}
.btn-pricing:hover { background: var(--accent-ghost); border-color: var(--accent); }
.btn-pricing.solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-pricing.solid:hover { background: var(--accent-mid); border-color: var(--accent-mid); }


@media (max-width: 940px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.pricing-micro { margin-top: 22px; display: grid; gap: 22px; }
.pricing-micro p { font-size: .9375rem; line-height: 1.7; color: var(--text-2); max-width: 760px; margin: 0 auto; text-align: center; }
/* Акційна плашка: компактна, по центру, у золотій рамці */
.discount {
  max-width: 620px;
  margin: 12px auto 0;
  padding: 26px clamp(24px, 4vw, 40px);
  background: var(--accent);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(244, 226, 176, .22),
    0 0 0 4px rgba(217, 180, 92, .12),
    0 16px 44px rgba(79, 70, 229, .2);
}
.discount strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.discount span {
  display: block;
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  max-width: 46ch;
  margin: 0 auto;
}
/* Плашка додаткової послуги (індивідуальний дизайн): світла, у тон сторінки */
/* Білборд «Індивідуальний дизайн» — дві колонки, як форма зв'язку:
   ліворуч заголовок (у вузькій колонці лягає у два рядки), праворуч опис. */
.addon {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px clamp(24px, 4vw, 44px);
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  gap: 20px clamp(28px, 5vw, 56px);
  align-items: center;
  text-align: left;
}
.addon-head strong {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--accent);
}
.addon-text p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-2);
}
@media (max-width: 720px) {
  .addon { grid-template-columns: 1fr; gap: 12px; padding: 26px clamp(20px, 5vw, 32px); text-align: center; }
}

/* ══════════════════════════════════════════
   8. ФОРМА ЗАЯВКИ
   ══════════════════════════════════════════ */
.lead-section { padding: 110px 0; background: var(--accent); color: var(--bg); position: relative; overflow: hidden; }
.lead-section::before {
  content: '';
  position: absolute; top: -30%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .14) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.lead-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.lead-section .section-title { color: var(--bg); }
.lead-section .section-title em { color: var(--surface-2); }
.lead-section .section-sub { color: var(--on-dark); }


.field { display: grid; gap: 8px; margin-bottom: 20px; }
/* display:grid перебиває типове [hidden], тож ховаємо явно */
.field[hidden] { display: none; }
.field:last-of-type { margin-bottom: 28px; }
.field > label, .field legend {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--bg);
}
.field .req { color: var(--surface-2); }
/* Позначка необов'язкового поля: тим самим шрифтом, але без капса й
   розрядки, щоб читалась як примітка, а не як частина підпису */
.field .opt {
  margin-left: 6px;
  font-size: .92em; font-weight: 500;
  text-transform: none; letter-spacing: .02em;
  color: rgba(255, 255, 255, .55);
}
.field-hint {
  font-size: .78rem; line-height: 1.5;
  color: rgba(255, 255, 255, .62);
  padding-left: 18px; margin-top: -2px;
}

.input {
  width: 100%; min-height: 52px; padding: 14px 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--on-dark-line);
  border-radius: 100px; color: var(--bg);
  transition: border-color .3s var(--silk), background .3s var(--silk);
}
.input::placeholder { color: rgba(255, 255, 255, .55); }
.input:hover { border-color: rgba(255, 255, 255, .45); }
/* Рамки й текст помилки не беруть --surface-2: у секції-формі цей токен
   перевизначений на біле 5%, і фокус, підсвітка помилкового поля та
   підпис під ним ставали невидимими (контраст 1.1) */
.input:focus { outline: none; background: rgba(255, 255, 255, .18); border-color: #ece9fe; }
.input[aria-invalid="true"] { border-color: rgba(248, 113, 113, .85); }

.error { display: none; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: #fca5a5; padding-left: 18px; }
.error.is-visible { display: flex; }
.error svg { flex-shrink: 0; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Третій канал стоїть окремим рядком під двома першими */
.choice-wide { grid-column: 1 / -1; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--on-dark-line);
  border-radius: 100px; font-size: .875rem; font-weight: 600; color: var(--bg);
  transition: background .3s var(--silk), border-color .3s var(--silk), color .3s var(--silk);
}
.choice input:hover + span { border-color: rgba(255, 255, 255, .45); }
.choice input:focus-visible + span { outline: 2px solid var(--surface-2); outline-offset: 3px; }
.choice input:checked + span { background: var(--surface-2); border-color: var(--surface-2); color: var(--accent); }
.choice svg { flex-shrink: 0; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .9375rem; font-weight: 700;
  background: var(--surface-2); color: var(--accent);
  padding: 17px 32px; border-radius: 100px;
  transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk);
}
.btn-submit:hover { background: var(--bg); transform: scale(1.01); }
.btn-submit[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-spinner {
  width: 17px; height: 17px; flex-shrink: 0;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn-submit.is-loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-micro { margin-top: 16px; font-size: .78rem; line-height: 1.6; color: var(--on-dark); text-align: center; }
.form-status { margin-top: 16px; }
.form-success {
  display: none; gap: 12px; padding: 20px;
  background: var(--surface-2); border-radius: var(--radius); color: var(--text-1);
}
.form-success.is-visible { display: flex; }
.form-success svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.form-success strong { display: block; margin-bottom: 4px; }
.form-success p { font-size: .875rem; color: var(--text-2); }
/* Колір тут власний, а не --surface-2: цей токен у секції-формі
   перевизначений на біле 5%, і напис виходив з контрастом 1.13, тобто
   його не було видно взагалі. Помилці до того ж належить власний
   тривожний колір, а не просто світлий текст */
.form-fail {
  display: none; gap: 8px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .7);
  font-size: .875rem; color: #fca5a5; font-weight: 600;
}
.form-fail.is-visible { display: flex; }
.form-fail svg { flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════
   9. FAQ
   ══════════════════════════════════════════ */
.faq-section { padding: 110px 0; }
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.faq-sidebar { position: sticky; top: 110px; }
.faq-sidebar .section-sub { margin-top: 16px; }


.faq-toggle-all {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 24px;
  font-size: .875rem; font-weight: 600; color: var(--accent);
  transition: opacity .3s var(--silk);
}
.faq-toggle-all:hover { opacity: .72; }
.faq-toggle-all svg { transition: transform .4s var(--silk); }
.faq-toggle-all[aria-pressed="true"] svg { transform: rotate(45deg); }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 22px 0; gap: 16px; text-align: left;
  font-size: .9375rem; font-weight: 600; color: var(--text-1);
  transition: color .3s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--accent-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: transform .5s var(--silk), background .4s, color .4s, border-color .4s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--silk); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  font-size: .9rem; line-height: 1.75; color: var(--text-2);
  padding-bottom: 0;
  transition: padding-bottom .5s var(--silk);
}
.faq-item.open .faq-answer-inner { padding-bottom: 20px; }

@media (max-width: 900px) {
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-sidebar { position: static; }
}

/* ══════════════════════════════════════════
   10. CTA БАНЕР
   ══════════════════════════════════════════ */
.cta-section { padding: 100px 0; }
.cta-inner {
  background: var(--text-1);
  border-radius: var(--radius-lg);
  padding: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; top: -40%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, .34) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 560px; }
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .005em;
  line-height: 1.2; color: var(--surface-2); margin-bottom: 16px;
}
.cta-title { font-weight: 500; }
.cta-title em { font-style: italic; font-weight: 500; color: var(--accent-light); }
.cta-title strong { font-weight: 800; }
.cta-sub { font-size: 1rem; line-height: 1.7; color: var(--on-dark); }
.cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.btn-cta-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .9375rem; font-weight: 600; color: var(--text-1);
  background: var(--accent); padding: 16px 36px; border-radius: 100px;
  white-space: nowrap;
  transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk);
}
.btn-cta-primary:hover { background: var(--accent-mid); transform: scale(1.02); }

@media (max-width: 860px) {
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .cta-actions { width: 100%; }
}

/* ══════════════════════════════════════════
   11. ФУТЕР
   ══════════════════════════════════════════ */
.footer {
  background: var(--text-1);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand .nav-logo { color: var(--surface-2); font-size: 1.2rem; margin-bottom: 16px; }
.footer-brand .nav-logo svg,
.footer-brand .nav-logo span { color: var(--accent-light); }
.footer-brand-desc {
  font-size: .875rem; line-height: 1.7;
  color: rgba(255, 255, 255, .62); max-width: 280px;
}
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--on-dark-line);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .62);
  transition: border-color .4s var(--silk), color .4s var(--silk);
}
.social-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
.social-btn[hidden] { display: none; }

.footer-col-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: .875rem; color: rgba(255, 255, 255, .68);
  transition: color .3s var(--silk);
}
.footer-links a:hover { color: var(--accent-light); }
.footer-links a[hidden] { display: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 14px 32px;
}
.footer-copy { font-size: .8125rem; color: rgba(255, 255, 255, .58); }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ══════════════════════════════════════════
   ПОВНОЕКРАННИЙ ПЕРЕГЛЯД
   ══════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .25s var(--silk);
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; min-height: 0; }
.lightbox-img {
  max-width: min(1600px, 96vw); max-height: 80vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 12px; background: var(--surface-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.lightbox-cap {
  color: var(--on-dark); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
}
.lightbox-close {
  position: absolute; top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--on-dark-line); background: rgba(0, 0, 0, .5); color: var(--bg);
  transition: background .3s var(--silk);
}
.lightbox-close:hover { background: var(--accent); }
.lightbox-close:focus-visible { outline-color: var(--surface-2); }
body.is-locked { overflow: hidden; }

/* ══════════════════════════════════════════
   АДАПТИВ
   ══════════════════════════════════════════ */
@media (max-width: 980px) {
  /* Знизу лишаємо повітря: без нього скрін впирається в червону плашку */
  .hero { min-height: auto; padding: 104px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { margin-bottom: 20px; }
  .hero-sub { max-width: none; margin-bottom: 32px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .lead-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .carousel-section, .about-section, .compare-section,
  .pricing-section, .lead-section, .faq-section { padding: 72px 0; }
  .pains-section { padding: 0 0 72px; }
  .cta-section { padding: 64px 0; }
  .compare th, .compare td { padding: 18px 20px; }
  .pricing-card { padding: 30px 24px; }
}

/* ══════════════════════════════════════════
   ЗМЕНШЕНИЙ РУХ
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lightbox { animation: none; }
  .screen-card { transition: none; }
  .pain-card:hover, .pricing-card:hover,
  .hero-dashboard:hover, .btn-primary:hover, .btn-primary-lg:hover,
  .btn-submit:hover, .btn-cta-primary:hover { transform: none; }
  .btn-spinner { animation-duration: 2s; }
  .faq-answer, .faq-answer-inner, .faq-icon { transition: none; }
}


/* ═══════════════════════════════════════════════════════════════
   ПЛАТФОРМНИЙ ВИГЛЯД (glassmorphism + мікс світло/темно).
   Влито з колишнього skin-platform.css; діє завжди.
   ═══════════════════════════════════════════════════════════════ */
/* ── Фон: lilac-градієнт + бузкові плями (як .app-bg платформи) ── */
body {
  /* Точно як .app-bg платформи (світла тема): м'який near-white lilac + делікатні плями */
  background:
    radial-gradient(ellipse 80% 55% at 18% 22%, rgba(99, 102, 241, .22), transparent 55%),
    radial-gradient(ellipse 65% 45% at 85% 55%, rgba(129, 140, 248, .16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 55% 95%, rgba(236, 72, 153, .08), transparent 55%),
    linear-gradient(135deg, #e2d9f8 0%, #eae2fd 50%, #f7f3ff 100%);
  background-attachment: fixed;
}

/* Плаваюча бузкова орба — «жива» атмосфера платформи (її .app-bg::after) */
body::after {
  content: "";
  position: fixed;
  width: 520px; height: 520px; border-radius: 50%;
  top: 4%; left: 8%;
  background: rgba(99, 102, 241, .55);
  filter: blur(100px);
  opacity: .35;
  z-index: -1;
  pointer-events: none;
  animation: skinFloat 22s ease-in-out infinite;
}
@keyframes skinFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(48px, -34px) scale(1.06); }
  66% { transform: translate(-28px, 28px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ── Світлі секції — ПРОЗОРІ, щоб крізь них показувався єдиний lilac-градієнт body
   (як на платформі: один фон + скляні картки над ним). Інакше власний
   напівбілий фон секцій замулює градієнт до пласкої світлої плями. ── */
.niches-section,
.pains-section,
.about-section,
.pricing-section {
  background: transparent;
  border-color: transparent;
}

/* ── Заголовки: без капсу й serif, жирний сучасний санс.
   Колір НЕ чіпаємо — щоб білі заголовки на кольорових банерах лишились білими. ── */
.section-title {
  text-transform: none;
  letter-spacing: -.02em;
  line-height: 1.14;
}
.section-title em { font-style: italic; }

/* Заголовки СВІТЛИХ секцій — темні (near-black), як на платформі;
   акцент лишається тільки на виділених словах (em/strong). */
:is(.niches-section, .about-section, .compare-section, .pricing-section, .faq-section) :is(h1, h2, .section-title) {
  color: var(--text-1);
}
:is(.niches-section, .about-section, .compare-section, .pricing-section, .faq-section) :is(.section-title em, .section-title strong) {
  color: var(--accent);
}

/* Банер «Болі»: акцентний фон → заголовок суцільно білий
   (базово він бере --surface-2, який у скіні напівпрозорий). */
.pains-header .section-title { color: #fff; }

/* ── Скляні картки/поверхні ── */
.niche-card,
.pain-card,
.pricing-card,
.faq-item,
.cta-inner,
.lead-side {
  background: var(--surface);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1px 0 rgba(70, 50, 150, .06),
    0 24px 50px -26px rgba(70, 50, 150, .42);
}

/* Крупніші скруглення карток — у стилі платформи */
.niche-card,
.pain-card,
.pricing-card,
.faq-item {
  border-radius: var(--radius-lg);
}

/* Featured-пакет («Бізнес») — акцентна рамка, як у старому дизайні
   (скляне правило вище давало всім карткам однакову світлу рамку). */
.pricing-card.featured {
  border: 2px solid var(--accent);
}

/* Іконки карток — акцентна скляна плитка */
.pain-icon {
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

/* FAQ у скіні — акуратні скляні картки замість рядків списку:
   проміжок між картками, бокові відступи тексту (база давала padding: 22px 0),
   і прибираємо рядкові бордери (у карток уже є власна рамка). */
.faq-list { gap: 12px; }
.faq-item,
.faq-item:first-child {
  border-top: 0;
  border-bottom: 0;
}
.faq-question { padding: 20px 24px; }
.faq-answer-inner {
  padding-left: 24px;
  padding-right: 24px;
}

/* Секція форми та банер «Болі» переведені на ТЕМНУ тему платформи —
   див. групу темних секцій нижче (там їхній фон і токени). */
/* Текст на секції форми — без коробки/рамки, просто на темному фоні */
.lead-side {
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ── Навбар у скролі — lilac-скло замість кремового ── */
.nav.scrolled {
  background: rgba(240, 236, 251, .78);
  box-shadow: 0 1px 0 var(--border);
}

/* ── Кнопки — м'який індиго-глоу (як CTA платформи) ── */
.btn-primary,
.btn-pricing.solid {
  box-shadow: 0 8px 24px rgba(79, 70, 229, .28);
}
.btn-primary:hover,
.btn-pricing.solid:hover {
  box-shadow: 0 12px 30px rgba(79, 70, 229, .36);
}

/* ════════════════════════════════════════════════════════════
   МІКС: окремі секції — у ТЕМНІЙ темі платформи.
   Локально перевизначаємо токени (текст/скло/бордер) — і оскільки
   лендинг стилізований через var(--token), уся секція з її картками
   автоматично «темніє». Так на сторінці поєднані світла й темна теми.
   Зараз темні: герой, показ екранів, банер «Болі», секція-форма, фінальний CTA.
   ════════════════════════════════════════════════════════════ */
.hero,
.carousel-section,
.pains-header,
.lead-section,
.cta-section {
  --text-1: #f4f3fa;
  --text-2: rgba(244, 243, 250, .82);
  --text-3: rgba(244, 243, 250, .55);
  --surface: rgba(255, 255, 255, .06);
  --surface-2: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .12);
  --accent-ghost: rgba(129, 140, 248, .16);
  --accent-border: rgba(129, 140, 248, .32);
  color: var(--text-1);
  background:
    radial-gradient(60% 50% at 20% 12%, rgba(99, 102, 241, .30), transparent 60%),
    radial-gradient(55% 45% at 85% 62%, rgba(129, 140, 248, .16), transparent 60%),
    linear-gradient(135deg, #130f22 0%, #171226 55%, #0d0a18 100%);
}

/* Заголовки й підзаголовки в темних секціях — світлі (акцентні слова — бузкові) */
.hero :is(h1, h2, .section-title),
.carousel-section :is(h1, h2, .section-title),
.lead-section :is(h1, h2, .section-title),
.cta-section :is(h1, h2, .section-title) {
  color: #ece9fe;
}
.hero :is(.section-title em, .section-title strong),
.carousel-section :is(.section-title em, .section-title strong),
.lead-section :is(.section-title em, .section-title strong),
.cta-section :is(.section-title em, .section-title strong) {
  color: #a5b4fc;
}

/* ── Точкові виправлення контрасту на темних блоках ── */

/* Активний тумблер у показі: текст був --surface-2 (сірий) → робимо білим */
.carousel-switch button[aria-pressed="true"] {
  color: #fff;
}

/* Кнопка сабміту форми: була напівпрозоро-світла з індиго-текстом (муляво на темному)
   → чиста біла кнопка з індиго-текстом (яскравий CTA на темному) */
.lead-section .btn-submit {
  background: #ffffff;
  color: var(--accent);
}
.lead-section .btn-submit:hover {
  background: #efeafb;
}
/* Зірочка обов'язкового поля — світла, а не примарний --surface-2 */
.lead-section .req { color: #a5b4fc; }

/* Навбар над темним героєм (ще не в скролі): лого й меню — світлі */
.nav:not(.scrolled) .nav-logo { color: #f4f3fa; }
.nav:not(.scrolled) .nav-logo span,
.nav:not(.scrolled) .nav-logo svg { color: #a5b4fc; }
.nav:not(.scrolled) .nav-links a { color: rgba(244, 243, 250, .82); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav:not(.scrolled) .nav-hamburger span { background: #f4f3fa; }

/* Картки в темних секціях уже темні (через --surface), додаємо лише глибшу тінь */
.carousel-section .niche-card,
.cta-section .cta-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 22px 50px -26px rgba(0, 0, 0, .55);
}
