:root {
    --accent-color: #0093D0;
    --title-color: #211F54;
    --taxt-color: #6D758F;
}

#top.home {
    * {
        font-family: 'montserrat', Helvetica, Arial, sans-serif;
    }

    h1, h2, h3, h4 {
        font-weight: 800!important;
        text-transform: none!important;
    }

    .title {
        h2 {
            font-family: inherit;
            letter-spacing: 0;

            .special_amp {
                font-family: inherit;
                font-style: inherit;
                font-size: inherit;
                line-height: inherit;
                font-weight: inherit;
                color: inherit !important;
            }
        }
        .av-subheading {
            color: var(--accent-color);
            text-transform: uppercase;
            font-weight: 800;
            margin-bottom: 16px;
        }

        @media (max-width: 767px) {
            .av-subheading {
                margin-bottom: 12px;
            }
        }
    }

    #home-hero {

        .home-hero__content-card {
            max-width: 632px;
            padding: 24px;

            .hero__card-button:hover {
                border: none;
            }
            .avia-button.avia-color-light {
                border: none!important;
            }
        }

        .hero__title--with-icon {
            margin-bottom: 0;

            .iconbox_content_title {
                margin-bottom: 0;
            }

            .iconbox_icon {
                width: 34px;
                height: 34px;
                display: flex;
                align-items: center;
                justify-content: center;
                column-gap: 12px;
                margin-right: 8px;
            }

            .iconbox_icon::before {
                top: unset;
                left: unset;
            }

            @media (max-width: 767px) {
                .iconbox_icon {
                    width: 32px;
                    height: 32px;
                }
            }
        }

        .home-hero__card--top {
            float: none;
            margin-inline: auto;

            .hero__title {
                max-width: 540px;
            }
            
            @media (max-width: 767px) {
                margin-bottom: 0;
            }
        }

        .home-hero__card--bottom-left {

            .hero__title--with-icon {
                .iconbox_icon {
                    background-color: #E6F7FF;
                }
            }

            @media (max-width: 767px) {
                margin-top: 10px!important;
                margin-bottom: 0!important;
            }
        }

        .home-hero__card--bottom-right {
            .hero__title--with-icon {
                .iconbox_icon {
                    background-color: #1D2E5A;
                }

                .iconbox_icon::before {
                    font-size: 15px;
                }
            }

            @media (max-width: 767px) {
                margin-bottom: 0!important;
            }
        }

        .home-hero__card-tabs {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;

            p {
                border: 1px solid #B1BAC5;
                border-radius: 100px;
                padding: 2px 12px;
                width: fit-content;
                margin-block: 0;
            }
        }

        @media (max-width: 767px) {
            .home-hero__card-tabs {
                gap: 8px;
            }
        }

        .home-hero__card-tabs--big {
            p {
                width: fit-content;
                margin-bottom: 0;
            }
        }

        .hero__card-button span {
            font-weight: 700;
        }

        .hero__card-button:hover span.avia_iconbox_title {
            text-decoration: underline;
        }

        .av-link-btn:hover {
            opacity: 1;
        }
    }

    #cta {
        .cta__left {

            .av-subheading {
                text-transform: uppercase;
                font-weight: 800;
                margin-bottom: 16px;
            }

            .cta-left__text {
                margin-top: 20px;
            }

            .cta__buttons {
                display: flex;
                margin-top: 15px;
                row-gap: 12px;
            }

            .cta__buttons a {
                margin-bottom: 0;
            }

            .avia-font-color-theme-color:hover {
                border-color: #F88B39;
            }
        }

        .cta__right {
            .cta__right-image img {
                border-radius: 16px;
                max-height: 360px;
            }
        }

        @media (max-width: 767px) {
            .cta__right {
                margin-bottom: 0;

                .cta__right-image {
                    margin: 0;
                }
            }
        }
        
        @media (max-width: 479px) {
            .cta__left {

                .cta__buttons {
                    flex-wrap: wrap;
                }

                .cta__buttons a {
                    width: 100%;
                    margin-inline: 0;
                }

            }
        }
    }

    #home-approach {
        .title h2 {
            font-family: 'kameron', Helvetica, Arial, sans-serif;
            font-weight: 700!important;
            letter-spacing: 3%;
        }

        .home-approach__text {
            width: 100%;
            max-width: 720px;
            margin-inline: auto;

            p {
                margin-top: 0;
            }
        }

        .home-approach__card {
            overflow: hidden;

            .home-approach__card-img,
            .home-approach__card-img:hover {
                border-radius: 8px!important;
                overflow: hidden;
                clip-path: inset(0 round 8px);
            }

            .home-approach__card-img img,
            .home-approach__card-img img:hover {
                border-radius: 8px!important;
                overflow: hidden;
            }

            .home-approach__card-title h3 {
                font-weight: 700!important;
            }

            .home-approach__card-text p {
                margin-bottom: 0;
            }
        }
    }

    #home-commitment {
        .title h2 {
            font-family: 'kameron', Helvetica, Arial, sans-serif;
        }

        .home-commitment__card {
            border-radius: 8px;
            margin-top: 0;

            header .iconbox_icon {
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            header .iconbox_icon::before {
                font-size: 19px;
            }

            .home-commitment__card-title {
                font-weight: 700!important;
                letter-spacing: 0;
            }
            
            @media (max-width: 767px) {
                header {
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    column-gap: 10px;

                    .iconbox_icon,
                    .home-commitment__card-title {
                        margin: 0;
                    }
                }

                .iconbox_content_container p {
                    text-align: left;
                }
            }
        }

        .home-commitment__card--last {
            margin-bottom: 0!important;
        }
    }

    #home-pricing {
        display: flex;
        align-items: flex-end;

        .title h2 {
            font-weight: 700!important;
            font-family: 'kameron', Helvetica, Arial, sans-serif;
        }

        .home-pricing__text {
            max-width: 700px;
            margin-inline: auto;
        }

        .home-pricing__card {
            border-radius: 12px;

            .home-pricing__title h5 {
                font-weight: 800;
            }

            .home-pricing__price {
                color: #111827;
                font-size: 36px;
                line-height: 1;
                font-weight: 800;
                .home-pricing__period {
                    font-size: 16px;
                    color: #6D758F;
                    font-weight: 400;
                }
            }

            .home-pricing__list ul > li {
                margin-bottom: 8px;
            }

            .home-pricing__separate-line {
                margin-block: 15px;
                color: #F1F3F7;
                opacity: 50%;
            }

            .home-pricing__button a {
                display: block;
                overflow: hidden;
            }
        }

        .home-pricing__card--elite {
            border: 1.5px solid #111827;

            .home-pricing__separate-line {
                color: #111827;
                opacity: 100%;
            }
        }

        .home-pricing__drop-in-title h4 {
            font-weight: 600!important;
        }

        @media (max-width: 767px) {
            .flex_column_table {
                margin-top: 16px;
            }
        }

        .home-pricing__drop-in {
             h4 {
                 font-weight: 600!important;
             }

            .av-catalogue-list {
                .av-catalogue-item {
                    padding-block: 5px;
                }

                .av-catalogue-title,
                .av-catalogue-price {
                    text-transform: none;
                    color: #374151!important;
                    font-size: 14px;
                }
            }
        }

        .home-pricing__learn-more {
            margin-top: 16px;
        }

        .home-pricing__learn-more a {
            font-weight: 600;
            font-size: 14px;
            color: #0093D0;
        }

        .home-pricing__learn-more a:hover {
            text-decoration: none;
            background-image: linear-gradient(currentColor, currentColor);
            background-position: left bottom;
            background-repeat: no-repeat;
            background-size: calc(100% - 12px) 1px;
        }

        @media (max-width: 767px) {
            .flex_column_table > :last-child {
                margin-bottom: 0;
            }
        }
    }

    #home-reviews {
        .home-reviews__title h2 {
            font-family: 'kameron', Helvetica, Arial, sans-serif;
        }

        .home-reviews__slider {

            .avia-content-slider-inner {
                padding-bottom: 1px !important;
                box-sizing: content-box;
            }

            .slide-entry-wrap {
                display: flex;
                column-gap: 20px;
                align-items: stretch;
            }

            .slide-entry {
                display: flex;
                flex-direction: column;
                margin-left: 0!important;
                margin-bottom: 0;
                width: 100%;
                box-sizing: border-box;
            }

            .home-review__card {
                flex: 1;
                width: 100%;
                box-sizing: border-box;
            }

            .avia-smallarrow-slider-heading {
                width: fit-content;
                position: absolute;
                right: 0;
                top: -80px;

                @media (max-width: 767px) {
                    top: -49px;
                }

                .avia-slideshow-arrows {
                    width: 80px;
                }

                .next-slide, .prev-slide {
                     border-radius: 50%;
                     width: 32px!important;
                     height: 32px!important;
                 }

                .next-slide::before, .prev-slide::before {
                    line-height: 32px;
                }

                .avia-slideshow-arrows a:before {
                    font-size: 9px;
                }
            }

            .home-review__card {
                width: 100%;
                box-sizing: border-box;

                .home-review-card__rating {
                    color: #0093D0;
                }

                .home-review__card-author {
                    display: flex;
                    align-items: center;
                    column-gap: 12px;

                    p {
                        margin-block: 0;
                    }

                    img {
                        display: block;
                        width: 40px;
                        height: 40px;
                        border-radius: 50%;
                    }

                    .home-review__card-author--name {
                        font-size: 14px;

                    }

                    .home-review__card-author--position {
                        font-size: 12px;
                        line-height: 100%;
                    }
                }

            }
        }
    }

    #home-about {
        color: #ffffff;

        .entry-content-wrapper {
            display: flex;
            align-items: center;
        }

        .entry-content-wrapper::before,
        .entry-content-wrapper::after {
            content: none;
        }

        @media (max-width: 767px) {
            .entry-content-wrapper {
                flex-direction: column;
            }

            .avia-builder-el-first {
                margin-bottom: 40px;
            }

            .avia-builder-el-last {
                margin-bottom: 0;
            }
        }

        .flex_column {
            float: none;
        }

        .home-about__left-text {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            column-gap: 28px;
            row-gap: 40px;
            align-items: start;

            /* Заголовок занимает всю строку */
            > .home-about__title {
                grid-column: 1 / -1;
                margin: 0;
            }

            @media (max-width: 500px) {
                display: flex;
                flex-direction: column;
                row-gap: 20px;

                > .home-about__title {
                    margin-bottom: 4px;
                }
            }

            > .av-special-heading h2 {
                max-width: 500px;
                margin: 0;
                font-size: 32px;
                line-height: 1.2;
            }

            /* Показатели без карточек */
            > .avia-animated-number {
                padding: 0;
                margin: 0;
                border: 0;
                border-radius: 0;
                color: inherit;
                text-align: left;
            }

            .avia-animated-number-title {
                font-size: 36px;
                line-height: 1;
                font-weight: 800;
            }

            .avia-animated-number-content {
                margin-top: 7px;
                font-size: 12px;
                line-height: 1.4;
            }

            .avia-no-number {
                margin-left: 5px;
                opacity: 1;
            }
        }

        .home-about__left-text::before,
        .home-about__left-text::after {
            content: none;
            display: none;
        }

        /* Кнопки занимают всю строку */
        .home-about__buttons-wrapper {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 0;

            @media (max-width: 500px) {
                flex-direction: column;
                margin-top: 4px;
                width: 100%;
            }
        }

        .home-about__buttons-wrapper .avia-button {
            margin: 0;
            padding: 12px 20px;
            border-radius: 7px;
            font-size: 13px;
            font-weight: 700;

            @media (max-width: 500px) {
                width: 100%;
            }
        }

        .home-about__buttons-wrapper
        .avia-button-wrap:first-child
        .avia-button {
            color: #ffffff;
            background: #0093d0;
            border-color: #0093d0;
        }

        .home-about__buttons-wrapper
        .avia-button-wrap:last-child
        .avia-button {
            color: #ffffff;
            background: transparent;
            border-color: #b4b9c9;
        }

        /* Изображение справа */
        .flex_column:last-child .avia-image-container {
            width: 100%;
            max-width: 520px;
            margin-left: auto;
        }

        @media (max-width: 767px) {
            .flex_column:last-child .avia-image-container {
                max-width: unset;
            }
        }

        .flex_column:last-child .avia-image-container img {
            display: block;
            width: 100%;
            aspect-ratio: 26 / 17;
            object-fit: cover;
            border-radius: 12px;
        }
    }
}
