/* ═══════════════════════════════════════════════════════
   Telephony.AI — Style Sheet
   Modern SaaS design system
   ═══════════════════════════════════════════════════════ */

:root {
  --color-bg: #fafafa;
  --color-dark: #0a0a0a;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-green: #10b981;
  --color-violet: #8b5cf6;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-card: #ffffff;
  --color-surface: #f1f5f9;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px -15px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 8px 30px -8px rgba(37, 99, 235, 0.35);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 250, 250, 0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 0 1.5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-dark);
}

.logo svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: currentColor;
  transition: color 0.3s;
}

.logo:hover svg {
  color: var(--color-accent);
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.desktop-nav {
  display: none;
  gap: 2.25rem;
  list-style: none;
}

.desktop-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.25s;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-dark);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header-cta {
  display: none;
  padding: 0.6rem 1.5rem;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.header-cta:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-dark);
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Показываем десктоп-нав только при достаточной ширине, иначе — бургер (избегаем скученности) */
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* ─── MOBILE MENU ─────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color 0.25s;
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

.menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--color-dark);
  z-index: 10;
  border-radius: 50%;
  transition: background 0.2s;
}

.menu-close:hover {
  background: var(--color-surface);
}

.menu-close svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
}

.mobile-menu .mobile-cta {
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  background: var(--color-dark);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.3s;
}

.mobile-menu .mobile-cta:hover {
  background: var(--color-accent);
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* ─── LAYOUT ──────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 0;
  }
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 11rem;
    padding-bottom: 5rem;
  }
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  top: 100px;
  right: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.8);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-card);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  border-color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-whatsapp:hover {
  background: #1eba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -6px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* ─── STATS BAR ───────────────────────────────────────── */
.stats-bar {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.stat-item {
  text-align: center;
  position: relative;
}

@media (min-width: 640px) {
  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--color-border);
  }
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-dark), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 400;
}

/* ─── CASES / AUDIO ───────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

/* 2 колонки на средних экранах — карточки не обрезаются */
@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 колонки только при достаточной ширине */
@media (min-width: 1100px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

@media (min-width: 640px) {
  .case-card {
    padding: 2rem;
  }
}

.case-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #60a5fa);
}

.case-accent.accent-green {
  background: linear-gradient(90deg, var(--color-green), #6ee7b7);
}

.case-accent.accent-violet {
  background: linear-gradient(90deg, var(--color-violet), #c4b5fd);
}

.case-accent.accent-amber {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.case-accent.accent-rose {
  background: linear-gradient(90deg, #f43f5e, #fda4af);
}

.case-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.case-header>div:last-child {
  min-width: 0;
}

.case-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.case-icon.icon-green {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-green);
}

.case-icon.icon-violet {
  background: rgba(139, 92, 246, 0.08);
  color: var(--color-violet);
}

.case-icon.icon-amber {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.case-icon.icon-rose {
  background: rgba(244, 63, 94, 0.08);
  color: #f43f5e;
}

.case-card:hover .case-icon {
  transform: scale(1.05);
}

.case-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.case-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Audio Player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border-radius: 999px;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

@media (min-width: 480px) {
  .audio-player {
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
  }
}

.play-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.play-btn:active {
  transform: scale(0.95);
}

.case-card:nth-child(2) .play-btn {
  background: var(--color-green);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.case-card:nth-child(2) .play-btn:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.case-card:nth-child(3) .play-btn {
  background: var(--color-violet);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.case-card:nth-child(3) .play-btn:hover {
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.audio-track {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 2.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.audio-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.audio-fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.audio-fill.fill-green {
  background: var(--color-green);
}

.audio-fill.fill-violet {
  background: var(--color-violet);
}

.audio-fill.fill-amber {
  background: #f59e0b;
}

.audio-fill.fill-rose {
  background: #f43f5e;
}

.audio-waveform {
  width: 100%;
  height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-bottom: 6px;
}

.audio-waveform .bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 1px;
  min-width: 2px;
  transition: background 0.15s;
}

.audio-player.playing .audio-waveform .bar.active {
  background: var(--color-accent);
}

.case-card:nth-child(2) .audio-player.playing .audio-waveform .bar.active {
  background: var(--color-green);
}

.case-card:nth-child(3) .audio-player.playing .audio-waveform .bar.active {
  background: var(--color-violet);
}

.audio-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  min-width: 2.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Case Tags */
.case-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.case-tag.tag-green {
  background: rgba(16, 185, 129, 0.06);
  color: var(--color-green);
}

.case-tag.tag-violet {
  background: rgba(139, 92, 246, 0.06);
  color: var(--color-violet);
}

.case-tag.tag-amber {
  background: rgba(245, 158, 11, 0.06);
  color: #f59e0b;
}

.case-tag.tag-rose {
  background: rgba(244, 63, 94, 0.06);
  color: #f43f5e;
}

/* ─── SECTION COMMON ─────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-muted);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 300;
  overflow-wrap: break-word;
}

/* ─── SERVICES ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

@media (min-width: 640px) {
  .service-card {
    padding: 2.5rem;
  }
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #8b5cf6);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li .check {
  color: var(--color-accent);
  font-weight: 700;
}

/* ─── HOW IT WORKS ────────────────────────────────────── */
.process-section {
  background: var(--color-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.process-section .bg-grid {
  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: 60px 60px;
  pointer-events: none;
}

.process-section .section-tag {
  color: rgba(255, 255, 255, 0.4);
}

.process-section .section-title {
  color: #fff;
}

.process-section .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

@media (min-width: 640px) {
  .process-card {
    padding: 2.5rem 2rem;
  }
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-accent);
}

.process-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-card p {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── ABOUT ───────────────────────────────────────────── */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: all 0.3s;
}

.about-feature-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.about-feature-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ─── FAQ ─────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.open {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  gap: 1rem;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, color 0.3s;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ─── CONTACT ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-form-card {
  background: var(--color-card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 3rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-input::placeholder {
  color: #94a3b8;
}

textarea.form-input {
  resize: none;
  min-height: 120px;
}

.form-alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}

.form-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  display: block;
}

.form-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  display: block;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit:hover {
  background: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-submit .spinner {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form-submit.loading .spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1rem;
}

.err-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.err-msg.visible {
  display: block;
}

.contact-info {
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .contact-info {
    padding-top: 2rem;
  }
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-item-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.25s;
}

a.contact-item-value:hover {
  color: var(--color-accent);
}

.contact-cta-box {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.contact-cta-box h4 {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-cta-box p {
  color: var(--color-muted);
  font-weight: 300;
  font-size: 0.9rem;
}

/* ─── CTA SECTION ─────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 2.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-accent);
  position: relative;
}

.btn-cta:hover {
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--color-dark);
  color: #fff;
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 360px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ─── ANIMATIONS ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 {
  transition-delay: 0.1s;
}

.fade-up.delay-2 {
  transition-delay: 0.2s;
}

.fade-up.delay-3 {
  transition-delay: 0.3s;
}

.fade-up.delay-4 {
  transition-delay: 0.4s;
}

.fade-up.delay-5 {
  transition-delay: 0.5s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Стили для Hero Карусели --- */
.hero {
  position: relative;
  overflow: hidden;
  /* Обязательно, чтобы скрыть второй слайд сбоку */
}

.hero-slider-container {
  width: 100%;
  position: relative;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  box-sizing: border-box;
  /* Убедимся, что контент внутри слайда выравнивается как раньше */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Точки управления внизу экрана */
.hero-slider-nav {
  position: absolute;
  bottom: 2rem;
  /* Расстояние от низа hero-блока */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: #2563eb;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

@media (max-width: 768px) {
  .hero-slider-nav {
    bottom: 1rem;
  }
}