/* ==========================================================================
   Dental-Photo.ru — Чистый медицинский стиль (dr-light aesthetic)
   Полный обновленный файл стилей: style.css
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-subtle: #f0f9ff;
  --dark: #0f172a;
  --slate-dark: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-active: #cbd5e1;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Шапка (Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--dark);
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  white-space: nowrap;
}

.header-inner nav {
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-dark);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

/* ==========================================================================
   Кнопки и Бейджи
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--dark);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-accent {
  background: var(--primary);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-outline {
  border-color: var(--border);
  background: #ffffff;
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--dark);
  background: #ffffff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-new {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-used {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border);
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border-subtle);
  margin-right: 6px;
  margin-bottom: 6px;
}

.spec-tag-ortho {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.spec-tag-therapy {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.spec-tag-compact {
  background: #fefce8;
  color: #a16207;
  border-color: #fef08a;
}

/* ==========================================================================
   Первый экран (Hero)
   ========================================================================== */
.hero {
  position: relative;
  padding: 96px 0;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-color: var(--bg-page);
  background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), url('/hero.webp');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero .container {
  width: 100%;
}

.hero-content {
  max-width: 580px;
  margin: 0;
  text-align: left;
}

.hero-mobile-photo {
  display: none;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 14px;
}

.hero p.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
}

.hero-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.bullet-check {
  color: var(--success);
  font-weight: 800;
  background: var(--success-bg);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

/* ==========================================================================
   Быстрый гид: 3 главных сомнения перед покупкой
   ========================================================================== */
.guide-strip {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 50px;
}

.guide-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.guide-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.guide-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.guide-section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
}

.guide-all-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--primary);
  transition: var(--transition);
}

.guide-all-link:hover {
  color: var(--primary-hover);
  border-bottom-style: solid;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card-link {
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  position: relative;
}

.guide-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.guide-card-arrow {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.guide-card-link:hover .guide-card-arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}

.guide-card-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.guide-card-teaser {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.guide-card-cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.guide-card-link:hover .guide-card-cta {
  color: var(--primary);
}

#sensor, #dslr-vs-mirrorless, #lenses, #flash {
  scroll-margin-top: 90px;
}

@media (max-width: 992px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .guide-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .guide-strip .container {
    display: flex;
    flex-direction: column;
  }
  .guide-header-row {
    display: contents;
  }
  .guide-header-row > div {
    order: 1;
    margin-bottom: 18px;
  }
  .guide-grid {
    order: 2;
    margin-bottom: 22px;
  }
  .guide-all-link {
    order: 3;
    align-self: center;
    text-align: center;
  }
}

/* ==========================================================================
   Интерактивный слайдер «Сравнение света: Кольцо vs Биполяр»
   ========================================================================== */
.slider-section {
  padding: 70px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.light-compare-wrapper {
  max-width: 645px;
  margin: 30px auto 0;
}

.before-after-box {
  position: relative;
  width: 100%;
  aspect-ratio: 645 / 380;
  height: auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  user-select: none;
  background: #0b1120;
  container-type: inline-size;
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.before-after-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #ffffff;
}

.before-after-overlay .before-after-img {
  width: 100cqi;
  max-width: none;
}

.slider-pill-label {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.slider-label-left {
  left: 20px;
}

.slider-label-right {
  right: 20px;
}

.before-after-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.slider-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  pointer-events: none;
  z-index: 4;
}

.slider-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  margin-left: -22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
  pointer-events: none;
  z-index: 5;
}

.light-compare-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}

.light-note-card {
  padding: 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.light-note-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
  pointer-events: none;
}

.light-note-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.light-note-icon {
  display: none;
}

.light-note-collapse {
  display: block;
}

/* ==========================================================================
   Каталог комплектов
   ========================================================================== */
.catalog-section {
  padding: 64px 0 64px;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.filter-btn {
  background: none;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--dark);
  background: var(--border-subtle);
}

.filter-btn.active {
  color: var(--dark);
  background: #ffffff;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ==========================================================================
   Карточка комплекта
   ========================================================================== */
.kit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.kit-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kit-card-photo {
  height: 220px;
  padding: 12px;
 
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  margin-bottom: 18px;
  color: #94a3b8;
  position: relative;
  overflow: hidden;
}

.kit-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.kit-card:hover .kit-card-photo img {
  transform: scale(1.03);
}

.kit-spec-badges {
  margin-bottom: 10px;
  min-height: 28px;
}

.kit-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.kit-card-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
  min-height: 38px;
}

.kit-card-specs {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  margin-bottom: 22px;
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kit-card-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.kit-spec-k {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.84rem;
}

.kit-spec-v {
  font-weight: 600;
  color: var(--dark);
  text-align: right;
  white-space: normal;
  word-break: normal;
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.kit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.kit-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.kit-actions {
  display: flex;
  gap: 8px;
}

.btn-card-compare {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-card-compare:hover {
  color: var(--dark);
  border-color: var(--dark);
}

.btn-card-compare.in-compare {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

/* ==========================================================================
   Детальная страница комплекта (/kit/slug) и Фотогалерея
   ========================================================================== */
.kit-detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  margin-top: 24px;
  align-items: start;
}

.kit-detail-main, .kit-detail-aside {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.kit-detail-aside {
  position: sticky;
  top: 92px;
  align-self: start;
}

.kit-detail-main h1 {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--dark);
  margin: 10px 0 8px;
}

.kit-detail-main p.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Фотогалерея комплекта */
.kit-gallery {
  margin-bottom: 28px;
}

.kit-detail-photo {
  height: 320px;
  padding: 16px;

  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.kit-detail-photo::after {
  content: "🔍 Нажмите для увеличения";
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

.kit-detail-photo:hover::after {
  opacity: 1;
}

.kit-detail-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.kit-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.kit-thumb-btn {
  width: 80px;
  height: 60px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
  display: block;
}

.kit-thumb-btn:hover {
  border-color: var(--primary);
}

.kit-thumb-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.kit-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.section-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.section-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.kit-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.kit-checklist li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
}

.kit-checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}


/* ==========================================================================
   Квиз-подбор оборудования («Подобрать под мой кабинет»)
   ========================================================================== */
.quiz-section-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.quiz-banner-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}

.quiz-banner-text p {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.6;
}

/* ==========================================================================
   Обновленный Квиз-подбор оборудования
   ========================================================================== */
.quiz-modal-card {
  max-width: 660px;
  width: 100%;
  padding: 30px 28px;
}

.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quiz-step-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.quiz-timer-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 12px;
}

.quiz-progress {
  display: flex;
  height: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 22px;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 4px;
  transition: width 0.35s ease;
}

.quiz-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

.quiz-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.quiz-choice-card {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.quiz-choice-card:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  transform: translateY(-1px);
}

.quiz-choice-card.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 1px var(--primary);
}

.quiz-choice-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.quiz-choice-info {
  flex-grow: 1;
}

.quiz-choice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.quiz-choice-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.quiz-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

.quiz-choice-card.selected .quiz-radio-circle {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz-choice-card.selected .quiz-radio-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quiz-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* ==========================================================================
   Карточки товаров в результатах квиза
   ========================================================================== */
.quiz-result-heading {
  text-align: center;
  margin-bottom: 20px;
}

.quiz-result-badge-top {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.quiz-result-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.quiz-result-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Слайдер и одинаковые карточки результатов квиза
   ========================================================================== */
.quiz-slider-container {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.quiz-kits-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* Центрирование, если подходит 1-2 комплекта */
.quiz-kits-slider.is-centered {
  justify-content: center;
}

.quiz-kits-slider::-webkit-scrollbar {
  height: 6px;
}
.quiz-kits-slider::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Строго одинаковые размеры для каждой карточки */
.quiz-kit-card {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  min-width: 280px;
  scroll-snap-align: center;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.quiz-kit-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quiz-kit-img-box {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  box-sizing: border-box;
}

.quiz-kit-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.quiz-kit-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quiz-kit-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
  margin-bottom: 14px;
}

.quiz-kit-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
}

.quiz-kit-warranty {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-kit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quiz-kit-actions .btn {
  padding: 9px 4px;
  font-size: 0.82rem;
  width: 100%;
}

/* Стрелки листания для слайдера */
.quiz-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  color: var(--dark);
}
.quiz-nav-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.quiz-arrow-prev { left: -16px; }
.quiz-arrow-next { right: -16px; }

@media (max-width: 680px) {
  .quiz-nav-arrow { display: none; } /* На смартфонах листание свайпом */
  .quiz-kit-card {
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
    min-width: 250px;
    padding: 14px;
  }
  .quiz-kit-img-box { height: 140px; }
}

.quiz-reset-row {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}

@media (max-width: 640px) {
  .quiz-kits-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .quiz-modal-card {
    padding: 24px 16px;
  }
}
/* ==========================================================================
   Плавающая плашка сравнения комплектов и страница сравнения
   ========================================================================== */
.compare-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--dark);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 95;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-dock.active {
  transform: translateX(-50%) translateY(0);
}

.compare-dock-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: #f8fafc;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.compare-table tbody th {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  width: 200px;
}

/* ==========================================================================
   Таблицы и Мобильная шпаргалка настроек
   ========================================================================== */
.settings-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.settings-tab-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.settings-tab-btn.active {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  margin-top: 16px;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.clean-table th, .clean-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border-subtle);
}

.clean-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--dark);
}

/* ==========================================================================
   База знаний (Блог и Статьи)
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.article-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.article-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

/* 1. Убираем лишний отступ у первого элемента статьи (убирает дыру перед текстом) */
.article-content > :first-child {
  margin-top: 0 !important;
}

/* 2. Скрываем случайные пустые параграфы Quill */
.article-content p:empty,
.article-content p:has(> br:only-child) {
  display: none;
}

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 14px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

/* 3. Оформление картинок в тексте статьи */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: inline-block;
}

/* 4. Выравнивание текста и заголовков */
.article-content .ql-align-center,
.article-content [style*="text-align: center"] {
  text-align: center;
}

.article-content .ql-align-right,
.article-content [style*="text-align: right"] {
  text-align: right;
}

.article-content .ql-align-left,
.article-content [style*="text-align: left"] {
  text-align: left;
}

.article-content .ql-align-justify,
.article-content [style*="text-align: justify"] {
  text-align: justify;
}

/* 5. Выравнивание изображений: по центру, по правому и по левому краю */
.article-content .ql-align-center img,
.article-content [style*="text-align: center"] img {
  display: block;
  margin: 16px auto;
}

.article-content .ql-align-right img,
.article-content [style*="text-align: right"] img {
  display: block;
  margin: 16px 0 16px auto;
}

.article-content .ql-align-left img,
.article-content [style*="text-align: left"] img {
  display: block;
  margin: 16px auto 16px 0;
}

/* ==========================================================================
   Карточки и FAQ
   ========================================================================== */
.faq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-header:hover {
  background: var(--bg-page);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

.faq-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-page);
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text-muted);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-light);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background: var(--primary);
}

.faq-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  border-top-color: var(--border-subtle);
  padding-top: 14px;
}

/* ==========================================================================
   Формы и Модальные окна (B2C / B2B)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.form-toggle {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.form-toggle-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-muted);
  transition: var(--transition);
}

.form-toggle-btn.active {
  background: #ffffff;
  color: var(--dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  background: #ffffff;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.form-result-success {
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-result-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* ==========================================================================
   Плавающие кнопки мессенджеров
   ========================================================================== */
.floating-messengers {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}

.float-btn svg {
  width: 25px;
  height: 25px;
  fill: #ffffff;
  flex-shrink: 0;
}

.float-tg svg {
  transform: translate(-1px, 1px);
}

.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.float-wa { background: #25d366; }
.float-tg { background: #229ed9; }

/* ==========================================================================
   Подвал (Footer)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
 
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   Адаптивная верстка (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.1rem; }
  .kit-detail-grid { grid-template-columns: 1fr; }
  .kit-detail-aside { position: static; }
  .quiz-section-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    height: 60px;
    gap: 8px;
  }
  .logo-title {
    font-size: 1.05rem;
  }
  .logo-sub {
    font-size: 0.58rem;
    letter-spacing: 0.2px;
  }
.header-actions {
    gap: 8px;
    margin-left: auto;
  }
  .header-actions .btn-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .header-phone {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }

  .hero {
    min-height: 520px;
    padding: 36px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('/hero-m.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .hero-tag {
    align-self: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .hero h1 {
    font-size: 1.55rem;
    line-height: 1.22;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    color: #0f172a;
    text-align: center;
    text-shadow: 
      0 1px 2px #ffffff,
      0 0 10px rgba(255, 255, 255, 0.95),
      0 0 20px rgba(255, 255, 255, 0.9);
  }

  .hero p.lead {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 18px;
    color: #1e293b;
    text-align: center;
    max-width: 420px;
    text-shadow: 
      0 1px 2px #ffffff,
      0 0 8px rgba(255, 255, 255, 0.95),
      0 0 16px #ffffff;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 340px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 10px 4px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .hero-actions .btn-primary {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  }

  .hero-actions .btn-outline {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  }

  .hero-bullets {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    padding-top: 4px;
    width: 100%;
  }

  .hero-bullet {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 
      0 1px 2px #ffffff,
      0 0 6px #ffffff,
      0 0 14px #ffffff;
  }

  .bullet-check {
    width: 18px;
    height: 18px;
    font-size: 0.72rem;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  }

  .kits-grid {
    grid-template-columns: 100% !important;
    gap: 16px;
    width: 100%;
  }

  .kit-card {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .kit-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
  }

  .kit-card-title {
    font-size: 1.15rem;
    line-height: 1.25;
    word-break: break-word;
    margin-bottom: 6px;
  }

  .kit-card-sub {
    font-size: 0.82rem;
    line-height: 1.4;
    min-height: auto;
    margin-bottom: 12px;
  }

 .kit-card-photo {
    height: 200px;
    padding: 10px;
    margin-bottom: 14px;
  }

  .kit-detail-photo {
    height: 300px;
    padding: 12px;
  }

  .kit-thumb-btn {
    width: 65px;
    height: 50px;
  }

  .kit-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
  }

  .kit-price {
    font-size: 1.35rem;
    text-align: left;
  }

  .kit-card-footer .kit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .kit-card-footer .kit-actions .btn {
    width: 100%;
    padding: 10px 4px;
    font-size: 0.84rem;
  }

  .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 13px;
    font-size: 0.8rem;
  }

  .floating-messengers {
    bottom: 12px;
    right: 12px;
    gap: 8px;
    z-index: 90;
  }
  .float-btn {
    width: 42px;
    height: 42px;
  }
  .float-btn svg {
    width: 20px;
    height: 20px;
  }

  .before-after-box {
    height: auto;
    aspect-ratio: 645 / 380;
  }
  .slider-pill-label {
    top: 10px;
    padding: 4px 10px;
    font-size: 0.72rem;
  }
  .slider-label-left {
    left: 10px;
  }
  .slider-label-right {
    right: 10px;
  }
  .slider-handle-circle {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    margin-left: -18px;
    font-size: 0.95rem;
  }
  .light-compare-notes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .light-note-card {
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .light-note-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
  }

  .light-note-header {
    padding: 14px 16px;
    cursor: pointer;
    pointer-events: auto;
  }

  .light-note-header h4 {
    margin-bottom: 0;
  }

  .light-note-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 0;
    line-height: 0;
    transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .light-note-icon::before,
  .light-note-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-muted);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease;
  }

  .light-note-icon::before {
    width: 12px;
    height: 2px;
  }

  .light-note-icon::after {
    width: 2px;
    height: 12px;
  }

  .light-note-card.active .light-note-icon {
    transform: rotate(45deg);
    background: var(--primary-light);
    border-color: var(--primary-light);
  }

  .light-note-card.active .light-note-icon::before,
  .light-note-card.active .light-note-icon::after {
    background: var(--primary);
  }

  .light-note-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .light-note-collapse p {
    padding: 0 16px 14px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
/* ==========================================================================
   Полноэкранный просмотр фото (Lightbox & Zoom)
   ========================================================================== */
.dp-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
  touch-action: none;
}

.dp-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.dp-lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #ffffff;
  z-index: 10;
}

.dp-lb-counter {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.dp-lb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-lb-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.dp-lb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.dp-lb-btn:active {
  transform: scale(0.95);
}

.dp-lb-close {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  font-size: 1.3rem;
  margin-left: 8px;
}

.dp-lb-close:hover {
  background: rgba(239, 68, 68, 0.5);
}

.dp-lb-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.dp-lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.dp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.dp-lb-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.dp-lb-prev { left: 20px; }
.dp-lb-next { right: 20px; }

.dp-lb-hint {
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  z-index: 10;
}

@media (max-width: 768px) {
  .dp-lb-topbar { padding: 12px 16px; }
  .dp-lb-btn { width: 36px; height: 36px; font-size: 1rem; }
  .dp-lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .dp-lb-prev { left: 10px; }
  .dp-lb-next { right: 10px; }
  .dp-lb-hint { font-size: 0.72rem; padding: 8px; }
  .kit-detail-photo::after { display: none; }
}
/* ==========================================================================
   Увеличиваемые изображения в статьях и гидах
   ========================================================================== */
.zoomable-container {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: #ffffff;
  position: relative;
  cursor: zoom-in;
  margin-top: 6px;
}

.zoomable-container::after {
  content: "🔍 Нажмите для увеличения";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

.zoomable-container:hover::after {
  opacity: 1;
}

.zoomable-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 625;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.zoomable-container:hover .zoomable-img {
  transform: scale(1.015);
}

/* ==========================================================================
   Полноэкранный просмотр фото (Lightbox & Zoom)
   ========================================================================== */
.dp-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
  touch-action: none;
}

.dp-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.dp-lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #ffffff;
  z-index: 10;
}

.dp-lb-counter {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.dp-lb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-lb-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.dp-lb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.dp-lb-close {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  font-size: 1.3rem;
  margin-left: 8px;
}

.dp-lb-close:hover {
  background: rgba(239, 68, 68, 0.5);
}

.dp-lb-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.dp-lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.dp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.dp-lb-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.dp-lb-prev { left: 20px; }
.dp-lb-next { right: 20px; }

.dp-lb-hint {
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  z-index: 10;
}

@media (max-width: 768px) {
  .dp-lb-topbar { padding: 12px 16px; }
  .dp-lb-btn { width: 36px; height: 36px; font-size: 1rem; }
  .dp-lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .dp-lb-prev { left: 10px; }
  .dp-lb-next { right: 10px; }
  .dp-lb-hint { font-size: 0.72rem; padding: 8px; }
  .zoomable-container::after { display: none; }
}