/* Главная: grid-сетка - слева баннер, справа 2 блока */

/* Переопределяем старые стили hero (если остались в теме) */
section.hero,
.hero {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home-hero {
    background: #fff;
    padding: 30px 0 10px;
}

/* Grid-сетка: слева баннер, справа 2 блока */
.home-hero__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* Левая колонка: баннер */
.home-hero__banner {
    display: flex;
    flex-direction: column;
}

.home-hero__swiper {
    width: 100%;
    flex: 1;
}

/* Убираем глобальные swiper-стили */
.home-hero .swiper-wrapper {
    padding-bottom: 0 !important;
}

.home-hero__slide {
    position: relative;
    min-height: 520px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    flex-direction: column;
}

.home-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero__slide-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 468px;
}

/* Скрываем телефон и соц-сети в баннере */
.home-hero__slide-content .phone,
.home-hero__slide-content .contact-phone,
.home-hero__slide-content .social-links,
.home-hero__slide-content .whatsapp,
.home-hero__slide-content .telegram,
.home-hero__slide-content [class*="phone"],
.home-hero__slide-content [class*="whatsapp"],
.home-hero__slide-content [class*="telegram"],
.home-hero__slide-content [class*="contact"]:not(.home-hero__btn-outline) {
    display: none !important;
}

.home-hero__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px;
}

.home-hero__subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
    margin: 0 0 24px;
}

.home-hero__subtitle .product-count {
    font-weight: 700;
    color: #f0cf4c;
    font-size: 20px;
}

.home-hero__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero__btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 12px;
    border: 2px solid #f0cf4c;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.home-hero__btn-outline:hover {
    background: #f0cf4c;
    border-color: #f0cf4c;
    color: #000;
}

.home-hero__btn-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid #f0cf4c;
    background: #f0cf4c;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s ease;
}

.home-hero__btn-catalog:hover {
    background: #e0bf3c;
    border-color: #e0bf3c;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 207, 76, 0.3);
}

.home-hero__btn-consultation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s ease;
}

.home-hero__btn-consultation:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}


.home-hero__pagination {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.home-hero .swiper-pagination-bullet {
    width: 32px !important;
    height: 3px !important;
    border-radius: 0 !important;
    background: #d0d0d0 !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.home-hero .swiper-pagination-bullet-active {
    width: 44px !important;
    height: 4px !important;
    background: #000 !important;
}

.home-hero__cta {
    margin-top: 18px;
}

.home-hero__btn-primary {
    width: 100%;
    padding: 18px 20px;
    background: #f0cf4c;
    color: #000;
    border: none;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.home-hero__btn-primary:hover {
    background: #d4b83d;
}

/* Правая колонка: 2 блока */
.home-hero__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 520px;
}

.home-hero__block {
    background: #f9f9f9;
    border-radius: 14px;
    padding: 16px;
    overflow: hidden;
}

.home-hero__block-1 {
    background: #f7f9fb;
    text-align: left;
    flex: 0 1 35%;
    min-height: 0;
}

.home-hero__block-2 {
    background: #31353d;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    flex: 0 1 75%;
    min-height: 0;
}

.home-hero__legal-block {
    display: flex;
    height: 100%;
    position: relative;
}

.home-hero__legal-content {
    flex: 1;
    background: transparent;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.home-hero__legal-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
}


.home-hero__legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-hero__legal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

.home-hero__legal-item i {
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.home-hero__legal-item span {
    flex: 1;
}

.home-hero__legal-image {
    flex: 0 0 auto;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    z-index: 1;
}

.home-hero__legal-image i {
    font-size: 120px;
    color: #fff;
}

.home-hero__manager {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-hero__manager-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.home-hero__manager-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.home-hero__manager-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.home-hero__manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__manager-info {
    flex: 1;
    min-width: 0;
}

.home-hero__manager-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
}

.home-hero__manager-id {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.home-hero__manager-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 10px 0;
}

.home-hero__manager-contacts {
    margin-bottom: 12px;
    display: none !important;
}

.home-hero__manager-contacts-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.home-hero__manager-phone {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.home-hero__manager-phone-label {
    font-weight: 500;
    margin-right: 8px;
}

.home-hero__manager-phone-value {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-hero__manager-phone-value:hover {
    color: #f0cf4c;
}

.home-hero__manager-messengers {
    display: flex;
    gap: 10px;
    align-items: center;
}

.home-hero__manager-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-hero__manager-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.home-hero__manager-icon i.fa-whatsapp {
    color: #25D366;
    font-size: 18px;
}

.home-hero__manager-icon i.fa-telegram-plane {
    color: #0088cc;
    font-size: 18px;
}

.home-hero__manager-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.home-hero__manager-btn {
    flex: 1;
    padding: 8px 14px;
    background: #f0cf4c;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.home-hero__manager-btn:hover {
    background: #e0bf3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 207, 76, 0.3);
}

.home-hero__manager-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-hero__manager-link:hover {
    color: #f0cf4c;
}

/* Адаптивность */
@media (max-width: 992px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
    }
    
    .home-hero__banner {
        order: -1; /* Баннер со слайдером сверху на мобильных */
    }
    
    .home-hero__sidebar {
        order: 1; /* Боковые блоки снизу на мобильных */
    }
    
    .home-hero__slide {
        min-height: 400px;
        position: relative;
    }
    
    .home-hero__slide-content {
        position: relative;
        z-index: 2;
        padding: 40px 30px;
        max-width: 100%;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(5px);
        border-radius: 0;
    }
    
    .home-hero__media {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .home-hero__title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .home-hero {
        padding-top: 18px;
    }
    .home-hero__container {
        padding: 0 14px;
    }
    .home-hero__title {
        font-size: 26px;
    }
    .home-hero__subtitle {
        font-size: 16px;
    }
    .home-hero__slide {
        min-height: 320px;
        position: relative;
    }
    .home-hero__slide-content {
        position: relative;
        z-index: 2;
        padding: 30px 20px;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(5px);
        border-radius: 0;
    }
    .home-hero__media {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .home-hero__block {
        padding: 20px;
        min-height: 200px;
    }
    
    .home-hero__legal-block {
        min-height: auto;
    }
    
    .home-hero__legal-content {
        padding: 20px 16px;
    }
    
    .home-hero__legal-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .home-hero__legal-title i {
        font-size: 20px;
    }
    
    .home-hero__legal-item {
        font-size: 12px;
        gap: 8px;
    }
    
    .home-hero__legal-image {
        right: 10px;
    }
    
    .home-hero__legal-image i {
        font-size: 80px;
    }
    
    .home-hero__manager-actions {
        margin-top: 0;
    }
}
