/* ============================================================
   ПЕРЕМЕННЫЕ И ОСНОВНЫЕ ЦВЕТА
   ============================================================ */
   :root {
      --primary-red: #d32f2f;
      --primary-red-hover: #b71c1c;
      --dark-gray: #212529;
      --mid-gray: #495057;
      --light-gray: #f8f9fa;
      --white: #ffffff;
      --border-gray: #dee2e6;
      --save-green: #2e7d32;
  }
  
  /* ============================================================
     ОБЩИЕ СТИЛИ
     ============================================================ */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
  
  body {
      background-color: var(--light-gray);
      color: var(--dark-gray);
      line-height: 1.6;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
  }
  
  a { text-decoration: none; color: inherit; transition: 0.3s; }
  ul { list-style: none; }
  
  /* ============================================================
   ШАПКА (HEADER)
   ============================================================ */
header {
   background-color: var(--dark-gray);
   color: var(--white);
   position: sticky;
   top: 0;
   z-index: 1000;
   box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 5%;
   max-width: 1400px;
   margin: 0 auto;
   gap: 20px;
}

/* ЛОГОТИП */
.logo-container {
   display: flex;
   align-items: center;
   flex-shrink: 0;
}

.nav-img {
   height: 45px;
   width: auto;
   object-fit: contain;
   display: block;
}

/* МЕНЮ ПО ЦЕНТРУ */
.nav-links {
   display: flex;
   gap: 30px;
   margin: 0 auto; /* Центрирует меню между лого и контактами */
}

.nav-links li a {
   font-size: 15px;
   font-weight: 500;
   padding: 5px 0;
   white-space: nowrap;
}

.nav-links li a:hover { color: var(--primary-red); }

/* КОНТАКТЫ СПРАВА */
.header-contacts {
   display: flex;
   flex-direction: column; /* Телефон под почтой для компактности */
   align-items: flex-start;
   gap: 2px;
   flex-shrink: 0;
}

.header-contacts a {
   font-size: 13px;
   color: #ccc;
   transition: 0.3s;
   white-space: nowrap;
}

.header-contacts a:hover { color: var(--primary-red); }

/* Настройка для мобильных */
@media (max-width: 1024px) {
   .navbar { flex-wrap: wrap; justify-content: center; }
   .nav-links { order: 3; width: 100%; justify-content: center; margin-top: 10px; }
   .header-contacts { align-items: center; }
}

@media (max-width: 768px) {
   .nav-img { height: 35px; }
   .nav-links { gap: 15px; font-size: 13px; }
}
  
  .nav-links { display: flex; gap: 25px; }
  .nav-links li a { font-size: 15px; font-weight: 500; padding: 5px 0; }
  .nav-links li a:hover { color: var(--primary-red); }
  
  /* ============================================================
     КОНТЕНТ И СЕТКА
     ============================================================ */
  .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 20px 5%;
      flex: 1;
      width: 100%;
  }
  
  .section-title {
      font-size: 2rem;
      margin-bottom: 25px;
      border-bottom: 3px solid var(--primary-red);
      display: inline-block;
      padding-bottom: 10px;
      font-weight: 800;
      text-transform: uppercase;
  }
  
  .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 30px;
  }
  
  .card {
      background: var(--white);
      border: 1px solid var(--border-gray);
      border-radius: 8px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: 0.3s;
  }
  
  .card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  
  .card-img {
      height: 250px;
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      background-color: #fff;
      padding: 20px;
      border-bottom: 1px solid var(--border-gray);
  }
  
  .card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
  .card-title { font-size: 1.4rem; margin-bottom: 15px; font-weight: bold; }
  
  .card-pricing-compact {
      background: #f9f9f9;
      padding: 15px;
      border-radius: 6px;
      border-left: 4px solid var(--primary-red);
      margin-bottom: 20px;
  }
  
  /* ============================================================
     СТРАНИЦА ТОВАРА
     ============================================================ */
  .back-btn { display: inline-block; margin-bottom: 20px; font-weight: bold; color: var(--mid-gray); }
  
  .product-page {
      display: flex;
      flex-wrap: wrap;
      gap: 50px;
      background: var(--white);
      padding: 40px;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }
  
  .product-left { flex: 0 0 500px; max-width: 500px; min-width: 320px; }
  
  .gallery-main {
      width: 100%;
      height: auto;
      max-height: 400px;
      object-fit: contain;
      border: 1px solid var(--border-gray);
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 15px;
      background: #fff;
  }
  
  .gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .gallery-thumbs img { width: 60px; height: 60px; object-fit: contain; border: 2px solid var(--border-gray); border-radius: 4px; cursor: pointer; padding: 3px; background: #fff; transition: 0.2s; }
  .gallery-thumbs img.active { border-color: var(--primary-red); }
  
  /* ВИДЕО */
  .video-wrap { width: 100%; margin-bottom: 20px; border-radius: 8px; overflow: hidden; background: #000; line-height: 0; }
  .video-wrap iframe { width: 100%; height: 281px; display: block; }
  
  /* ФАЙЛЫ */
  .product-files { display: flex; gap: 10px; margin-top: 10px; }
  .btn-file { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: #f1f1f1; border: 1px solid #ddd; border-radius: 4px; font-size: 0.8rem; font-weight: bold; color: var(--dark-gray); text-transform: uppercase; transition: 0.3s; }
  .btn-file:hover { background: var(--primary-red); color: #fff; border-color: var(--primary-red); }
  .btn-file svg { width: 18px; height: 18px; fill: currentColor; }
  
  /* ИНФО */
  .product-info { flex: 1; min-width: 320px; }
  .product-info h1 { font-size: 2.2rem; margin-bottom: 15px; border-bottom: 2px solid var(--primary-red); padding-bottom: 10px; }
  .product-description { font-size: 1rem; color: var(--mid-gray); margin-bottom: 30px; text-align: justify; }
  
  /* ТТХ */
  .specs-title { font-size: 1.3rem; font-weight: 800; margin: 30px 0 15px; text-transform: uppercase; color: var(--dark-gray); border-left: 4px solid var(--primary-red); padding-left: 12px; }
  .spec-list { display: flex; flex-direction: column; gap: 8px; }
  .spec-item { display: flex; justify-content: space-between; align-items: flex-end; }
  .spec-name { font-size: 0.95rem; color: #666; white-space: nowrap; }
  .spec-dots { flex-grow: 1; border-bottom: 2px dotted #ccc; margin: 0 8px; position: relative; top: -5px; }
  .spec-value { font-size: 0.95rem; font-weight: bold; color: var(--dark-gray); text-align: right; }
  
  /* ЦЕНЫ */
  .pricing-block { background: var(--light-gray); padding: 20px; border-radius: 6px; margin: 30px 0; border: 1px solid var(--border-gray); }
  .price-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #ddd; }
  .price-row:last-child { border-bottom: none; }
  .price-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
  .save-target { background: var(--save-green); color: #fff; font-size: 0.7rem; font-weight: bold; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; width: fit-content; }
  .price-target { font-size: 1.2rem; font-weight: 800; color: var(--dark-gray); }
  
  /* ============================================================
     КОНТАКТЫ
     ============================================================ */
  .contact-wrap { display: flex; gap: 50px; flex-wrap: wrap; background: #fff; padding: 40px; border-radius: 8px; }
  .contact-info, .contact-form { flex: 1; min-width: 300px; }
  .contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid var(--border-gray); border-radius: 4px; font-size: 16px; }
  
  /* ============================================================
     КНОПКИ И ФУТЕР
     ============================================================ */
  .btn { display: inline-block; background-color: var(--primary-red); color: var(--white); padding: 15px 30px; border-radius: 4px; font-weight: bold; border: none; cursor: pointer; text-align: center; text-transform: uppercase; }
  .btn:hover { background-color: var(--primary-red-hover); box-shadow: 0 4px 15px rgba(211,47,47,0.4); }
  
  footer { background-color: var(--dark-gray); color: #aaa; text-align: center; padding: 40px 20px; margin-top: auto; }

  footer {
    padding: 40px 20px;
    background-color: var(--dark-gray);
    color: #aaa;
    text-align: center;
}

.footer-copy {
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.footer-disclaimer {
    font-size: 0.75rem; /* Делаем текст мелким */
    line-height: 1.5;
    color: #666; /* Делаем текст менее ярким */
    max-width: 900px;
    margin: 0 auto;
    padding-top: 10px;
    border-top: 1px solid #333; /* Тонкая разделительная линия */
}
  
  /* ============================================================
     АДАПТИВНОСТЬ
     ============================================================ */
  @media (max-width: 1024px) {
      .product-left { flex: 0 0 100%; max-width: 100%; }
  }
  
  @media (max-width: 768px) {
      .navbar { flex-direction: column; gap: 15px; }
      .logo-container { gap: 10px; }
      .nav-img { height: 35px; }
      .nav-links { gap: 15px; font-size: 13px; }
      .product-page { padding: 20px; }
      .spec-item { flex-direction: column; align-items: flex-start; }
      .spec-dots { display: none; }
  }

  /* ============================================================
   HERO BANNER 
   ============================================================ */
.hero-section {
   position: relative;
   height: 75vh;
   min-height: 550px;
   display: flex;
   align-items: center;
   overflow: hidden;
   color: var(--white);
   background: #000; /* Запасной фон */
}

/* ============================================================
   ОБНОВЛЕННЫЙ HERO SLIDER (СМЕНА ФОНОВ)
   ============================================================ */
   .hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
 }
 
 .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Скрыты по умолчанию */
    transition: opacity 2s ease-in-out; /* Плавность перехода (2 секунды) */
    will-change: opacity, transform;
    /* Сохраняем ваш эффект зума для каждого слайда */
    animation: smoothZoom 30s linear infinite alternate;
 }
 
 .hero-slide.active {
    opacity: 1; /* Виден только активный слайд */
 }
 
@keyframes smoothZoom {
   0% { transform: scale(1); }
   100% { transform: scale(1.1); }
}

.hero-overlay {
   position: absolute;
   top: 0; left: 0; width: 100%; height: 100%;
   background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.3) 100%);
   z-index: 2;
}

.hero-container {
   position: relative;
   z-index: 3;
}

.hero-content {
   max-width: 900px;
}

/* ЗАГОЛОВОК С ЭФФЕКТОМ ПРОЯВЛЕНИЯ */
.hero-title {
   font-size: 3rem;
   line-height: 1.1;
   margin-bottom: 20px;
   font-weight: 900;
   text-transform: uppercase;
   color: #fff;
   /* Анимация проявления */
   animation: smoothReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
   opacity: 0;
}

.accent-red {
    color: var(--primary-red); /* Используем ваш фирменный красный цвет */
    font-weight: 900;          /* Можно сделать чуть жирнее для акцента */
    
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.hero-divider {
   width: 80px;
   height: 4px;
   background: var(--primary-red);
   margin-bottom: 30px;
   animation: smoothReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
   opacity: 0;
}

.hero-desc {
   font-size: 1.15rem;
   line-height: 1.6;
   margin-bottom: 25px;
   color: rgba(255,255,255,0.9);
   max-width: 800px;
   animation: smoothReveal 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
   opacity: 0;
}

.hero-subline {
   font-size: 1rem;
   font-style: italic;
   border-left: 3px solid var(--primary-red);
   padding-left: 20px;
   color: rgba(255,255,255,0.7);
   animation: smoothReveal 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
   opacity: 0;
}

/* ОБЩАЯ КЛЮЧЕВАЯ АНИМАЦИЯ ПРОЯВЛЕНИЯ */
@keyframes smoothReveal {
   0% {
       opacity: 0;
       transform: translateY(30px);
       filter: blur(10px);
   }
   100% {
       opacity: 1;
       transform: translateY(0);
       filter: blur(0);
   }
}

/* Адаптив */
@media (max-width: 1024px) {
   .hero-title { font-size: 2.2rem; }
   .hero-section { height: auto; padding: 120px 0 80px; }
}

@media (max-width: 768px) {
   .hero-title { font-size: 1.8rem; }
   .hero-desc { font-size: 1rem; }
}

/* ============================================================
   ОБНОВЛЕННЫЕ ЭТАПЫ С КАРТИНКАМИ
   ============================================================ */
   .steps-section {
      padding: 30px 0;
      background: #fdfdfd;
  }
  
  .steps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
      margin-top: 30px;
  }
  
  .step-card {
      background: var(--white);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.05);
      transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      display: flex;
      flex-direction: column;
  }
  
  .step-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  
  .step-img-wrap {
      position: relative;
      height: 180px;
      overflow: hidden;
  }
  
  .step-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: 0.5s;
  }
  
  .step-card:hover .step-img-wrap img {
      transform: scale(1.1);
  }
  
  .step-num {
      position: absolute;
      bottom: -15px;
      right: 15px;
      font-size: 4rem;
      font-weight: 900;
      color: var(--primary-red);
      line-height: 1;
      opacity: 0.8;
      z-index: 2;
      -webkit-text-stroke: 1px rgba(255,255,255,0.5); /* Обводка для видимости на фото */
  }
  
  .step-content {
      padding: 30px 20px 25px;
      flex-grow: 1;
      border-top: 4px solid var(--primary-red);
  }
  
  .step-content h3 {
      font-size: 1.25rem;
      text-transform: uppercase;
      margin-bottom: 12px;
      color: var(--dark-gray);
      font-weight: 800;
  }
  
  .step-content p {
      font-size: 0.9rem;
      color: var(--mid-gray);
      line-height: 1.6;
  }
  
  /* Адаптив для 7 элементов */
  @media (max-width: 1200px) {
      .steps-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  }
  
  @media (max-width: 768px) {
      .steps-grid { grid-template-columns: 1fr; }
      .step-img-wrap { height: 220px; }
  }
  
  /* ============================================================
   РЕАЛИЗОВАННЫЕ ПРОЕКТЫ (КВАДРАТНЫЕ КАРТОЧКИ)
   ============================================================ */
.projects-section {
    padding: 60px 0 100px;
}

.projects-grid {
    display: grid;
    /* Уменьшил minmax до 300px, чтобы на планшетах влезало больше квадратов */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px;
    margin-top: 30px;
}

.project-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* СТАВИМ КВАДРАТ 1:1 */
    border-radius: 12px; /* Чуть увеличил скругление для мягкости */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #eee;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Теперь оверлей на весь квадрат */
    padding: 30px;
    /* Градиент теперь идет снизу вверх, оставляя фото видимым */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Текст прижат к низу */
    transform: translateY(10px);
    transition: 0.4s;
    opacity: 0;
}

.project-item:hover .project-img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.project-overlay p {
    font-size: 0.95rem;
    color: #ff5252; /* Яркий красный для контраста */
    font-weight: bold;
    margin-bottom: 15px;
}
  
  /* Адаптив для мобилок */
  @media (max-width: 768px) {
      .projects-grid { grid-template-columns: 1fr; }
      .step-card { padding: 20px; }
  }
  
  /* ============================================================
   ПРОЕКТЫ: СТРАНИЦА ДЕТАЛЕЙ
   ============================================================ */
.project-intro { font-size: 1.1rem; margin-bottom: 50px; color: var(--mid-gray); line-height: 1.8; max-width: 1000px; }

.visual-container { display: flex; flex-direction: column; gap: 80px; margin-top: 40px; }

.visual-row { display: flex; align-items: center; gap: 50px; margin: 0; }
.visual-row:nth-child(even) { flex-direction: row-reverse; }

.visual-text { flex: 1; }
.visual-text h3 { font-size: 1.6rem; color: var(--dark-gray); margin-bottom: 15px; border-left: 5px solid var(--primary-red); padding-left: 20px; }
.visual-text p { font-size: 1rem; color: var(--mid-gray); }

.visual-image { flex: 1.2; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Слайдер */
.gallery-wrapper { position: relative; height: 400px; background: #eee; }
.slider-container { height: 100%; width: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: 0.5s; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; padding: 16px; color: white; font-weight: bold; font-size: 20px; cursor: pointer; background: rgba(0,0,0,0.3); border-radius: 0 3px 3px 0; user-select: none; }
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background: var(--primary-red); }

/* Лайтбокс */
.modal-lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); padding: 40px; }
.modal-lightbox-content { display: block; margin: auto; max-width: 90%; max-height: 90%; object-fit: contain; }
.modal-lightbox-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; }

@media (max-width: 992px) {
    .visual-row, .visual-row:nth-child(even) { flex-direction: column; gap: 20px; }
    .gallery-wrapper { height: 300px; }
}

/* Исправление наложения заголовка на кнопку "Назад" */
.project-detail-page {
    display: flex;
    flex-direction: column; /* Выстраиваем элементы вертикально */
    align-items: flex-start; /* Прижимаем к левому краю */
}

.project-detail-page .back-btn {
    display: block; 
    margin-bottom: 20px; /* Отступ между кнопкой и заголовком */
    width: fit-content;
}

.project-detail-page .section-title {
    display: inline-block; /* Сохраняем подчеркивание только под текстом */
    margin-bottom: 30px;
    line-height: 1.2; /* Чтобы высокие буквы не обрезались */
}

/* ============================================================
   ПОЧЕМУ BLITZ: ТЕХНИЧЕСКАЯ СХЕМА
   ============================================================ */
   .why-blitz {
    background: #fff;
    padding: 5px 0;
    overflow: hidden;
}

.section-subtitle {
    display: block;
    margin-bottom: 50px;
    color: var(--mid-gray);
    font-size: 1.1rem;
}

.tech-diagram-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 600px;
}

.diagram-main-img {
    position: relative;
    width: 650px; /* Размер центральной картинки */
    margin: 0 auto;
}

.diagram-main-img img {
    width: 100%;
    display: block;
    mix-blend-mode: multiply; /* Убирает белый фон у картинки, если он есть */
}

/* Общие стили для блоков инфо */
.info-node {
    position: absolute;
    width: 280px;
    opacity: 0;
    transition: 1s ease-out;
}

.info-node.active {
    opacity: 1;
}

.top-design {
    display: inline-block;
    background: var(--dark-gray);
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 5px;
}

.node-content h4 {
    font-size: 1.1rem;
    color: var(--primary-red);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 800;
}

.node-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--mid-gray);
}

/* Линии-указатели */
.node-line {
    position: absolute;
    background: #ccc;
    height: 1px;
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
    transform: scaleX(0);
}

.info-node.active .node-line {
    transform: scaleX(1);
}

/* ПОЗИЦИИ ЭЛЕМЕНТОВ (настраиваются под картинку) */

/* Лево Верх: Конструкция */
.node-1 { top: 60px; left: -320px; text-align: right; }
.node-1 .node-line { width: 340px; right: -350px; top: 15px; transform-origin: right center; }

/* Право Верх: Направляющие */
.node-2 { top: 50px; right: -340px; text-align: left; }
.node-2 .node-line { width: 400px; left: -410px; top: 40px; transform: rotate(20deg) scaleX(0); transform-origin: right center; transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.node-2.active .node-line { transform: rotate(-25deg) scaleX(1); }

/* Право Центр: Антикоррозия */
.node-3 { top: 550px; right: -340px; text-align: left; }
.node-3 .node-line { width: 200px; left: -210px; top: 30px; }

/* Лево Низ: Уплотнения */
.node-4 { bottom: 150px; left: -320px; text-align: right; }
.node-4 .node-line { width: 340px; right: -350px; top: 15px; transform-origin: right center; }

/* Право Низ: Соединения */
.node-5 { bottom: 200px; right: -320px; text-align: left; }
.node-5 .node-line { width: 310px; left: -320px; top: 40px; }

/* Мобильная версия (в столбик) */
@media (max-width: 1024px) {
    .diagram-main-img { width: 250px; margin-bottom: 40px; }
    .info-node { position: static; width: 100%; text-align: left !important; margin-bottom: 30px; opacity: 1; }
    .node-line { display: none; }
    .tech-diagram-container { display: flex; flex-direction: column; align-items: center; }
}

/* ============================================================
   ОСОБЕННОСТИ ТОВАРА S15 
   ============================================================ */
   .product-features-area {
    background: #fff;
    padding: 20px 0 40px;
    border-top: 1px solid var(--border-gray);
    margin-top: 50px;
}

.s15-tech-img {
    width: 500px;
    padding-top: 50px;
    position: relative;
    margin: 0 auto;
}

/* Общий переход для всех линий S15 */
.s15-tech-img .node-line {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    background: #ccc;
}

/* --- ЛЕВАЯ СТОРОНА (Начальное состояние: масштаб 0) --- */
.s15-node-l1 .node-line { width: 60px; right: -70px; top: 40px; transform-origin: right center; transform: rotate(0deg) scaleX(0); }
.s15-node-l2 .node-line { width: 300px; right: -300px; top: -40px; transform-origin: right center; transform: rotate(15deg) scaleX(0); }
.s15-node-l3 .node-line { width: 250px; right: -250px; top: -30px; transform-origin: right center; transform: rotate(0deg) scaleX(0); }
.s15-node-l4 .node-line { width: 270px; right: -270px; top: -20px; transform-origin: right center; transform: rotate(0deg) scaleX(0); }

/* --- ПРАВАЯ СТОРОНА (Начальное состояние: масштаб 0) --- */
.s15-node-r1 .node-line { width: 40px; left: -50px; top: 50px; transform-origin: left center; transform: rotate(0deg) scaleX(0); }
.s15-node-r2 .node-line { width: 300px; left: -300px; top: -90px; transform-origin: left center; transform: rotate(-10deg) scaleX(0); }
.s15-node-r3 .node-line { width: 300px; left: -320px; top: 15px; transform-origin: left center; transform: rotate(0deg) scaleX(0); }
.s15-node-r4 .node-line { width: 300px; left: -300px; top: -70px; transform-origin: left center; transform: rotate(-10deg) scaleX(0); }
.s15-node-r5 .node-line { width: 280px; left: -300px; top: 15px; transform-origin: left center; transform: rotate(-15deg) scaleX(0); }


/* Здесь мы задаем конкретный угол для каждой линии при появлении */

.s15-node-l1.active .node-line { transform: rotate(5deg) scaleX(1); }
.s15-node-l2.active .node-line { transform: rotate(-15deg) scaleX(1); } 
.s15-node-l3.active .node-line { transform: rotate(-15deg) scaleX(1); }
.s15-node-l4.active .node-line { transform: rotate(-10deg) scaleX(1); }

.s15-node-r1.active .node-line { transform: rotate(-5deg) scaleX(1); }
.s15-node-r2.active .node-line { transform: rotate(20deg) scaleX(1); } 
.s15-node-r3.active .node-line { transform: rotate(0deg) scaleX(1); }
.s15-node-r4.active .node-line { transform: rotate(15deg) scaleX(1); } 
.s15-node-r5.active .node-line { transform: rotate(0deg) scaleX(1); } 

/* Позиции текстовых блоков */
.s15-node-l1 { top: 50px; left: -320px; text-align: right; }
.s15-node-l2 { top: 150px; left: -340px; text-align: right; }
.s15-node-l3 { top: 320px; left: -340px; text-align: right; }
.s15-node-l4 { top: 450px; left: -320px; text-align: right; }

.s15-node-r1 { top: 50px; right: -320px; text-align: left; }
.s15-node-r2 { top: 280px; right: -340px; text-align: left; }
.s15-node-r3 { top: 410px; right: -340px; text-align: left; }
.s15-node-r4 { top: 170px; right: -320px; text-align: left; }
.s15-node-r5 { top: 550px; right: -300px; text-align: left; }

/* Стили заголовков (под скриншот) */
.info-node h4 {
    font-size: 1.1rem;
    color: #d32f2f; /* Насыщенный красный Blitz */
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 5px;
}

@media (max-width: 1100px) {
    .s15-tech-img { width: 220px; }
    .info-node { width: 100%; position: static; opacity: 1; text-align: left !important; margin-bottom: 25px; }
    .node-line { display: none; }
}

/* ============================================================
   ОСОБЕННОСТИ ТОВАРА X15 (НАПОЛЬНЫЙ)
   ============================================================ */
   .x15-tech-img {
    width: 600px;
    padding-top: 40px;
    position: relative;
    margin: 0 auto;
}

/* Общий переход для всех линий X15 */
.x15-tech-img .node-line {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    background: #ccc;
}

/* --- ЛЕВАЯ СТОРОНА (Начальное состояние) --- */
.x15-node-l1 .node-line { width: 270px; right: -280px; top: 50px; transform-origin: right center; transform: rotate(-30deg) scaleX(0); }
.x15-node-l2 .node-line { width: 380px; right: -380px; top: -100px; transform-origin: right center; transform: rotate(-5deg) scaleX(0); }
.x15-node-l3 .node-line { width: 350px; right: -350px; top: -60px; transform-origin: right center; transform: rotate(10deg) scaleX(0); }
.x15-node-l4 .node-line { width: 300px; right: -300px; top: -80px; transform-origin: right center; transform: rotate(20deg) scaleX(0); }
.x15-node-l5 .node-line { width: 270px; right: -250px; top: -100px; transform-origin: right center; transform: rotate(0deg) scaleX(0); }

/* --- ПРАВАЯ СТОРОНА (Начальное состояние) --- */
.x15-node-r1 .node-line { width: 290px; left: -300px; top: 30px; transform-origin: left center; transform: rotate(25deg) scaleX(0); }
.x15-node-r2 .node-line { width: 310px; left: -320px; top: 15px; transform-origin: left center; transform: rotate(15deg) scaleX(0); }
.x15-node-r3 .node-line { width: 440px; left: -450px; top: 15px; transform-origin: left center; transform: rotate(5deg) scaleX(0); }
.x15-node-r4 .node-line { width: 390px; left: -400px; top: -20px; transform-origin: left center; transform: rotate(-10deg) scaleX(0); }
.x15-node-r5 .node-line { width: 335px; left: -350px; top: -25px; transform-origin: left center; transform: rotate(-20deg) scaleX(0); }

/* Здесь мы задаем конкретный угол для каждой линии при появлении */

.x15-node-l1.active .node-line { transform: rotate(7deg) scaleX(1); }
.x15-node-l2.active .node-line { transform: rotate(-18deg) scaleX(1); } 
.x15-node-l3.active .node-line { transform: rotate(-15deg) scaleX(1); }
.x15-node-l4.active .node-line { transform: rotate(-17deg) scaleX(1); }
.x15-node-l5.active .node-line { transform: rotate(-25deg) scaleX(1); }

.x15-node-r1.active .node-line { transform: rotate(0deg) scaleX(1); }
.x15-node-r2.active .node-line { transform: rotate(0deg) scaleX(1); } 
.x15-node-r3.active .node-line { transform: rotate(0deg) scaleX(1); }
.x15-node-r4.active .node-line { transform: rotate(7deg) scaleX(1); } 
.x15-node-r5.active .node-line { transform: rotate(7deg) scaleX(1); } 

/* Позиции текстовых блоков для X15 */
.x15-node-l1 { top: 50px; left: -340px; text-align: right; }
.x15-node-l2 { top: 180px; left: -360px; text-align: right; }
.x15-node-l3 { top: 320px; left: -380px; text-align: right; }
.x15-node-l4 { top: 450px; left: -340px; text-align: right; }
.x15-node-l5 { top: 530px; left: -300px; text-align: right; }

.x15-node-r1 { top: 60px; right: -340px; text-align: left; }
.x15-node-r2 { top: 190px; right: -360px; text-align: left; }
.x15-node-r3 { top: 310px; right: -380px; text-align: left; }
.x15-node-r4 { top: 400px; right: -360px; text-align: left; }
.x15-node-r5 { top: 520px; right: -320px; text-align: left; }

@media (max-width: 1100px) {
    .x15-tech-img { width: 220px; }
    .x15-node-l1, .x15-node-l2, .x15-node-l3, .x15-node-l4, .x15-node-l5,
    .x15-node-r1, .x15-node-r2, .x15-node-r3, .x15-node-r4, .x15-node-r5 { 
        position: static; width: 100%; opacity: 1; text-align: left !important; margin-bottom: 20px; 
    }
}

/* ============================================================
   ОСОБЕННОСТИ ТОВАРА M15 (НАПОЛЬНЫЙ)
   ============================================================ */
   .m15-tech-img {
    width: 580px;
    padding-top: 40px;
    position: relative;
    margin: 0 auto;
}

/* Общий переход для всех линий M15 */
.m15-tech-img .node-line {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    background: #ccc;
}

/* --- ЛЕВАЯ СТОРОНА (Начальное состояние) --- */
.m15-node-l1 .node-line { width: 300px; right: -310px; top: 30px; transform-origin: right center; transform: rotate(-25deg) scaleX(0); }
.m15-node-l2 .node-line { width: 350px; right: -360px; top: -10px; transform-origin: right center; transform: rotate(-5deg) scaleX(0); }
.m15-node-l3 .node-line { width: 330px; right: -330px; top: -60px; transform-origin: right center; transform: rotate(10deg) scaleX(0); }
.m15-node-l4 .node-line { width: 280px; right: -280px; top: -80px; transform-origin: right center; transform: rotate(20deg) scaleX(0); }
.m15-node-l5 .node-line { width: 250px; right: -230px; top: -100px; transform-origin: right center; transform: rotate(0deg) scaleX(0); }

/* --- ПРАВАЯ СТОРОНА (Начальное состояние) --- */
.m15-node-r1 .node-line { width: 300px; left: -310px; top: 30px; transform-origin: left center; transform: rotate(25deg) scaleX(0); }
.m15-node-r2 .node-line { width: 300px; left: -310px; top: 15px; transform-origin: left center; transform: rotate(15deg) scaleX(0); }
.m15-node-r3 .node-line { width: 420px; left: -430px; top: 15px; transform-origin: left center; transform: rotate(5deg) scaleX(0); }
.m15-node-r4 .node-line { width: 380px; left: -390px; top: -20px; transform-origin: left center; transform: rotate(-10deg) scaleX(0); }
.m15-node-r5 .node-line { width: 300px; left: -300px; top: -25px; transform-origin: left center; transform: rotate(-20deg) scaleX(0); }

/* --- угол стрелок --- */
.m15-node-l1.active .node-line { transform: rotate(0deg) scaleX(1); }
.m15-node-l2.active .node-line { transform: rotate(-5deg) scaleX(1); } 
.m15-node-l3.active .node-line { transform: rotate(-15deg) scaleX(1); }
.m15-node-l4.active .node-line { transform: rotate(-17deg) scaleX(1); }
.m15-node-l5.active .node-line { transform: rotate(-25deg) scaleX(1); }

.m15-node-r1.active .node-line { transform: rotate(0deg) scaleX(1); }
.m15-node-r2.active .node-line { transform: rotate(0deg) scaleX(1); } 
.m15-node-r3.active .node-line { transform: rotate(0deg) scaleX(1); }
.m15-node-r4.active .node-line { transform: rotate(7deg) scaleX(1); } 
.m15-node-r5.active .node-line { transform: rotate(7deg) scaleX(1); } 

/* Позиции текстовых блоков для M15 */
.m15-node-l1 { top: 50px; left: -340px; text-align: right; }
.m15-node-l2 { top: 190px; left: -360px; text-align: right; }
.m15-node-l3 { top: 320px; left: -380px; text-align: right; }
.m15-node-l4 { top: 450px; left: -340px; text-align: right; }
.m15-node-l5 { top: 540px; left: -300px; text-align: right; }

.m15-node-r1 { top: 70px; right: -340px; text-align: left; }
.m15-node-r2 { top: 200px; right: -360px; text-align: left; }
.m15-node-r3 { top: 320px; right: -380px; text-align: left; }
.m15-node-r4 { top: 410px; right: -360px; text-align: left; }
.m15-node-r5 { top: 530px; right: -320px; text-align: left; }

@media (max-width: 1100px) {
    .m15-tech-img { width: 220px; }
    .m15-node-l1, .m15-node-l2, .m15-node-l3, .m15-node-l4, .m15-node-l5,
    .m15-node-r1, .m15-node-r2, .m15-node-r3, .m15-node-r4, .m15-node-r5 { 
        position: static; width: 100%; opacity: 1; text-align: left !important; margin-bottom: 20px; 
    }
}

/* ============================================================
   БЛОК АКСЕССУАРОВ
   ============================================================ */
   .accessories-section {
    padding: 30px 0 80px;
    background: var(--light-gray);
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    align-items: stretch; /* Чтобы карточки были одной высоты */
}

.acc-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-in-out;
}

.acc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.acc-img-wrap {
    position: relative;
    background: #f6f6f6;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.acc-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Убирает белый фон у вырезанных картинок, сливая их с серым фоном блока */
    mix-blend-mode: multiply; 
}

.acc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: var(--white);
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.acc-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Растягивает блок с текстом, если соседние карточки выше */
}

.acc-number {
    font-size: 0.85rem;
    color: var(--mid-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.acc-info p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .accessories-grid {
        grid-template-columns: 1fr;
    }
    .acc-img-wrap {
        height: 220px;
    }
}
/* Подзаголовок внутри секций (например, Опорные мосты) */
.sub-section-title {
    font-size: 1.5rem;
    margin: 50px 0 25px;
    color: var(--dark-gray);
    font-weight: 800;
    text-transform: uppercase;
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
}

/* ============================================================
   ГАЛЕРЕЯ "ДОМКРАТ В РАБОТЕ"
   ============================================================ */
   .work-gallery-section {
    padding: 30px 0 80px;
    background: var(--white); /* Белый фон, чтобы отделить от серых аксессуаров */
}

.work-gallery-grid {
    display: grid;
    /* Создаем 3 колонки на ПК, 2 на планшете, 1 на телефоне */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.work-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* Задаем одинаковые пропорции 4:3 для всех превью */
    aspect-ratio: 4 / 3; 
}

.work-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет блок без искажения пропорций */
    transition: transform 0.5s ease;
}

/* Иконка лупы, которая появляется при наведении */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(211, 47, 47, 0.9); /* Фирменный красный Blitz с прозрачностью */
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none; /* Чтобы не перекрывала клик по фото */
}

.work-gallery-item:hover img {
    transform: scale(1.08); /* Эффект наезда камеры */
}

.work-gallery-item:hover .zoom-icon {
    opacity: 1; /* Показываем лупу */
}

/* Настройки модального окна (для центрирования увеличенного фото) */
#gallery-lightbox {
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Размытие заднего фона */
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ОФОРМЛЕНИЯ ЗАКАЗА
   ============================================================ */
   .modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    width: 95%; /* Увеличено для двух колонок */
    max-width: 750px; /* СДЕЛАЛИ ШИРЕ (было 500px) */
    max-height: 90vh; /* Окно не будет вылезать за пределы экрана по высоте */
    overflow-y: auto; /* Появится скролл внутри окна, если экран маленький */
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Красивый скроллбар для модального окна */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--primary-red); }

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--mid-gray);
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--primary-red);
}

.modal-title {
    font-size: 1.6rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
    font-weight: 800;
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--mid-gray);
    margin-bottom: 25px;
}

/* СЕТКА ДЛЯ ДВУХ КОЛОНОК */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--mid-gray);
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.file-input {
    width: 100%;
    font-size: 0.9rem;
    color: var(--mid-gray);
    padding: 8px 0;
}

.modal-submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* БЛОК ВЫБОРА МОДЕЛЕЙ В ФОРМЕ ЗАКАЗА */
.model-selection-group {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    margin-bottom: 20px;
}

.model-selection-group > label {
    font-size: 0.9rem !important;
    color: var(--dark-gray) !important;
    margin-bottom: 12px !important;
    text-transform: uppercase;
    font-weight: 800 !important;
}

.model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.model-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.model-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin: 0 !important;
}

.model-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.model-qty {
    width: 70px !important;
    padding: 8px !important;
    text-align: center;
    font-weight: bold;
}

.model-qty:disabled {
    background: #e9ecef;
    color: #aaa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Адаптив для модалки */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .modal-content {
        padding: 30px 20px;
    }
}

/* --- Стили для страницы Оплата и Доставка --- */

.payment-intro {
    margin-bottom: 30px;
}

.payment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.p-step {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-num {
    background: var(--primary-red);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.p-text strong {
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.p-text p {
    font-size: 0.85rem;
    color: var(--mid-gray);
    line-height: 1.4;
}

/* Лизинг */
.leasing-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fdf2f2;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-red);
}

.leasing-icon {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    opacity: 0.3;
}

.leasing-content h3 {
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.leasing-note {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--mid-gray);
}

/* Доставка */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.delivery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.d-card-head {
    background: var(--dark-gray);
    color: #fff;
    padding: 15px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.d-card-body {
    padding: 20px;
}

.d-card-body address {
    font-style: normal;
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary-red);
}

/* Логотипы ТК */
.tk-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    align-items: center;
}

.tk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.tk-item img {
    max-width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(1);
    transition: 0.3s;
}

.tk-item:hover img {
    filter: grayscale(0);
}

.tk-item span {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--mid-gray);
}

@media (max-width: 768px) {
    .delivery-grid { grid-template-columns: 1fr; }
    .leasing-box { flex-direction: column; text-align: center; }
}

/* Общие утилиты скрытия */
.mobile-only { display: none !important; }

/* === АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (APP-STYLE) === */
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    /* Делаем подвал и body с отступом, чтобы нижнее меню не перекрывало контент */
    body { padding-bottom: 60px; }
    
    /* Компактная шапка */
    .navbar { 
        padding: 10px 15px; 
        justify-content: space-between; 
        flex-wrap: nowrap; /* Запрещаем перенос строк */
    }
    
    /* Уменьшаем логотип */
    .logo-container img { 
        height: 35px; /* Было 50px */
        width: auto;
    }
    
    /* Иконка звонка в шапке (круглая и аккуратная) */
    .h-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        color: #fff;
    }
    .h-phone:hover { background: var(--brand-red); color: #fff; }
    .phone-icon { width: 20px; height: 20px; fill: currentColor; }

    /* --- НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ (Bottom Nav) --- */
    .bottom-nav {
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: #fff;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        z-index: 9999;
        border-top: 1px solid #eee;
    }
    
    .bn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #888;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        background: none; border: none; outline: none;
        width: 33%;
        text-decoration: none;
    }
    .bn-item svg { width: 24px; height: 24px; fill: currentColor; transition: 0.3s; }
    .bn-item:hover, .bn-item:active { color: var(--brand-red); }

    /* --- ВЫЕЗЖАЮЩЕЕ БОКОВОЕ МЕНЮ (Drawer) --- */
    .drawer-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 10000;
        opacity: 0; visibility: hidden;
        transition: 0.3s ease;
        backdrop-filter: blur(3px);
    }
    .drawer-overlay.active { opacity: 1; visibility: visible; }

    .mobile-drawer {
        position: fixed; top: 0; left: -300px; /* Выезжает слева */
        width: 280px; height: 100%;
        background: #fff;
        z-index: 10001;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex; flex-direction: column;
    }
    .mobile-drawer.active { transform: translateX(300px); } /* 300px потому что left: -300px */

    .drawer-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 20px; border-bottom: 1px solid #eee;
        background: var(--brand-dark);
        color: #fff;
    }
    .drawer-title { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; }
    .drawer-close {
        background: none; border: none; color: #fff;
        font-size: 24px; font-weight: bold; cursor: pointer;
    }

    .drawer-content { padding: 20px; overflow-y: auto; flex-grow: 1; }
    
    .drawer-section { margin-bottom: 30px; }
    .drawer-section-title {
        font-size: 0.85rem; color: #999;
        text-transform: uppercase; font-weight: bold;
        margin-bottom: 10px; padding-bottom: 5px;
        border-bottom: 1px dashed #ddd;
    }
    
    .drawer-content a {
        display: block; padding: 12px 0;
        color: var(--brand-dark); font-weight: 600; font-size: 1rem;
        text-decoration: none; border-bottom: 1px solid #f5f5f5;
    }
    .drawer-content a:last-child { border-bottom: none; }
}
