
/**
 * Home Page Styles
 * Exported from original index.php
 * Version: 2.0
 */

/* �������������� ����� ��� ������ � ������� ������������ */


/* ����� ����� */
    .home_big_slider {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        height: 500px;
    }
    
    .home_catalog * {
        color: #000000;
    }
        
    .home_wrap {
        flex: 1;
        display: grid;
        grid-template-rows: 1fr;
        align-items: stretch;
    }

    .lazy-slide {
        display: none;
    }

    @media (max-width: 1140px) {
        .home_big_slider {
            height: 1500px;
        }
    }

    @media (max-width: 768px) {
        .home_big_slider {
            height: 700px;
        }
    }

    .largest-contentful-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
        will-change: transform;
    }

    /* ����� ��� ����� - ����������� */
    .tabitem[hidden] {
        display: none !important;
    }
    .tabitem:not([hidden]) {
        display: block;
    }
    /* tabindex="0" ������ ���� ������ � HTML, �� � CSS */

    /* Скрываем неактивные слайды */
    .home_big_img .slick-slide:not(.slick-active) .pkonly,
    .home_big_img .slick-slide:not(.slick-active) .mobonly,
    .home_big_img .slick-slide:not(.slick-active) .largest-contentful-image {
        display: none !important;
        opacity: 0;
        visibility: hidden;
    }
    
    /* Показываем изображение в активном слайде */
    .home_big_img .slick-active .largest-contentful-image {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    /* ���������� ������ - ���������� pkonly, �������� mobonly */
    @media (min-width: 768px) {
        .home_big_img .slick-active .pkonly {
            display: block !important;
            opacity: 1;
            visibility: visible;
        }
        .home_big_img .slick-active .mobonly {
            display: none !important;
        }
        
        /* До инициализации Slick - первый слайд виден */
        .home_big_img > .slick-slide:first-child .pkonly,
        .home_big_img > .slick-slide:first-child .largest-contentful-image {
            display: block !important;
            opacity: 1;
            visibility: visible;
        }
        .home_big_img > .slick-slide:first-child .mobonly {
            display: none !important;
        }
    }

    /* Мобильные устройства */
    @media (max-width: 767px) {
        .home_big_img .slick-active .mobonly {
            display: block !important;
            opacity: 1;
            visibility: visible;
        }
        .home_big_img .slick-active .pkonly {
            display: none !important;
        }
        
        /* До инициализации Slick - первый слайд виден */
        .home_big_img > .slick-slide:first-child .mobonly,
        .home_big_img > .slick-slide:first-child .largest-contentful-image {
            display: block !important;
            opacity: 1;
            visibility: visible;
        }
        .home_big_img > .slick-slide:first-child .pkonly {
            display: none !important;
        }
    }

    /* ����� ��� ������� �������� ����������� */
    img.lazyload {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    img.loaded {
        opacity: 1;
    }

    /* ����� �����: �������� background-image �� HTML �������� */
    .hover_link {
        position: relative;
        display: inline-block;
    }
    
    .hover_link_icon {
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .sqr_rec:hover .hover_link_icon,
    .sqr_rec.more .hover_link_icon {
        opacity: 1;
    }
    
    .rating .star {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 3px;
    }
    
    .rating .star.active {
        background-image: url('https://stroysport.com/wp-content/uploads/2021/02/i12.webp');
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .news .more_icon {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-left: 8px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        vertical-align: middle;
    }
    
    .home_review .item::after,
    .home_review .thx::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.1;
    }
    
    /* ����������� ������ ����� "� ��������" � ������ #00c475 */
    .about_comp {
        background: linear-gradient(135deg, #ffffff 0%, #f8fdfa 100%);
        position: relative;
        overflow: hidden;
    }
    
    .about_comp::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #00c475, #00e085);
    }
    
    .about_comp .home_wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 1;
    }
    
    .about_comp .main_title {
        text-align: center;
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 60px;
        color: #1a1a1a;
        position: relative;
    }
    
    .about_comp .main_title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        background: linear-gradient(90deg, #00c475, #00e085);
        border-radius: 2px;
    }
    
    .about_comp .intro_section {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        margin-bottom: 70px;
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .about_comp .intro_text {
        flex: 1;
        min-width: 300px;
        font-size: 18px;
        line-height: 1.7;
        color: #333;
        background: white;
        padding: 35px;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 196, 117, 0.08);
        border-left: 5px solid #00c475;
    }
    
    .about_comp .intro_text strong {
        color: #00c475;
        font-weight: 600;
    }
    
    .about_comp .intro_logo {
        flex-shrink: 0;
        background: linear-gradient(135deg, #00c475, #00e085);
        color: white;
        padding: 30px 40px;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-width: 220px;
        box-shadow: 0 15px 30px rgba(0, 196, 117, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .about_comp .intro_logo::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="white" opacity="0.05"/></svg>');
    }
    
    .about_comp .logo_text {
        font-size: 32px;
        font-weight: 800;
        letter-spacing: 2px;
        margin-bottom: 8px;
        position: relative;
        z-index: 1;
    }
    
    .about_comp .logo_sub {
        font-size: 16px;
        font-weight: 500;
        opacity: 0.9;
        position: relative;
        z-index: 1;
    }
    
    .about_comp .production_header {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .about_comp .production_header .title {
        font-size: 32px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }
    
    .about_comp .production_header .title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: #00c475;
    }
    
    .about_comp .production_header .subtitle {
        font-size: 18px;
        color: #666;
        line-height: 1.6;
        max-width: 800px;
        margin: 0 auto;
    }
    
    /* ����� ����� ������ � ��������� ������ */
    .about_comp .production_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 70px;
    }
    
    @media (max-width: 992px) {
        .about_comp .production_grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }
    }
    
    @media (max-width: 768px) {
        .about_comp .production_grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }
    
    .about_comp .production_item {
        background: white;
        border-radius: 16px;
        padding: 30px;
        text-align: center;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        border: 1px solid #e8f5ee;
        position: relative;
        overflow: hidden;
    }
    
    .about_comp .production_item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #00c475, #00e085);
    }
    
    .about_comp .production_item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 2px solid transparent;
        border-radius: 16px;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }
    
    .about_comp .production_item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 196, 117, 0.12);
        border-color: #00c475;
    }
    
    .about_comp .production_item:hover::after {
        border-color: #00c475;
        opacity: 0.2;
    }
    
    .about_comp .production_icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #e8f8f0, #d0f0e0);
        border-radius: 50%;
        transition: opacity 0.4s ease;
        position: relative;
        overflow: hidden;
    }
    
    .about_comp .production_item:hover .production_icon {
        background: linear-gradient(135deg, #00c475, #00e085);
        transform: scale(1.1) rotate(5deg);
    }
    
    .about_comp .icon_svg {
        width: 40px;
        height: 40px;
        object-fit: contain;
        transition: opacity 0.4s ease;
    }
    
    .about_comp .production_item:hover .icon_svg {
        filter: brightness(0) invert(1);
        transform: scale(1.1);
    }
    
    .about_comp .production_content {
        margin-top: 15px;
    }
    
    .about_comp .production_title {
        display: block;
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 8px;
        /* transition ����� ��� ������������������ - ������ transform/opacity */
    }
    
    .about_comp .production_item:hover .production_title {
        color: #00c475;
    }
    
    .about_comp .production_desc {
        display: block;
        font-size: 14px;
        color: #666;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .about_comp .production_link {
        display: inline-block;
        color: #00c475;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        position: relative;
        padding-right: 20px;
    }
    
    .about_comp .production_link::after {
        content: '>';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        /* transition ����� ��� ������������������ - ������ transform/opacity */
    }
    
    .about_comp .production_item:hover .production_link::after {
        opacity: 1;
        transform: translateY(-50%) translateX(5px);
    }
    
    /* �������������� ������ */
    .about_comp .info_sections {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    @media (max-width: 768px) {
        .about_comp .info_sections {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }
    
    .about_comp .info_section {
        background: white;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 196, 117, 0.08);
        border-top: 4px solid #00c475;
        transition: transform 0.3s ease;
    }
    
    .about_comp .info_section:hover {
        transform: translateY(-5px);
    }
    
    .about_comp .info_header {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 2px solid #e8f5ee;
    }
    
    .about_comp .info_number {
        font-size: 48px;
        font-weight: 800;
        color: #00c475;
        margin-right: 20px;
        line-height: 1;
        opacity: 0.3;
    }
    
    .about_comp .info_title {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }
    
    .about_comp .advantages_list {
        list-style: none;
        padding: 0;
        margin: 0 0 25px 0;
    }
    
    .about_comp .advantages_list li {
        padding: 10px 0;
        padding-left: 28px;
        position: relative;
        font-size: 16px;
        line-height: 1.6;
        color: #555;
    }
    
    .about_comp .advantages_list li::before {
        content: '?';
        position: absolute;
        left: 0;
        top: 10px;
        color: #00c475;
        font-weight: bold;
        font-size: 18px;
    }
    
    .about_comp .highlight_box {
        background: linear-gradient(135deg, #e8f8f0, #d0f0e0);
        padding: 25px;
        border-radius: 12px;
        border-left: 4px solid #00c475;
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    
    .about_comp .highlight_icon {
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .about_comp .highlight_text {
        font-size: 16px;
        line-height: 1.6;
        color: #1a1a1a;
    }
    
    .about_comp .highlight_text strong {
        color: #00c475;
    }
    
    .about_comp .clients_list {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .about_comp .client_category {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        background: #f8fdfa;
        border-radius: 12px;
        border: 1px solid #e8f5ee;
        transition: transform 0.3s ease;
    }
    
    .about_comp .client_category:hover {
        background: #e8f8f0;
        transform: translateX(5px);
    }
    
    .about_comp .category_icon {
        font-size: 28px;
        width: 48px;
        height: 48px;
        background: #00c475;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .about_comp .category_content h4 {
        margin: 0 0 8px 0;
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
    }
    
    .about_comp .category_content p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        color: #666;
    }
    
    /* ������ �������� - ��������� �� ���� ����� */
    .about_comp .download_section_fullwidth {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        background: linear-gradient(135deg, #00c475, #00e085);
        padding: 70px 20px;
        margin-top: 70px;
        margin-bottom: -80px;
        overflow: hidden;
    }
    
    .about_comp .download_section_fullwidth::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/></svg>');
    }
    
    .about_comp .download_section_content {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 1;
    }
    
    .about_comp .download_section_content h3 {
        color: white;
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .about_comp .download_section_content p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 20px;
        line-height: 1.6;
        max-width: 700px;
        margin: 0 auto 40px;
    }
    
    .about_comp .skachat_fullwidth {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: white;
        color: #00c475;
        padding: 20px 50px;
        border-radius: 50px;
        font-size: 20px;
        font-weight: 700;
        text-decoration: none;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 1;
        border: 3px solid transparent;
    }
    
    .about_comp .skachat_fullwidth:hover {
        background: transparent;
        color: white;
        border-color: white;
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }
    
    .about_comp .skachat_fullwidth::before {
        content: '??';
        margin-right: 15px;
        font-size: 24px;
        transition: transform 0.3s ease;
    }
    
    .about_comp .skachat_fullwidth:hover::before {
        transform: translateY(-3px);
    }
    
    @media (max-width: 768px) {
        .about_comp .download_section_content h3 {
            font-size: 28px;
        }
        
        .about_comp .download_section_content p {
            font-size: 18px;
            padding: 0 15px;
        }
        
        .about_comp .skachat_fullwidth {
            padding: 18px 35px;
            font-size: 18px;
        }
    }
    
    /* �������������� ������������ �������� */
    .about_comp .stats_badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 196, 117, 0.1);
        border: 2px solid rgba(0, 196, 117, 0.2);
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        color: #00c475;
        display: flex;
        align-items: center;
        gap: 8px;
    }

/* ============================================

/* ============================================
   DOM ОПТИМИЗАЦИЯ - минимальные изменения
   ============================================ */

/* Рейтинг - звезды через CSS (1 элемент вместо 5) */
.rating {
    display: block;
    height: 17px;
    margin: 12px 0 8px;
    background-repeat: repeat-x;
    background-size: 22px 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ddd' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    width: 110px;
}

.rating[data-rating="1"] { width: 22px; }
.rating[data-rating="2"] { width: 44px; }
.rating[data-rating="3"] { width: 66px; }
.rating[data-rating="4"] { width: 88px; }
.rating[data-rating="5"] { width: 110px; }

.rating::before {
    content: '';
    display: block;
    height: 17px;
    background-repeat: repeat-x;
    background-size: 22px 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffc107' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.rating[data-rating="1"]::before { width: 22px; }
.rating[data-rating="2"]::before { width: 44px; }
.rating[data-rating="3"]::before { width: 66px; }
.rating[data-rating="4"]::before { width: 88px; }
.rating[data-rating="5"]::before { width: 110px; }

/* Production items - flat структура */
.production_item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8fdfa;
    border-radius: 12px;
    border: 1px solid #e8f5ee;
    text-decoration: none;
    color: inherit;
}

.production_item .production_title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.production_item .production_desc {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Client categories - flat структура */
.client_category {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8fdfa;
    border-radius: 12px;
    border: 1px solid #e8f5ee;
}

.client_category .category_icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    background: #00c475;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client_category h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
}

.client_category p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Catalog items - упрощенная структура */
.items_list .meta {
    margin: 8px 0;
    font-size: 12px;
    color: #888;
}

/* ============================================
   МОБИЛЬНЫЕ СТИЛИ ДЛЯ ABOUT
   ============================================ */

@media screen and (max-width: 768px) {
    .about_comp .home_wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .about_comp .intro_section {
        flex-direction: column;
        gap: 20px;
    }
    
    .about_comp .intro_text {
        font-size: 15px;
    }
    
    .about_comp .production_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .production_item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .about_comp .info_sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about_comp .info_section {
        padding: 20px;
    }
    
    .client_category {
        flex-direction: column;
        gap: 12px;
    }
    
    .client_category .category_icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .download_section_content {
        padding: 30px 20px;
    }
    
    .download_section_content h2 {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .about_comp .home_wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .production_item {
        padding: 12px;
    }
    
    .production_item .production_title {
        font-size: 15px;
    }
    
    .production_item .production_desc {
        font-size: 12px;
    }
    
    .client_category {
        padding: 15px;
    }
    
    .client_category h3 {
        font-size: 16px;
    }
    
    .client_category p {
        font-size: 13px;
    }
}

/* ============================================
   ФИКС ДЛЯ ТАБОВ (предотвращение прыжка)
   ============================================ */

.tabsbtn button {
    cursor: pointer;
}

.tabitem[hidden] {
    display: none !important;
}

.tabitem {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   УПРОЩЕННАЯ СТРУКТУРА КАРТОЧКИ ТОВАРА
   ============================================ */

.items_list .item {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.items_list .item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.items_list .item .title {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.items_list .item .title a {
    color: inherit;
    text-decoration: none;
}

.items_list .item .meta {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.items_list .item .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #00c475;
    margin-bottom: 10px;
}

.items_list .item .buy_btn {
    display: inline-block;
    background: #00c475;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
}

.items_list .item .buy_btn--full {
    width: 100%;
}

/* ============================================
   ОПТИМИЗИРОВАННЫЙ HEADER (flat структура)
   ============================================ */

.logo .desc {
    font-size: 13px;
    color: #595959;
}

.baloon.copygoroda {
    font-weight: 500;
    font-size: 15px;
    color: #777;
}


.tell_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #00c16d;
    color: #222;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.tell_btn:hover {
    background: #00c16d;
    color: #fff;
}

/* ============================================
   ОПТИМИЗИРОВАННЫЙ FOOTER (flat структура)
   ============================================ */

footer .payment {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

footer .payment-icon {
    width: 40px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
}

footer address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
    margin-top: 10px;
}

footer .fweight {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

/* ============================================
   ВОССТАНОВЛЕНИЕ И ОПТИМИЗАЦИЯ HEADER
   ============================================ */

/* Логотип */

.logo .desc {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    color: #595959;
    margin-top: 4px;
}

/* Блок города/времени */
.baloon.copygoroda {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: #777;
    text-align: center;
}

/* Телефон и email */

.number .zphone {
    font-weight: 600;
    font-size: 22px;
    color: #222;
    text-decoration: none;
    line-height: 1.2;
}

.number .zmail {
    font-size: 16px;
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Соцсети */
.telegram, .max {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    color: #222;
    gap: 5px;
}

.telegram .icon, .max .icon {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.telegram:hover .icon, .max:hover .icon {
    transform: scale(1.1);
}

/* Кнопка звонка */
.tell_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #00c16d;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tell_btn:hover {
    background: #00c16d;
    color: #fff;
}

/* ============================================
   НОВЫЙ СОВРЕМЕННЫЙ FOOTER
   ============================================ */

footer {
    background: #1a1a2e;
    color: #fff;
    font-family: inherit;
}

/* Верхняя часть */
footer .top {
    padding: 60px 0 40px;
}

footer .footer_wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 40px;
}

/* Логотип и описание */
footer .item:first-child img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

footer .item:first-child .desc {
    font-size: 15px;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 25px;
}

/* Способы оплаты */
footer .payment {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

footer .payment-icon {
    width: 50px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    border-radius: 4px;
}

/* Меню */
footer .item:nth-child(2) ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .item:nth-child(2) li {
    margin-bottom: 12px;
}

footer .item:nth-child(2) a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: inline-block;
}

footer .item:nth-child(2) a:hover {
    color: #00c16d;
}

/* Контакты */
footer .item:nth-child(3) .fweight {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer .item:nth-child(3) a {
    color: #00c16d;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 20px;
}

footer .item:nth-child(3) p {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 20px;
}

footer .item:nth-child(3) address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: #a0a0a0;
    border-left: 3px solid #00c16d;
    padding-left: 15px;
}

/* Соцсети и телефон */
footer .item:last-child {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .socset {
    display: flex;
    gap: 12px;
}

footer .social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

footer .social-icon:hover {
    transform: scale(1.1);
}

footer .contact-info {
    text-align: left;
}

footer .notice {
    font-size: 13px;
    color: #888;
    margin: 0 0 5px 0;
}

footer .number {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

footer .tell_btn {
    background: #00c16d;
    color: #fff;
    border: 2px solid #00c16d;
    width: 100%;
    text-align: center;
}

footer .tell_btn:hover {
    background: transparent;
    color: #00c16d;
}

/* Нижняя часть */
footer .bottom {
    background: #0f0f1a;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer .bottom .footer_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .bottom a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

footer .bottom a:hover {
    color: #00c16d;
}

footer .copy {
    font-size: 13px;
    color: #666;
}

/* Мобильная адаптация футера */
@media screen and (max-width: 1140px) {
    footer .footer_wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    footer .footer_wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer .payment {
        justify-content: center;
    }
    
    footer .item:nth-child(3) address {
        border-left: none;
        border-top: 3px solid #00c16d;
        padding-left: 0;
        padding-top: 15px;
        margin-top: 20px;
    }
    
    footer .bottom .footer_wrap {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============================================


/* ============================================
   НОВЫЙ СОВРЕМЕННЫЙ FOOTER
   ============================================ */

footer {
    background: #1a1a2e;
    color: #fff;
    font-family: inherit;
}

/* Верхняя часть */
footer .top {
    padding: 60px 0 40px;
}

footer .footer_wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 40px;
}

/* Логотип и описание */
footer .item:first-child img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

footer .item:first-child .desc {
    font-size: 15px;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 25px;
}

/* Способы оплаты */
footer .payment {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

footer .payment-icon {
    width: 50px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    border-radius: 4px;
}

/* Меню */
footer .item:nth-child(2) ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .item:nth-child(2) li {
    margin-bottom: 12px;
}

footer .item:nth-child(2) a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: inline-block;
}

footer .item:nth-child(2) a:hover {
    color: #00c16d;
}

/* Контакты */
footer .item:nth-child(3) .fweight {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer .item:nth-child(3) a {
    color: #00c16d;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 20px;
}

footer .item:nth-child(3) p {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 20px;
}

footer .item:nth-child(3) address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: #a0a0a0;
    border-left: 3px solid #00c16d;
    padding-left: 15px;
}

/* Соцсети и телефон */
footer .item:last-child {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .socset {
    display: flex;
    gap: 12px;
}

footer .social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

footer .social-icon:hover {
    transform: scale(1.1);
}

footer .contact-info {
    text-align: left;
}

footer .notice {
    font-size: 13px;
    color: #888;
    margin: 0 0 5px 0;
}

footer .number {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

footer .tell_btn {
    background: #00c16d;
    color: #fff;
    border: 2px solid #00c16d;
    width: 100%;
    text-align: center;
}

footer .tell_btn:hover {
    background: transparent;
    color: #00c16d;
}

/* Нижняя часть */
footer .bottom {
    background: #0f0f1a;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer .bottom .footer_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .bottom a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

footer .bottom a:hover {
    color: #00c16d;
}

footer .copy {
    font-size: 13px;
    color: #666;
}

/* Мобильная адаптация футера */
@media screen and (max-width: 1140px) {
    footer .footer_wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    footer .footer_wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer .payment {
        justify-content: center;
    }
    
    footer .item:nth-child(3) address {
        border-left: none;
        border-top: 3px solid #00c16d;
        padding-left: 0;
        padding-top: 15px;
        margin-top: 20px;
    }
    
    footer .bottom .footer_wrap {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============================================
   ФИКС ДЛЯ ТАБОВ
   ============================================ */

.tabitem[hidden] {
    display: none !important;
}

.tabitem {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   МОБИЛЬНЫЙ HEADER - ФИКС
   ============================================ */

@media screen and (max-width: 767px) {
    header {
        height: auto;
        padding: 10px 0;
    }
    
    .mobile__nav .logo .desc {
        display: none;
    }
}

/* ============================================
   EMAIL COPY FUNCTIONALITY
   ============================================ */

.email-wrapper {
    position: relative;
    display: inline-block;
}

.copy-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
    margin-top: 10px;
}

.email-wrapper:hover .copy-popup {
    opacity: 1;
    visibility: visible;
}

.copy-button {
    background: #00c16d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #00a85f;
}

.copy-button.copied {
    background: #28a745;
}

/* ============================================
   MOBILE HEADER FIX
   ============================================ */

@media screen and (max-width: 767px) {
    header .number {
        display: none;
    }
    
    nav .number {
        display: block !important;
    }
}

/* ============================================
   MOBILE HEADER LOGO FIX
   ============================================ */

@media screen and (max-width: 767px) {
    .mobile__nav .logo a {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile__nav .logo img {
        width: 40px;
    }
    
}
