@media screen and (max-width: 1500px) {
    .container {
        max-width: calc(1160px + 2 * 40px);
    }

    .btn-slider-box {
        width: calc((100% - (1160px + 2 * 40px)) / 2);
    }
}

@media screen and (max-width: 1360px) {
    .section-materials {
        display: none;
    }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {

}

@media screen and (max-width: 992px) {

    :root {
        --pad-35: 20px;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    main {
        padding-top: 64px;
    }

    .actions,
    .abs-lamp,
    .abs-lesson,
    .section-grid .split-description .text-box,
    .section-grid .split-title .link-arrow,
    .section-education .split-title .link-arrow,
    .section-work .split-title .link-arrow,
    .section-testimonials .split-description .text-box,
    .section-price .split-description .text-box,
    .section-blog .split-title .link-arrow,
    .section-education .article-actions,
    .footer-form {
        display: none !important;
    }

    .container,
    .container-fluid {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    * {
        font-size: 13px;
        line-height: 18px;
    }

    h1 {
        font-size: 26px;
        line-height: 30px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 24px;
        line-height: 25px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 15px;
    }

    h4,
    h4 a,
    h4 b {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 10px;
    }

    p {
        margin-bottom: 1rem;
    }

    .grid-header {
        height: 64px;
        padding: 8px 0;

        .logo {
            img {
                height: 48px;
            }

            p {
                gap: 4px;

                span {
                    font-size: 9px;
                    line-height: 12px;

                    &.name {
                        font-size: 13px;
                        line-height: 18px;
                    }
                }
            }
        }

        nav {
            display: none;
        }
    }

    header {
        box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.25);
    }

    .actions-mob {
        display: flex;
        gap: 6px;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--color-gold-light);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            background-repeat: no-repeat;
            background-color: transparent;
            background-size: 20px;
            background-position: center bottom 8px;
            transition: all 0.3s ease-in-out;

            &.email {
                background-image: url('/images/email-header-mobile.svg');
            }

            &.telegram {
                background-image: url('/images/telegram-header-mobile.svg');
            }

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

    .section-banner {
        .bg-wrapper {
            background-image: url('../images/bg-banner-mob.png');
            border-radius: 2px;
        }

        .article-img {
            display: none;
        }
    }

    .split-article {
        padding-top: 40px;
        padding-bottom: 40px;

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

            h1 {
                margin-bottom: 20px;

                span {
                    font-size: 20px;
                    line-height: 25px;
                }
            }

            .task {
                font-size: 13px;
                line-height: 18px;
                margin-bottom: 30px;
            }

            .btns-group {
                margin-bottom: 20px;

                .btn {
                    width: auto;
                }

                p {
                    &:not(:last-child) {
                        max-width: 100%;
                        margin-bottom: 0;
                    }
                }
            }

            .tag-links {
                gap: 6px;

                a {
                    height: 21px;
                    width: auto;
                    padding: 6px;
                }
            }
        }
    }

    .top-tag {
        margin-bottom: 30px;
    }

    .article-img-mob {
        display: block;

        figure {
            margin-bottom: 20px;

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

            figcaption {
                color: var(--color-white-green);
                margin-top: 10px;
                text-align: right;
            }
        }
    }

    .btn {
        height: 40px;
        padding: 6px;
    }

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

    .link-arrow-mob,
    .btn-mob,
    .expand-btn {
        display: flex;
    }

    .list-wrapper {
        max-height: 110px;
    }

    .split-description {
        display: block;

        h2 {
            margin-bottom: 20px;
        }
    }

    .grid-cards {
        display: block;

        .item {
            padding: 15px 0;
            display: grid;
            grid-template-columns: 36px minmax(100px, 1fr);
            column-gap: 15px;
            row-gap: 0;
            border-right: none;
            border-top: 1px solid var(--color-gold);

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

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

            .img-circle {
                grid-column: 1;
                width: 36px;
                height: 36px;
                background-size: 20px;
                margin: 0;
                position: absolute;
                background-position: center bottom 5px;

                &:hover {
                    background-position: center top 7px;
                }
            }

            h4,
            .link-arrow,
            p {
                grid-column: 2;
                justify-content: flex-start;
            }

            h4 a {
                font-weight: 600;
            }

            h4,
            p {
                margin-bottom: 10px;
            }
        }
    }

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

    .split-education {
        display: block;
    }

    .arr-box {
        gap: 10px;

        &::before {
            width: 28px;
            height: 30px;
            background-image: url('../images/icon-arr-bord-mob.svg');
        }
    }

    .split-steps {
        display: flex;
        margin-top: 40px;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 6px;

        article {
            padding: 10px 10px 10px 36px;
            gap: 8px;

            .number {
                font-size: 64px;
                line-height: 47px;
                bottom: 50%;
                left: -8px;
                transform: translateY(50%);
            }
        }
    }

    .tags-box {
        gap: 6px;
        max-width: 100%;
        margin-bottom: 40px;

        span {
            height: 22px;
            padding: 3px 6px;
        }
    }

    .section-work {
        .bg-wrapper {
            background-image: url('../images/bg-work-mob.png');
            padding-top: 45px;
            padding-bottom: 0;
            border-top: 1px solid var(--color-gold);
        }

        .split-article {
            display: block;

            .tags-box {
                max-width: 100%;
                margin-bottom: 40px;
            }

            .article-img {
                width: calc(100% + 30px);
                margin-left: -15px;

                figure {
                    img {
                        max-width: 100%;
                        height: auto;
                        max-height: none;
                        position: relative;
                    }
                }
            }
        }
    }

    .swiper-pagination {
        text-align: left;
    }

    .grid-cards {
        .item {
            h4 {
                b {
                    font-size: 30px;
                }
            }
        }
    }

    .section-marquee {
        .container-fluid {
            padding-left: 0;
            padding-right: 0;
        }
    }

    .marquee {
        margin-bottom: 40px;

        .track {
            .segment {
                span {
                    font-size: 16px;
                    line-height: 20px;
                }
            }
        }
    }

    .testimonials-carousel {
        .item {
            .gallery {
                gap: 6px;
                padding-top: 8px;
                padding-bottom: 8px;
                padding-left: 28px;
            }

            .description {
                padding-left: 10px;
                margin-bottom: 10px;
            }
        }
    }

    .gallery,
    .gallery-carousel .swiper-slide {
        a {
            img {
                height: 42px;
            }

            &::before {
                background-size: 25px;
            }
        }
    }

    .section-testimonials {
        padding-bottom: 40px;

        .expandable-block {
            margin-top: 40px;

            .tags-box {
                margin-bottom: 0;
            }
        }

        .btn-mob {
            margin: auto;
        }
    }

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

        .bg-wrapper {
            padding-top: 45px;
            padding-bottom: 45px;
        }
    }

    .split-test {
        display: block;
    }

    .test-form {
        margin-top: 40px;

        form {
            background: transparent;
            padding: 0;
            box-shadow: none;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: flex-start;

            .form-img {
                width: 70px;

                img {
                    height: auto;
                }
            }
        }
    }

    form {
        .form-group {
            input:not(.btn),
            textarea {
                height: 18px;
                padding: 1px;
            }

            &.from-group-btns {
                display: flex;
                flex-direction: column;

                .btn {
                    width: auto;
                    min-width: 165px;
                    margin: auto;
                }
            }
        }
    }

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

        .btn-mob {
            margin: 20px auto 0;
            width: 165px;
        }

        .price-box {
            padding: 15px;

            .item {
                .title {
                    margin-bottom: 8px;

                    p {
                        font-size: 16px;
                        line-height: 20px;
                        width: 95px;

                        data {
                            font-size: 16px;
                            line-height: 20px;
                        }
                    }

                    &::after {
                        margin: 0 3px;
                    }
                }

                &:not(:last-child) {
                    padding-bottom: 10px;
                }

                &:not(:first-child) {
                    padding-top: 20px;
                }
            }
        }
    }

    .section-faq {
        margin-bottom: 40px;

        .split-description {
            margin-bottom: 0;
        }
    }

    .accordion-box {
        padding: 15px;

        .accordion-item {
            .accordion-header {
                .accordion {
                    font-size: 16px;
                    line-height: 20px;
                    padding: 10px 0;
                }
            }
        }
    }

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

    .section-blog {
        .bg-wrapper {
            padding-top: 45px;
            padding-bottom: 0;
        }
    }

    .swiper-pagination {
        margin-bottom: 20px;
    }

    .grid-articles {
        display: flex;
        gap: 0;
        margin-bottom: 20px;

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

                h4 {
                    margin-bottom: 6px;
                }
            }
        }
    }

    .footer-middle {
        .bg-wrapper {
            background-image: url('../images/bg-footer-middle-mob.png');
            background-position: center;
        }
    }

    .grid-footer-middle {
        padding-top: 40px;
        padding-bottom: 40px;
        display: flex;
        flex-direction: column;

        .footer-links {
            order: 1;
            flex-direction: row;
            justify-content: space-between;
            gap: 0;
            padding-left: 0;
            margin-bottom: 20px;

            a {
                &::before,
                &::after {
                    content: none;
                }
            }
        }

        .footer-info {
            order: 2;
            border: 1px solid transparent;
            border-image: linear-gradient(to right, var(--color-green) 0, var(--color-gold-lighter) 50%, var(--color-green) 100%);
            border-image-slice: 1;
            border-left: none;
            border-right: none;
            padding-top: 20px;
            padding-bottom: 20px;
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;

            .logo {
                margin-bottom: 20px;
            }

            a {
                &[href^=tel],
                &[href^=mailto] {
                    font-size: 13px;
                    line-height: 18px;
                    margin-bottom: 10px;
                }

                &[href^=mailto] {
                    margin-bottom: 20px;
                }
            }
        }

        .footer-laws {
            order: 3;
            padding-left: 0;
            padding-right: 0;
            border: none;

            a {
                margin-bottom: 10px;
            }
        }
    }

    .footer-bottom {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        border: 1px solid var(--color-gold-light);
        box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.25);
        background: var(--color-white);
        height: 68px;
        padding-bottom: env(safe-area-inset-bottom, 0px);

        .mobile-nav-list {
            display: flex;
            justify-content: space-around;
            margin: 0;
            padding: 6px 0;
            list-style: none;

            .mobile-nav-item {
                flex: 1;
                max-width: 90px;

                .mobile-nav-link {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    text-decoration: none;
                    color: var(--color-red);
                    gap: 4px;
                    font-family: inherit;
                    transition: color 0.2s ease;
                    -webkit-tap-highlight-color: transparent;

                    .mobile-nav-icon {
                        border-radius: 50%;

                        transition: transform 0.2s ease;
                    }

                    .mobile-nav-text {
                        font-weight: 400;
                        font-size: 9px;
                        line-height: 12px;
                        color: var(--color-red);
                    }

                    .mobile-nav-link:hover,
                    .mobile-nav-link[aria-current="page"] {
                        .mobile-nav-icon {
                            transform: translateY(-1px);
                        }
                    }
                }

                &:nth-child(1) {
                    .img-circle {
                        background-image: url('../images/mob-1.svg');
                        background-position: center bottom 9px;
                    }

                    &:hover {
                        .img-circle {
                            background-position: center top 9px;
                        }
                    }
                }

                &:nth-child(2) {
                    .img-circle {
                        background-image: url('../images/mob-2.svg');
                        background-position: center bottom 5px;
                    }

                    &:hover {
                        .img-circle {
                            background-position: center top 7px;
                        }
                    }
                }

                &:nth-child(3) {
                    .img-circle {
                        background-image: url('../images/mob-3.svg');
                        background-position: center bottom 6px;
                    }

                    &:hover {
                        .img-circle {
                            background-position: center top 7px;
                        }
                    }
                }

                &:nth-child(4) {
                    .img-circle {
                        background-image: url('../images/mob-4.svg');
                        background-position: center bottom 9px;
                    }

                    &:hover {
                        .img-circle {
                            background-position: center top 10px;
                        }
                    }
                }
            }
        }
    }

    .mm-navbar__title {
        padding-left: 10px;
    }

    .only-mobile {
        display: block;
    }

    .section-banner-about {
        .split-article {
            padding-bottom: 30px;

            .article-text {
                width: 100%;

                img {
                    width: 100%;
                    height: auto;
                    margin-bottom: 30px;
                }
            }

            .btns-group {
                justify-content: center;
                margin-bottom: 0;
            }
        }
    }

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

    .stats {
        padding: 35px 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: relative;

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

        .stats-item {
            height: auto;
            padding-top: 10px;

            .stats-label {
                margin: 10px 0 0;
                font-size: 12px;
                line-height: 16px;
            }

            .stats-value {
                height: 30px;
                font-size: 48px;
                line-height: 55px;
            }

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

            &:nth-child(even) {
                border-right: none;
            }

            &:nth-child(1),
            &:nth-child(2) {
                border-bottom: 1px solid var(--color-gold);
                padding-bottom: 10px;
                padding-top: 0;
            }

            &::after {
                content: none !important;
            }
        }
    }

    .split-about {
        display: flex;
        flex-direction: column;
        gap: 30px;

        .split-text {
            order: 1;
        }

        .split-img {
            order: 2;
        }
    }

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

        figcaption {
            font-size: 12px;
            line-height: 16px;
        }
    }

    .split-qoutes {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
        border-left: 1px solid var(--color-gold);

        &::before {
            font-size: 48px;
        }

        p,
        p:not(.name) {
            font-size: 12px;
            line-height: 16px;
        }
    }

    .split-professional {
        .split-description {
            border: none;
            margin-bottom: 0;
            padding-bottom: 0;

            &::before {
                content: none;
            }
        }

        .split-qoutes {
            margin-top: 40px;
        }
    }

    .certs {
        .certs-list {
            height: auto;
            margin-bottom: 16px;

            & + p {
                font-size: 12px;
                line-height: 16px;
            }
        }
    }

    .section-education {
        .grid-cards {
            &.grid-about {
                padding-bottom: 0;
            }
        }
    }

    .section-about,
    .section-professional,
    .section-education,
    .section-certificates {
        padding-block: 30px;
    }

    .breadcrumbs > span > a span,
    .breadcrumbs > span > span,
    .breadcrumb li,
    .breadcrumb li a {
        font-size: 12px;
        line-height: 18px;
    }

    .breadcrumbs {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .breadcrumbs,
    .breadcrumbs * {
        line-height: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats__item::before,
    .stats__line {
        transition: none;
    }
}