/* ==========================================================================
   VNA.KZ - Сосудистое нейрохирургическое отделение ГКБ №7 г. Алматы
   Современная медицинская дизайн-система
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0f3d64;         /* Глубокий медицинский синий */
  --primary-dark: #082138;
  --primary-light: #1a5587;
  --accent: #0284c7;          /* Лазурный / Высокотехнологичный */
  --accent-light: #e0f2fe;
  --teal: #0d9488;            /* Хирургический бирюзовый */
  --teal-light: #f0fdfa;
  --emergency: #dc2626;       /* Красный для экстренной помощи / Инсульт */
  --emergency-light: #fef2f2;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  
  --text-main: #1e293b;       /* Slate 800 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;      /* Slate 400 */
  --bg-page: #f8fafc;         /* Slate 50 */
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;    /* Slate 200 */
  --border-focus: #38bdf8;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container-max: 1240px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Контейнер и утилиты сетки
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-header {
  margin-bottom: 3.5rem;
}
.section-header.text-center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-badge.badge-emergency {
  background: var(--emergency-light);
  color: var(--emergency);
}

.section-badge.badge-teal {
  background: var(--teal-light);
  color: var(--teal);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(15, 61, 100, 0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(15, 61, 100, 0.4);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.35);
}
.btn-accent:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

.btn-emergency {
  background: var(--emergency);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.35);
}
.btn-emergency:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fafc;
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Top Bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-wa {
  color: var(--whatsapp);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.topbar-wa:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Navbar Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.35rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}
.nav-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.nav-social-btn[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
}
.nav-social-btn[aria-label="Facebook"]:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: transparent;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--primary);
}
.menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-cta .btn-consult {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-cta {
    gap: 0.4rem;
  }
  /* Иконки Instagram и Facebook — чуть компактнее */
  .nav-social-btn {
    width: 30px;
    height: 30px;
  }
  .nav-social-btn svg {
    width: 16px;
    height: 16px;
  }
  /* Кнопка WhatsApp — скрываем текст, оставляем иконку */
  .nav-cta .btn-whatsapp,
  .nav-cta .btn-emergency {
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0;
    gap: 0;
    overflow: hidden;
  }
  .nav-cta .btn-whatsapp svg,
  .nav-cta .btn-emergency svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    font-size: initial;
  }
  /* Если в кнопке WA нет SVG — добавим иконку через before */
  .nav-cta .btn-whatsapp:not(:has(svg))::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38c1.45.79 3.08 1.21 4.74 1.21 5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.816 9.816 0 0012.04 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }
  .nav-cta .btn-emergency:not(:has(svg))::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0b2545 0%, #134074 60%, #1e5288 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(2, 132, 199, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.35);
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title span {
  color: #38bdf8;
}
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}
.hero-stat-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.35;
}

.hero-image-wrap {
  position: relative;
}
.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: #0f2c4e;
}
.hero-image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(11, 37, 69, 0.95), transparent);
  color: #ffffff;
}
.hero-image-caption {
  font-weight: 700;
  font-size: 1rem;
}
.hero-image-sub {
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.hero-float-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: #ffffff;
  color: var(--primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
}
.hero-float-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-image-card img {
    height: 320px;
  }
  .hero-float-badge {
    right: 10px;
    bottom: -10px;
  }
}

/* --------------------------------------------------------------------------
   FAST Emergency Banner (Инсульт)
   -------------------------------------------------------------------------- */
.emergency-banner {
  background: #ffffff;
  border-bottom: 2px solid var(--emergency);
  padding: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.fast-card {
  background: var(--emergency-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.fast-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fast-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emergency);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fast-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #991b1b;
  line-height: 1.2;
}
.fast-sub {
  font-size: 0.875rem;
  color: #b91c1c;
  font-weight: 500;
}
.fast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.fast-step {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  border-left: 4px solid var(--emergency);
  box-shadow: var(--shadow-sm);
}
.fast-letter {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emergency);
  display: block;
  margin-bottom: 0.25rem;
}
.fast-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.fast-text {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.fast-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}

@media (max-width: 991px) {
  .fast-card {
    grid-template-columns: 1fr;
  }
  .fast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fast-action {
    min-width: auto;
  }
}
@media (max-width: 540px) {
  .fast-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Directions / Services Grid
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-card.highlight {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8, var(--shadow-md);
}

.service-badge-hot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.04em;
}

.service-image {
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-image img {
  transform: scale(1.05);
}
.service-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-methods {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.service-methods-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.service-methods-list {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.service-methods-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.service-methods-list li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.service-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-link:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Technologies / Scroll-Driven Video Scrubbing Section
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Technologies / Scroll-Driven Video Scrubbing Section
   -------------------------------------------------------------------------- */
.tech-scroll-section {
  position: relative;
  height: 400vh;
  background-color: #030a14;
}

.tech-sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Фоновый видеослой секции: 100% чистая яркость без затемнения */
.tech-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  background-color: #030a14;
}

.tech-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: translateZ(0);
  will-change: transform;
}

/* Оверлей абсолютно прозрачен, видео видно полностью и ярко */
.tech-video-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* Мягкие переходы только на самых крайних кромках секции */
.tech-scroll-section::before,
.tech-scroll-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 5;
  pointer-events: none;
}
.tech-scroll-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-page) 0%, transparent 100%);
}
.tech-scroll-section::after {
  bottom: 0;
  background: linear-gradient(to top, #ffffff 0%, transparent 100%);
}

/* Контентная сцена */
.tech-content-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
}

/* Колода карточек в центре экрана */
.tech-stage-deck {
  position: relative;
  width: 100%;
  max-width: 680px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Карточки, появляющиеся и исчезающие при скролле */
.tech-fade-card {
  position: absolute;
  width: 100%;
  max-width: 680px;
  background: rgba(7, 20, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(2, 132, 199, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 24px, 0) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: opacity, transform;
  contain: layout style;
}

.tech-fade-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  border-color: #38bdf8;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 32px rgba(56, 189, 248, 0.3);
}

.tech-fade-card.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -24px, 0) scale(0.97);
}

/* Заголовочная вводная карточка */
.tech-header-card {
  text-align: center;
}

.tech-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tech-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.tech-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bae6fd;
}

.tech-main-title {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.tech-main-desc {
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
}

.tech-scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #38bdf8;
  font-size: 0.825rem;
  font-weight: 600;
  margin-top: 1.5rem;
  letter-spacing: 0.03em;
}
.tech-scroll-arrow {
  display: inline-block;
  font-size: 1rem;
  animation: bounce-arrow 1.6s infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Шапка карточек технологий */
.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tech-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.tech-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  margin-bottom: 0;
}
.icon-angio {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}
.icon-micro {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}
.icon-osms {
  background: linear-gradient(135deg, #059669, #10b981);
}

.tech-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.tech-desc {
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Прогресс-бар внизу экрана */
.tech-progress-bar-wrap {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 20;
}

.tech-progress-line {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.tech-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #2dd4bf);
  border-radius: var(--radius-full);
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.tech-progress-steps {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.tech-step-item {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.tech-step-item:hover {
  color: #ffffff;
}
.tech-step-item.active {
  color: #38bdf8;
  font-weight: 700;
  transform: scale(1.05);
}

/* Мобильная адаптация */
@media (max-width: 991px) {
  .tech-scroll-section {
    height: 420vh;
  }
  
  .tech-content-stage {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .tech-stage-deck {
    max-width: 100%;
    min-height: 280px;
  }

  .tech-fade-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }

  .tech-main-title {
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
  }

  .tech-main-desc {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .tech-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .tech-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .tech-icon {
    width: 44px;
    height: 44px;
  }

  .tech-progress-bar-wrap {
    bottom: 1.25rem;
    width: calc(100% - 2rem);
  }

  .tech-step-item {
    font-size: 0.65rem;
  }
}


/* --------------------------------------------------------------------------
   Doctors / Team Section
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.doctor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.doctor-photo {
  height: 310px;
  position: relative;
  background: #e2e8f0;
  overflow: hidden;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.doctor-card:hover .doctor-photo img {
  transform: scale(1.03);
}
.doctor-badge-chief {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.doctor-info {
  padding: 1.25rem;
  text-align: center;
}
.doctor-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.doctor-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.doctor-exp {
  font-size: 0.775rem;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .doctor-photo {
    height: 340px;
  }
}

/* --------------------------------------------------------------------------
   Hospitalization / ОСМС Steps
   -------------------------------------------------------------------------- */
.how-to-section {
  background: #ffffff;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.step-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border-color);
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.step-card:nth-child(1) .step-number {
  background: var(--emergency);
}
.step-card:nth-child(2) .step-number {
  background: var(--primary);
}
.step-card:nth-child(3) .step-number {
  background: var(--teal);
}
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Contacts Section
   -------------------------------------------------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.contacts-info-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.contact-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}
.contact-val a:hover {
  color: var(--accent);
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 420px;
  border: 1px solid var(--border-color);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contacts-info-card {
    padding: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.footer-about {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.25rem;
}
.footer-col-title {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: #cbd5e1;
}
.footer-links a:hover {
  color: #38bdf8;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.footer-social-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: var(--whatsapp);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.35rem 0.75rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s ease-out;
}
.fab-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.fab-whatsapp:hover {
  transform: scale(1.05) translateY(-2px);
  background: var(--whatsapp-dark);
  color: #ffffff;
}

@media (max-width: 640px) {
  .fab-whatsapp span {
    display: none;
  }
  .fab-whatsapp {
    padding: 0.9rem;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

/* --------------------------------------------------------------------------
   Article / Subpage Styling
   -------------------------------------------------------------------------- */
.subpage-hero {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}
.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.breadcrumb-sep {
  opacity: 0.5;
}

.article-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}
.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 0.5rem;
}
.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.article-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-content ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
  font-size: 1.025rem;
  color: var(--text-main);
}
.article-callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}
.article-callout.emergency {
  background: var(--emergency-light);
  border-left-color: var(--emergency);
}
.article-callout h4 {
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.article-callout.emergency h4 {
  color: #991b1b;
}

@media (max-width: 768px) {
  .article-content {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — экраны до 480px
   ========================================================================== */

@media (max-width: 480px) {

  /* Контейнер */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Заголовки секций */
  .section-title {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
  }
  .section-desc {
    font-size: 0.95rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }

  /* Hero */
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-stat-num {
    font-size: 1.35rem;
  }
  .hero-stat-desc {
    font-size: 0.7rem;
  }
  .hero-stats {
    gap: 0.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-float-badge {
    font-size: 0.75rem;
    padding: 0.6rem 0.9rem;
    right: 0;
    bottom: 0;
  }

  /* Топбар */
  .topbar-info {
    flex-direction: column;
    gap: 0.25rem;
  }
  .topbar-actions {
    display: none;
  }

  /* Карточки направлений */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .service-title {
    font-size: 1.1rem;
  }
  .service-image {
    height: 180px;
  }

  /* FAST-баннер */
  .fast-title {
    font-size: 1.1rem;
  }
  .fast-card {
    padding: 1.25rem;
  }

  /* Технологии */
  .tech-grid {
    grid-template-columns: 1fr;
  }

  /* Врачи */
  .doctors-grid {
    grid-template-columns: 1fr;
  }

  /* Кнопки */
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Статистика в hero */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Очень маленькие экраны — до 360px (старые Android)
   ========================================================================== */

@media (max-width: 360px) {

  .hero-title {
    font-size: 1.35rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .fast-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ==========================================================================
   Утилитарные классы — замена inline стилей (Impeccable polish)
   ========================================================================== */

/* Hero float badge subtitle */
.hero-float-sub {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Service meta — экстренная метка */
.service-meta--emergency {
  color: var(--emergency);
}

/* Кнопка outline для раздела инсульта */
.btn-outline-emergency {
  background: transparent;
  border-color: #fca5a5;
  color: #991b1b;
}
.btn-outline-emergency:hover {
  border-color: var(--emergency);
  color: var(--emergency);
  background: var(--emergency-light);
}

/* Секция контактов */
.contacts-section {
  background: var(--bg-page);
}

/* Contact icon — вариант WhatsApp */
.contact-icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp-dark);
}

/* Ссылка на экстренный номер */
.contact-emergency-link {
  color: var(--emergency);
  font-weight: 700;
}
.contact-emergency-link:hover {
  color: #b91c1c;
}
