/* ===========================
   TARGET 2 — CSS Design System
   Синя кольорова схема (замість червоного)
   =========================== */

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

:root {
  /* Light palette */
  --bg-white: #ffffff;
  --bg-off-white: #f8fafc;
  --bg-light: #f1f5f9;

  /* Blue accents (maintained) */
  --blue-deep: #102a43;
  --blue-mid: #1e293b;
  --blue-accent: #243763;
  --blue-bright: #2b3a67;
  --blue-light: #3b82f6;
  --blue-glow: rgba(36, 55, 99, 0.6);
  --blue-hover: #1a2a4d;

  /* Neutral/Text */
  --white: #ffffff;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-400: #94a3b8;
  --grey-700: #334155;
  --text-main: #102a43;
  --text-muted: #475569;

  /* Typography */
  --font: 'Inter', sans-serif;

  /* Spacing */
  --max-w: 1100px;
  --section-gap: 40px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

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

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

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(36, 55, 99, 0.3);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 50px;
}

.accent {
  background: linear-gradient(135deg, var(--blue-light), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.btn-nav {
  background: var(--blue-accent);
  color: var(--white);
  font-size: 0.7rem;
  padding: 10px 18px;
  letter-spacing: 0.06em;
}

.btn-nav:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-bright));
  color: var(--white);
  border: 1px solid #ffffff;
  box-shadow:
    0 4px 20px var(--blue-glow),
    0 0 15px rgba(255, 255, 255, 0.3),
    0 0 10px rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  padding: 16px 32px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px var(--blue-glow),
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 15px rgba(255, 255, 255, 0.3);
  background: var(--blue-hover);
  border-color: #ffffff;
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2.5s infinite;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@keyframes shimmer {
  to {
    left: 200%;
  }
}

.btn-modal {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-bright));
  color: var(--white);
  font-size: 0.8rem;
  padding: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-modal:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  transition: background 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s, transform 0.25s;
  position: relative;
}

.nav-links a:hover {
  color: var(--blue-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--blue-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  gap: 4px;
  transition: background 0.3s, transform 0.2s;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.4);
}

.hamburger:hover {
  background: var(--blue-bright);
}

.hamburger:active {
  transform: scale(0.92);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Darkened background overlay */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: flex-end;
  /* Align drawer to the right */
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  width: 50vw;
  min-width: 300px;
  /* Ensures it's usable on narrow phones */
  height: 100%;
  background: url('https://lh3.googleusercontent.com/sMsqsk4FtUHJaeUuobNulSg9lcrMYFIHNdnBYt34eWvOhsIhG4D5MeT-v2B3qGcviZTtNvo1vBhPM3pIzjCmBAwUxyQpoV8aXLlKZhQQnsU=w2000-rw') center center no-repeat;
  background-size: cover;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active .mobile-menu-inner {
  transform: translateX(0);
}

/* Glassy overlay for the whole menu area */
.mobile-menu-nav {
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  /* Dark tinted glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 120px 40px 60px;
  position: relative;
  z-index: 2;
}

.mobile-menu-photo {
  display: none;
  /* No longer needed as separate column */
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin-bottom: auto;
}

.mobile-nav-links a {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  color: var(--blue-light);
  transform: translateX(10px);
}

/* Fix for mobile 'sticky' hover: ensure it doesn't stay blue permanently */
@media (hover: none) {
  .mobile-nav-links a:hover {
    color: #ffffff;
  }

  .mobile-nav-links a:active {
    color: var(--blue-light);
  }
}

.mobile-menu-footer {
  padding-top: 40px;
}

.mobile-menu-footer .btn-cta {
  width: 100%;
  padding: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.mobile-menu-footer {
  padding-top: 40px;
}

.mobile-menu-footer .btn-cta {
  width: 100%;
  font-size: 0.85rem;
  /* Slightly smaller to fit in a single line */
  white-space: nowrap;
  /* Prevent wrapping */
  padding: 14px 20px;
}

/* ===== CASES SECTION ===== */

.cases-section {
  padding: 40px 0 0;
  /* Reduced bottom padding to follow user request */
  background: var(--bg-off-white);
  position: relative;
  overflow: hidden;
}

.cases-stripes-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(115deg,
      transparent 0px,
      transparent 150px,
      rgba(16, 42, 67, 0.05) 150px,
      rgba(16, 42, 67, 0.05) 300px);
  background-attachment: fixed;
  pointer-events: none;
  z-index: 1;
}

.cases-section .container,
.reviews-section .container,
.final-cta-section .container,
.program-section .container,
.cases-results .container,
.timer-section .container {
  position: relative;
  z-index: 5;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Single column layout (в столбик) */
  gap: 30px;
  margin-top: 50px;
}

.case-card {
  position: relative;
  background: var(--blue-deep);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  height: 180px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s;
  display: flex;
}

.case-card:hover {
  transform: translateY(-8px);
}

.case-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.case-image-wrapper img {
  height: 100%;
  width: 55%;
  /* Keep person on the left half */
  object-fit: contain;
  object-position: left bottom;
}

.case-content {
  position: relative;
  width: 100%;
  padding: 16px 24px;
  display: flex;
  flex-direction: row;
  /* Horizontal layout for compact height */
  justify-content: flex-end;
  gap: 20px;
  z-index: 5;
}

.case-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-name {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.case-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-group {
  display: flex;
  flex-direction: row;
  /* Labels and values on same line for compactness */
  gap: 8px;
  align-items: baseline;
  justify-content: flex-end;
}

.stat-label {
  color: #3b82f6;
  font-size: 0.75rem;
}

.stat-value {
  color: #ffffff;
  font-size: 1.1rem;
}

.stat-value.highlight {
  font-size: 1.3rem;
  font-weight: 700;
}

.case-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: flex-end;
}


.case-tag {
  background: rgba(40, 45, 55, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .case-card {
    height: 480px;
    flex-direction: column;
  }

  .case-image-wrapper {
    position: relative;
    right: 0;
    width: 100%;
    height: 200px;
    order: -1;
  }

  .case-content {
    padding: 25px;
  }

  .stat-value.highlight {
    font-size: 1.8rem;
  }
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;

}

/* ===== HERO SECTION ===== */


.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--bg-white);
}

/* Background image removed as per user request */


.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0;
  /* Removed blue glow */
}

.hero-glow--left {
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--blue-bright) 0%, transparent 70%);
}

.hero-glow--right {
  right: -200px;
  top: 30%;
  background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
}

.hero>.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}





/* Hero Subtitle Glass Frame */
.hero-subtitle-glass {
  position: relative;
  background: rgba(37, 99, 235, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 50px;
  padding: 10px 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* Blue Neon Glow */
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.2),
    0 0 40px rgba(59, 130, 246, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  z-index: 1;
}

/* White Neon Backlight */
.glass-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-bright), var(--blue-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.3);
}


.hero-subtitle-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.4;
}

.glass-clock-img {
  position: absolute;
  top: -45px;
  right: -85px;
  width: 164px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  pointer-events: none;
  animation: clockSwing 5s ease-in-out infinite;
}

@keyframes clockSwing {

  0%,
  100% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(-10deg);
  }
}



.hero-diag-btn {
  padding: 14px 40px;
  font-size: 0.75rem;
  width: auto;
  max-width: fit-content;
  margin: 10px auto;
}



/* Hero Title / Headline */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #1a2a47;
  -webkit-text-stroke: 0;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-growth-h1 {
  text-align: center;
  margin-bottom: 20px;
}

.hero-growth-x {
  font-size: 1.7em;
  font-weight: 900;
  display: inline-block;
  margin: 0 4px;
  position: relative;
  -webkit-text-stroke: 0;
  background: linear-gradient(90deg,
      #102a43 0%,
      #102a43 15%,
      #1e40af 35%,
      #60a5fa 50%,
      #1e40af 65%,
      #102a43 85%,
      #102a43 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(36, 55, 99, 0.25));
  animation: gradientShift 2.8s linear infinite;
}

@keyframes gradientShift {
  from {
    background-position: 200% center;
  }

  to {
    background-position: 0% center;
  }
}




/* ===== CLIENTS SECTION ===== */

.clients-section {
  padding: 40px 0 var(--section-gap);
  background: var(--bg-white);
}

/* Scrolling logos marquee */
.logos-marquee {
  position: relative;
  z-index: 10;
  background: var(--bg-off-white);
  overflow: hidden;
  margin: 0 -100vw 40px;
  padding: 24px 100vw;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logos-track {
  display: flex;
  width: max-content;
  align-items: center;
}

.logos-track--left {
  animation: logoScrollLeft 45s linear infinite;
}

.logos-track--right {
  animation: logoScrollRight 45s linear infinite;
}

@keyframes logoScrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.3333%);
  }
}

@keyframes logoScrollRight {
  0% {
    transform: translateX(-33.3333%);
  }

  100% {
    transform: translateX(0);
  }
}

.client-logo {
  height: 60px;
  width: 144px;
  margin-right: 50px;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo:hover {
  transform: scale(1.05);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.client-card {
  background: var(--bg-white);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.client-card--metric {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.client-avatar {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.client-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.client-role {
  font-size: 0.8rem;
  color: var(--blue-light);
  margin-bottom: 4px;
}

.client-niche {
  font-size: 0.75rem;
  color: var(--grey-400);
}

.client-metric-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-light), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.client-metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== HOOK SECTION ===== */

.hook-section {
  position: relative;
  padding: var(--section-gap) 0;
  background: var(--bg-light);
  overflow: hidden;
}

.hook-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hook-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hook-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
}

.hook-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* ===== 5 STEPS SECTION ===== */

.steps-section {
  padding: var(--section-gap) 0;
  background: var(--bg-white);
}

.steps-section .section-title {
  margin-bottom: 60px;
}

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

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  transition: padding-left 0.3s;
}

.step-item:last-child {
  border-bottom: none;
}

.step-item:hover {
  padding-left: 8px;
}

.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--blue-accent);
  opacity: 0.6;
  line-height: 1;
  min-width: 70px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s, color 0.3s;
}

.step-item:hover .step-num {
  opacity: 1;
  color: var(--blue-light);
}

.step-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 8px;
}

/* ===== PROGRAM SECTION ===== */

.program-section {
  position: relative;
  padding: var(--section-gap) 0;
  background: var(--bg-off-white);
  overflow: hidden;
}

.program-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.program-section .container {
  position: relative;
  z-index: 2;
}

/* Optimized Dropdown Selector Style */
.program-dropdown-container {
  display: flex;
  justify-content: center;
  margin: 30px auto 45px;
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 100;
}

.program-dropdown-trigger {
  width: 100%;
  background: var(--blue-deep);
  /* Reverting to brand blue */
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 0.95rem;
  /* More compact size */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
}

.program-dropdown-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.35);
  background: #1a365d;
  /* Slightly lighter blue hover */
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.program-dropdown-container.open .dropdown-arrow {
  transform: rotate(180deg);
}

.program-dropdown-list {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 0;
  z-index: 1000;
}

.program-dropdown-container.open .program-dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.prog-dropdown-item {
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.prog-dropdown-item:last-child {
  border-bottom: none;
}

.prog-dropdown-item:hover {
  background: #f8fafc;
  color: var(--blue-deep);
  padding-left: 25px;
  /* Subtle movement effect */
}

.prog-dropdown-item.active {
  display: none;
  /* Hide active one in dropdown */
}

.program-panels {
  position: relative;
}

.program-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.program-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prog-panel-inner {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  /* Increased image column by 12% */
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 40px;
}

.prog-panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;

  /* Glassy Shimmer effect */
  background: linear-gradient(110deg,
      var(--blue-accent) 0%,
      var(--blue-accent) 40%,
      #ffffff 50%,
      var(--blue-accent) 60%,
      var(--blue-accent) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  filter: drop-shadow(0 4px 10px rgba(36, 55, 99, 0.1));
  animation: glassShimmer 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transition: all 0.3s ease;
}

.prog-panel-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.prog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prog-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.prog-list li::before {
  content: '✓';
  color: var(--blue-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.prog-panel-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
  display: flex;
}

.prog-panel-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.prog-panel-inner:hover .prog-panel-img {
  transform: scale(1.03);
}

.visual-placeholder {
  background: var(--bg-light);
  border: 1px dashed rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-light);
  opacity: 0.6;
}

/* ===== VIDEO SECTION ===== */

.video-section {
  padding: var(--section-gap) 0;
  background: var(--blue-deep);
}

.video-cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 12px;
}

.video-cta-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.video-placeholder {
  background: var(--bg-light);
  border: 1px dashed rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 800px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.video-play-icon {
  font-size: 2.5rem;
  color: var(--blue-light);
  opacity: 0.6;
}

.video-placeholder-inner p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-light);
  opacity: 0.6;
}

.video-info-card {
  background: var(--bg-off-white);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 16px;
  padding: 28px 36px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.info-card-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-main);
}

.info-card-text strong {
  color: var(--text-main);
}

/* ===== CASES RESULTS SECTION ===== */

.cases-results {
  position: relative;
  padding: var(--section-gap) 0;
  background: var(--bg-light);
  overflow: hidden;
}

.cases-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cases-results .container {
  position: relative;
  z-index: 2;
}

.video-cases-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 24px;
  /* Space for scrollbar */
  margin-top: 50px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-accent) #f1f5f9;
}

/* Custom Styled Scrollbar (Polzunok) for Videos */
.video-cases-grid::-webkit-scrollbar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
}

.video-cases-grid::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
  border-radius: 10px;
}

.video-cases-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.video-case-item {
  flex: 0 0 calc(50% - 12px);
  /* 2 items visible */
  scroll-snap-align: start;
  position: relative;
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* 16:9 aspect ratio container */
.video-case-item::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-case-item:hover {
  border-color: var(--blue-light);
  box-shadow: 0 20px 40px rgba(36, 55, 99, 0.3),
    0 0 20px rgba(36, 55, 99, 0.2);
}

@media (hover: hover) {
  .video-case-item:hover {
    transform: translateY(-8px);
  }
}

.video-case-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 800px) {
  .video-case-item {
    flex: 0 0 85%;
    /* Shows most of one and start of next on mobile */
  }
}

@media (max-width: 480px) {
  .video-case-item {
    flex: 0 0 95%;
    /* Almost full screen on mobile */
  }
}


/* ===== REVIEWS SECTION ===== */

.reviews-section {
  padding: 10px 0 40px;
  background: var(--bg-white);
}

.reviews-slider {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 20px;
  /* Space for scrollbar */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

/* Custom Styled Scrollbar (Polzunok) */
.reviews-track::-webkit-scrollbar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
}

.reviews-track::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
  border-radius: 10px;
}

.reviews-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.review-slide {
  flex: 0 0 calc(100% / 3.8 - 20px);
  width: calc(100% / 3.8 - 20px);
  border-radius: 16px;
}

.review-slide img {
  width: 100%;
  height: auto;
  /* Use original length */
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.review-photo-placeholder {
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-light);
  opacity: 0.6;
}

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

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--grey-200);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slider-btn:hover {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}

.slider-btn svg {
  width: 18px;
  height: 18px;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: all 0.25s;
}

.slider-dot.active {
  background: var(--blue-bright);
  width: 24px;
  border-radius: 4px;
}

/* ===== TIMER & FORM SECTION ===== */

.timer-section {
  position: relative;
  padding: 40px 0;
  background: var(--bg-white);
  overflow: hidden;
}

.results-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.timer-card {
  position: relative;
  background: var(--blue-deep);
  background: linear-gradient(145deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border-radius: clamp(20px, 4vw, 32px);
  padding: 32px 40px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}

/* Web-inspired Grid Pattern */
.timer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Subtle Animated Glow inside Card */
.timer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.timer-header,
.form-body {
  position: relative;
  z-index: 2;
}

.timer-header {
  margin-bottom: 24px;
}

.timer-uptitle {
  display: block;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 0;
  border: none;
  background: none;
}

.timer-title {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  width: 100%;
  white-space: nowrap;
}




.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 8px;
  min-width: 65px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.countdown-item .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.countdown-item .label {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  font-weight: 700;
  text-transform: uppercase;
}


.countdown-sep {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  align-self: center;
  margin-bottom: 24px;
}

.form-body {
  margin-top: 0;
  background: rgba(0, 0, 0, 0.15);
  padding: 24px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-intro,
.form-subintro {
  color: var(--grey-400);
  margin-bottom: 12px;
  line-height: 1.4;
  font-size: 0.9rem;
}

.form-intro strong,
.form-subintro strong {
  color: var(--white);
}

.form-subintro {
  margin-bottom: 24px;
  color: var(--white);
  font-weight: 400;
  /* Removed 600 to unbold 'Якщо так —' */
}

.diagnostics-form .form-submit-btn {
  background: linear-gradient(135deg, var(--blue-light) 0%, #2563eb 100%);
  color: var(--white);
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 900;
  border: 1px solid #ffffff;
  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.3),
    0 0 15px rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.diagnostics-form .form-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 15px 50px rgba(37, 99, 235, 0.5),
    0 0 20px rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #4f87ff 0%, #1d4ed8 100%);
  border-color: #ffffff;
}

.diagnostics-form .form-submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 20px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all 0.25s;
}

.form-input::placeholder {
  color: var(--grey-400);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-light);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.form-notice {
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-top: 12px;
  text-align: center;
  opacity: 0.7;
}

.error-msg {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 8px;
  padding-left: 10px;
  display: none;
}

.form-submit-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 0.85rem;
  padding: 16px;
}

.form-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}


/* ===== MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--grey-200);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.35s;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15);
}

/* Grid pattern for the modal background */
.modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26, 42, 71, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 42, 71, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.modal-content > * {
  position: relative;
  z-index: 1;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #1a2a47;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s;
}

.modal-close:hover {
  color: #3b82f6;
  transform: scale(1.1);
}

.modal-top-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.modal-title-small {
  font-size: 0.9em;
  color: var(--text-muted);
  font-weight: 400;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.modal-info-newtext {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.modal-info-newtext strong,
.modal-form-header strong {
  color: #1a2a47;
  font-weight: 800;
}

.modal-form-card {
  padding: 0;
  background: none;
  border: none;
}

.modal-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-form-header p {
  line-height: 1.5;
  color: #1a2a47;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 30px 16px 20px;
    border-radius: 16px;
    width: 96%;
    margin: 0 auto;
  }
  
  .modal-title {
    font-size: 1rem;
    padding: 0 20px;
  }
  
  .timer-uptitle {
    font-size: 0.65rem !important;
  }
  
  .modal-form-header p {
    font-size: 0.85rem !important;
  }
  
  .modal-close {
    top: 8px;
    right: 8px;
    font-size: 1.8rem;
  }
  
  .actual-form input {
    font-size: 0.9rem;
    padding: 12px;
  }
  
  .btn-modal {
    padding: 14px;
    font-size: 0.75rem;
  }
}

.modal-uptitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.modal-cta-main {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 20px;
}

.modal-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin-bottom: 24px;
  justify-content: center;
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 6px;
  padding: 5px 10px;
  min-width: 44px;
}

.timer-num {
  font-size: 1.1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #1a2a47;
  line-height: 1;
}

.timer-label {
  font-size: 0.4rem;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 2px;
  font-weight: 600;
  text-transform: lowercase;
}

.timer-sep {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-accent);
  align-self: center;
}

.actual-form .input-group {
  margin-bottom: 14px;
}

.actual-form input[type="text"],
.actual-form input[type="tel"] {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.25s;
}

.actual-form input::placeholder {
  color: var(--grey-400);
}

.actual-form input:focus {
  outline: none;
  border-color: var(--blue-bright);
}

.modal-privacy {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ===== REVEAL ANIMATIONS ===== */

.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--blue-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
  border-radius: 4px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  :root {
    --section-gap: 70px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .prog-panel-inner {
    grid-template-columns: 1fr;
  }

  .prog-panel-visual {
    order: -1;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-info {
    display: none;
  }

  .review-slide {
    flex: 0 0 calc(100% / 2.5 - 10px);
    width: calc(100% / 2.5 - 10px);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .timer-card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .timer-title {
    font-size: 1.1rem;
    white-space: normal;
    /* Allow wrapping on mobile */
    margin-bottom: 20px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-item {
    min-width: 58px;
    padding: 8px 4px;
  }

  .countdown-item .num {
    font-size: 1.1rem;
  }

  .countdown-sep {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .form-body {
    padding: 24px 20px;
  }

  .modal-content {
    padding: 24px 20px;
  }

  .review-slide {
    flex: 0 0 calc(98% - 16px);
    width: calc(98% - 16px);
  }

  .partner-logos {
    gap: 12px;
  }

  .step-item {
    flex-direction: column;
    gap: 10px;
  }

  .step-num {
    font-size: 2.5rem;
  }

  .prog-panel-inner {
    padding: 24px;
  }
}

/* ===== FINAL CTA SECTION ===== */

.final-cta-section {
  padding: 60px 0 100px;
  background: var(--bg-white);
}

.final-cta-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 50%, #e0f2fe 100%);
  position: relative;
  border-radius: 32px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.05),
    inset 0 0 60px rgba(255, 255, 255, 0.5);
}

/* Add a floating radial glow behind the laptop */
.final-cta-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    opacity: 0.6;
    transform: translateY(-50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

.final-cta-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.glassy-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1e293b;
  margin-bottom: 24px;
}

.shimmer-text {
  background: linear-gradient(135deg,
      #1e293b 0%,
      #3b82f6 25%,
      #1e293b 50%,
      #3b82f6 75%,
      #1e293b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
  to {
    background-position: 200% center;
  }
}

.final-cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}

.final-cta-image {
  flex: 0 0 650px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
}



.final-cta-image img {
  width: 100%;
  height: auto;
  transform: scale(1.43) translateX(0);
  z-index: 2;
  position: relative;
  transition: transform 0.3s ease;
}

@media (max-width: 968px) {
  .final-cta-card {
    flex-direction: row;
    /* Keeping side-by-side like PC version */
    flex-wrap: wrap;
    text-align: left;
    padding: 60px 40px;
    gap: 30px;
    justify-content: center;
  }

  .final-cta-content {
    flex: 1;
    min-width: 280px;
    z-index: 5;
  }

  .final-cta-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    overflow: visible;
  }

  .final-cta-image img {
    width: 150%;
    transform: scale(1.6) translateX(10%);
    z-index: 2;
  }
}

@media (max-width: 600px) {
  .final-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .final-cta-image img {
    width: 160%;
    transform: scale(1.3);
    margin-top: 20px;
  }
}

/* Case Image Mobile Optimization */

/* ===== CASES SLIDER CUSTOM (NOW VERTICAL COLUMN) ===== */
.cases-slider-custom {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 40px;
  padding: 10px 20px 30px;
  margin-bottom: 60px;
}

.case-card-wrapper {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  /* Force square to match typical card format and prevent gaps */
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--blue-light);
  box-shadow:
    0 0 20px var(--blue-glow),
    0 0 40px rgba(37, 99, 235, 0.15);
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.13);
  /* Final precision adjustment */
  transform-origin: center center;
}

.case-card-wrapper:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 30px var(--blue-light),
    0 0 60px rgba(37, 99, 235, 0.25);
}

@media (max-width: 480px) {
  .case-card-wrapper {
    width: 95%;
    /* slightly wider on small phones */
  }
}

@media (max-width: 768px) {
  .program-dropdown-container {
    max-width: 90%;
  }
}