/*
Theme Name: IZILAB
Author: IZILAB
Author URI: http://izilab.pro
Version: 1.0
*/



.leaflet-control .leaflet-attribution-flag{
    display: none !important;
}

    /* === RESET & BASE === */
    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
        font-family: 'Inter', sans-serif; /* Читабельный шрифт */
        background: #fff; /* Светло-серый, не чистый белый */
        color: #1a1a1a;
        line-height: 1.6;
        overflow-x: hidden;
    }

    h1, h2, h3, h4 {
        font-family: 'Oswald', sans-serif;
        text-transform: uppercase;
        font-weight: 700;
        line-height: 1.2;
    }

    a { 
        text-decoration: underline; 
        color: inherit; 
        transition: 0.3s; 

    }
    ul { list-style: none; }
    img { max-width: 100%; display: block; }
    a:hover{
        text-decoration: none;
        color: #e60000;
    }

    /* === UTILITIES === */
    .container {
        width: 90%;
        max-width: 1280px;
        margin: 0 auto;
    }

    .section { padding: 100px 0; }

    .section-header {
        margin-bottom: 60px;
        max-width: 700px;
    }

    .section-title {
        font-size: 42px;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
    }
    
    .section-title2{
        font-size: 42px;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
    }

    /* Красный акцент под заголовками */
    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background: #e60000;
        margin-top: 10px;
    }

    .section-subtitle {
        font-size: 18px;
        color: #666;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #e60000;
        color: white;
        padding: 16px 32px;
        font-family: 'Oswald', sans-serif;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        border-radius: 4px;
        transition: all 0.3s ease;
        border: 2px solid #e60000;
    }

    .btn:hover {
        background: transparent;
        color: #e60000;
        transform: translateY(-3px);
    }

    /* === HEADER === */
    header {
        background: #0f0f0f;
        padding: 20px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid #333;
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img{
        width: 200px;
    }
    .logo span { color: #e60000; }

    nav ul{ display: flex; gap: 30px; }
    
    nav li a {
        color: #bbb;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
    }
    nav li a:hover { color: white; }

    /* === HERO === */
    .hero {
        height: 90vh;
        min-height: 600px;
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
                    url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
        display: flex;
        align-items: center;
        color: white;
        position: relative;
    }

    .hero-content h1 {
        font-size: clamp(40px, 5vw, 72px); /* Адаптивный шрифт */
        max-width: 800px;
        margin-bottom: 24px;
    }

    .hero-content p {
        font-size: 20px;
        max-width: 600px;
        margin-bottom: 40px;
        opacity: 0.9;
    }

    /* === ABOUT (GRID LAYOUT) === */
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .about-text { font-size: 18px; color: #444; }
    
    .about-image {
        position: relative;
    }
    
    .about-image img {
        border-radius: 8px;
        box-shadow: 20px 20px 0px #e60000; /* Декоративная тень */
    }

    /* === ADVANTAGES (BENTO GRID) === */
    .bg-white { background: white; }
    
    .advantages-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .advantage-card {
        background: #f8f9fa;
        padding: 40px;
        border-radius: 8px;
        transition: 0.3s;
        border: 1px solid transparent;
    }

    .advantage-card:hover {
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-color: #eee;
        transform: translateY(-5px);
    }

.advantage-card {
    display: flex;
    flex-direction: column;
    align-items: center;     /* Центрирует все дочерние элементы по горизонтали */
    text-align: center;      /* Дополнительно центрирует текст внутри h3 и p */
}

.kim-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    color: #e60000;
}

    .kim-number {
        font-family: 'Oswald', sans-serif;
        font-size: 26px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 10px;
        text-align: center;
    }

    .kim-text { 
    	color: #666; 
    	font-size: 16px; 
    	text-align: center;
    }

    /* === SCALE (DARK SECTION) === */
    .scale-section {
        background: #111;
        color: white;
        padding: 80px 0;
    }

    .scale-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        text-align: center;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
        padding: 40px 0;
    }

    .scale-item { position: relative; }
    /* Разделители между цифрами */
    .scale-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -20px;
        top: 10%;
        height: 80%;
        width: 1px;
        background: #333;
    }

    .scale-num {
        font-family: "Archivo Black", sans-serif;
        font-size: 56px;
        font-weight: 700;
        color: #e60000;
        line-height: 1;
        margin-bottom: 10px;
    }

    .scale-desc {
        color: #888;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* === CATALOG (CARDS) === */
    .catalog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .product-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        transition: 0.3s;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .product-img {
        height: 200px; /* Фиксированная высота контейнера */
        background: #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #888;
        overflow: hidden; /* Скрываем все, что выходит за рамки */
    }

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ключевое свойство: заполняет весь блок, обрезая лишнее, не растягивая */
        object-position: center; /* Центрируем изображение */
    }

    .product-body { padding: 25px; }
    
    .product-title { 
        font-size: 20px; 
        font-family: 'Oswald', sans-serif;
        margin-bottom: 10px;
    }

    .product-link {
        color: #e60000;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* === LOGISTICS (ALT LAYOUT) === */
    .logistics-wrapper {
        display: flex;
        flex-direction: row-reverse; /* Картинка слева, текст справа (при широком экране) */
        gap: 60px;
        align-items: center;
    }
    
    .logistics-img {
        flex: 1;
        height: 400px;
        background: #333;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .logistics-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .logistics-info { flex: 1; }

    /* === CONTACT CTA === */
    .cta-section {
        background: #e60000;
        color: white;
        text-align: center;
    }
    .cta-section .btn {
        background: white;
        color: #e60000;
        border-color: white;
        margin-top: 30px;
    }
    .cta-section .btn:hover {
        background: black;
        border-color: black;
        color: white;
    }
    .cta-section .section-title::after { background: white; margin: 10px auto; }


    /* === FOOTER === */
    footer {
        background: #0a0a0a;
        color: #888;
        padding: 80px 0 30px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 60px;
        padding-bottom: 60px;
        border-bottom: 1px solid #222;
    }

    .footer-col h4 {
        color: white;
        font-size: 18px;
        margin-bottom: 25px;
    }

    .footer-col ul li { margin-bottom: 12px; }
    .footer-col a:hover { color: #e60000; }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }

    /* === MOBILE === */
    @media (max-width: 900px) {
        .about-grid, .logistics-wrapper { grid-template-columns: 1fr; flex-direction: column; }
        .scale-grid { grid-template-columns: 1fr 1fr; border: none; }
        .scale-item::after { display: none; }
        .hero-content h1 { font-size: 36px; }
        .nav-wrapper { flex-direction: column; gap: 20px; }
        .footer-top { grid-template-columns: 1fr; }
    }



    .features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e60000;
  font-weight: 700;
}


.pagination ul{
  display:flex;
  gap:10px;
  list-style:none;
  padding:0;
  margin:30px 0 0;
  justify-content:center;
  flex-wrap:wrap;
}
.pagination li a,
.pagination li span{
  display:inline-block;
  padding:8px 12px;
  border:1px solid #e5e5e5;
  border-radius:8px;
  text-decoration:none;
  line-height:1;
}
.pagination .current{
  border-color:#e60000;
  background:#e60000;
  color:#fff;
}
.pagination a:hover{
  border-color:#e60000;
}


.log-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.log-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Контейнер изображения */
.log-card__img {
  height: 200px;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* Главное */
.log-card__img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;   /* ← ключ */
}


    .log-card__body { padding: 25px; }
    
    .log-card__title { 
        font-size: 20px; 
        font-family: 'Oswald', sans-serif;
        margin-bottom: 10px;
    }

    .log-card__link {
        color: #e60000;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 5px;
    }

.log-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.log-head__search{
  display:flex;
  align-items:center;
  gap:10px;
}

.log-search__input{
  width:min(360px, 60vw);
  height:40px;
  padding:0 12px;
  border:1px solid #e5e5e5;
  border-radius:8px;
  outline:none;
}

.log-search__input:focus{
  border-color:#e60000;
}

.log-search__btn{
  height:40px;
  padding:0 14px;
  border:0;
  border-radius:8px;
  background:#e60000;
  color:#fff;
  font-weight:600;
  cursor:pointer;
}

.car-image{
    position: relative;
}

.car-image img{
    height: 600px;
    width: auto;
    border-radius: 8px;
    box-shadow: 20px 20px 0px #e60000; /* Декоративная тень */    
}

.whatsapp-float{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: wa-pulse 2.5s infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover{
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.whatsapp-float svg{
  width: 32px;
  height: 32px;
}

/* Пульсация */
@keyframes wa-pulse{
  0%{
    box-shadow: 0 0 0 0 rgba(37,211,102,.6);
  }
  70%{
    box-shadow: 0 0 0 18px rgba(37,211,102,0);
  }
  100%{
    box-shadow: 0 0 0 0 rgba(37,211,102,0);
  }
}

.social--vertical{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social--vertical a{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #888;
  font-weight: 500;
  transition: color .25s ease, transform .25s ease;
}

.social--vertical a:hover{
  color: #e60000;
  transform: translateX(3px);
}

.social--vertical svg{
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.social--vertical span{
  font-size: 15px;
  line-height: 1.2;
}


#map{
    margin: auto;
    border: solid 1px #e3e3e3;
}

.embedCard{
  display:flex;
  justify-content:center;
  width:100%;
  padding:40px 0;
}

.iframe-viewport{
  width:1110px;
  height:1500px;
  overflow:hidden;          /* обрезаем всё лишнее */
  position:relative;
  background:#fff;
  border-radius:16px;
}

/* iframe делаем ШИРЕ контейнера, чтобы скроллбар ушел вправо "за кадр" */
.iframe-viewport__frame{
  position:absolute;
  top: 0; 
  left:0;
  width:calc(100% + 24px);  /* 17–24px обычно хватает */
  height:100%;
  border:0;
  display:block;

  /* твой отрицательный "отступ" контента */
  transform: translateY(-190px);
}


.section-header2{
    text-align: center;
}

.section-title2::after {
    margin: 10px auto;
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e60000;
    margin-top: 10px;
}

.section2{
    margin-top: 30px;
}

/* ===== Mobile menu ===== */

.site-header { position: sticky; top: 0; z-index: 1000; }

/* Кнопка бургера скрыта на десктопе */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid #333;
  border-radius:10px;
  background:transparent;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px;
}

/* Полоски */
.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:#fff;
  transition: transform .25s ease, opacity .2s ease;
}

/* Nav контейнер */
.site-nav{ margin-left:auto; }

/* твой desktop-стиль меню оставляем как есть,
   но лучше явно указать класс .menu */
.site-nav .menu{
  display:flex;
  gap:30px;
}

/* ===== Mobile ===== */
@media (max-width: 900px){
  .nav-wrapper{
    position:relative;
    flex-direction:row;
    gap:12px;
  }

  .nav-toggle{ display:inline-flex; }

  /* Прячем список по умолчанию */
  .site-nav{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#0f0f0f;
    border-top:1px solid #333;
    overflow:hidden;

    max-height:0;
    opacity:0;
    pointer-events:none;
    transition: max-height .28s ease, opacity .2s ease;
  }

  .site-nav .menu{
    display:flex;
    flex-direction:column;
    gap:0;
    padding:12px 0;
  }

  .site-nav .menu li a{
    display:block;
    padding:12px 20px;
    color:#bbb;
    text-decoration:none;
  }

  .site-nav .menu li a:hover{
    color:#fff;
    background: rgba(255,255,255,0.04);
  }

  /* Открытое меню */
  .site-header.is-open .site-nav{
    max-height:70vh;      /* чтобы влезло много пунктов */
    opacity:1;
    pointer-events:auto;
  }

  /* Анимация бургера в крестик */
  .site-header.is-open .nav-toggle span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }
  .site-header.is-open .nav-toggle span:nth-child(2){
    opacity:0;
  }
  .site-header.is-open .nav-toggle span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }
}


.dg-widget{
  width:100%;
  max-width:1110px;
  margin:0 auto;
}

.dg-widget__frame{
  width:100%;
  border:1px solid #a3a3a3;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

/* Самое важное: растягиваем iframe, который 2GIS вставляет */
.dg-widget__frame iframe{
  display:block;
  width:100% !important;
  height: clamp(320px, 60vh, 600px) !important;
  border:0 !important;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 34px;
  background: #e10600;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;

  text-decoration: none;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(225,6,0,0.6);
  }
  70% {
    box-shadow: 0 0 25px rgba(225,6,0,0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(225,6,0,0.6);
  }
}

.btn {
  animation: pulseGlow 2.8s infinite;
}
