@font-face {
    font-family: 'Golos Text VF';
    src: url('fonts/GolosTextVF/Golos-Text_VF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond Regular';
    src: url('fonts/CormorantGaramond/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond Medium';
    src: url('fonts/CormorantGaramond/CormorantGaramond-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond Italic';
    src: url('fonts/CormorantGaramond/CormorantGaramond-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond SemiBold';
    src: url('fonts/CormorantGaramond/CormorantGaramond-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond Bold';
    src: url('fonts/CormorantGaramond/CormorantGaramond-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Theano Didot';
    src: url('fonts/TheanoDidot/TheanoDidot-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans/open-sans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --font-family: "Golos Text VF", sans-serif;
    --second-family-regular: "Cormorant Garamond Regular", sans-serif;
    --second-family-medium: "Cormorant Garamond Medium", sans-serif;
    --second-family-italic: "Cormorant Garamond Italic", sans-serif;
    --second-family-semibold: "Cormorant Garamond SemiBold", sans-serif;
    --second-family-bold: "Cormorant Garamond Bold", sans-serif;
    --font3: "Theano Didot", sans-serif;
    --font5: "Open Sans", sans-serif;

    --color-white: #f6f1e2;
    --color-white-green: #a8b08c;
    --color-gold: #8e7239;
    --color-gold-light: #947943;
    --color-gold-lighting: #99804c;
    --color-gold-lighter: #c6a25c;
    --color-red: #46161d;
    --color-red-light: #b79089;
    --color-green: #0d281f;

    --swiper-pagination-bullet-width: 10px;
    --swiper-pagination-bullet-size: 10px;
    --swiper-pagination-bullet-inactive-color: var(--color-red-light);
    --swiper-pagination-color: var(--color-red);

    --pad-35: 35px;
}

html, body {
    overflow-x: clip;
    scroll-behavior: smooth;
    background: var(--color-white);
}

* {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: var(--color-white);
    text-align: left;
    outline: none;
    /* Задаем базовую толщину через ось 'wght' */
    font-variation-settings: 'wght' 400;
    /* Анимируем конкретно свойство настроек вариативности */
    transition: font-variation-settings 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    width: 100%;
    max-width: calc(1360px + 2 * 40px);
    padding: 0 40px;
    margin: 0 auto;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

h1 {
    font-family: var(--second-family-semibold);
    font-weight: 600;
    font-size: 54px;
    line-height: 60px;
    color: var(--color-white);
    margin-bottom: 30px;
}

h2 {
    font-family: var(--second-family-medium);
    font-weight: 500;
    font-size: 50px;
    line-height: 60px;
    color: var(--color-white);
    margin-bottom: 30px;
}

h3 {
    font-family: var(--second-family-italic);
    font-weight: 400;
    font-style: italic;
    font-size: 38px;
    line-height: 50px;
    color: var(--color-gold-lighter);
    margin-bottom: 30px;
}

h4,
h4 a,
h4 b {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-white);
    margin-bottom: 20px;
}

p {
    margin-bottom: 1rem;
}

.btn {
    border-radius: 2px;
    height: 50px;
    background: var(--color-red);
    font-weight: 500;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 18px;
    flex: none;
    transition: all 0.3s ease-in-out;

    &:hover {
        color: var(--color-white);
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    }
}

.btn,
.soc a,
.tag-links a {
    &:hover {
        transform: translateY(-5px);
    }
}

.btn-white {
    background: var(--color-white);
    color: var(--color-green);

    &:hover {
        color: var(--color-green);
    }
}

.btn-transparent {
    background: transparent;
    border: 1px solid var(--color-gold-lighter);
}

.btn-transparent-dark {
    background: transparent;
    border: 1px solid var(--color-red-light);
    color: var(--color-red);

    &:hover {
        color: var(--color-red);
    }
}

input[type=submit],
button[type=submit] {
    border: none;
}

img {
    max-width: 100%;
    max-height: 100%;
    flex: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;

    &:not(.btn) {
        color: var(--color-red);

        &:hover {
            font-variation-settings: 'wght' 500;

            span {
                font-variation-settings: 'wght' 500;
            }
        }
    }
}

figure {
    figcaption {
        font-family: var(--second-family-medium);
        font-weight: 500;
        font-style: italic;
        font-size: 20px;
        line-height: 28px;
        color: rgba(70, 22, 29, 0.6);
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--color-white);
}

main {
    padding-top: 103px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    p {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;

        span {
            margin-bottom: 0;
            font-size: 11px;
            line-height: 15px;
            text-transform: uppercase;
            color: var(--color-gold);

            &.name {
                color: var(--color-red);
                text-transform: none;
            }
        }
    }
}

.grid-header {
    height: 103px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--pad-35);

    .logo {
        flex: none;
    }

    .actions {
        flex: none;
        display: flex;
        align-items: center;
        gap: var(--pad-35);
    }

    nav {
        ul {
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--pad-35);
            margin: 0;
            padding: 0;

            li {
                a {
                    &::first-letter {
                        text-transform: uppercase;
                    }
                }
            }
        }
    }
}

.footer-bottom {
    padding-top: 40px;
    padding-bottom: 40px;

    a {
        display: inline-flex;
        align-items: center;
        gap: 10px;

        img {
            transition: all 0.3s ease-in-out;
        }

        &:hover {
            img {
                transform: translateY(-5px);
                box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
            }
        }
    }
}

.bg-wrapper {
    background-size: cover;
    background-repeat: no-repeat;

    h2,
    .split-description h2 {
        color: var(--color-white);
    }

    .link-star {
        color: var(--color-gold-lighter);
    }

    .link-arrow {
        span {
            color: var(--color-gold-lighter);
        }
    }

    .split-title {
        .link-star {
            color: var(--color-gold-lighter);
        }

        .link-arrow {
            span {
                color: var(--color-gold-lighter);
            }
        }
    }

    --swiper-pagination-bullet-inactive-color: var(--color-white-green);
    --swiper-pagination-color: var(--color-white);
}

.footer-middle {
    .bg-wrapper {
        background-image: url('../images/bg-footer-middle.png');
        background-position: right bottom;
        border-top: 1px solid var(--color-gold);
    }
}

.soc {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-footer-middle {
    padding-top: 75px;
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: 250px 340px 220px 1fr;

    .footer-info,
    .footer-laws {
        border: 1px solid transparent;
        border-image: linear-gradient(to bottom, var(--color-green) 0, var(--color-gold-lighter) 50%, var(--color-green) 100%);
        border-image-slice: 1;
        border-left: none;
        border-bottom: none;
        border-top: none;
    }

    .footer-info {
        .logo {
            margin-bottom: var(--pad-35);

            p {
                gap: 0;
                margin-bottom: 0;

                span {
                    font-size: 9px;
                    line-height: 17px;
                    color: var(--color-gold-lighter);

                    &.name {
                        color: var(--color-white);
                    }
                }
            }
        }

        a {
            display: inline-flex;

            &[href^=tel] {
                font-weight: 500;
                font-size: 18px;
                line-height: 28px;
                text-transform: uppercase;
                color: var(--color-white);
                margin-bottom: 13px;
            }

            &[href^=mailto] {
                font-weight: 400;
                font-size: 16px;
                line-height: 23px;
                color: var(--color-white);
                margin-bottom: 20px;
            }
        }

        p {
            color: var(--color-white-green);
            margin-bottom: 15px;
        }
    }

    .footer-laws {
        padding-inline: var(--pad-35);

        a,
        p {
            color: var(--color-white-green);
        }

        a {
            display: inline-flex;
            margin-bottom: 20px;
        }
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding-left: var(--pad-35);

        a {
            display: inline-flex;
            line-height: 20px;
            color: var(--color-white);

            &::first-letter {
                text-transform: uppercase;
            }
        }
    }
}

.link-star {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;

    &::before {
        content: '';
        display: block;
        width: 14px;
        height: 14px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    &.link-star-white {
        &::before {
            background-image: url('../images/star-white.svg');
        }
    }

    &.link-star-gold {
        &::before {
            background-image: url('../images/star-gold.svg');
        }
    }

    &::after {
        content: '';
        display: block;
        width: 17px;
        height: 17px;
        background-position: center top;
        background-repeat: no-repeat;
        background-size: contain;
        position: absolute;
        top: -4px;
        left: 0;
        opacity: 0;
        transform: rotate(-90deg);
        transition: all 0.3s ease-in-out;
    }

    &.link-star-white {
        &::after {
            background-image: url('../images/dots-white.svg');
        }
    }

    &.link-star-gold {
        &::after {
            background-image: url('../images/dots-gold.svg');
        }
    }

    &:hover,
    &.is-visible {
        &::after {
            left: 2px;
            transform: rotate(0);
            opacity: 1;
        }
    }
}

.left-scroll {
    overflow: auto;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: var(--color-red) var(--color-red-light);
    padding-left: 10px;

    .check,
    .text-box {
        direction: ltr;
    }

    &::-webkit-scrollbar {
        width: 7px;
    }

    &::-webkit-scrollbar-track {
        background: var(--color-red-light);
        border-radius: 3px;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--color-red);
        border-radius: 3px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: var(--color-red);
    }
}

form {
    border-radius: 2px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: var(--color-white);
    padding: 20px;

    h4 {
        color: var(--color-red);

        span {
            color: var(--color-gold);
        }
    }

    .form-group {
        input:not(.btn),
        textarea {
            border: 1px solid var(--color-gold);
            border-radius: 2px;
            height: 30px;
            padding: 10px;
            color: var(--color-gold);
            width: 100%;
            background: var(--color-white);
            margin-bottom: 6px;
            transition: all 0.3s ease-in-out;

            &::placeholder {
                color: var(--color-gold);
                transition: all 0.3s ease-in-out;
            }

            &:focus {
                border-width: 2px;

                &::placeholder {
                    color: rgba(142, 114, 57, 0.4);
                }
            }
        }

        p {
            margin-bottom: 0;
        }

        textarea {
            height: 60px;
        }

        /*&.form-group-both,*/

        &.form-group-both p {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            margin-bottom: 0;
        }

        &.from-group-btns {
            display: grid;
            grid-template-columns: 1fr 120px;
            gap: 15px;
            align-items: flex-end;

            .btn {
                width: 120px;
            }
        }
    }

    .check-box {
        max-height: 65px;
    }

    .custom-checkbox,
    label {
        display: inline-flex;
        align-items: flex-start;
        gap: 10px;
        cursor: pointer;
        user-select: none;
        font-family: sans-serif;
        font-size: 16px;

        input {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0 0 0 0);
            opacity: 0;

            &:checked {
                & + .checkbox-visual,
                & + .wpcf7-list-item-label::before {
                    background-color: var(--color-red-light);
                    border-color: var(--color-red-light);

                    &::after {
                        display: block;
                    }
                }
            }

            &:focus-visible {
                & + .checkbox-visual {
                    outline: 2px solid var(--color-red-light);
                    outline-offset: 2px;
                }
            }
        }

        .wpcf7-list-item-label {
            display: inline-flex;
            align-items: flex-start;
            gap: 10px;

            &::before {
                content: '';
                border-radius: 1px;
                flex: none;
                width: 12px;
                height: 12px;
                border: 2px solid var(--color-red-light);
                margin-top: 3px;
                background: transparent;
                transition: all 0.2s ease;
                position: relative;
                display: block;
            }
        }

        .checkbox-visual {
            border-radius: 1px;
            flex: none;
            width: 12px;
            height: 12px;
            border: 2px solid var(--color-red-light);
            margin-top: 3px;
            background: transparent;
            transition: all 0.2s ease;
            position: relative;
        }

        &:hover {
            .checkbox-visual,
            .wpcf7-list-item-label::before {
                background: var(--color-red-light);
            }
        }

        .checkbox-text,
        .wpcf7-list-item-label {
            font-size: 11px;
            line-height: 15px;
            color: var(--color-red);

            a {
                font-size: 11px;
                line-height: 15px;
                color: var(--color-red);
                font-weight: 500;
            }
        }
    }

    .wpcf7-response-output {
        color: var(--color-red);
    }
}

.arr-box {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 20px;

    &::before {
        content: '';
        display: block;
        width: 40px;
        height: 38px;
        background: url('../images/icon-arr-bord.svg') no-repeat center;
        background-size: contain;
        flex-shrink: 0;
    }
}

.split-article {
    display: flex;
    padding-top: 67px;
    padding-bottom: 67px;

    .article-text {
        max-width: 50%;

        .task {
            font-size: 20px;
            line-height: 30px;
            color: var(--color-white);
            margin-bottom: 70px;
        }

        &.top-tag {
            color: var(--color-gold-lighter);
            margin-bottom: 70px;
        }

        h1 {
            span {
                display: inline-block;
                font-family: var(--second-family-italic);
                font-weight: 400;
                font-style: italic;
                font-size: 38px;
                line-height: 55px;
                color: var(--color-gold-lighter);
            }
        }

        .arr-box {
            margin-bottom: 70px;
        }

        .btns-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: var(--pad-35);

            .btn {
                width: calc(50% - 5px);
                max-width: 250px;
            }

            p {
                font-size: 13px;
                line-height: 20px;
                text-align: center;
                color: #c9a764;
                margin-bottom: 0;

                &:not(:last-child) {
                    max-width: calc(50% - 5px);
                    margin-bottom: 10px;
                }

                &:last-child {
                    text-align: left;
                    color: var(--color-white-green);
                    width: 100%;
                }
            }
        }

        .tag-links {
            display: flex;
            gap: 10px;

            a {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 31px;
                width: 52px;
                border: 1px solid var(--color-white-green);
                border-radius: 1px;
                background: transparent;
                padding: 3px;
                font-weight: 500;
                line-height: 18px;
                text-align: center;
                color: var(--color-white-green);

                &:nth-child(3) {
                    width: 64px;
                }

                &.tag-red {
                    background: var(--color-red);
                    border-color: var(--color-red);
                    color: var(--color-white);
                }

                &:hover {
                    font-variation-settings: 'wght' 500;
                    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
                }
            }
        }
    }

    .article-img {
        figure {
            margin: 0;

            img {
                position: absolute;
                bottom: 0;
                right: 0;
                width: auto;
                height: auto;
                max-height: calc(100% - 94px);
                pointer-events: none;
            }
        }
    }
}

.section-banner {
    .bg-wrapper {
        background-image: url('../images/bg-banner.png');
        position: relative;
    }

    &.section-banner-about {
        .bg-wrapper {
            background-image: url('../images/bg-banner-about.png');
        }

        .btns-group {
            margin-bottom: 0;
        }

        .split-article {
            .article-img {
                figure {
                    img {
                        max-height: 100%;
                    }
                }
            }
        }
    }
}

.abs-lamp {
    position: absolute;
    top: 120px;
    right: -40px;
    width: 85px;
    height: 211px;
    background: url('../images/lamp-img.png') no-repeat center;
    background-size: contain;
}

.link-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    span {
        color: var(--color-gold-lighting);
    }

    &::after {
        content: '';
        display: inline-flex;
        flex: none;
        width: 21px;
        height: 8px;
        background: url('../images/icon-arrow.svg') no-repeat center;
        background-size: contain;
    }

    &:hover {
        transform: translateX(5px);

        span {
            font-variation-settings: 'wght' 500;
        }
    }
}

.split-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;

    .link-star {
        color: var(--color-gold);
    }
}

.split-description {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    color: var(--color-red);

    h2 {
        margin-bottom: 0;
    }

    h2,
    p,
    span,
    strong {
        color: var(--color-red);
    }

    .link-arrow {
        span {
            color: var(--color-gold-lighting);
        }
    }

    p:last-child {
        margin-bottom: 0;
    }

    .text-box:has( > .btn:only-child) {
        .btn {
            float: right;
        }
    }
}

.section-grid {
    padding-top: 100px;
    padding-bottom: 100px;
}

.abs-lesson {
    position: absolute;
}

.img-circle {
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    display: inline-block;
    width: 61px;
    height: 61px;
    margin: 0 auto 15px;
    background-repeat: no-repeat;
    background-size: 31px;
    background-position: center bottom 12px;
    transition: all 0.3s ease-in-out;

    &:hover {
        background-position: center top 12px;
        background-color: var(--color-gold);
    }
}

.mobile-nav-link {
    .img-circle {
        width: 36px;
        height: 36px;
        background-size: 21px;
        margin: 0;
    }

    &:hover {
        .img-circle {
            background-position: center top 12px;
            background-color: var(--color-gold);
        }
    }
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));

    .item {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;

        h4,
        p,
        h4 b {
            color: var(--color-red);
            margin-bottom: 0;
        }

        h4 {
            b {
                font-family: var(--second-family-medium);
                font-size: 48px;
            }
        }

        &:nth-child(1),
        &:nth-child(2) {
            border-right: 1px solid var(--color-gold);
        }
    }

    &.grid-lessons {
        .item {
            &:nth-child(1) {
                .img-circle {
                    background-image: url('../images/icon-lesson-1.svg');
                }
            }

            &:nth-child(2) {
                .img-circle {
                    background-image: url('../images/icon-lesson-2.svg');
                }
            }

            &:nth-child(3) {
                .img-circle {
                    background-image: url('../images/icon-lesson-3.svg');
                }
            }
        }
    }

    &.grid-about {
        padding-bottom: 80px;

        .item {
            h4 {
                margin-top: 0;
            }

            p {
                margin-top: auto;
            }

            &:nth-child(1) {
                .img-circle {
                    background-image: url('../images/icon-about-1.svg');
                }
            }

            &:nth-child(2) {
                .img-circle {
                    background-image: url('../images/icon-about-2.svg');
                }
            }

            &:nth-child(3) {
                .img-circle {
                    background-image: url('../images/icon-about-3.svg');
                }
            }
        }
    }
}

.section-blog {
    .bg-wrapper {
        background-image: url('../images/bg-blog.png');
        padding-top: 76px;
        padding-bottom: 76px;
    }
}

.section-education {
    .bg-wrapper {
        background-image: url('../images/bg-education.png');
        padding-top: 76px;
        padding-bottom: 76px;
    }
}

.section-work {
    .bg-wrapper {
        background-image: url('../images/bg-work.png');
        padding-top: 76px;
        padding-bottom: 70px;
        position: relative;
    }

    .split-description {
        margin-bottom: 36px;
    }

    .split-article {
        padding-top: 0;
        padding-bottom: 0;

        .tags-box {
            max-width: 70%;
            margin-bottom: 70px;

            span {
                background: var(--color-white);
                color: var(--color-green);
                border: none;

                &:hover {
                    border: none;
                }
            }
        }

        .article-img {
            width: 50%;

            figure {
                img {
                    max-width: 50%;
                    height: auto;
                }
            }
        }
    }

    .work-carousel {
        .item {
            margin-bottom: var(--pad-35);

            h4 {
                font-family: var(--second-family-italic);
                font-style: italic;
                color: var(--color-white);
            }

            p {
                color: var(--color-white-green);
                text-align: right;
            }
        }

        .swiper-pagination {
            margin-bottom: 0;
        }

        --swiper-pagination-bullet-inactive-color: var(--color-white-green);
        --swiper-pagination-color: var(--color-white);
    }
}

.section-test {
    margin-bottom: 100px;

    .bg-wrapper {
        background-image: url('../images/bg-test.png');
        padding-top: 76px;
        padding-bottom: 76px;
    }
}

@keyframes scroll-clients-to-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes scroll-clients-to-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee {
    overflow: hidden;
    width: 100%;
    margin-bottom: 100px;

    .track {
        display: flex;
        width: fit-content;
        animation: scroll-clients-to-left 30s linear infinite;
        -webkit-transform-style: preserve-3d;

        &:hover {
            animation-play-state: paused;
        }

        .segment {
            display: flex;
            padding: 5px 0;
            gap: 15px;
            margin-right: 15px;

            span {
                font-size: 36px;
                line-height: 40px;
                color: rgba(142, 114, 57, 0.2);
            }
        }
    }

    & + .marquee {
        margin-top: 15px;

        .track {
            animation: scroll-clients-to-right 30s linear infinite;

            &:hover {
                animation-play-state: paused;
            }
        }
    }
}

.gallery,
.gallery-carousel .swiper-slide {
    a {
        position: relative;
        display: block;

        img {
            border-radius: 1px;
            width: auto;
            height: 74px;
            box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.25);
        }

        &::before {
            content: '';
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, .5) url('../images/icon-loop-gallery.svg') no-repeat center;
            background-size: 29px;
            opacity: 0;
            transition: all 0.3s ease-in-out;
        }

        &:hover {
            &::before {
                opacity: 1;
            }
        }
    }
}

.testimonials-carousel {
    .item {
        .title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 10px;
            border: 1px solid transparent;
            border-image: linear-gradient(to right, var(--color-white) 0, var(--color-gold) 50%, var(--color-white) 100%);
            border-image-slice: 1;
            border-left: none;
            border-right: none;
            border-top: none;
            margin-bottom: 20px;

            h4 {
                color: var(--color-red);
                margin-bottom: 0;
            }
        }

        .description {
            max-height: 290px;
            padding-left: 20px;
            margin-bottom: 20px;

            p,
            li {
                color: var(--color-red);
            }

            ul {
                padding-left: 20px;
                list-style: decimal;
            }
        }

        .gallery {
            display: flex;
            gap: 10px;
            padding-top: 10px;
            padding-bottom: 10px;
            padding-left: 40px;
            margin-bottom: 30px;
            border: 1px solid transparent;
            border-image: linear-gradient(to right, var(--color-white) 0, var(--color-gold) 50%, var(--color-white) 100%);
            border-image-slice: 1;
            border-left: none;
            border-right: none;
        }
    }
}

.swiper-pagination {
    position: relative;
    bottom: 0;
    margin-bottom: var(--pad-35);
}

.tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    span {
        height: 33px;
        padding: 3px 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--color-gold);
        border: 1px solid var(--color-gold);
        border-radius: 1px;
        transition: all 0.3s ease-in-out;

        &:hover {
            font-variation-settings: 'wght' 600;
        }
    }
}

.section-testimonials {
    padding-bottom: 100px;
}

.split-test {
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.test-form {
    form {
        background: transparent;
        padding: 0;
        box-shadow: none;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;

        .form-img {
            width: 102px;

            & + .form-group {
                width: calc(100% - 102px - 20px);
            }
        }

        .from-group-btns {
            width: 100%;
            grid-template-columns: 1fr 250px;

            .btn {
                width: 250px;
            }

            br {
                display: none;
            }
        }

        .form-group {
            input:not(.btn) {
                border-radius: 0;
                padding-left: 0;
                border: 1px solid transparent;
                border-image: linear-gradient(to right, var(--color-white-green) 0, var(--color-white-green) 50%, var(--color-green) 100%);
                border-image-slice: 1;
                border-top: none;
                border-left: none;
                border-right: none;
                color: var(--color-white-green);
                background: transparent;

                &::placeholder {
                    color: var(--color-white-green);
                }
            }
        }

        .checkbox-text,
        .wpcf7-list-item-label {
            color: #b1b897;

            a {
                color: #b1b897;
            }
        }

        .wpcf7-list-item-label {
            &::before {
                border: 2px solid var(--color-white);
                background: var(--color-white);
            }
        }

        .custom-checkbox {
            .checkbox-text,
            .wpcf7-list-item-label {
                color: #b1b897;

                a {
                    color: #b1b897;
                }
            }

            .checkbox-visual {
                border: 2px solid var(--color-white);
                background: var(--color-white);
            }

            input {
                &:checked {
                    & + .checkbox-visual {
                        border-color: var(--color-white);
                    }
                }
            }
        }

        .custom-checkbox,
        label {
            input {
                &:checked {
                    & + .checkbox-visual,
                    & + .wpcf7-list-item-label::before {
                        background-color: var(--color-red-light);
                        border-color: var(--color-white);
                    }
                }

                &:focus-visible {
                    & + .checkbox-visual {
                        outline: 2px solid var(--color-white);
                    }
                }
            }
        }

        .from-group-btns {
            .wpcf7-spinner {
                position: absolute;
            }
        }

        .wpcf7-response-output {
            color: var(--color-red-light);
        }
    }
}

.section-price {
    margin-bottom: 100px;

    .price-box {
        border: 1px solid var(--color-gold);
        border-radius: 2px;
        padding: 36px 40px;

        .item {
            .title {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 15px;

                h3 {
                    color: var(--color-red);
                    margin-bottom: 0;
                    order: 1;
                    white-space: nowrap;
                }

                p {
                    order: 3;
                    margin-bottom: 0;
                    font-family: var(--second-family-medium);
                    font-weight: 500;
                    font-size: 32px;
                    line-height: 23px;
                    color: var(--color-red);
                    white-space: nowrap;
                    width: 190px;
                    text-align: left;
                    flex: none;

                    data {
                        font-family: var(--second-family-medium);
                        font-weight: 500;
                        font-size: 32px;
                        line-height: 23px;
                        color: var(--color-red);
                    }
                }

                &::after {
                    content: "................................................................................................................................................................................................";
                    white-space: nowrap;
                    overflow: hidden;
                    color: var(--color-red);
                    margin: 0 8px;
                    flex-grow: 1;
                    order: 2;
                }

                & + p {
                    margin-bottom: 0;
                    color: var(--color-gold);
                }
            }

            &:not(:last-child) {
                border: 1px solid transparent;
                border-image: linear-gradient(to right, var(--color-white) 0, var(--color-gold) 50%, var(--color-white) 100%);
                border-image-slice: 1;
                border-top: none;
                border-left: none;
                border-right: none;
                padding-bottom: var(--pad-35);
            }

            &:not(:first-child) {
                padding-top: var(--pad-35);
            }
        }
    }
}

.section-faq {
    margin-bottom: 100px;
}

.accordion-box {
    border: 1px solid var(--color-gold);
    border-radius: 2px;
    padding: 40px;

    .accordion-item {
        .accordion-header {
            display: block;

            .accordion {
                font-family: var(--second-family-semibold);
                font-weight: 600;
                font-size: 20px;
                line-height: 26px;
                color: var(--color-red);
                padding: 20px 50px 20px 0;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 5px;
                width: 100%;
                box-shadow: none;
                border: 1px solid transparent;
                border-image: linear-gradient(to right, var(--color-white) 0, var(--color-gold) 50%, var(--color-white) 100%);
                border-image-slice: 1;
                border-top: none;
                border-left: none;
                border-right: none;
                background: transparent;

                &::after {
                    content: '';
                    transform: rotate(0);
                    transition: 0.3s linear;
                    display: flex;
                    border-radius: 50%;
                    border: 1px solid var(--color-gold);
                    stroke: var(--color-gold);
                    width: 29px;
                    height: 29px;
                    background: url('../images/icon-arrow-accordion.svg') no-repeat center;
                    background-size: 10px;
                    flex-shrink: 0;
                }

                &.active {
                    &::after {
                        transform: rotate(180deg);
                        transition: 0.3s linear;
                    }
                }
            }
        }

        .accordion-wrapper {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.2s ease-out;

            .accordion-overflow {
                border: 1px solid transparent;
                border-image: linear-gradient(to right, var(--color-white) 0, var(--color-gold) 50%, var(--color-white) 100%);
                border-image-slice: 1;
                border-top: none;
                border-left: none;
                border-right: none;
                padding: 20px;

                p,
                li,
                a,
                span,
                strong,
                b {
                    color: var(--color-gold);
                }
            }
        }

        &:last-child {
            .accordion-header {
                .accordion {
                    &:not(.active) {
                        border: none;
                        padding-bottom: 0;
                    }
                }
            }

            .accordion-wrapper {
                .accordion-overflow {
                    border: none;
                    padding-bottom: 0;

                    *:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
}

.grid-articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 10px;
    padding-top: 5px;

    .swiper-pagination {
        display: none;
    }

    .card {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, box-shadow; /* Подсказка браузеру для оптимизации GPU */

        .card-img {
            display: block;
            width: 100%;
            height: 265px;
            object-fit: cover;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--color-gold-lighter);
            border-radius: 2px;
        }

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 265px;
            background: rgba(246, 241, 226, 0.2);
            border-radius: 2px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        &:hover,
        &:focus-visible {
            transform: translateY(-5px);

            &::before {
                opacity: 1;
            }
        }

        .card-caption {
            margin-top: 29px;

            h4 {
                margin-bottom: 13px;
            }
        }

        a {
            text-decoration: none;
            color: inherit;
            display: block;
            outline: none;
        }

        .card-figure {
            margin: 0;
            overflow: hidden;
        }

        p {
            color: var(--color-white-green);
            margin-bottom: 0;
        }
    }
}

.split-education {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 50px;

    .split-steps {
        grid-column: 2 span;
    }
}

.split-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 37px;

    article {
        border: 1px solid var(--color-gold-lighter);
        border-radius: 2px;
        background: var(--color-white);
        padding: 35px 20px 20px 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;

        h4,
        p {
            color: var(--color-green);
            margin-bottom: 0;
        }

        .number {
            font-weight: 500;
            font-size: 128px;
            line-height: 95px;
            color: var(--color-gold-lighter);
            position: absolute;
            bottom: 0;
            left: -30px;
        }

        &:hover {
            h4 {
                font-variation-settings: 'wght' 500;
            }

            .number {
                font-variation-settings: 'wght' 600;
            }
        }
    }
}

.article-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 30px;

    article {
        padding: 25px;
        border: 1px solid var(--color-gold-lighter);
        border-radius: 2px;
        height: 224px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        p {
            margin-bottom: 0;
        }

        &:last-child {
            flex-direction: column-reverse;
        }

        .link-arrow {
            justify-content: space-between;
        }
    }
}

.article-actions article,
.btn-transparent,
.btn-transparent-dark,
.tags-box span,
.tag-links a,
.price-box,
.accordion-box,
.split-steps article {
    position: relative;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 1px solid var(--color-gold-lighter);
        border-radius: 2px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    &:hover,
    &:focus-visible {
        &::after {
            opacity: 1;
        }
    }
}

.btn-transparent-dark {
    &::after {
        border: 1px solid var(--color-red-light);
    }

    &:hover,
    &:focus-visible {
        &::after {
            opacity: 1;
        }
    }
}

.tag-links a {
    &::after {
        border: 1px solid var(--color-white-green);
        border-radius: 1px;
    }

    &.tag-red {
        &::after {
            border: 1px solid var(--color-red);
        }
    }

    &:hover,
    &:focus-visible {
        &::after {
            opacity: 1;
        }
    }
}

.tags-box span {
    &::after {
        border: 1px solid var(--color-gold);
        border-radius: 1px;
    }

    &.tag-red {
        &::after {
            border: 1px solid var(--color-red);
        }
    }

    &:hover,
    &:focus-visible {
        &::after {
            opacity: 1;
        }
    }
}

.accordion-box,
.price-box {
    &::after {
        border: 1px solid var(--color-gold);
    }

    &:hover,
    &:focus-visible {
        &::after {
            opacity: 1;
        }
    }
}

.materials-carousel {
    .swiper-slide {
        height: auto;

        [class^="item"] {
            height: 100%;
            display: grid;
            grid-template-columns: repeat(2, minmax(100px, 1fr));
            background-size: cover;
            overflow: hidden;

            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border: 2px solid var(--color-gold);
                opacity: 0;
                pointer-events: none;
                background: transparent;
                transition: all 0.2s ease;
            }

            &:hover {
                &::before {
                    opacity: 1;
                }
            }
        }
    }

    .item-1 {
        background: url('../images/bg-material-1.png') no-repeat center;
        border-radius: 0 2px 2px 0;
        gap: 6px;
        padding: 20px 20px 0 20px;

        .left {
            p {
                margin-bottom: 0;

                span {
                    color: var(--color-gold-lighter);
                }
            }

            div {
                display: flex;
                justify-content: space-between;
            }
        }

        .right {
            padding-bottom: 20px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;

            .gallery-carousel {
                display: flex;
                align-items: center;
                gap: 20px;
                position: relative;
                padding-bottom: 10px;
                border: 1px solid transparent;
                border-image: linear-gradient(to right, #253D35 0, var(--color-gold-lighter) 50%, #253D35 100%);
                border-image-slice: 1;
                border-top: none;
                border-right: none;
                border-left: none;

                .swiper {
                    flex-grow: 1;
                    width: 100%;
                    max-width: 188px;
                    margin: 0 auto;
                }

                .swiper-button-prev,
                .swiper-button-next {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 29px;
                    height: 29px;
                    background-color: transparent;
                    border: none;
                    box-shadow: inset 0 0 0 1px var(--color-gold-lighter);
                    border-radius: 50%;
                    cursor: pointer;
                    flex-shrink: 0;
                    transition: all 0.2s ease;

                    svg {
                        height: 10px;
                        width: 9px;
                        transition: transform 0.25s ease-out;
                        will-change: transform;
                    }

                    &:hover {
                        box-shadow: inset 0 0 0 2px var(--color-gold-lighter);

                        svg {
                            transform: scale(1.4);
                        }
                    }

                    &.swiper-button-disabled {
                        opacity: 0.3;
                        cursor: not-allowed;
                        pointer-events: none;
                    }
                }

                .swiper-button-prev {
                    svg {
                        transform: scaleX(-1);
                    }

                    &:hover {
                        svg {
                            transform: scaleX(-1.4) scaleY(1.4);
                        }
                    }
                }
            }
        }
    }

    .item-2 {
        background: url('../images/bg-material-2.png') no-repeat center;
        border-radius: 2px 0 0 2px;
        gap: var(--pad-35);
        padding: 20px 20px 20px 40px;

        .left {
            display: flex;
            flex-direction: column;

            p {
                &.with-price {
                    max-width: 60%;
                    margin-left: auto;
                    margin-bottom: 0;
                    margin-top: 1.5rem;

                    span {
                        color: var(--color-gold-lighter);
                    }
                }
            }
        }

        .right {
            figure {
                margin-bottom: 33px;
            }

            h3 {
                color: #a8b08c;
                font-size: 20px;
                line-height: 24px;
                margin-bottom: 0;
            }
        }
    }
}

.btn-slider-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/bg-btn-slider.png') no-repeat center;
    background-size: cover;
    position: absolute;
    top: 0;
    width: calc((100% - (1360px + 2 * 40px)) / 2);
    height: 100%;

    &.btn-slider-box-left {
        left: 40px;
    }

    &.btn-slider-box-right {
        right: 40px;
    }
}

.section-materials {
    margin-bottom: 100px;

    .container-fluid {
        position: relative;

        .swiper-button-parent-prev,
        .swiper-button-parent-next {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background-color: transparent;
            border: none;
            box-shadow: inset 0 0 0 1px var(--color-white-green);
            border-radius: 50%;
            cursor: pointer;
            flex-shrink: 0;
            position: relative;
            top: auto;
            left: auto;
            right: auto;
            bottom: auto;
            transition: all 0.2s ease;

            svg {
                height: 20px;
                width: 17px;
                transition: transform 0.25s ease-out;
                will-change: transform;
            }

            &:hover {
                box-shadow: inset 0 0 0 2px var(--color-white-green);

                svg {
                    transform: scale(1.4);
                }
            }

            &.swiper-button-disabled {
                opacity: 0.3;
                cursor: not-allowed;
                pointer-events: none;
            }
        }
    }
}

.actions-mob,
.article-img-mob,
.link-arrow-mob,
.btn-mob,
.mobile-bottom-nav {
    display: none;
}

.top-tag {
    color: var(--color-gold-lighter);
}

.expandable-block {
    position: relative;
}

.list-wrapper {
    max-height: none;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tags-box {
    padding: 0 0 50px 0;
}

.expand-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    z-index: 2;

    &::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(to bottom, rgba(246, 241, 226, 0.5) 0%, var(--color-white) 64.56%);
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    svg {
        position: relative;
        transition: transform 0.3s ease;
    }
}

.expandable-block.is-expanded {
    .expand-btn {
        &::before {
            opacity: 0;
        }
    }

    svg {
        transform: rotate(180deg);
    }
}

.mm-menu_offcanvas:not(.mm-menu_opened) {
    display: none;
}

.wpcf7-list-item {
    margin: 0;
}

.stats {
    margin: 0;
    padding: 35px 0 50px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    color: var(--color-red);

    .stats-item {
        position: relative;
        height: 154px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

        .stats-value {
            margin: 0;
            height: 62px;
            font-family: var(--second-family-bold);
            font-weight: 700;
            font-size: 96px;
            line-height: 55px;
            white-space: nowrap;
            color: var(--color-red);
            text-align: center;
            text-box: trim-both cap alphabetic;
        }

        .stats-label {
            margin: 35px 0 0;
            font-weight: 400;
            font-size: 16px;
            line-height: 23px;
            color: var(--color-red);
            text-align: center;
            text-box: trim-both cap alphabetic;
        }

        &:not(:last-child) {
            border-right: 1px solid var(--color-gold);

            &::after {
                content: "";
                position: absolute;
                right: 0;
                transform: translateX(50%);
            }

            &::after {
                content: "+";
                top: 50%;
                transform: translate(calc(50% + 1px), -50%);
                font-family: var(--font5);
                font-weight: 700;
                font-size: 32px;
                line-height: 55px;
                color: var(--color-gold-lighting);
            }
        }

        .stats-line {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 0;
            border: 1px solid transparent;
            border-image: linear-gradient(to right, transparent 0, var(--color-gold-lighting) 50%, transparent 100%);
            border-image-slice: 1;
            border-left: none;
            border-right: none;
            border-top: none;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .35s ease;
        }

        &:hover > .stats-line {
            transform: scaleX(1);
        }
    }
}

.split-about {
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    .split-description {
        display: block;

        h2 {
            margin-bottom: var(--pad-35);
        }

        .btn {
            white-space: nowrap;
        }
    }
}

.split-professional {
    .split-description {
        position: relative;
        border: 1px solid transparent;
        border-image: linear-gradient(to right, transparent 0, var(--color-gold-lighting) 50%, transparent 100%);
        border-image-slice: 1;
        border-left: none;
        border-right: none;
        border-top: none;
        padding-bottom: var(--pad-35);

        &::before {
            content: '';
            display: block;
            position: absolute;
            top: 0;
            left: 50%;
            bottom: var(--pad-35);
            width: 1px;
            background: var(--color-gold);
        }

        h2 {
            margin-bottom: var(--pad-35);
        }
    }

    .split-qoutes {
        margin-top: auto;
    }
}

.split-qoutes {
    p:not(.name) {
        font-family: var(--second-family-medium);
        font-weight: 500;
        font-style: italic;
        font-size: 20px;
        line-height: 28px;
    }

    &::before {
        content: '“';
        font-family: var(--second-family-medium);
        font-weight: 500;
        font-style: italic;
        font-size: 64px;
        line-height: 28px;
        color: var(--color-red);
    }
}

.certs {
    --dim: 0.7;
    margin: 0 auto;

    .certs-list {
        display: flex;
        align-items: stretch;
        height: 400px;
        margin-bottom: 20px;

        & + p {
            font-family: var(--second-family-medium);
            font-weight: 500;
            font-style: italic;
            font-size: 20px;
            line-height: 28px;
            color: rgba(70, 22, 29, 0.6);
        }

        .certs-item {
            display: block;
            overflow: hidden;
            border-radius: 3px;
            opacity: var(--dim);
            cursor: zoom-in;

            & + .certs-item {
                margin-left: -80px;
            }

            .certs-img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                pointer-events: none;
            }

            &.certs-item-1 {
                z-index: 4;
                opacity: 1;
            }

            &.certs-item-2 {
                z-index: 3;
            }

            &.certs-item-3 {
                z-index: 2;
            }

            &.certs-item-4 {
                z-index: 1;
            }

            &:focus-visible {
                opacity: 1;
                z-index: 8;
                outline: 2px solid currentColor;
                outline-offset: 2px;
            }

            &:hover {
                opacity: 1;
                z-index: 8;
            }
        }

        &:has(.certs-item:not(.certs-item-1):focus-visible),
        &:has(.certs-item:not(.certs-item-1):hover) {
            .certs-item-1 {
                opacity: var(--dim);
            }
        }
    }
}

.section-certificates {
    padding-bottom: 80px;
}

.only-mobile {
    display: none;
}

.breadcrumbs {
    margin-bottom: 1rem;
}

.breadcrumb ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.breadcrumbs > span,
.breadcrumb li {
    display: inline-block;
}

.breadcrumbs {
    color: var(--color-gold-lighter);
}

.breadcrumbs > span > a span,
.breadcrumbs > span > span,
.breadcrumb li,
.breadcrumb li a {
    font-weight: normal;
    font-size: 16px;
    line-height: 28px;
    text-align: left;
    color: var(--color-gold-lighter);
}

.breadcrumb li + li::before {
    display: inline-block;
    margin: 0 17px 0 10px;
    transform: rotate(19deg);
    border-right: 0.1em solid var(--color-gold-lighter);
    height: 13px;
    content: "";
}