/* ========================================
ISOLACK RUS - ГЛАВНАЯ СТРАНИЦА (ФИНАЛЬНЫЙ ЧИСТЫЙ CSS)
Префикс: .avtom-
======================================== */
/* === 1. ПЕРЕМЕННЫЕ === */
:root {
  --avtom-primary: #1e3a5f;
  --avtom-secondary: #c9a227;
  --avtom-accent: #2d7a4e;
  --avtom-dark: #0f1e33;
  --avtom-light: #f8f9fa;
  --avtom-gray: #6c757d;
  --avtom-gradient: linear-gradient(135deg, #1e3a5f 0%, #2d7a4e 100%);
  --avtom-gradient-gold: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
  --avtom-hero-bg: linear-gradient(135deg, rgba(15, 30, 51, 0.95) 0%, rgba(30, 58, 95, 0.85) 100%);
  --avtom-shadow: 0 10px 40px rgba(30, 58, 95, 0.1);
  --avtom-shadow-hover: 0 20px 60px rgba(30, 58, 95, 0.2);
  --avtom-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --avtom-section-padding: 100px;
  --avtom-section-padding-tablet: 70px;
  --avtom-section-padding-mobile: 50px;
  --avtom-hero-padding: 60px 0 80px;
  --avtom-hero-padding-mobile: 40px 0 60px;
}

/* === 2. БЕЗОПАСНЫЕ АНИМАЦИИ === */
.avtom-animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
html.avtom-js-ready .avtom-animate:not(.avtom-animated) { opacity: 0 !important; }
html.avtom-js-ready .avtom-fade-in-left:not(.avtom-animated) { transform: translateX(-40px) !important; }
html.avtom-js-ready .avtom-fade-in-right:not(.avtom-animated) { transform: translateX(40px) !important; }
html.avtom-js-ready .avtom-slide-up:not(.avtom-animated) { transform: translateY(40px) !important; }
html.avtom-js-ready .avtom-slide-down:not(.avtom-animated) { transform: translateY(-40px) !important; }
html.avtom-js-ready .avtom-animate.avtom-animated { opacity: 1 !important; transform: translate(0, 0) !important; }

.avtom-bounce { animation: avtomBounce 2s infinite; opacity: 1 !important; }
@keyframes avtomBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
@keyframes avtomFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === 3. HERO СЕКЦИЯ === */
.avtom-page-wrapper { overflow: hidden; }
.avtom-hero {
  position: relative;
  background: var(--avtom-hero-bg);
  color: #fff;
  padding: var(--avtom-hero-padding);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 24px !important;
  margin: 20px !important;
}
.avtom-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.avtom-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.avtom-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--avtom-secondary);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.avtom-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.avtom-gradient-text {
  background: var(--avtom-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.avtom-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 540px;
}
.avtom-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.avtom-hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: avtomFloat 4s ease-in-out infinite;
}
.avtom-cert-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: var(--avtom-transition);
}
.avtom-cert-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
.avtom-cert-icon {
  width: 44px;
  height: 44px;
  background: var(--avtom-gradient-gold);
  color: var(--avtom-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.avtom-cert-icon svg { width: 22px; height: 22px; }
.avtom-cert-badge strong { display: block; font-size: 15px; margin-bottom: 2px; color: #fff; }
.avtom-cert-badge small { opacity: 0.7; font-size: 12px; color: #fff; }
.avtom-hero-visual { display: flex; justify-content: center; align-items: center; }
.avtom-hero-image {
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: block;
}
.avtom-hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* === 4. ОБЩИЕ СТИЛИ СЕКЦИЙ === */
.avtom-section { padding: var(--avtom-section-padding) 0; position: relative; }
.avtom-bg-light { background: var(--avtom-light); }
.avtom-bg-white { background: #fff; }
.avtom-section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--avtom-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.avtom-section-badge-eco {
  background: rgba(45, 122, 78, 0.1);
  color: var(--avtom-accent);
}
.avtom-section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--avtom-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.avtom-section-subtitle {
  font-size: 1.1rem;
  color: var(--avtom-gray);
  max-width: 900px;
  margin: 0 0 40px;
  line-height: 1.6;
}
.avtom-section-text {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 20px;
}
.avtom-section-text p { margin-bottom: 16px; }

/* === 5. FEATURES GRID === */
.avtom-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.avtom-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  transition: var(--avtom-transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.avtom-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--avtom-shadow);
  border-color: var(--avtom-secondary);
}
.avtom-feature-icon {
  width: 52px;
  height: 52px;
  background: var(--avtom-gradient);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avtom-feature-icon svg { width: 26px; height: 26px; }
.avtom-feature h4 { font-size: 16px; font-weight: 700; color: var(--avtom-dark); margin: 0 0 4px; }
.avtom-feature p { font-size: 14px; color: var(--avtom-gray); margin: 0; }

/* === 6. BRANDS GRID === */
.avtom-brands-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.avtom-brand-card-4 {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--avtom-transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.avtom-brand-card-4:hover {
  transform: translateY(-6px);
  box-shadow: var(--avtom-shadow-hover);
  border-color: var(--avtom-secondary);
}
.avtom-brand-card-4 a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.avtom-brand-logo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.avtom-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: var(--avtom-transition);
}
.avtom-brand-card-4:hover .avtom-brand-logo img { transform: scale(1.05); }
.avtom-brand-card-4 h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--avtom-dark);
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  letter-spacing: 0.5px;
}

/* === 7. CTA СЕКЦИЯ === */
.avtom-cta { background: var(--avtom-light); padding: 80px 0; }
.avtom-cta-wrapper {
  background: var(--avtom-gradient);
  padding: 80px 60px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.avtom-cta-wrapper::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.avtom-cta-title { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 800; margin-bottom: 16px; position: relative; }
.avtom-cta-text { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto 36px; position: relative; }
.avtom-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.avtom-cta-note { margin-top: 24px; font-size: 13px; opacity: 0.75; position: relative; }

/* === 8. КНОПКИ === */
.avtom-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--avtom-transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
}
.avtom-btn-primary {
  background: var(--avtom-gradient-gold);
  color: var(--avtom-dark);
  border-color: var(--avtom-secondary);
}
.avtom-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
  color: var(--avtom-dark);
  text-decoration: none;
}
.avtom-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.avtom-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.avtom-btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.avtom-btn-outline-light:hover {
  background: #fff;
  color: var(--avtom-primary);
  text-decoration: none;
}
.avtom-btn-lg { padding: 16px 40px; font-size: 16px; }

/* === 9. АДАПТИВНОСТЬ === */
@media (max-width: 1199px) {
  .avtom-brands-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
@media (max-width: 991px) {
  .avtom-hero { padding: var(--avtom-section-padding-tablet) 20px; }
  .avtom-section { padding: var(--avtom-section-padding-tablet) 0; }
  .avtom-cta-wrapper { padding: 60px 30px; }
  .avtom-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .avtom-hero-visual { margin-top: 20px; }
  .avtom-features-grid { grid-template-columns: 1fr; }
  .avtom-brands-grid-4 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 767px) {
  .avtom-hero {
    padding: var(--avtom-hero-padding-mobile);
    border-radius: 16px !important;
    margin: 10px !important;
  }
  .avtom-hero-title {
    font-size: 1.8rem !important;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }
  .avtom-section { padding: var(--avtom-section-padding-mobile) 0; }
  .avtom-hero-buttons { flex-direction: column; width: 100%; }
  .avtom-btn { width: 100%; text-align: center; }
  .avtom-hero-scroll { display: none; }
  .avtom-brands-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .avtom-brand-card-4 h3 { font-size: 13px; padding: 12px 8px; }
  .avtom-brand-logo { padding: 10px; }
  .avtom-cta { padding: 50px 0; }
  .avtom-cta-wrapper { padding: 50px 20px; }
}
@media (max-width: 480px) {
  .avtom-container { padding: 0 16px; }
  .avtom-brand-card-4 h3 { font-size: 12px; padding: 10px 6px; }
}

/* === 11. КАРТА === */
.avtom-map-section {
  padding: 0;
  background: var(--avtom-light);
}
.avtom-map-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.avtom-map-frame {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--avtom-shadow);
  line-height: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.avtom-map-frame iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
}
@media (max-width: 767px) {
  .avtom-map-wrapper { padding: 0 10px; }
  .avtom-map-frame { border-radius: 16px; }
  .avtom-map-frame iframe { height: 350px; }
}

/* === 12. СТРАНИЦА ТОВАРА (КАРТОЧКА) === */
.avtom-product-hero {
  padding: var(--avtom-hero-padding);
  background: var(--avtom-hero-bg);
  color: #fff;
  border-radius: 24px;
  margin: 20px;
  position: relative;
  overflow: hidden;
}
.avtom-product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.avtom-product-hero-image {
  width: 100%;
  max-width: 480px;
  max-height: 550px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: block;
  background: #fff;
  padding: 20px;
  margin: 0 auto;
}
.avtom-product-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}
.avtom-product-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.avtom-product-meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}
.avtom-product-meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--avtom-secondary);
}

/* Таблица характеристик */
.avtom-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--avtom-shadow);
}
.avtom-specs-table th,
.avtom-specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.avtom-specs-table th {
  background: var(--avtom-light);
  font-weight: 700;
  color: var(--avtom-dark);
  width: 55%;
}
.avtom-specs-table td {
  color: #4a5568;
  font-weight: 600;
  text-align: right;
}
.avtom-specs-table tr:last-child th,
.avtom-specs-table tr:last-child td {
  border-bottom: none;
}

/* Таблица неисправностей */
.avtom-problems-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--avtom-shadow);
}
.avtom-problems-table th,
.avtom-problems-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
  vertical-align: top;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.avtom-problems-table th {
  background: var(--avtom-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.avtom-problems-table td {
  color: #4a5568;
}
.avtom-problems-table tr:last-child td {
  border-bottom: none;
}

/* === АНИМАЦИЯ СТРОК ТАБЛИЦ ПРИ НАВЕДЕНИИ === */
.avtom-specs-table tbody tr,
.avtom-problems-table tbody tr {
  cursor: default;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.avtom-specs-table tbody tr:hover,
.avtom-problems-table tbody tr:hover {
  background-color: rgba(201, 162, 39, 0.06);
}
.avtom-specs-table tbody tr:hover th,
.avtom-problems-table tbody tr:hover th,
.avtom-specs-table tbody tr:hover td,
.avtom-problems-table tbody tr:hover td {
  color: var(--avtom-dark);
  font-weight: 700;
}

/* Список основных узлов */
.avtom-parts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
  counter-reset: part;
}
.avtom-parts-list li {
  padding: 12px 16px 12px 48px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #4a5568;
  position: relative;
  counter-increment: part;
  transition: var(--avtom-transition);
}
.avtom-parts-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--avtom-shadow);
  border-color: var(--avtom-secondary);
  color: var(--avtom-dark);
}
.avtom-parts-list li::before {
  content: counter(part);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--avtom-gradient-gold);
  color: var(--avtom-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  transition: var(--avtom-transition);
}
.avtom-parts-list li:hover::before {
  transform: translateY(-50%) scale(1.1);
}

/* Галерея */
.avtom-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.avtom-image-wrapper {
  width: 100%;
  max-width: 800px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--avtom-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: var(--avtom-transition);
}
.avtom-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--avtom-shadow-hover);
}
.avtom-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.avtom-gallery-caption {
  text-align: center;
  font-size: 14px;
  color: var(--avtom-gray);
  font-style: italic;
  margin-top: 8px;
}

/* Блок гарантии */
.avtom-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.avtom-guarantee-item {
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--avtom-secondary);
  box-shadow: var(--avtom-shadow);
  transition: var(--avtom-transition);
}
.avtom-guarantee-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--avtom-shadow-hover);
  border-left-color: var(--avtom-primary);
}
.avtom-guarantee-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--avtom-dark);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--avtom-transition);
}
.avtom-guarantee-item:hover h4 {
  color: var(--avtom-primary);
}
.avtom-guarantee-item p {
  font-size: 15px;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

/* Важное предупреждение */
.avtom-warning {
  padding: 20px 24px;
  background: rgba(201, 162, 39, 0.1);
  border-left: 4px solid var(--avtom-secondary);
  border-radius: 8px;
  margin: 24px 0;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
}
.avtom-warning strong {
  color: var(--avtom-dark);
}

/* Адаптивность страницы товара */
@media (max-width: 991px) {
  .avtom-product-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .avtom-parts-list { grid-template-columns: 1fr; }
  .avtom-guarantee-grid { grid-template-columns: 1fr; }
  .avtom-specs-table th,
  .avtom-specs-table td { padding: 12px 14px; font-size: 14px; }
  .avtom-problems-table th,
  .avtom-problems-table td { padding: 12px 14px; font-size: 13px; }
}
@media (max-width: 767px) {
  .avtom-product-hero {
    padding: var(--avtom-hero-padding-mobile);
    border-radius: 16px;
    margin: 10px;
  }
  .avtom-specs-table th { width: 60%; }
  .avtom-specs-table td { width: 40%; }
  .avtom-product-meta { flex-direction: column; gap: 12px; }
}

/* === 13. АДАПТИВНЫЕ ТАБЛИЦЫ (БЕЗ ГОРИЗОНТАЛЬНОГО СКРОЛЛА НА ДЕСКТОПЕ) === */
.avtom-table-responsive {
  width: 100%;
  overflow-x: visible;
  margin-top: 24px;
  border-radius: 12px;
  box-shadow: var(--avtom-shadow);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.avtom-table-responsive .avtom-problems-table,
.avtom-table-responsive .avtom-specs-table {
  margin-top: 0;
  box-shadow: none;
  border-radius: 0;
  border: none;
  width: 100%;
  table-layout: auto;
}
.avtom-table-responsive .avtom-problems-table th,
.avtom-table-responsive .avtom-specs-table th,
.avtom-table-responsive .avtom-problems-table td,
.avtom-table-responsive .avtom-specs-table td {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  vertical-align: middle;
}
/* На мобильных устройствах разрешаем горизонтальный скролл */
@media (max-width: 767px) {
  .avtom-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .avtom-table-responsive .avtom-problems-table,
  .avtom-table-responsive .avtom-specs-table {
    min-width: 600px;
  }
  .avtom-table-responsive::-webkit-scrollbar {
    height: 8px;
  }
  .avtom-table-responsive::-webkit-scrollbar-track {
    background: var(--avtom-light);
    border-radius: 4px;
  }
  .avtom-table-responsive::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 95, 0.2);
    border-radius: 4px;
  }
  .avtom-table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--avtom-secondary);
  }
}

/* === 14. ТЕКСТ + КАРТИНКА (СЕТКА) === */
.avtom-text-image-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 32px;
}
.avtom-text-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.avtom-text-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--avtom-gradient-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.avtom-text-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.12);
  border-color: rgba(201, 162, 39, 0.3);
}
.avtom-text-card:hover::before {
  opacity: 1;
}
.avtom-text-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--avtom-dark);
}
.avtom-text-card p {
  margin-bottom: 16px;
  color: #4a5568;
  line-height: 1.7;
}
.avtom-text-card p:last-child {
  margin-bottom: 0;
}
.avtom-text-image-visual {
  width: 100%;
  max-width: 400px;
  max-height: 450px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--avtom-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
}
.avtom-text-image-visual img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: contain;
  display: block;
}
.avtom-text-image-visual:hover {
  transform: translateY(-8px);
  box-shadow: var(--avtom-shadow-hover);
  border-color: var(--avtom-secondary);
}
@media (max-width: 991px) {
  .avtom-text-image-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .avtom-text-image-visual {
    order: -1;
    max-width: 100%;
    max-height: none;
  }
  .avtom-text-image-visual img {
    max-height: none;
  }
}

/* === 15. ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ === */
.avtom-heading-md {
  font-size: 1.5rem;
  margin-top: 32px;
}
.avtom-heading-spaced {
  margin-top: 48px;
}
.avtom-parts-list-single {
  grid-template-columns: 1fr;
}
.avtom-warning-spaced {
  margin-top: 32px;
}

/* === 16. ВИДЕО СЕКЦИЯ === */
.avtom-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.avtom-video-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--avtom-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--avtom-transition);
}
.avtom-video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--avtom-shadow-hover);
}
.avtom-video-card video {
  width: 100%;
  border-radius: 12px;
  background: #0f1e33;
  display: block;
}
.avtom-video-caption {
  text-align: center;
  font-size: 14px;
  color: var(--avtom-gray);
  margin-top: 12px;
  margin-bottom: 0;
  font-weight: 500;
}
@media (max-width: 767px) {
  .avtom-video-grid {
    grid-template-columns: 1fr;
  }
}

/* === 17. ОПТИМИЗАЦИЯ ТАБЛИЦЫ ОТРЕЗНЫХ СТАНКОВ (ШИРИНА СТОЛБЦОВ) === */
.avtom-specs-table th:first-child,
.avtom-specs-table td:first-child {
  width: 11%;
  min-width: 90px;
  text-align: left;
  font-weight: 700;
  color: var(--avtom-primary);
}
.avtom-specs-table th:nth-child(2),
.avtom-specs-table td:nth-child(2) {
  width: 26%;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
}
.avtom-specs-table th:nth-child(3),
.avtom-specs-table td:nth-child(3) {
  width: 9%;
  min-width: 70px;
  text-align: center;
}
.avtom-specs-table th:nth-child(4),
.avtom-specs-table td:nth-child(4) {
  width: 14%;
  text-align: center;
}
.avtom-specs-table th:nth-child(5),
.avtom-specs-table td:nth-child(5) {
  width: 13%;
  text-align: center;
}
.avtom-specs-table th:nth-child(6),
.avtom-specs-table td:nth-child(6) {
  width: 17%;
  text-align: center;
}
.avtom-specs-table th:last-child,
.avtom-specs-table td:last-child {
  width: 10%;
  min-width: 80px;
  text-align: center;
}
.avtom-specs-table td {
  vertical-align: middle;
  padding: 14px 12px;
  font-weight: 600;
}
.avtom-specs-table th {
  padding: 16px 12px;
}
@media (max-width: 991px) {
  .avtom-specs-table th:first-child,
  .avtom-specs-table td:first-child {
    width: 14%;
    min-width: 80px;
  }
  .avtom-specs-table th:nth-child(2),
  .avtom-specs-table td:nth-child(2) {
    width: 32%;
    font-size: 13px;
  }
  .avtom-specs-table th:nth-child(5),
  .avtom-specs-table td:nth-child(5) {
    width: 16%;
    font-size: 13px;
  }
  .avtom-specs-table td {
    padding: 12px 10px;
  }
}
@media (max-width: 767px) {
  .avtom-specs-table th,
  .avtom-specs-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .avtom-specs-table th:nth-child(2),
  .avtom-specs-table td:nth-child(2) {
    width: 38%;
  }
  .avtom-specs-table th:first-child,
  .avtom-specs-table td:first-child {
    width: 16%;
  }
}

/* === 18. ОПТИМИЗАЦИЯ ТАБЛИЦЫ ШЛИФОВАЛЬНОГО ОБОРУДОВАНИЯ === */
.avtom-grinding-table th:first-child,
.avtom-grinding-table td:first-child {
  width: 15%;
  min-width: 100px;
  text-align: left;
  font-weight: 700;
  color: var(--avtom-primary);
}
.avtom-grinding-table th:nth-child(2),
.avtom-grinding-table td:nth-child(2) {
  width: 18%;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
}
.avtom-grinding-table th:nth-child(3),
.avtom-grinding-table td:nth-child(3) {
  width: 20%;
  text-align: left;
}
.avtom-grinding-table th:nth-child(4),
.avtom-grinding-table td:nth-child(4) {
  width: 10%;
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
}
.avtom-grinding-table th:nth-child(5),
.avtom-grinding-table td:nth-child(5) {
  width: 15%;
  text-align: center;
  white-space: nowrap;
}
.avtom-grinding-table th:last-child,
.avtom-grinding-table td:last-child {
  width: 22%;
  text-align: left;
}
@media (max-width: 991px) {
  .avtom-grinding-table th:first-child,
  .avtom-grinding-table td:first-child {
    width: 18%;
  }
  .avtom-grinding-table th:nth-child(2),
  .avtom-grinding-table td:nth-child(2) {
    width: 22%;
    font-size: 13px;
  }
  .avtom-grinding-table th:last-child,
  .avtom-grinding-table td:last-child {
    width: 25%;
    font-size: 13px;
  }
}
@media (max-width: 767px) {
  .avtom-grinding-table th,
  .avtom-grinding-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .avtom-grinding-table th:nth-child(2),
  .avtom-grinding-table td:nth-child(2) {
    width: 28%;
  }
  .avtom-grinding-table th:first-child,
  .avtom-grinding-table td:first-child {
    width: 20%;
  }
}

/* === 19. ГАЛЕРЕЯ И ЛАЙТБОКС (ОБНОВЛЕНО) === */
.avtom-gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.avtom-gallery-item img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avtom-gallery-item:hover img {
  transform: scale(1.05);
}
.avtom-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 30, 51, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.avtom-gallery-item:hover .avtom-gallery-overlay {
  opacity: 1;
}
.avtom-gallery-overlay svg {
  width: 40px;
  height: 40px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Lightbox */
.avtom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 30, 51, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none; /* Чтобы не перехватывать клики, когда скрыт */
}
.avtom-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Включаем клики только когда активен */
}
.avtom-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avtom-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.avtom-lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 100000;
}
.avtom-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.avtom-lightbox-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none; /* КРИТИЧЕСКИ ВАЖНО: гарантирует, что клик всегда попадает на кнопку, а не на SVG, устраняя проблему двойного клика */
}
.avtom-lightbox-close {
  top: 20px;
  right: 20px;
}
.avtom-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.avtom-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 767px) {
  .avtom-lightbox-btn {
    width: 40px;
    height: 40px;
  }
  .avtom-lightbox-close {
    top: 10px;
    right: 10px;
  }
  .avtom-lightbox-prev {
    left: 10px;
  }
  .avtom-lightbox-next {
    right: 10px;
  }
}

/* === 20. ИНДИКАТОР ПРОКРУТКИ СТРАНИЦЫ (SCROLL PROGRESS BAR) === */
.avtom-scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(30, 58, 95, 0.1);
  z-index: 100000;
  pointer-events: none; /* Чтобы не мешал кликам */
}

.avtom-scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--avtom-gradient-gold);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.6);
}