root {
    --primary: #00579C;
}

#header.header-dev {
    justify-content: space-between;
    align-items: center;


    @media (max-width: 1200px) {
        padding: 20px 30px;
    }
    @media (max-width: 768px) {
        padding: 20px 10px;
    }

    .header-logo img {
        max-width: 180px;
    }

    #flvmenu > ul > li > a {
        color: #333 !important;
        padding: 0 !important;
        font-weight: normal;
    }

    #flvmenu > ul > li:hover {
        background: none !important;
        border: none !important;
    }

    .menu-line {
        border: none !important;
    }

    #flvmenu > ul > li {
        margin-right: 20px;
    }

    .header-phone__link {
        color: #333;
    }

    .icon-container {
        padding: 10px;
        border-radius: 50%;
        border: 1px solid #00579C20;
        background: #00579C10;
        display: flex;
        width: min-content;

        .social-icon {
            width: 24px;
            height: 24px;
        }
    }

    .icon-container.phone-icon-container {
        background: #00579C;
    }

    .right-block {
        display: flex;
        gap: 5px;
    }
}

.hero-banner {
    flex-direction: column;
    gap: 10px;

    p {
        margin-bottom: 0px
    }

    .hero-header {
        font-size: 48px;
        text-transform: uppercase;
        font-weight: 900;

        p {
            color: #00579C;
        }
    }

    .hero-subheader {
        font-size: 24px;
    }

    .hero-buttons {
        display: flex;
        gap: 20px;
    }

    .hero-image {
        border-radius: 5px;
    }


    .hero-benefits {
        display: flex;
        flex-wrap: wrap;
        gap: 60px;

        .benefit-item {
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 10px 0;

            .benefit-icon {
                height: 54px;
                width: 54px;
            }

            .benefit-text-container {
                display: flex;
                flex-direction: column;
                gap: 5px;

                .benefit-header {
                    color: #00579C;
                    font-weight: 800;
                    font-size: 20px;
                }

                .benefit-subheader {
                    font-size: 16px;
                }
            }
        }
    }
}

.container-width {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;

    @media (max-width: 1200px) {
        padding-left: 30px;
        padding-right: 30px;
    }
    @media (max-width: 768px) {
        padding-right: 10px;
        padding-left: 10px;
    }
}


.button-solid, .button-outline {
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.button-solid {
    background-color: #00579C;
    color: white;
}

.button-outline {
    background-color: #fff;
    color: #00579C;
    border: 2px solid #00579C;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.about-grid-header {
    grid-column: 1 / -1;
    font-weight: 800;
    font-size: 32px;
}

.section-header {
    grid-column: 1 / -1;
    font-weight: 800;
    font-size: 32px;
}

.about-company {
    grid-column: 1 / 2;
}

.about-news {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.about-news-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-news-column:first-child {
    grid-column: 1 / 2;
}

.about-news-column:last-child {
    grid-column: 2 / 3;
}

.about-news-item {
    border-radius: 5px;
    overflow: hidden;

    .news-item-text-container {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #ebeeef;
        font-size: 12px;

        .news-item-subheader {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .news-item-header {
            font-weight: 600;
            font-size: 20px;
        }
    }

    a {
        color: #333;
    }

    img {
        width: 100%;
        aspect-ratio: 23/17;
    }

    img.big {
        aspect-ratio: 1/1;
        object-fit: cover;
    }

}

.about-news-item.compact {
    img, .news-item-subheader {
        display: none
    }
}

.about-company-logo {
    width: 100%;
    padding: 10px;
    background: #ebeeef;
    border-radius: 5px;
    overflow: hidden;

    img {
        width: 100%;
        height: auto;
    }
}


.ajax-reviews {
    display: flex;
    gap: 10px;

    @media (max-width: 768px) {
        flex-wrap: wrap;

        .comment-item:first-child {
            width: 100%;
        }

        .comment-item {
            width: 48%;
        }

    }
}


.comment-item {
    display: flex;
    flex-flow: column;

    .comment-item-body {
        background-color: #EBEBEB;

        border-radius: 15px 15px 15px 0;

        padding: 10px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: space-between;
        gap: 10px;

        color: #333333;

        i.ri-double-quotes-l {
            height: 3rem;
            display: flex;
            align-items: center;
            opacity: 0.2;
        }
    }

    .comment-item-head {
        background-color: #EBEBEB;
        border-radius: 0 15px 15px 15px;

        .comment-item-head-text-container {
            background-color: #F5F6F6;
            border-radius: 15px 0 0 0;
            color: #333;
            padding: 15px;
        }
    }

    .stars-bg {
        opacity: 0.2;
    }

    .stars-wrapper {
        font-size: 16px;
    }
}


.stars-bg {
    color: #D9D9D9; /* Серый цвет для пустых звезд */
    white-space: nowrap;
}

.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #E31E24; /* Золотой/желтый цвет для заполненных звезд */
}

/* Стили для иконок */
.ri-star-line,
.ri-star-fill {
    display: inline-block;
    width: 1em;
    text-align: center;
}

.reviews-header {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    p {
        font-weight: bold;
        font-size: 32px;
        text-transform: uppercase;
    }

    a {
        color: #00579C;
    }
}

.action-index-grid {
    a {
        display: contents
    }

    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;

    .action-item:first-child {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
        flex-direction: column;

        img {
            width: 100%;
            height: auto;
            aspect-ratio: 1/1;
            object-fit: cover;
            flex-grow: 1;
        }

        .text-container {
            width: 100%;
        }
    }

    .action-item {
        border-radius: 5px;
        overflow: hidden;
        display: flex;
        flex-direction: row-reverse;

        .text-container {
            padding: 20px;
            width: 50%;
            display: flex;
            flex-direction: column;

            .action-item-header {
                font-size: 16px;
                font-weight: bold;
                margin-bottom: 10px;
                text-transform: uppercase;
            }

            .action-item-subheader {
                font-size: 12px;

                p, li {

                    color: #fff;
                }
            }
        }

        img {
            width: 50%;
            height: 100%;
            object-fit: cover;
        }
    }
}

.container-column {
    flex-direction: column;
}

.services-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;

    .services-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        background: #ebeeef;
        border-radius: 5px;

        .services-item-header {
            font-weight: bold;
            font-size: 14px;
        }

        .services-item-subheader {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;

            flex-grow: 1;
        }


        img {
            width: 100%;
            aspect-ratio: 1/1;
            border-radius: 5px;
            object-fit: cover;
        }
    }

}

/* ===== ДОПОЛНИТЕЛЬНЫЙ АДАПТИВ ===== */

/* Планшеты и маленькие ноутбуки (до 1200px) */
@media (max-width: 1200px) {
    .header-logo img {
        max-width: 140px;
    }
    #flvmenu > ul > li {
        margin-right: 12px;
    }
    .hero-header {
        font-size: 36px !important;
    }
    .hero-subheader {
        font-size: 20px !important;
    }
    .hero-benefits {
        gap: 30px !important;
    }
    .services-list {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .action-index-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
    }
    .action-index-grid .action-item:first-child {
        grid-row: auto !important;
        grid-column: auto !important;
        flex-direction: row-reverse !important;
    }
    .action-index-grid .action-item:first-child img {
        width: 50% !important;
        height: auto !important;
        aspect-ratio: unset !important;
    }
}

/* Средние планшеты (до 992px) */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr !important;
    }
    .about-company {
        grid-column: auto !important;
    }
    .about-news {
        grid-column: auto !important;
        grid-template-columns: 1fr !important;
    }
    .about-news-column:first-child,
    .about-news-column:last-child {
        grid-column: auto !important;
    }
    .hero-benefits {
        gap: 20px !important;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .hero-buttons {
        flex-wrap: wrap !important;
    }
    .services-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .action-index-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .header.header-dev {
        flex-wrap: wrap !important;
        gap: 10px !important;
    } 
    #flvmenu > ul > li {
        margin-right: 8px !important;
    }
    .right-block {
        gap: 3px !important;

        a {
            display: none!important;
        }

        a.phone-icon-container {
            display: flex;
        }
    }
    .social-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .hero-header {
        font-size: 28px !important;
        text-align: center !important;
    }
    .hero-subheader {
        font-size: 18px !important;
        text-align: center !important;
    }
    .hero-benefits {
        gap: 15px !important;
    }
    .benefit-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left;
    }
    .benefit-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .benefit-header {
        font-size: 16px !important;
    }
    .benefit-subheader {
        font-size: 14px !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
    .hero-buttons .button-solid,
    .hero-buttons .button-outline {
        text-align: center;
        justify-content: center;
    }

    .about-grid-header,
    .section-header,
    .reviews-header p {
        font-size: 24px !important;
    }

    .about-news-item .news-item-header {
        font-size: 16px !important;
    }
    .about-news-item img {
        aspect-ratio: 16/9 !important;
    }
    .about-news-item img.big {
        aspect-ratio: 16/9 !important;
    }

    .services-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .services-item {
        padding: 10px !important;
    }
    .services-item-header {
        font-size: 12px !important;
    }

    .action-index-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .action-item {
        flex-direction: column !important;
    }
    .action-item .text-container {
        width: 100% !important;
        padding: 12px !important;
    }
    .action-item img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }
    .action-index-grid .action-item:first-child {
        flex-direction: column !important;
    }
    .action-index-grid .action-item:first-child img {
        width: 100% !important;
        height: 200px !important;
    }

    .reviews-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-top: 40px !important;
    }
    .reviews-header p {
        font-size: 20px !important;
    }

    .ajax-reviews .comment-item {
        width: 100% !important;
    }

    .about-company-logo {
        padding: 6px !important;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .header.header-dev {
        flex-direction: column !important;
        align-items: center !important;
    }
    .header-logo {
        margin-bottom: 0!important;
    }
    #flvmenu > ul > li {
        margin-right: 4px !important;
        font-size: 12px !important;
    }

    .middle-block {
        display: none;
    }
    .right-block {
        gap: 2px !important;

        a {
            display: none!important;
        }

        a.phone-icon-container {
            display: flex!important;
        }
    }
    .social-icon {
        width: 14px !important;
        height: 14px !important;
    }

    .hero-header {
        font-size: 22px !important;
    }
    .hero-subheader {
        font-size: 16px !important;
    }
    .hero-buttons .button-solid,
    .hero-buttons .button-outline {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
    .benefit-header {
        font-size: 14px !important;
    }
    .benefit-subheader {
        font-size: 12px !important;
    }

    .about-grid {
        gap: 10px !important;
    }
    .about-news-item .news-item-text-container {
        padding: 10px !important;
        gap: 5px !important;
    }
    .about-news-item .news-item-header {
        font-size: 14px !important;
    }
    .about-news-item .news-item-subheader {
        font-size: 11px !important;
    }

    .services-list {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .services-item {
        padding: 8px !important;
    }
    .services-item-header {
        font-size: 11px !important;
    }
    .services-item-subheader {
        font-size: 10px !important;
    }

    .action-item .text-container {
        padding: 8px !important;
    }
    .action-item .action-item-header {
        font-size: 14px !important;
    }
    .action-item .action-item-subheader {
        font-size: 11px !important;
    }

    .reviews-header p {
        font-size: 18px !important;
    }
    .reviews-header a {
        font-size: 12px !important;
    }

    .button-solid, .button-outline {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}