/* ==========================================================================
   ПраваОнлайн — Landing Page Styles
   ========================================================================== */

:root {
  /* Colors */
  --bg: #07090f;
  --bg-elevated: #0c101a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f5fa;
  --text-secondary: #9aa3ba;
  --text-tertiary: #5c6480;

  --accent-1: #7c6bff;
  --accent-2: #22d3ee;
  --accent-3: #ff6bb3;
  --success: #34d399;

  --gradient-brand: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(124, 107, 255, 0.16), rgba(34, 211, 238, 0.12));
  --gradient-text: linear-gradient(120deg, #a78bfa 0%, #7c6bff 35%, #22d3ee 100%);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
  --shadow-strong: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(124, 107, 255, 0.15), 0 20px 50px -15px rgba(124, 107, 255, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
          radial-gradient(60% 45% at 15% 8%, rgba(124, 107, 255, 0.10), transparent 60%),
          radial-gradient(50% 40% at 90% 15%, rgba(34, 211, 238, 0.08), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

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

/* Cursor ambient glow */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 107, 255, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: opacity 0.3s ease;
  opacity: 0;
}
@media (min-width: 900px) {
  .cursor-glow { opacity: 1; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.btn svg { flex-shrink: 0; transition: transform 0.3s var(--ease-out); }

.btn-primary {
  background: var(--gradient-brand);
  color: #050609;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 0 1px rgba(124, 107, 255, 0.25), 0 25px 60px -12px rgba(124, 107, 255, 0.5);
}
.btn-primary:hover svg { transform: translate(2px, -2px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }

.btn .ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleAnim 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, height 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}
.nav-link {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 16px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(12, 16, 26, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-strong);
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease, visibility 0.35s;
  z-index: 99;
}
.mobile-nav.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-link {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.mobile-nav-link:hover { background: var(--surface); color: var(--text); }
.mobile-cta { margin-top: 8px; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float-blob 16s ease-in-out infinite;
}
.blob-1 {
  width: 520px; height: 520px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, var(--accent-1), transparent 70%);
}
.blob-2 {
  width: 460px; height: 460px;
  bottom: -200px; right: -140px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  animation-delay: -8s;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Hero visual — signature license card */
.hero-visual { display: flex; justify-content: center; }
.card-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.license-card {
  position: relative;
  width: 340px;
  max-width: 90%;
  aspect-ratio: 1.586 / 1;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(155deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  box-shadow:
          0 40px 80px -20px rgba(0,0,0,0.6),
          inset 0 1px 0 rgba(255,255,255,0.15);
  transform: rotateY(-14deg) rotateX(8deg);
  transition: transform 0.15s ease-out;
  animation: card-float 6s ease-in-out infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .license-card { animation: none; }
}
@keyframes card-float {
  0%, 100% { transform: rotateY(-14deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-14px); }
}

.license-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: var(--gradient-brand);
  opacity: 0.18;
  z-index: -1;
  filter: blur(18px);
}

.license-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.license-card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
}
.license-card-country {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

.license-card-body { display: flex; gap: 16px; }
.license-photo {
  width: 60px; height: 74px;
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(255,255,255,0.25), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.license-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.license-field { display: flex; flex-direction: column; gap: 4px; }
.license-field span:first-child {
  display: block;
  width: 60%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
}
.license-field span:last-child {
  display: block;
  width: 85%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.14);
}
.license-cats { display: flex; gap: 6px; margin-top: 4px; }
.license-cats span {
  width: 22px; height: 22px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  background: var(--gradient-brand);
  color: #050609;
}
.license-card-chip {
  position: absolute;
  bottom: 22px; right: 26px;
  width: 34px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4af37, #f5e199, #d4af37);
  opacity: 0.85;
}

.float-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(12, 16, 26, 0.75);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: chip-float 5s ease-in-out infinite;
}
.chip-1 { top: 8%; right: 2%; animation-delay: -1.5s; color: var(--success); }
.chip-2 { bottom: 10%; left: 0%; animation-delay: -3.5s; color: var(--accent-2); }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Sections shared
   ========================================================================== */

.section { padding: 120px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 16.5px;
}

/* ==========================================================================
   Categories
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cat-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease-out), border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-soft);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-soft);
}
.cat-card:hover::before { opacity: 1; }
.cat-card h3, .cat-card p { position: relative; z-index: 1; }
.cat-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cat-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.cat-icon {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  color: #050609;
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease-spring);
}
.cat-card:hover .cat-icon { transform: rotate(-8deg) scale(1.08); }

/* ==========================================================================
   Banner CTA
   ========================================================================== */

.banner-cta {
  margin: 0 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(124,107,255,0.14), rgba(34,211,238,0.08));
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  text-align: center;
}
@media (min-width: 1240px) {
  .banner-cta { margin: 0 auto; max-width: 1200px; }
}
.banner-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,107,255,0.35), transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
}
.banner-inner { position: relative; z-index: 1; }
.banner-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  max-width: 640px;
  margin: 0 auto 18px;
}
.banner-desc {
  color: var(--text-secondary);
  font-size: 16.5px;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   How We Work / Timeline
   ========================================================================== */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.timeline-line {
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--border);
  z-index: 0;
  display: none;
}
@media (min-width: 900px) { .timeline-line { display: block; } }
.timeline-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  transition: width 1.4s var(--ease-out);
}

.step-card {
  position: relative;
  z-index: 1;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #050609;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: 14.5px; }

.how-cta { display: flex; justify-content: center; margin-top: 56px; }

/* ==========================================================================
   Reviews Slider — transform-карусель (детермінована, без native scroll)
   ========================================================================== */

.reviews-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding-top: 10px;
}

.reviews-track {
  display: flex;
  gap: 20px;
  --items: 3;
  --gap: 20px;
  cursor: grab;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.reviews-track.dragging {
  transition: none;
  cursor: grabbing;
}

.review-card {
  flex: 0 0 calc((100% - (var(--items) - 1) * var(--gap)) / var(--items));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease-out);
}
.review-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

.review-content {
  padding: 36px 32px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.review-stars {
  color: #ffc857;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 15px;
}

.review-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #050609;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
}

.review-city {
  display: block;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* ---- Пагінація: лічильник + сегментований прогрес-бар + стрілки ---- */

.slider-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.slider-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-progress {
  display: flex;
  gap: 5px;
}

.slider-segment {
  position: relative;
  flex: none;
  width: 26px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s var(--ease-out);
}
.slider-segment:hover {
  background: var(--border-strong);
}
.slider-segment.active {
  width: 32px;
}

.slider-segment-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--text-tertiary);
}
.slider-segment.done .slider-segment-fill {
  width: 100%;
  background: var(--text-tertiary);
}
.slider-segment.active .slider-segment-fill {
  background: var(--gradient-brand);
}

@keyframes segment-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.reviews-slider:hover .slider-segment.active .slider-segment-fill,
.reviews-slider:focus-within .slider-segment.active .slider-segment-fill {
  animation-play-state: paused;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-spring), opacity 0.3s ease;
}
.slider-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: scale(1.06);
}
.slider-btn:active {
  transform: scale(0.94);
}
.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.accordion-item.active {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text-secondary);
  transition: transform 0.35s var(--ease-spring), background 0.3s ease;
}
.accordion-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.accordion-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.accordion-item.active .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.accordion-item.active .accordion-icon::before { background: var(--accent-2); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.accordion-panel-inner {
  padding: 0 26px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand { max-width: 320px; }
.footer-tagline { color: var(--text-secondary); font-size: 14.5px; margin: 16px 0 24px; }

.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.footer-nav a { color: var(--text-secondary); font-size: 14.5px; transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13.5px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children of grids automatically via JS-set delay */
.cards-grid .cat-card,
.timeline .step-card {
  transition-delay: var(--reveal-delay, 0s);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .reviews-track { --items: 2; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .trust-badges { justify-content: center; }
  .hero-visual { margin-top: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 88px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .cards-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .banner-cta { margin: 0 16px; padding: 64px 0; }
  .license-card { width: 300px; }
  .btn-lg { padding: 15px 26px; font-size: 15px; }

  .reviews-track { --items: 1; }
  .review-content { padding: 30px 24px; }
  .review-text { font-size: 14.5px; }

}

/* ==========================================================================
   Floating Sticky Button & Tooltip
   ========================================================================== */

.floating-button-container {
  position: fixed;
  bottom: 50px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}

.floating-button-container h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: #0c101a;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-button-container:hover h3 {
  opacity: 1;
  transform: translateY(0);
}

.floating-button {
  pointer-events: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.floating-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #050609;
}

.floating-button svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-button:hover {
  transform: scale(1.1) rotate(12deg);
  box-shadow: 0 0 0 2px rgba(124, 107, 255, 0.25), 0 25px 50px -10px rgba(124, 107, 255, 0.5);
}

.floating-button:hover svg {
  transform: translate(2px, -2px);
}

.floating-button:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .floating-button-container {
    bottom: 32px;
    right: 24px;
  }
  .floating-button {
    width: 52px;
    height: 52px;
  }
  .floating-button-container h3 {
    display: none;
  }
}


.floating-buttons-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}


.floating-button--viber {
  background: #7360f2;
}

.floating-button--viber:hover {
  box-shadow: 0 0 0 2px rgba(115, 96, 242, 0.25), 0 25px 50px -10px rgba(115, 96, 242, 0.5);
}



/* ==========================================================================
   Styles for Legal Pages (Privacy Policy & Terms of Use)
   ========================================================================== */

.legal-section {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 100px;
  overflow: hidden;
  min-height: 80vh;
}

.legal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}


.legal-card {
  position: relative;
  z-index: 1;
  padding: 56px 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}


.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.legal-content ul {
  margin: 0 0 24px 20px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}


.footer-legal-links {
  display: flex;
  gap: 24px;
}

.legal-link {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.25s var(--ease-out);
}

.legal-link:hover,
.legal-link.active {
  color: var(--text);
}


@media (max-width: 640px) {
  .legal-section {
    padding-top: calc(var(--header-h) + 30px);
  }
  .legal-card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
    width: 100%;
  }
}


/* ==========================================================================
   Cookie Consent Banner (Преміальне матове скло)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 420px;
  width: calc(100% - 48px);
  background: rgba(12, 16, 26, 0.75);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong);
  z-index: 9998;


  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}


.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-text a {
  color: var(--accent-2);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-text a:hover {
  color: var(--accent-1);
}


#acceptCookies {
  align-self: center;
  padding: 8px 20px;
  font-size: 13px;
}


@media (max-width: 640px) {
  .cookie-banner {
    bottom: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: calc(100% - 32px) !important;
    max-width: 340px !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-md) !important;
    transform: translate(-50%, -42%) scale(0.95) !important;
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85);
  }


  .cookie-banner.show {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .cookie-content {
    padding: 24px 20px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .cookie-text {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }

  #acceptCookies {
    align-self: center !important;
    width: 100% !important;
    padding: 10px 24px !important;
  }
}