/* ============================================================
   МЕДОЗОНС® — Дизайн-система (см. DESIGN.md)
   ============================================================ */

:root {
  --color-primary: #00017F;
  --color-primary-light: #2A2BB5;
  --color-primary-dark: #000066;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-light: #F7F8FA;
  --color-border: #E4E6EB;
  --color-gray: #5C6270;
  --color-gray-light: #9AA0AC;
  --color-dark: #1A1A1A;

  --gradient-primary: linear-gradient(135deg, #4a90d9 0%, #5ba3e0 50%, #6db3f0 100%);
  --gradient-accent: linear-gradient(135deg, #5ba3e0 0%, #6db3f0 100%);
  --gradient-radial: radial-gradient(circle at 70% 40%, rgba(91, 163, 224, 0.3) 0%, transparent 60%);

  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --container-max: 1200px;
  --section-padding: 96px 0;
  --card-radius: 4px;
  --btn-radius: 2px;
  --transition: all 0.2s ease;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
  background: var(--color-white);
  overflow-x: hidden;
  padding-top: 126px; /* высота фиксированного header (topbar + main) */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Контейнер ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  font-family: var(--font-body);
  background: none;
}
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.btn-white { background: var(--color-white); border-color: var(--color-white); color: var(--color-primary); }
.btn-white:hover { background: var(--color-light); }
.btn-black { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }
.btn-black:hover { background: var(--color-primary); border-color: var(--color-primary); }
.btn-sm { padding: 12px 24px; font-size: 13px; }

/* ---------- Секции ---------- */
.section { padding: var(--section-padding); }
.section-light { padding: var(--section-padding); background: var(--color-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--color-black);
}
.section-subtitle {
  font-size: 17px;
  color: var(--color-gray);
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-dark {
  background: var(--color-black);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
}
.section-dark .container { position: relative; }
.section-dark .section-title { color: var(--color-white); }
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.7); }
.section-dark .content h2 { color: var(--color-white); }
.section-dark .content p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Page header (внутренние страницы) ---------- */
.page-header {
  background: var(--color-light);
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--color-border);
}
.page-header .section-title {
  font-size: 26px;
  margin-bottom: 8px;
  text-align: left;
  color: var(--color-dark);
}
.page-header .section-subtitle {
  font-size: 15px;
  color: var(--color-gray);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
  line-height: 1.6;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-top {
  background: #ededed;
  color: #333;
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: var(--color-primary); }
.header-top a:hover { color: var(--color-primary-light); }

.header-main {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.header-main .container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.logo-text sup { font-size: 10px; }

.nav-menu > ul { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-menu a {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-black);
  padding: 10px 0;
  display: block;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: 0;
  padding: 12px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-black);
  display: block;
  line-height: 1.4;
  border-bottom: none;
}
.dropdown a:hover { background: var(--color-light); color: var(--color-primary); }
.dropdown a.active { color: var(--color-primary); }

/* Вложенные dropdown — справа */
.dropdown .dropdown {
  position: absolute;
  left: 100%; top: -16px;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(10px);
  pointer-events: none;
}
.dropdown .has-dropdown:hover > .dropdown {
  opacity: 1 !important; visibility: visible !important;
  transform: translateX(0); pointer-events: auto;
}

/* Подменю в dropdown (dropdown-sub) */
.dropdown-sub {
  margin-left: 16px;
  padding-left: 8px;
  border-left: 2px solid var(--color-light);
}
.dropdown-sub a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-gray);
  text-decoration: none;
  transition: all 0.2s;
}
.dropdown-sub a:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

/* Раздел меню в dropdown (не ссылка) */
.dropdown-section {
  display: block;
  padding: 8px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}

/* Мобильное меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: var(--transition);
}

/* ---------- Hero-слайдер ---------- */
.hero {
  margin-top: 140px;
  position: relative;
  max-width: var(--container-max);
  margin-left: auto; margin-right: auto;
  overflow: hidden;
  height: 400px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  background: var(--slide-bg, var(--color-primary));
  background-size: cover;
  background-position: right center;
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide-text {
  max-width: 66%;
  padding: 40px 0 40px 60px;
  color: var(--color-white);
}
.hero-slide-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero-slide-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-slide-btn {
  display: inline-block;
  background: #3C9E50;
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
}
.hero-slide-btn:hover { background: #2e7d3d; }

.hero-dots {
  position: absolute;
  bottom: 20px; left: 60px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hero-dot.active { background: var(--color-primary-light); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.hero-arrow-prev { left: 0; }
.hero-arrow-next { right: 0; }

/* ---------- Hero slider (ozonid.ru style) ---------- */
.hero-desktop { display: block; }
.hero-mobile { display: none; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-slide-inner {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: grab;
  display: flex;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
}
.hero-slide-inner:active { cursor: grabbing; }

.hero-slide-contents {
  position: relative;
  z-index: 3;
  max-width: 66%;
  padding: 40px 0 40px 60px;
}

.hero-slide-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 34px;
  margin-bottom: 16px;
  color: var(--color-white);
}
.hero-slide-heading sup { font-size: 0.5em; vertical-align: super; }

.hero-slide-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.slider-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--color-primary-light); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); }
.slider-arrow.prev { left: 32px; }
.slider-arrow.next { right: 32px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 50px 0 20px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumbs-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 14px;
  color: var(--color-gray);
}
.breadcrumbs-list li:not(:last-child)::after { content: '/'; color: var(--color-gray-light); }
.breadcrumbs-list a { color: var(--color-gray); font-weight: 500; }
.breadcrumbs-list a:hover { color: var(--color-primary); }
.breadcrumbs-current { color: var(--color-black); font-weight: 600; }

/* ---------- Contact page ---------- */
.contact-person-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 24px;
  margin: 24px 0;
}
.contact-person-photo {
  flex-shrink: 0;
  width: 160px;
}
.contact-person-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.contact-person-info {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
}
.contact-person-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-black);
}
.distributor-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 20px 24px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.7;
}
.distributor-block h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.distributor-block p { margin-bottom: 2px; }

/* ---------- Карточки ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.card-image { height: 240px; object-fit: cover; width: 100%; }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-black);
}
.card-text { font-size: 15px; color: var(--color-gray); flex: 1; }
.card-link {
  margin-top: 16px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.card-link:hover { color: var(--color-primary-light); }

/* Feature-карточка */
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-black);
}
.feature-text { font-size: 15px; color: var(--color-gray); line-height: 1.6; }

/* Product-карточка */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.product-image {
  height: 220px;
  object-fit: contain;
  padding: 24px;
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-black);
}
.product-desc { font-size: 14px; color: var(--color-gray); flex: 1; }
.product-btn {
  display: block;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: var(--btn-radius);
  transition: var(--transition);
}
.product-btn:hover { background: var(--color-primary); color: var(--color-white); }

/* ---------- Contact-карточка ---------- */
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 36px;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 22px;
}
.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-card p, .contact-card a { font-size: 15px; color: var(--color-gray); }
.contact-card a:hover { color: var(--color-primary); }

/* ---------- Lead form ---------- */
.lead-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--card-radius);
  padding: 48px 40px;
}
.lead-form-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lead-form-card > p { color: var(--color-gray); font-size: 15px; margin-bottom: 28px; }
.lead-form-group { margin-bottom: 20px; }
.lead-form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 8px;
}
.lead-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-black);
  background: var(--color-white);
  transition: var(--transition);
}
.lead-form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 1, 127, 0.1);
}
.lead-form-input::placeholder { color: var(--color-gray-light); }
textarea.lead-form-input { min-height: 120px; resize: vertical; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: #ededed;
  border-top: 2px solid var(--color-primary);
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.sticky-cta-text strong { font-size: 15px; font-weight: 600; display: block; }
.sticky-cta-text span { font-size: 13px; color: var(--color-gray); }
.sticky-cta .btn { white-space: nowrap; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content { display: inline-block; animation: marquee 35s linear infinite; }
.marquee-content span { margin-right: 64px; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Specs table ---------- */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  vertical-align: top;
}
.specs-table td:first-child { color: var(--color-gray); width: 55%; }
.specs-table td:last-child { font-weight: 600; color: var(--color-dark); }
.specs-table tr:nth-child(even) { background: var(--color-light); }

/* Сравнительная таблица */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  text-align: center;
  vertical-align: top;
}
.compare-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.compare-table td:first-child, .compare-table th:first-child {
  text-align: left;
  color: var(--color-gray);
  background: var(--color-light);
  font-weight: 500;
}
.compare-table tr:nth-child(even) td { background: var(--color-light); }
.compare-table tr:nth-child(even) td:first-child { background: #eef0f4; }

/* ---------- Документы (PDF-ссылки) ---------- */
.doc-list { display: grid; gap: 16px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--card-radius);
  background: var(--color-white);
  transition: var(--transition);
}
.doc-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.doc-icon {
  width: 44px; height: 44px;
  background: var(--color-light);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 20px;
  flex-shrink: 0;
}
.doc-item strong { display: block; font-size: 15px; color: var(--color-black); }
.doc-item span { font-size: 13px; color: var(--color-gray-light); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 24px 48px 24px 0;
}
.timeline-item:nth-child(even) {
  left: 50%;
  padding: 24px 0 24px 48px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 36px;
  right: -7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-primary);
  z-index: 1;
}
.timeline-item:nth-child(even)::before { right: auto; left: -7px; }
.timeline-year {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-black);
}
.timeline-text { font-size: 15px; color: var(--color-gray); }
.timeline-item img {
  max-width: 70%;
  max-height: 180px;
  object-fit: contain;
  margin-top: 12px;
  border-radius: 8px;
}

/* ---------- Reveal-анимации ---------- */
/* Блоки видны сразу, без scroll-reveal анимаций */
.reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }

/* ---------- Home: static hero ---------- */
.hero-static {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
}
.hero-static .hero-slide-text {
  max-width: 900px;
  width: 100%;
  padding: 60px 24px;
  text-align: center;
}
.hero-static .hero-slide-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 0;
}

/* ---------- Products: generation rows ---------- */
.gen-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 24px 0 40px;
}
.gen-item {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
}
.gen-item img {
  max-width: 100%;
  width: auto;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.gen-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 6px;
}
.gen-discontinued {
  font-size: 13px;
  color: #cc0000;
  font-weight: 600;
}

/* ---------- Products: table group header ---------- */
.compare-table .table-group-row td {
  background: var(--color-light);
  font-weight: 700;
  color: var(--color-dark);
  padding: 10px 16px;
}

/* ---------- Home: device cards ---------- */
.device-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.device-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.device-card-img {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 20px;
}
.device-card-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.device-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.device-card-label {
  font-size: 13px;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.device-card-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}
.device-card-name sup { font-size: 0.5em; vertical-align: super; }
.device-card-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.device-card-desc {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}
.device-card-iso {
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 16px;
}
.device-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Home: model grid ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.model-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.model-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
}
.model-card h3 sup { font-size: 0.5em; vertical-align: super; }
.model-card p {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 16px;
}
.model-card .btn { margin-top: auto; }

/* ---------- Home: section-alt ---------- */
.section-alt { background: #f5f7fa; }

/* ---------- Home: special lists ---------- */
.special-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.special-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}
.special-list li:last-child { border-bottom: none; }
.special-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.special-list-light li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.special-list-light li::before { color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: #ededed;
  color: #333;
  padding: 72px 0 32px;
  border-top: 4px solid var(--color-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.footer-about { font-size: 14px; color: #666; max-width: 280px; line-height: 1.6; }
.footer-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: #555;
  padding: 5px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--color-primary-light); }
.footer-contact p { font-size: 14px; color: #555; padding: 4px 0; }
.footer-contact a { color: var(--color-primary); }
.footer-contact a:hover { color: var(--color-primary-light); }
.footer-bottom {
  border-top: 1px solid #ccc;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #888;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* ---------- Контент (текст) ---------- */
.content { max-width: 900px; margin: 0 auto; }
.content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-black);
  margin: 48px 0 16px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  margin: 32px 0 12px;
}
.content p { font-size: 15px; color: var(--color-dark); margin-bottom: 16px; line-height: 1.7; }
.content ul, .content ol { margin: 0 0 20px 24px; }
.content ul li, .content ol li { font-size: 15px; color: var(--color-dark); margin-bottom: 8px; line-height: 1.6; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-slide-text { max-width: 75%; padding-left: 40px; }
  .hero-slide-title { font-size: 22px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-top { display: none; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--color-white);
    border-left: 1px solid var(--color-border);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 24px 40px;
  }
  .nav-menu.active { right: 0; }
  .nav-menu > ul { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-menu > ul > li { border-bottom: 1px solid var(--color-border); }
  .nav-menu a { padding: 14px 0; }
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: none;
    padding: 0 0 0 16px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown.active > .dropdown { display: block; }
  .dropdown .dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .has-dropdown.active > .dropdown .has-dropdown.active > .dropdown { display: block; }

  .hero { margin-top: 0; height: 500px; }
  .hero-slide { background: var(--color-white); }
  .hero-slide-text {
    max-width: 100%;
    padding: 40px 24px;
    color: var(--color-dark);
  }
  .hero-slide-text p { color: var(--color-gray); }
  .hero-arrow { background: rgba(0, 0, 0, 0.05); border-color: var(--color-border); color: var(--color-black); }
  .hero-dots { left: 24px; }

  .breadcrumbs { margin-top: 0; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .lead-form-card { padding: 32px 24px; }

  .sticky-cta-text { display: none; }
  .sticky-cta .btn { width: 100%; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 16px 0 16px 50px;
  }
  .timeline-item::before, .timeline-item:nth-child(even)::before {
    left: 12px; right: auto;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .compare-table { display: block; overflow-x: auto; }
}

/* ============================================================
   Product photo slider (.product-slider)
   ============================================================ */
.product-slider { margin-bottom: 24px; }
.product-slider-main {
  position: relative;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.product-slider-main img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  display: none;
}
.product-slider-main img.active { display: block; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.slider-arrow:hover { background: var(--color-primary); }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.product-slider-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.product-slider-thumbs img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: var(--color-light);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  box-sizing: border-box;
  transition: var(--transition);
}
.product-slider-thumbs img:hover { border-color: var(--color-primary); }
.product-slider-thumbs img.active { border-color: var(--color-primary); }

@media (max-width: 768px) {
  .product-slider-main img { height: 220px; }
  .product-slider-thumbs img { height: 48px; }
}
/* ============================================================
   Product top layout (.product-top)
   ============================================================ */
.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-top-left {
  position: sticky;
  top: 140px;
}
.product-top-right {
  padding-top: 16px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.product-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray);
}
.product-h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--color-black);
}
.product-h1 sup {
  font-size: 0.5em;
  vertical-align: super;
}
.product-subtitle {
  font-size: 15px;
  color: var(--color-gray);
  margin: -12px 0 24px;
  line-height: 1.5;
}
.product-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: 14px;
}
.product-top-right .btn-outline {
  margin-top: 24px;
}
.ru-link {
  margin-bottom: 24px;
}
.ru-link a {
  font-size: 14px;
  color: var(--color-gray);
  text-decoration: underline;
  line-height: 1.5;
}
.ru-link a:hover {
  color: var(--color-primary);
}
.price-big {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-black);
}
.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  border: 2px solid #6c7bff;
  border-radius: 8px;
  color: #6c7bff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  background: #6c7bff;
  color: #fff;
}

@media (max-width: 992px) {
  .product-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-top-left {
    position: static;
  }
}

/* ============================================================
   Lightbox
   ============================================================ */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.lightbox-close:hover {
  color: var(--color-primary-light, #6c7bff);
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-arrow:hover {
  background: var(--color-primary, #00017f);
}
.lightbox-arrow.prev {
  left: 20px;
}
.lightbox-arrow.next {
  right: 20px;
}

/* ============================================================
   Back to Top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 170px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary, #00017f);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-primary-light, #6c7bff);
  transform: translateY(-4px);
}
.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   Content figures (inline illustrations)
   ============================================================ */
.content-figure {
  margin: 24px 0;
  text-align: center;
}
.content-figure img {
  max-width: 100%;
  width: auto;
  max-height: 480px;
  object-fit: contain;
}
.content-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.5;
}

/* Method rows: text left, image right */
.method-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 32px 0;
}
.method-text {
  flex: 1;
  min-width: 0;
}
.method-img {
  flex: 0 0 280px;
  width: 280px;
  margin: 0;
  text-align: center;
}
.method-img img {
  max-width: 280px;
  max-height: 220px;
  cursor: pointer;
  border-radius: 6px;
}
.method-img-placeholder {
  flex: 0 0 280px;
  width: 280px;
}
@media (max-width: 992px) {
  .method-row {
    flex-direction: column;
    gap: 16px;
  }
  .method-img,
  .method-img-placeholder {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .method-img img {
    max-width: 100%;
    max-height: 260px;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.product-line {
  padding: 24px;
  background: var(--color-bg-light, #f8f9fa);
  border-radius: 12px;
  text-align: center;
}
.product-line p {
  margin: 6px 0;
}
