/* Импорт шрифта Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0E49E5;
}

.primary-color {
    color: var(--primary-color);
}

.wrapper,
header {
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

body.not-firstpage {
    padding-top: 100px;
    background-color: #fff;
    color: #000;
    font-size: 14px;
}

body.not-firstpage.catalog-site {
    padding-top: 0;
}

body.menu-open {
    overflow: hidden;
}

.container-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.container-animation.animated {
    opacity: 1;
    transform: translateY(0);
}

a.layout {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.5);
}

.not-firstpage .header-navbar.header-navbar-white {
    top: 0;
    background-color: #fff;
}

.not-firstpage a {
    color: #000;
}

.not-firstpage a:hover {
    color: #000;
}

.btn {
    text-transform: uppercase;
    font-size: 12px;
    line-height: 12px;
    font-weight: 600;
    height: 45px;
    padding-left: 40px;
    padding-right: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:active,
.btn:focus,
.btn:active:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn span {
    position: relative;
    display: inline-block;
}

.btn span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.btn:active:focus span::after {
    width: 0;
}

.btn:hover span::after {
    width: 100%;
}

.btn-primary,
.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    color: #fff !important;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:active:focus {
    background-color: #0D3398 !important;
    border-color: #0D3398 !important;
    color: #fff !important;
}

.btn-youtube,
.btn-youtube:hover {
    background-color: #E10107;
    border-color: #E10107;
    position: relative;
    overflow: hidden;
    color: #fff !important;
    border-radius: 50px;
}

.btn-youtube span {
    gap: 5px;
    display: flex;
    align-items: center;
}

.btn-youtube:hover {
    background-color: #FF0032;
    border-color: #FF0032;

}

.btn-youtube:active,
.btn-youtube:focus,
.btn-youtube:active:focus {
    background-color: #C10106 !important;
    border-color: #C10106 !important;
}

.btn-white,
.btn-white:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn.btn-white span::after {
    background-color: var(--primary-color);
}

.btn-outline-secondary,
.btn-outline-secondary:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}


.btn-outline-secondary:active,
.btn-outline-secondary:focus,
.btn-outline-secondary:active:focus {
    background-color: #FFF !important;
    border-color: #FFF !important;
    color: #000 !important;
}

.btn-outline-primary,
.btn-outline-primary:hover {
    background-color: transparent;
    border-color: #000;
    color: #000;
}


.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary:active:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.btn.btn-outline-primary span::after {
    background-color: #000;
}

.btn.btn-youtube span::after {
    display: none;
}




h1, .h1 {
    font-size: 30px;
    line-height: 40px;
    font-weight: 500;
    text-transform: uppercase;
}

h1 i, .h1 i {
    font-weight: 400;
    text-transform: uppercase;
}

h2, .h2 {
    font-size: 22px;
    line-height: 30px;
    font-weight: 500;
    text-transform: uppercase;
}

h3, .h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

h4, .h4 {
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
}

.block-header {
    display: grid;
    align-items: center;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 30px;
    overflow: hidden;
}



.block-header h2,
.block-header h4 {
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.7s ease-out;
}

.block-header h2 {
    transform: translateX(-100%);
}

.block-header h4 {
    transform: translateX(100%);
}

.block-header h2.active {
    transform: translateX(0);
    opacity: 1;
}

.block-header h4.active {
    transform: translateX(0);
    opacity: 1;
}



.block-header h4 {
    text-align: right;
}

.block-header h2 i {
    display: block;
}

@media (min-width: 768px) {
    body {
        font-size: 14px;
    }

    .btn {
        height: 60px;
        font-size: 16px;
        line-height: 16px;
        padding-left: 40px;
        padding-right: 40px;
    }

    h1, .h1 {
        font-size: 40px;
        line-height: 50px;
        font-weight: 700;
    }

    h1 i, .h1 i {
        font-weight: 500;
    }

    h2, .h2 {
        font-size: 36px;
        line-height: 44px;
        font-weight: 600;
    }

    h2 i, .h2 i {
        font-weight: 500;
    }

    h3, .h3 {
        font-size: 20px;
        line-height: 28px;
        font-weight: 600;
    }

    h4, .h4 {
        font-size: 16px;
        line-height: 24px;
        font-weight: 600;
    }
}

@media (min-width: 992px) {
    .block-header h2 i {
        display: inline;
    }
}

@media (min-width: 1200px) {
    body {
        font-size: 16px;
    }

    h1, .h1 {
        font-size: 52px;
        line-height: 60px;
    }

    h2, .h2 {
        font-size: 40px;
        line-height: 48px;
    }

    h3, .h3 {
        font-size: 24px;
        line-height: 32px;
    }

    h4, .h4 {
        font-size: 18px;
        line-height: 26px;
    }
}

.wrapper {
    padding: 50px 0;
}

.our-clients .slogan {
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

@media (min-width: 1200px) {

    .our-clients .slogan span,
    .our-clients .slogan i {
        opacity: 0;
        position: relative;
        transition: transform 1s ease-out, opacity 1s ease-out;
        display: block;
    }

    .our-clients .slogan span {
        transform: translateX(-100px);
    }

    .our-clients .slogan i {
        transform: translateX(100px);
    }

    .our-clients .slogan.active span,
    .our-clients .slogan.active i {
        opacity: 1;
        transform: translateX(0);
    }
}

.our-clients .grid {
    display: grid;
    gap: 20px;
}

.our-clients .grid .cell.primary-color {
    text-align: left;
}

.our-clients .grid .cell {
    padding: 22px 16px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: rgba(31, 31, 31, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(3px);
}

.our-clients .grid .cell.no-border {
    border: none;
    background: none;
    backdrop-filter: none;
    padding: 0;
}

.our-clients .container {
    position: relative;
}

.our-clients .container .reverse-text-2 {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1;
}

.our-clients .container .reverse-text-2 .reverse-text-4 {
    text-align: right;
}


.our-clients .wrapper {
    position: relative;
    z-index: 2;
}

@media (min-width: 1200px) {
    .our-clients .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .our-clients .empty-lg {
        opacity: 0;
    }

    .our-clients .grid .cell.hidden-lg {
        display: none;
    }
}

@media (max-width: 575.98px) {

    .reverse-text-2,
    .reverse-text-4,
    .reverse-text-1 {
        display: none;
    }

    .our-clients .container .reverse-text-2 {
        justify-content: center;
    }

    .our-clients .container .reverse-text-2 .reverse-text-3 {
        text-align: center;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {

    .reverse-text-3,
    .reverse-text-1 {
        display: none;
    }

    .reverse-text-4,
    .reverse-text-2 {
        margin-left: auto;
        margin-right: auto;
    }

    .our-clients .container .reverse-text-2 .reverse-text-4 {
        text-align: center;
    }

    .reverse-text-4>img:last-child {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .our-clients .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .our-clients .empty-md {
        opacity: 0;
    }

    .our-clients .grid .cell.hidden-md {
        display: none;
    }

    .our-clients .slogan {
        font-size: 24px;
        line-height: 34px;
        font-weight: 600;
        margin-bottom: 100px;
    }

    .our-clients .slogan i {
        display: block;
        text-align: right;
    }
}

@media (max-width: 767px) {
    .our-clients .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .our-clients .empty-sm {
        opacity: 0;
    }

    .our-clients .grid .cell.hidden-sm {
        display: none;
    }

    .our-clients .slogan {
        margin-top: 50px;
        margin-bottom: 100px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .reverse-text-2 .reverse-text-3>img:last-child,
    .reverse-text-2 .reverse-text-4>img:last-child {
        display: none;
    }
}

@media (min-width: 1200px) {
    .our-clients .slogan {
        font-size: 30px;
        line-height: 40px;
        font-weight: 600;
        margin-bottom: 200px;
    }

    .our-clients .slogan i {
        display: block;
        text-align: right;
    }

    .our-clients {
        margin-bottom: 100px;
    }
}

.roadmap .block-header small {
    display: block;
    font-style: italic;
}

.roadmap .sub-title {
    margin-bottom: 35px;
    display: block;
    width: 100%;
    text-align: justify;
}

.roadmap .cell span {
    display: inline-block;
    margin-top: 5px;
}

.roadmap .grid {
    display: grid;
    gap: 0;
}

.roadmap .grid b {
    font-weight: 600;
}

.roadmap .grid>.cell {
    padding: 16px;
}

.roadmap .grid>.cell:nth-child(1) {
    grid-area: a;
}

.roadmap .grid>.cell:nth-child(2) {
    grid-area: b;
}

.roadmap .grid>.cell:nth-child(3) {
    grid-area: c;
}

.roadmap .grid>.cell:nth-child(4) {
    grid-area: d;
}

.roadmap .grid>.cell:nth-child(5) {
    grid-area: e;
}

.roadmap .grid>.cell:nth-child(6) {
    grid-area: f;
}

.roadmap .grid>.cell:nth-child(7) {
    grid-area: g;
}

.roadmap .grid>.cell:nth-child(8) {
    grid-area: h;
}

.roadmap .grid>.cell:nth-child(9) {
    grid-area: i;
}

.roadmap .grid>.cell:nth-child(10) {
    grid-area: j;
}

.roadmap .grid>.cell:nth-child(11) {
    grid-area: k;
}

.roadmap b {
    display: block;
}

.roadmap .grid>.cell {
    position: relative;
}

.roadmap .grid>.cell:nth-child(1):after,
.roadmap .grid>.cell:nth-child(2):after,
.roadmap .grid>.cell:nth-child(3):after,
.roadmap .grid>.cell:nth-child(4):after,
.roadmap .grid>.cell:nth-child(5):after,
.roadmap .grid>.cell:nth-child(6):after,
.roadmap .grid>.cell:nth-child(7):after,
.roadmap .grid>.cell:nth-child(8):after,
.roadmap .grid>.cell:nth-child(9):after,
.roadmap .cell .circles:after,
.roadmap .cell .circles:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
}

.roadmap .cell .circles {
    display: none;
}

@media (min-width: 768px) {

    .roadmap .sub-title {
        padding-right: 60%;
    }

    .roadmap .grid {
        grid-template-columns: 0.75fr 1fr 1fr 1fr;
        grid-template-areas:
            "i a b c"
            "i d h k"
            "i e f g";
    }

    .roadmap .grid>.cell:nth-child(9) {
        display: flex;
        align-items: center;
        padding-bottom: 0;
        padding-top: 0;
    }

    .roadmap .grid>.cell:nth-child(4)>b:nth-child(1),
    .roadmap .grid>.cell:nth-child(5)>b:nth-child(1),
    .roadmap .grid>.cell:nth-child(10) {
        display: none;
    }

    .roadmap .grid>.cell:nth-child(9):before,
    .roadmap .grid>.cell:nth-child(1):before,
    .roadmap .grid>.cell:nth-child(2):before,
    .roadmap .grid>.cell:nth-child(4):before,
    .roadmap .grid>.cell:nth-child(6):before,
    .roadmap .grid>.cell:nth-child(7):before {
        content: "";
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        border-top: 4px solid var(--primary-color);
    }

    .roadmap .grid>.cell:nth-child(2):before {
        bottom: -3px;
        border-right: 4px solid var(--primary-color);
        border-bottom: 4px solid var(--primary-color);
        border-top-right-radius: 50%;
        border-bottom-right-radius: 50%;
    }

    .roadmap .grid>.cell:nth-child(4):before {
        top: -1px;
        bottom: -4px;
        border-left: 4px solid var(--primary-color);
        border-bottom: 4px solid var(--primary-color);
        border-top-left-radius: 48%;
        border-bottom-left-radius: 48%;
    }

    .roadmap .grid>.cell:nth-child(6):before,
    .roadmap .grid>.cell:nth-child(7):before {
        top: 0px;
    }



    .roadmap .grid>.cell:nth-child(1):after,
    .roadmap .grid>.cell:nth-child(2):after,
    .roadmap .grid>.cell:nth-child(4):after,
    .roadmap .grid>.cell:nth-child(5):after,
    .roadmap .grid>.cell:nth-child(6):after,
    .roadmap .grid>.cell:nth-child(7):after,
    .roadmap .grid>.cell:nth-child(8):after {
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-3px);
    }

    .roadmap .grid>.cell:nth-child(4):after,
    .roadmap .grid>.cell:nth-child(8):after {
        top: -1px;
    }

    .roadmap .grid>.cell:nth-child(1):after,
    .roadmap .grid>.cell:nth-child(2):after {
        transform: translateY(-50%) translateX(-5px);
    }

    .roadmap .grid>.cell:nth-child(3):after {
        top: 50%;
        left: -7px;
        transform: translateY(-50%);
    }

    .roadmap .grid>.cell:nth-child(9):after {
        top: 50%;
        right: -7px;
        transform: translateY(-50%);
    }

    .roadmap .grid>.cell {
        padding-bottom: 15px;
    }

    .roadmap .grid>.cell:nth-child(4),
    .roadmap .grid>.cell:nth-child(8) {
        padding-bottom: 45px;
        padding-top: 45px;
    }

    .roadmap .grid>.cell:nth-child(1),
    .roadmap .grid>.cell:nth-child(4),
    .roadmap .grid>.cell:nth-child(5) {
        padding-left: 35px;
    }

    .roadmap .grid>.cell:nth-child(2),
    .roadmap .grid>.cell:nth-child(8),
    .roadmap .grid>.cell:nth-child(6) {
        padding-left: 0;
        padding-right: 25px;
    }

}

@media (min-width: 992px) {

    .roadmap .grid>.cell {
        padding-bottom: 110px;
    }

    .roadmap .grid>.cell {
        padding-top: 25px;
    }

    .roadmap .grid>.cell:nth-child(4) {
        padding-bottom: 100px;
    }

    .roadmap .grid>.cell:nth-child(1),
    .roadmap .grid>.cell:nth-child(4),
    .roadmap .grid>.cell:nth-child(5) {
        padding-left: 60px;
        padding-right: 20px;
    }

    .roadmap .grid>.cell:nth-child(4),
    .roadmap .grid>.cell:nth-child(8) {
        padding-top: 35px;
    }

    .roadmap .grid>.cell:nth-child(3) {
        padding-top: 50px;
        padding-bottom: 0;
    }

}

@media (min-width: 1200px) {
    .roadmap .grid>.cell {
        padding-top: 25px;
        padding-bottom: 110px;
    }

    .roadmap .grid>.cell:nth-child(1),
    .roadmap .grid>.cell:nth-child(4) {
        padding-left: 60px;
        padding-right: 20px;
    }

    .roadmap .grid>.cell:nth-child(5) {
        padding-left: 60px;
    }

    .roadmap .grid>.cell:nth-child(4) {
        padding-bottom: 150px;
    }

    .roadmap .grid>.cell:nth-child(3) {
        padding-left: 50px;
        padding-top: 90px;
        padding-bottom: 0;
    }

    .roadmap .grid>.cell:nth-child(7) {
        padding-left: 50px;
    }

    .roadmap .grid>.cell:nth-child(2),
    .roadmap .grid>.cell:nth-child(6),
    .roadmap .grid>.cell:nth-child(8) {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 575.98px) {
    .roadmap .block-header {
        display: block;
    }

    .roadmap .block-header h4 {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .roadmap .grid {
        gap: 0;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "a a"
            "b b"
            "c c"
            "d d"
            "e e"
            "f f"
            "g g";
    }

    .roadmap .grid>.cell:nth-child(8),
    .roadmap .grid>.cell:nth-child(9),
    .roadmap .grid>.cell:nth-child(10),
    .roadmap .grid>.cell:nth-child(11) {
        display: none;
    }

    .roadmap .grid>.cell {
        height: 146px;
    }

    .roadmap .grid>.cell:nth-child(odd):before {
        content: "";
        position: absolute;
        top: 0px;
        left: 100px;
        right: 0;
        bottom: 0;
        border-top: 4px solid var(--primary-color);
        border-bottom: 4px solid var(--primary-color);
        border-right: 4px solid var(--primary-color);
        border-top-right-radius: 80px;
        border-bottom-right-radius: 80px;
        height: 150px;
    }

    .roadmap .grid>.cell:nth-child(even):before {
        content: "";
        position: absolute;
        top: 0px;
        left: 0;
        right: 100px;
        bottom: 0;
        border-top: 4px solid var(--primary-color);
        border-bottom: 4px solid var(--primary-color);
        border-left: 4px solid var(--primary-color);
        border-top-left-radius: 80px;
        border-bottom-left-radius: 80px;
        height: 150px;
        transform: translateY(0px);
    }

    .roadmap .grid>.cell:nth-child(7):before {
        border-bottom: 0;
        border-right: 0;
        border-radius: 0;
    }

    .roadmap .grid>.cell:nth-child(1),
    .roadmap .grid>.cell:nth-child(3),
    .roadmap .grid>.cell:nth-child(5),
    .roadmap .grid>.cell:nth-child(7) {
        padding-left: 40%;
        padding-right: 50px;
    }

    .roadmap .grid>.cell:nth-child(2),
    .roadmap .grid>.cell:nth-child(6) {
        padding-right: 20%;
    }

    .roadmap .grid>.cell:nth-child(2),
    .roadmap .grid>.cell:nth-child(4),
    .roadmap .grid>.cell:nth-child(6) {
        padding-left: 50px;
    }

    .roadmap .grid>.cell:nth-child(5)>b:nth-child(1) {
        margin-bottom: 50px;
    }

    .roadmap .grid>.cell:nth-child(4),
    .roadmap .grid>.cell:nth-child(5) {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .roadmap .grid>.cell:nth-child(4)>b:nth-child(1) {
        padding-left: 50%;
    }

    .roadmap .grid>.cell:nth-child(4)>b:nth-child(2) {
        padding-right: 30%;
    }

    .roadmap .grid>.cell:nth-child(1):after,
    .roadmap .grid>.cell:nth-child(2):after,
    .roadmap .grid>.cell:nth-child(3):after,
    .roadmap .grid>.cell:nth-child(4):after,
    .roadmap .grid>.cell:nth-child(5):after,
    .roadmap .grid>.cell:nth-child(6):after,
    .roadmap .grid>.cell:nth-child(7):after,
    .roadmap .grid>.cell:nth-child(8):after,
    .roadmap .grid>.cell:nth-child(9):after {
        top: -3px;
    }

    .roadmap .grid>.cell:nth-child(1):after,
    .roadmap .grid>.cell:nth-child(3):after,
    .roadmap .grid>.cell:nth-child(4):after,
    .roadmap .grid>.cell:nth-child(5):after,
    .roadmap .grid>.cell:nth-child(7):after,
    .roadmap .grid>.cell:nth-child(6):after {
        right: 125px;
    }

    .roadmap .grid>.cell:nth-child(2):after {
        left: 100px;
    }

    .roadmap .cell .circles {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
    }

    .roadmap .cell .circles:before {
        top: -3px;
        left: 100px;
    }

    .roadmap .cell .circles:after {
        bottom: -8px;
        left: 100px;
    }

    .roadmap .grid>.cell:nth-child(5) {
        padding-left: 60%;
    }
}

@media (max-width: 376px) {

    .roadmap .grid>.cell:nth-child(1):after,
    .roadmap .grid>.cell:nth-child(3):after,
    .roadmap .grid>.cell:nth-child(4):after,
    .roadmap .grid>.cell:nth-child(5):after,
    .roadmap .grid>.cell:nth-child(7):after,
    .roadmap .grid>.cell:nth-child(6):after {
        right: 100px;
    }
}

header {
    min-height: 460px;
    position: relative;
}

header .container.main-header {
    position: relative;
    z-index: 3;
}



.header-bg {
    height: 460px;
    background: url('/upload/bg.jpg') no-repeat center center;
    background-size: cover;
    max-width: 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

header .reverse-text {
    height: 460px;
}

.header-navbar {
    padding: 20px 0;
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    background-color: rgb(29, 29, 29, 0);
    /* Плавный эффект */
}

.header-navbar:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
    background-color: rgb(29, 29, 29, 0.85);
    transition: all 0.5s ease;
    opacity: 0;
}

.not-firstpage .header-navbar.header-navbar-white:before {
    background-color: #fff;
}

.header-navbar>.container {
    z-index: 2;
    position: relative;
}

.header-navbar.active {
    top: 0;
}

.header-navbar.scrolled:before {
    opacity: 1;
}

.header-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-navbar .menu {
    transition: all 0.3s ease;
}

header .reverse-text {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1;
}

.header-navbar .menu li a {
    color: #fff;
}

.header-navbar-white .menu li a {
    color: #000;
}

.not-firstpage .header-navbar .burger img {
    filter: brightness(0);
}

.header-navbar .logo {
    flex: 1 0 auto;
}

@media (max-width: 575.98px) {
    .header-navbar .menu {
        width: 100vw;
    }
}

@media (max-width: 767.98px) {

    .header-bg {
        background-position: calc(50% + 50px) center;
    }

    header .grid {
        padding-top: 75px;
    }

    header .grid>div:nth-child(1) {
        text-align: center;
        font-weight: 600;
        margin-bottom: 90px;
    }

    header .grid>div:nth-child(3) {
        text-align: right;
        padding-left: 50%;
    }

    header .grid>div:nth-child(4) {
        padding-right: 20%;
    }

    header .grid>div:nth-child(5) {
        margin-top: 25px;
    }

    header .grid>div:nth-child(6) {
        padding: 0 35px;
        margin-top: 30px;
    }

    header .grid .btn {
        width: 100%;
        margin-top: 15px;
    }

    .header-navbar .menu {
        bottom: 0;
    }
}

@media (max-width: 1199.98px) {
    .header-navbar .menu {
        position: fixed;
        top: 0;
        right: -100vw;
        background-color: #1D1D1D;
        z-index: 100;
    }

    .header-navbar .menu.show {
        right: 0;
    }

    .header-navbar .menu .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .header-navbar .menu ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 50px 0 0 75px;
        margin: 0;
        list-style: none;
        font-size: 16px;
    }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
    .header-navbar .menu {
        width: 380px;
        right: -380px;
        height: 100vh;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .header-bg {
        background-position: calc(50% + 75px) center;
    }

    header .grid {
        padding-top: 75px;
        display: flex;
        flex-wrap: wrap;
    }

    header .grid>div:nth-child(1),
    header .grid>div:nth-child(2) {
        flex: 0 0 100%;
        order: 1
    }

    header .grid>div:nth-child(2) {
        margin-top: 130px;
    }

    header .grid>div:nth-child(3),
    header .grid>div:nth-child(4) {
        flex: 0 0 50%;
    }

    header .grid>div:nth-child(3) {
        order: 3;
        text-align: right;
    }

    header .grid>div:nth-child(4) {
        order: 2;
    }

    header .grid>div:nth-child(5) {
        flex: 0 0 100%;
        order: 4;
    }

    header .grid>div:nth-child(6) {
        flex: 0 0 75%;
        order: 5;
    }

    header .grid>div:nth-child(1) {
        text-align: center;
        font-weight: 600;
        margin-bottom: 100px;
    }

    header .actions {
        margin-top: 100px;
        margin-bottom: 30px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

}

@media (min-width: 768px) {
    header {
        min-height: 900px;
    }

    .header-bg,
    header .reverse-text {
        height: 900px;
    }
}

@media (min-width: 992px) {
    header {
        min-height: 680px;
    }

    .header-bg,
    header .reverse-text {
        height: 680px;
    }

    .header-navbar .menu li a {
        position: relative;
        transition: color 0.3s ease;
    }

    .header-navbar .menu li a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0;
        height: 2px;
        background: #fff;
        transition: width 0.3s ease;
    }

    .not-firstpage .header-navbar .menu li a::after {
        background-color: #000;
    }

    .header-navbar .menu li a:hover {
        color: #fff;
        text-decoration: none;
    }

    .header-navbar .menu li a:hover::after {
        width: 100%;
    }

    header .grid {
        padding-top: 260px;
        display: flex;
        flex-wrap: wrap;
    }

    header .grid>div:nth-child(1) {
        font-weight: 600;
    }

    header .grid>div:nth-child(2) h1 {
        margin-top: 15px;
        margin-bottom: 20px;
    }

    header .grid>div:nth-child(1),
    header .grid>div:nth-child(2) {
        flex: 0 0 100%;
        order: 1
    }

    header .grid>div:nth-child(3) {
        order: 3;
        flex: 0 0 56%;
    }

    header .grid>div:nth-child(4) {
        order: 2;
        flex: 0 0 44%;
        padding-right: 15%;
        text-align: justify;
    }

    header .grid>div:nth-child(5) {
        flex: 0 0 100%;
        order: 4;
        padding-left: 44%;
    }

    header .grid>div:nth-child(6) {
        flex: 0 0 100%;
        padding-left: 44%;
        order: 5;
        text-align: justify;
    }

    header .grid .actions {
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    header {
        min-height: 800px;
    }

    .header-navbar .container {
        gap: 30px;
    }

    .header-bg,
    header .reverse-text {
        height: 800px;
    }

    .not-firstpage .header-navbar .menu li a:hover {
        color: #000;
        text-decoration: none;
    }

    .header-navbar .menu .menu-close,
    .header-navbar .burger {
        display: none;
    }

    .header-navbar .menu {
        display: flex;
        align-items: center;
    }

    .header-navbar .menu ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
}

@media (min-width: 1920px) {
    .header-bg {
        background-size: contain;
    }
}

@media (min-width: 1200px) {
    .header-navbar {
        position: fixed;
        top: -100px;
        /* Скрыт за верхней границей */
        left: 0;
        right: 0;
        transition: top 0.5s ease-out;
        z-index: 1000;
    }

    .header-navbar.active {
        top: 0;
        /* Navbar выезжает сверху */
    }
}

@media (max-width: 1199px) {
    .header-navbar .menu li a {
        color: #fff;
    }
}



/* Анимация для h1 (выезд слева) */
.main-header .grid h1 {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.main-header .grid h1.active {
    opacity: 1;
    transform: translateX(0);
}

/* Анимация для .h1 (выезд справа с задержкой) */
.main-header .grid .h1 {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.4s ease-out 0.4s, opacity 0.4s ease-out 0.4s;
}

.main-header .grid .h1.active {
    opacity: 1;
    transform: translateX(0);
}

/* Плавное появление остальных элементов */
.main-header .grid .content {
    opacity: 0;
    transition: opacity 1s ease-out 1s;
    /* Задержка для одновременного появления */
}

.main-header .grid .content.active {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .main-header .grid .content.content-fixed-block {
        width: 322px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        text-align: justify;
        line-height: 18px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .main-header .grid .content.content-fixed-block {
        width: 490px;
        padding-left: 0;
        padding-right: 0;
        text-align: justify;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991.98px) {
    .mybook {
        text-align: center;
    }

    .mybook img {
        margin-bottom: 35px;
    }

    .mybook h3 {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 30px;
        margin-top: 20px;
        font-weight: 600;
    }

    .mybook .btn {
        margin-bottom: 30px;
    }

    .mybook p {
        display: block;
        padding: 0 100px;
        margin: 0;
    }
}

@media (min-width: 992px) {
    .mybook {
        display: grid;
        align-items: center;
        gap: 30px;
        grid-template-columns: 1fr 1fr;
    }

    .mybook p {
        display: block;
        margin: 0;
        padding-right: 150px;
    }

    .mybook h3 {
        margin-top: 10px;
        margin-bottom: 30px;
        font-size: 26px;
        line-height: 36px;
    }

    .mybook .btn {
        margin-bottom: 30px;
    }
}

@media (min-width: 1200px) {
    .mybook h3 {
        font-size: 30px;
        line-height: 40px;
    }

    .mybook p {
        padding-right: 200px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    header .grid {
        justify-content: space-between;
    }

    header .grid>div:nth-child(3) {
        flex: 0 0 440px;
    }

    header .grid>div:nth-child(5) {
        flex: 1 1 100%;
        justify-content: flex-end;
        margin-top: -30px;
    }

    .our-clients .container .reverse-text-2 .reverse-text-4 img,
    header .reverse-text-2 img {
        max-width: 440px;
    }

    header .reverse-text-2 img {
        display: none;
    }

    header .grid>div:nth-child(6) {
        flex: 0 0 440px;
        padding-left: 0;
        margin-left: auto;
    }

    .our-clients .container .reverse-text-2 .reverse-text-4 {
        margin-top: -55px;
    }

    header .grid>div:nth-child(4) {
        flex: 0 0 260px;
        padding-right: 0;
    }

    header .reverse-text {
        top: 50px;
    }

    header .reverse-text img {
        max-width: 264px;
    }

    .our-clients .container .reverse-text-2 .reverse-text-3 img {
        max-width: 264px;
        display: block;
    }
}

@media (min-width: 1200px) {
    header .grid {
        justify-content: space-between;
    }

    header .grid>div:nth-child(3) {
        text-align: right;
        flex: 0 0 570px;
    }

    header .grid>div:nth-child(5) {
        flex: 1 1 100%;
        justify-content: flex-end;
    }

    header .grid>div:nth-child(5) {
        flex: 0 0 570px;
        margin-left: auto;
        text-align: left;
        padding-left: 0;
        justify-content: flex-start;
    }

    header .grid>div:nth-child(6) {
        flex: 0 0 570px;
        padding-left: 0;
        margin-left: auto;
        padding-right: 78px;
    }

    header .reverse-text-2 img {
        max-width: 570px;
        padding-right: 78px;
    }

    header .reverse-text {
        top: 35px;
    }

    header .reverse-text-1 {
        margin-bottom: 37px;
    }

    .our-clients .container .reverse-text-2 .reverse-text-4 {
        padding-right: 78px;
    }

    .our-clients .slogan i {
        padding-right: 78px;
    }

    .our-clients .slogan.active span {
        padding-left: 78px;
    }
}

.ourvalues {
    overflow: hidden;
}

.ourvalues .grid h4 {
    font-weight: 600;
}

.ourvalues .grid .cell {
    position: relative;
}

.ourvalues .grid .cell>div {
    opacity: 0;
    transition: all 0.6s ease;
}

.ourvalues .grid .cell.active>div {
    opacity: 1;
}

@media (max-width: 767.98px) {

    .ourvalues .grid .cell:nth-child(1) {
        margin-left: 20%;
        margin-right: 30%;
        margin-bottom: 190px;
    }

    .ourvalues .grid .cell:nth-child(2) {
        margin-left: 25%;
        margin-right: 25%;
        margin-bottom: 140px;
    }

    .ourvalues .grid .cell:nth-child(3) {
        margin-bottom: 25px;
    }

    .ourvalues .grid .cell:nth-child(4),
    .ourvalues .grid .cell:nth-child(6) {
        margin-bottom: 100px;
    }

    .ourvalues .grid .cell:nth-child(5) {
        margin-bottom: 75px;
    }

    .ourvalues .grid .cell:nth-child(7) {
        margin-bottom: 40px;
    }

    .ourvalues .grid .cell:nth-child(3),
    .ourvalues .grid .cell:nth-child(5) {
        margin-left: 50%;
    }

    .ourvalues .grid .cell:nth-child(4),
    .ourvalues .grid .cell:nth-child(6),
    .ourvalues .grid .cell:nth-child(7) {
        margin-right: 40%;
    }

    .ourvalues .grid .cell:nth-child(8) {
        margin-left: 35%;
    }

    .ourvalues .grid .cell:nth-child(1):before,
    .ourvalues .grid .cell:nth-child(1):after,
    .ourvalues .grid .cell:nth-child(2):before,
    .ourvalues .grid .cell:nth-child(3):before,
    .ourvalues .grid .cell:nth-child(4):after,
    .ourvalues .grid .cell:nth-child(5):after,
    .ourvalues .grid .cell:nth-child(6):after {
        content: '';
        width: 60px;
        height: 300px;
        position: absolute;
        border: 3px solid #777;
    }

    .ourvalues .grid .cell:nth-child(1):before {
        transform: translateX(calc(-150% - 10px));
        top: 0;
        left: 0;
        opacity: 0;
        transition: all 0.7s ease;
    }

    .ourvalues .grid .cell.active-before:nth-child(1):before {
        transform: translateX(calc(-100% - 10px));
        top: 0;
        left: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(1):after {
        transform: rotate(7deg) translateX(calc(50% + 10px));
        top: -25px;
        right: 0;
        opacity: 0;
        transition: all 0.7s ease;
        transition-delay: 0.5s;
    }

    .ourvalues .grid .cell.active-after:nth-child(1):after {
        transform: rotate(15deg) translateX(calc(100% + 10px));
        top: -25px;
        right: 0;
        opacity: 1;

    }

    .ourvalues .grid .cell:nth-child(2):before {
        transform: rotate(0deg) translateX(calc(-150% - 25px));
        top: 0;
        left: 0;
        opacity: 0;
        transition: all 0.7s ease;
        transition-delay: 0.2s;
    }

    .ourvalues .grid .cell.active-before:nth-child(2):before {
        transform: rotate(5deg) translateX(calc(-100% - 25px));
        top: 0;
        left: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(3):before {
        transform: rotate(25deg) translateX(calc(-400%)) translateY(-25%);
        top: 0;
        left: 0;
        opacity: 0;
        transition: all 0.7s ease;
        transition-delay: 0.2s;
    }

    .ourvalues .grid .cell.active-before:nth-child(3):before {
        transform: rotate(60deg) translateX(calc(-300%)) translateY(-25%);
        top: 0;
        left: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(4):after {
        width: 300px;
        height: 60px;
        bottom: 0;
        transform: rotate(-10deg) translateY(calc(25% + 10px)) translateX(9%);
        opacity: 0;
        transition: all 0.7s ease;
        transition-delay: 0.5s;
    }

    .ourvalues .grid .cell.active-after:nth-child(4):after {
        width: 300px;
        height: 60px;
        bottom: 0;
        transform: rotate(-5deg) translateY(calc(100% + 10px)) translateX(9%);
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(5):after {
        width: 300px;
        height: 60px;
        bottom: 0;
        left: 0;
        transform: rotate(27deg) translateY(calc(100% + 20px)) translateX(-50%);
        opacity: 0;
        transition: all 0.7s ease;
        transition-delay: 0.5s;
    }

    .ourvalues .grid .cell.active-after:nth-child(5):after {
        width: 300px;
        height: 60px;
        bottom: 0;
        left: 0;
        opacity: 1;
        transform: rotate(17deg) translateY(calc(150% + 20px)) translateX(-50%);
    }

    .ourvalues .grid .cell:nth-child(6):after {
        width: 300px;
        height: 60px;
        bottom: 0;
        right: 0;
        transform: rotate(10deg) translateY(calc(50% + 20px)) translateX(25%);
        opacity: 0;
        transition: all 0.7s ease;
        transition-delay: 0.7s;
    }

    .ourvalues .grid .cell.active-after:nth-child(6):after {
        width: 300px;
        height: 60px;
        bottom: 0;
        right: 0;
        transform: rotate(5deg) translateY(calc(100% + 20px)) translateX(25%);
        opacity: 1;

    }
}

@media (min-width: 768px) {
    .ourvalues .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ourvalues .grid .cell:nth-child(1) {
        margin-left: 20%;
        margin-right: 30%;
    }

    .ourvalues .grid .cell:nth-child(2) {
        margin-top: 40px;
        margin-left: 15%;
        margin-right: 25%;
        margin-bottom: 125px;
    }

    .ourvalues .grid .cell:nth-child(3) {
        margin-top: 50px;
        margin-bottom: 80px;
    }

    .ourvalues .grid .cell:nth-child(4) {
        margin-left: 125px;
    }

    .ourvalues .grid .cell:nth-child(5) {
        margin-bottom: 100px;
        margin-top: 60px;
        margin-left: 20%;
    }

    .ourvalues .grid .cell:nth-child(6) {
        margin-left: 125px;
    }

    .ourvalues .grid .cell:nth-child(7) {
        margin-right: 100px;
    }

    .ourvalues .grid .cell:nth-child(8) {
        margin-top: 100px;
        margin-left: 20%;
    }

    .ourvalues .grid .cell:nth-child(1):before,
    .ourvalues .grid .cell:nth-child(1):after,
    .ourvalues .grid .cell:nth-child(2):before,
    .ourvalues .grid .cell:nth-child(4):before,
    .ourvalues .grid .cell:nth-child(3):after,
    .ourvalues .grid .cell:nth-child(5):after,
    .ourvalues .grid .cell:nth-child(6):after {
        content: '';
        width: 60px;
        height: 300px;
        position: absolute;
        border: 3px solid #777;
        opacity: 0;
        transition: all 0.7s ease;

    }

    .ourvalues .grid .cell:nth-child(1):before {
        transform: translateX(calc(-150% - 10px));
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell.active-after:nth-child(1):before {
        transform: translateX(calc(-150% - 10px));
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell.active-before:nth-child(1):before {
        transform: translateX(calc(-100% - 10px));
        top: 0;
        left: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(1):after {
        transform: rotate(5deg) translateX(calc(50% + 10px));
        top: -25px;
        right: 0;
        transition-delay: 0.3s;
    }

    .ourvalues .grid .cell.active-before:nth-child(1):after {
        transform: rotate(15deg) translateX(calc(100% + 10px));
        top: -25px;
        right: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(2):before {
        transform: rotate(0deg) translateX(calc(-150% - 10px)) translateY(-40px);
        top: 0;
        left: 0;
        transition-delay: 0.5s;
    }

    .ourvalues .grid .cell.active-before:nth-child(2):before {
        transform: rotate(3deg) translateX(calc(-100% - 10px)) translateY(-40px);
        top: 0;
        left: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(4):before {
        transform: rotate(30deg) translateX(calc(-400%)) translateY(-50%);
        top: 0;
        left: 0;
        transition-delay: 0.7s;
    }

    .ourvalues .grid .cell.active-before:nth-child(4):before {
        transform: rotate(60deg) translateX(calc(-300%)) translateY(-50%);
        top: 0;
        left: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(3):after {
        width: 720px;
        height: 60px;
        transform: rotate(-7deg) translateY(calc(50%)) translateX(-2%);
        bottom: 0;
        transition-delay: 0.5s;
    }

    .ourvalues .grid .cell.active-after:nth-child(3):after {
        width: 720px;
        height: 60px;
        transform: rotate(-5deg) translateY(calc(122%)) translateX(-2%);
        bottom: 0;
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(5):after {
        width: 400px;
        height: 60px;
        transform: rotate(0deg) translateY(calc(70% + 20px)) translateX(-9%);
        bottom: 0;
        left: 0;
    }

    .ourvalues .grid .cell.active-after:nth-child(5):after {
        width: 400px;
        height: 60px;
        transform: rotate(6deg) translateY(calc(115% + 20px)) translateX(-9%);
        bottom: 0;
        left: 0;
        opacity: 1;
        transition-delay: 0.5s;
    }

    .ourvalues .grid .cell:nth-child(6):after {
        width: 400px;
        height: 60px;
        transform: rotate(15deg) translateY(calc(-55%)) translateX(-40%);
        bottom: 0;
        left: 0;
    }

    .ourvalues .grid .cell.active-after:nth-child(6):after {
        width: 400px;
        height: 60px;
        transform: rotate(20deg) translateY(calc(0%)) translateX(-35%);
        bottom: 0;
        left: 0;
        opacity: 1;
        transition-delay: 0.7s;
    }

    .ourvalues .grid .cell:nth-child(1)>div {
        transition-delay: 0.4s;
    }

    .ourvalues .grid .cell:nth-child(2)>div {
        transition-delay: 0.8s;
    }

    .ourvalues .grid .cell:nth-child(4)>div {
        transition-delay: 0.6s;
    }

    .ourvalues .grid .cell:nth-child(5)>div {
        transition-delay: 0.1s;
    }

    .ourvalues .grid .cell:nth-child(6)>div {
        transition-delay: 0.3s;
    }

    .ourvalues .grid .cell:nth-child(7)>div {
        transition-delay: 0.1s;
    }

    .ourvalues .grid .cell:nth-child(8)>div {
        transition-delay: 0.2s;
    }
}

@media (min-width: 992px) {

    .ourvalues .grid .cell:nth-child(2) {
        margin-bottom: 305px;
        margin-left: 18%;
    }

    .ourvalues .grid .cell:nth-child(4),
    .ourvalues .grid .cell:nth-child(6) {
        margin-left: 220px;
    }

    .ourvalues .grid .cell:nth-child(3) {
        margin-right: 125px;
        margin-bottom: 100px;
    }

    .ourvalues .grid .cell:nth-child(5) {
        margin-bottom: 140px;
        margin-right: 125px;
    }

    .ourvalues .grid .cell:nth-child(1):before,
    .ourvalues .grid .cell:nth-child(1):after,
    .ourvalues .grid .cell:nth-child(2):before,
    .ourvalues .grid .cell:nth-child(4):before,
    .ourvalues .grid .cell:nth-child(3):after,
    .ourvalues .grid .cell:nth-child(5):after,
    .ourvalues .grid .cell:nth-child(6):after {
        content: '';
        width: 90px;
        height: 500px;
        position: absolute;
        border: 3px solid #777;
    }

    .ourvalues .grid .cell:nth-child(1):after {
        transform: rotate(15deg) translateX(calc(45% + 10px));
        top: -15px;
        right: 0;
    }

    .ourvalues .grid .cell.after-active:nth-child(1):after {
        transform: rotate(15deg) translateX(calc(45% + 10px));
        top: -15px;
        right: 0;
    }

    .ourvalues .grid .cell:nth-child(2):before {
        transform: rotate(0deg) translateX(calc(-175% - 10px)) translateY(-40px);
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell.active-before:nth-child(2):before {
        transform: rotate(3deg) translateX(calc(-115% - 10px)) translateY(-40px);
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell:nth-child(4):before {
        transform: rotate(30deg) translateX(calc(-310%)) translateY(-50%);
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell.active-before:nth-child(4):before {
        transform: rotate(42deg) translateX(calc(-280%)) translateY(-50%);
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell:nth-child(3):after {
        width: 900px;
        height: 90px;
        transform: rotate(-10deg) translateY(calc(50%)) translateX(1%);
    }

    .ourvalues .grid .cell.active-after:nth-child(3):after {
        width: 900px;
        height: 90px;
        transform: rotate(-5deg) translateY(calc(100%)) translateX(1%);
    }

    .ourvalues .grid .cell:nth-child(5):after {
        width: 500px;
        height: 90px;
        transform: rotate(9deg) translateY(calc(0% + 20px)) translateX(-9%);
    }

    .ourvalues .grid .cell.active-after:nth-child(5):after {
        width: 500px;
        height: 90px;
        transform: rotate(4deg) translateY(calc(100% + 20px)) translateX(-9%);
    }

    .ourvalues .grid .cell:nth-child(6):after {
        width: 500px;
        height: 90px;
        transform: rotate(25deg) translateY(calc(-50%)) translateX(-45%);
    }

    .ourvalues .grid .cell.active-after:nth-child(6):after {
        width: 500px;
        height: 90px;
        transform: rotate(20deg) translateY(calc(0%)) translateX(-45%);
    }

    .ourvalues {
        margin-top: 100px;
    }
}

@media (min-width: 1200px) {

    .ourvalues .grid .cell:nth-child(2) {
        margin-bottom: 370px;
        margin-left: 25%;
    }

    .ourvalues .grid .cell:nth-child(4), .ourvalues .grid .cell:nth-child(6) {
        margin-left: 310px;
    }

    .ourvalues .grid .cell:nth-child(3) {
        margin-top: 210px;
        margin-bottom: 175px;
    }

    .ourvalues .grid .cell:nth-child(5) {
        margin-bottom: 200px;
        margin-right: 125px;
    }



    .ourvalues .grid .cell:nth-child(1):before,
    .ourvalues .grid .cell:nth-child(1):after,
    .ourvalues .grid .cell:nth-child(2):before,
    .ourvalues .grid .cell:nth-child(4):before,
    .ourvalues .grid .cell:nth-child(3):after,
    .ourvalues .grid .cell:nth-child(5):after,
    .ourvalues .grid .cell:nth-child(6):after {
        content: '';
        width: 140px;
        height: 750px;
        position: absolute;
        border: 3px solid #777;
        transition: transform 0.6s ease-out, opacity 0.3s ease-out, width 0.3s ease-out, height 0.3s ease-out;
        opacity: 0;
    }

    .ourvalues .grid .cell.active-before:nth-child(1):before,
    .ourvalues .grid .cell.active-after:nth-child(1):after,
    .ourvalues .grid .cell.active-before:nth-child(2):before,
    .ourvalues .grid .cell.active-before:nth-child(4):before,
    .ourvalues .grid .cell.active-after:nth-child(3):after,
    .ourvalues .grid .cell.active-after:nth-child(5):after,
    .ourvalues .grid .cell.active-after:nth-child(6):after {
        opacity: 1;
    }

    .ourvalues .grid .cell:nth-child(1):before {
        transform: translateX(calc(-200% - 10px));
    }

    .ourvalues .grid .cell.active-before:nth-child(1):before {
        transform: translateX(calc(-100% - 10px));
        top: 0;
        right: 0;
    }

    .ourvalues .grid .cell:nth-child(1):after {
        transform: rotate(2deg) translateX(calc(-50% + 10px));
        top: -15px;
        right: 0;
        transition-delay: 0.3s;
    }

    .ourvalues .grid .cell.active-after:nth-child(1):after {
        transform: rotate(15deg) translateX(calc(45% + 10px));
        top: -15px;
        right: 0;
    }

    .ourvalues .grid .cell:nth-child(2):before {
        transform: rotate(0deg) translateX(calc(-220% - 10px)) translateY(-1px);
        top: 0;
        left: 0;
        transition-delay: 0.4s;
    }

    .ourvalues .grid .cell.active-before:nth-child(2):before {
        transform: rotate(5deg) translateX(calc(-120% - 10px)) translateY(-1px);
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell:nth-child(4):before {
        transform: rotate(10deg) translateX(calc(-244%)) translateY(-59%);
        top: 0;
        left: 0;
        transition-delay: 0.4s;
        transition: transform 0.9s ease-out, opacity 0.3s ease-out, width 0.3s ease-out, height 0.3s ease-out;
    }

    .ourvalues .grid .cell.active-before:nth-child(4):before {
        transform: rotate(34deg) translateX(calc(-244%)) translateY(-59%);
        top: 0;
        left: 0;
    }

    .ourvalues .grid .cell:nth-child(3):after {
        width: 1160px;
        height: 140px;
        transform: rotate(-15deg) translateY(calc(-25%)) translateX(-5%);
        transition-delay: 0.5s;
    }

    .ourvalues .grid .cell.active-after:nth-child(3):after {
        transform: rotate(-5deg) translateY(calc(100%)) translateX(-5%);
        width: 1160px;
        height: 140px;
    }

    .ourvalues .grid .cell:nth-child(5):after {
        width: 920px;
        height: 140px;
        transform: rotate(0deg) translateY(calc(100% + 20px)) translateX(-9%);
        transition-delay: 0.4s;

    }

    .ourvalues .grid .cell.active-after:nth-child(5):after {
        transform: rotate(9deg) translateY(calc(158% + 20px)) translateX(-9%);
        width: 920px;
        height: 140px;
    }

    .ourvalues .grid .cell:nth-child(6):after {
        width: 640px;
        height: 140px;
        transform: rotate(40deg) translateY(calc(0%)) translateX(-67%);
        transition-delay: 0.6s;
    }

    .ourvalues .grid .cell.active-after:nth-child(6):after {
        transform: rotate(22deg) translateY(calc(37%)) translateX(-67%);
        width: 640px;
        height: 140px;
    }





}

.stage-block .container {
    background: url('/upload/stage.jpg') no-repeat center center;
    background-size: cover;
    padding: 130px 15px 75px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .stage-block .container {
        padding: 190px 15px 130px;
        font-size: 26px;
        line-height: 36px;
    }

    .stage-block .container>div {
        padding-right: 30%;
    }
}

@media (min-width: 992px) {
    .stage-block .container {
        padding: 190px 15px 190px;
        font-size: 26px;
        line-height: 36px;
    }

    .stage-block .container>div {
        padding-right: 25%;
    }
}

@media (min-width: 1200px) {
    .stage-block .container {
        padding: 270px 15px 200px;
        font-size: 30px;
        line-height: 40px;
    }

    .stage-block .container>div {
        padding-right: 50%;
    }

}

.stage-block .content {
    opacity: 0;
    transform: translateX(-100px);
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.stage-block .content.active {
    opacity: 1;
    transform: translateX(0);
}

.services-block {
    background-color: #fff;
    color: #000;
}

.services-block .grid .inner-block>.number {
    grid-area: n;
}

.services-block .grid .inner-block>.title {
    grid-area: t;
}

.services-block .grid .inner-block>.description {
    grid-area: d;
}

.services-block .grid .inner-block>.arrow {
    grid-area: a;
    position: absolute;
    top: 5px;
    right: 0;
}

.services-block .grid .inner-block>.arrow img {
    width: 20px;
    height: 20px;
}

.services-block .grid .inner-block>.actions {
    grid-area: b;
}

.services-block .grid .inner-block {
    position: relative;
    display: grid;
    row-gap: 10px;
    column-gap: 20px;
    grid-template-columns: 25px 1fr;
    grid-template-areas:
        'n t'
        'n d'
        'n b';
    border-bottom: 1px solid #777;
    padding-bottom: 0 !important;
    margin-bottom: 20px;
    transition: all 0.3s ease-out;
}

.services-block .grid .inner-block .number {
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
    color: var(--primary-color);
}

.services-block .grid .inner-block .actions,
.services-block .grid .inner-block .description {
    margin-bottom: 20px;
}

.services-block .title {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    line-height: 18px;
    padding-right: 50px;
}

.services-block .description>b {
    display: block;
    margin-bottom: 10px;
}

.services-block .description .list {
    display: grid;
    gap: 10px;
    column-gap: 20px;
    grid-template-columns: 20px 1fr;
    mask-border: 5px;
}

.services-block .description .list p {
    margin: 0;
}

.services-block .grid .inner-block>.actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.services-block .description .list span {
    color: var(--primary-color);
    font-style: italic;
    font-size: 12px;
}

.services-block .title>span {
    display: flex;
    font-style: italic;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    text-transform: none;
}

.services-block .title>span>span {
    font-size: 20px;
    font-weight: 600;
    margin-left: 20px;
}

@media (min-width: 768px) {

    .services-block .grid .inner-block>.arrow img {
        width: 32px;
        height: 32px;
    }

    .services-block .title {
        font-size: 20px;
        line-height: 22px;
    }

    .services-block .grid .inner-block .number {
        font-size: 40px;
        font-weight: 500;
    }

    .services-block .grid .inner-block {
        grid-template-columns: 100px 1fr;
    }

    .services-block .block-header span {
        display: block;
    }

    .services-block .title>span {
        font-size: 16px;
        font-weight: 500;
    }

}

.services-block .block-header span {
    display: block;
}

@media (min-width: 992px) {
    .services-block .grid .inner-block {
        grid-template-areas:
            'n t d a'
            'n b d a';
        grid-template-columns: 150px 0.85fr 1.15fr 60px;
        grid-template-rows: auto 1fr;
        row-gap: 20px;
    }

    .services-block .grid .inner-block>.arrow {
        position: relative;
    }
}

@media (min-width: 1200px) {
    .services-block .title {
        font-size: 24px;
        line-height: 26px;
    }

    .services-block .grid .inner-block .number {
        font-size: 60px;
        line-height: 48px;
        font-weight: 500;
    }

    .services-block .grid .inner-block {
        grid-template-columns: 150px 1fr 1fr 60px;
    }

    .services-block .description .list span {
        line-height: 24px;
    }

    .services-block .title>span {
        font-size: 18px;
        font-weight: 500;
    }

    .services-block .title>span>span {
        font-size: 24px;
    }
}

.services-block .grid .inner-block {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.services-block .grid .inner-block.active {
    opacity: 1;
    transform: translateY(0);
}

.services-block .grid .inner-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.services-block .description, .services-block .actions {
    display: none;
    overflow: hidden;
}

.services-block .inner-block.open .description, .services-block .inner-block.open .actions {
    display: block;
}

.services-block .arrow img {
    transition: transform 0.3s ease;
    transform: rotate(45deg);
}

.services-block .arrow img.expanded {
    transform: rotate(0);
}

.tariffplan .container {
    position: relative;
}

.tariffplan .container>.reverse-text-2 {
    position: absolute;
    top: -50px;
    left: 50px;
    z-index: -1;
    display: block;
}

.tariffplan .container>.reverse-text-2 .reverse-text-4 {
    display: flex;
    flex-direction: column;
}

.tariffplan .container>.reverse-text-2 .reverse-text-3 {
    display: none;
}

@media (max-width: 767.98px) {
    .tariffplan .container>.reverse-text-2 .reverse-text-4 {
        display: none;
    }

    .tariffplan .container>.reverse-text-2 .reverse-text-3 {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .tariffplan .container>.reverse-text-2 {
        left: 100px;
    }
}

.tariffplan .grid>div {
    margin-bottom: 20px;
}

.tariffplan .grid .inner-block {
    padding: 30px 20px;
}

.tariffplan .grid .inner-block.plan-1 {
    border: 5px solid #777;
    background-color: #000;
}

.tariffplan .grid .inner-block.plan-2 {
    background-color: #fff;
    color: #000;
}

.tariffplan .grid .inner-block.plan-3 {
    border: 5px solid var(--primary-color);
    background-color: #000;
}

.tariffplan .container>.sub-title {
    display: block;
    padding-right: 25%;
    margin-bottom: 30px;
}

.tariffplan .grid .inner-block .title {
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tariffplan .grid .inner-block>i {
    display: block;
    text-align: center;
    font-weight: 500;
}

.tariffplan .grid .inner-block .sub-title {
    text-align: center;
    padding: 15px 25px 25px;
    font-weight: 600;
}

.tariffplan .grid .inner-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tariffplan .grid .inner-block ul>li {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.tariffplan .grid .inner-block ul>li:before {
    content: ' ';
    display: block;
}

.tariffplan .grid .inner-block ul.list-plan-1>li:before {
    flex: 0 0 7px;
    height: 7px;
    background-color: #777;
    transform: rotate(45deg);
    margin-top: 6px;
}

.tariffplan .grid .inner-block ul.list-plan-3>li:before {
    flex: 0 0 7px;
    height: 7px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    margin-top: 6px;
}

.tariffplan .grid .inner-block ul.list-plan-2>li:before {
    flex: 0 0 10px;
    height: 10px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    margin-top: 4px;
}

.tariffplan .grid .inner-block ul.list-stars {
    margin-top: 20px;
    margin-bottom: 30px;
}

.tariffplan .grid .inner-block ul.list-stars>li:before {
    content: '*';
    flex: 0 0 10px;
    height: 10px;
    margin-top: 0;
    color: #777;
    font-size: 26px;
    line-height: 28px;
}

.tariffplan .grid .inner-block .price {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
}

.tariffplan .grid .inner-block .action {
    text-align: center;
}

.tariffplan .grid .inner-block.plan-1>.title {
    color: #777;
}

@media (min-width: 768px) {
    .tariffplan .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    .tariffplan .container>.sub-title {
        padding-right: 58%;
    }

    .tariffplan .grid .inner-block .title,
    .tariffplan .grid .inner-block .price {
        font-size: 20px;
        line-height: 26px;
    }

    .tariffplan .grid .inner-block>i,
    .tariffplan .grid .inner-block .sub-title {
        font-size: 16px;
        line-height: 20px;
    }
}

@media (min-width: 1200px) {
    .tariffplan .grid .inner-block ul.list-plan-1>li:before {
        margin-top: 8px;
    }

    .tariffplan .grid .inner-block ul.list-plan-3>li:before {
        margin-top: 8px;
    }

    .tariffplan .grid .inner-block ul.list-plan-2>li:before {
        margin-top: 6px;
    }

    .tariffplan .grid .inner-block ul.list-stars>li:before {
        line-height: 32px;
    }

    .tariffplan .grid .inner-block .title,
    .tariffplan .grid .inner-block .price {
        font-size: 24px;
        line-height: 30px;
    }

    .tariffplan .grid .inner-block.plan-2 {
        font-weight: 600;
    }
}

.tariffplan .contacts-form-block {
    margin-top: 100px;
}

.tariffplan .contacts-form-block .form-control {
    background-color: #000;
}

.tariffplan .contacts-form-block .title {
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
    margin-bottom: 40px;
}

.tariffplan .contacts-form-block .action .btn {
    width: 100%;
}

.tariffplan .contacts-form-block .contacts-form {
    margin-top: 30px;
}

.tariffplan .contacts-form-block .action {
    margin-top: 20px;
}

@media (max-width: 767.98px) {
    .tariffplan .contacts-form-block .image {
        margin: 0 -15px;
        text-align: right;
    }
}

@media (min-width: 768px) {
    .tariffplan .contacts-form-block .image {
        display: none;
    }

    .tariffplan .contacts-form-block {
        background: url('/upload/contacts-img.jpg') no-repeat bottom right;
    }

    .tariffplan .contacts-form-block .contacts-form {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 100px;
    }

    .tariffplan .contacts-form-block .title {
        font-size: 26px;
        line-height: 36px;
    }
}

@media (min-width: 992px) {
    .tariffplan .contacts-form-block .title span {
        display: block;
        text-align: right;
    }
}

@media (min-width: 1200px) {
    .tariffplan .contacts-form-block .title {
        font-size: 30px;
        line-height: 40px;
    }

    .contacts-form-block .title font,
    .contacts-form-block .title span {
        opacity: 0;
        position: relative;
        transition: transform 1s ease-out, opacity 1s ease-out;
        display: block;
    }

    .contacts-form-block .title font {
        transform: translateX(-100px);
    }

    .contacts-form-block .title span {
        transform: translateX(100px);
    }

    /* Активное состояние */
    .contacts-form-block .title.active font,
    .contacts-form-block .title.active span {
        opacity: 1;
        transform: translateX(0);
    }
}

.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
    /* Скрыть стандартный чекбокс */
}

.custom-checkbox label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 12px;
}

.custom-checkbox label a {
    text-decoration: underline;
}

.custom-checkbox label a:hover {
    text-decoration: none;
}

.custom-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #777;
    /* Граница чекбокса */
    border-radius: 4px;
    /* Скругленные углы */
    background-color: transparent;
}

.custom-checkbox input[type="checkbox"]:checked+label::before {
    background-color: transparent;
    /* Цвет фона чекбокса при выборе */
    border-color: #777;
}

.custom-checkbox input[type="checkbox"]:checked+label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    /* Галочка белого цвета */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-group .form-control {
    height: 50px;
    background-color: transparent;
    color: #fff;
    border-color: #777;
}

.form-group .form-control:focus,
.form-group .form-control:active {
    border-color: #fff;
    outline: none;
    box-shadow: none;
}


.cases {
    background-color: #fff;
    color: #000;
}

.cases .subtitle {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 26px;
}

.case-block .case-title {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

.case-block .case-title span {
    display: block;
    font-size: 12px;
}

.case-block .inner-block {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #777;
}

.case-block .inner-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.case-block .inner-block>.image {
    margin-bottom: 15px;
}

.case-block .about .person-block .image {
    margin-right: 10px;
}

.case-block .about .person-block .image>div {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.case-block .about .person-block .image>div>img {
    object-fit: cover;
    height: 100%;
    max-width: 100%;
}

.case-block .person-block {
    display: flex;
    flex-wrap: wrap;
    ;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #777;
    border-radius: 5px;
    padding: 15px 15px 10px 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.case-block .person-block .title {
    flex: 1 0 100%;
    padding-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.case-block .person-block .posts,
.case-block .person-block .followers,
.case-block .person-block .following {
    font-weight: 500;
    text-align: center;
    flex: 0 0 20%;
}

.case-block .person-block .posts span,
.case-block .person-block .followers span,
.case-block .person-block .following span {
    display: block;
    font-weight: 400;
}

.case-block .person-block .name {
    flex: 1 0 100%;
    margin-top: 10px;
    font-weight: 500;
}

.case-block .person-block a {
    color: #000;
}

@media (min-width: 768px) {
    .case-block .inner-block {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
            't t t'
            'i d a';
        column-gap: 20px;
    }

    .case-block .inner-block .case-title {
        grid-area: t;
    }

    .case-block .inner-block>.image {
        grid-area: i;
        height: 100%;
    }

    .case-block .inner-block .description {
        grid-area: d;
    }

    .case-block .inner-block .about {
        grid-area: a;
    }

    .case-block .person-block {
        margin-top: 0;
    }

    .case-block .about .person-block .image>div {
        width: 50px;
        height: 50px;
    }

    .case-block .about .person-block {
        font-size: 8px;
    }

    .case-block .about .text {
        font-weight: 500;
    }

    .case-block .inner-block .image>img {
        object-fit: cover;
        height: 320px;
    }

    .case-block .inner-block .case-title {
        font-size: 20px;
        line-height: 30px;
    }

    .case-block .case-title span {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .case-block .about .person-block {
        font-size: 12px;
    }
}

@media (min-width: 1200px) {
    .case-block .about .person-block {
        font-size: 14px;
    }

    .case-block .inner-block .case-title {
        font-size: 24px;
        line-height: 34px;
    }

    .case-block .case-title span {
        font-size: 18px;
    }

    .case-block .about .person-block .image>div {
        width: 80px;
        height: 80px;
    }
}

.case-block .inner-block {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.case-block .inner-block.active {
    opacity: 1;
}

.blue-cta {
    overflow: hidden;
    background-color: var(--primary-color);
    text-align: center;
}

.blue-cta .text {
    text-align: left;
}

.blue-cta h2 {
    margin-bottom: 40px;
}

.blue-cta .sub-title {
    font-weight: 500;
    padding: 0 50px;
}

.blue-cta .action {
    margin-top: 40px;
    margin-bottom: 50px;
}

.blue-cta .container {
    position: relative;
    overflow: visible;
}

.blue-cta .container>div,
.blue-cta .container>h2 {
    position: relative;
    z-index: 2;
}

.blue-cta {
    position: relative;
}

@media (max-width: 767.98px) {
    .blue-cta:after {
        position: absolute;
        content: '';
        background: url('/upload/books-mobile.svg') no-repeat;
        display: block;
        width: 175px;
        height: 426px;
        z-index: 1;
        top: 25px;
        right: -15px;
    }
}

@media (min-width: 768px) {
    .blue-cta .wrapper {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .blue-cta .container:after {
        position: absolute;
        content: '';
        background: url('/upload/books-right.svg') no-repeat;
        background-size: 200px 450px;
        display: block;
        width: 200px;
        height: 450px;
        z-index: 1;
        top: 0;
        right: -70px;
    }

    .blue-cta .container:before {
        position: absolute;
        content: '';
        background: url('/upload/books-left.svg') no-repeat;
        background-size: 200px 450px;
        display: block;
        width: 200px;
        height: 450px;
        z-index: 1;
        top: 0;
        left: -70px;
    }

    .blue-cta .text {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .blue-cta .container:after {
        background-size: 250px 450px;
        width: 250px;
        height: 550px;
        right: -25px;
    }

    .blue-cta .container:before {
        background-size: 250px 450px;
        width: 250px;
        height: 550px;
        left: -25px;
    }

    .blue-cta .container .inner-block {
        max-width: 900px;
        margin: 0 auto;
    }

    .blue-cta .container .inner-block .text {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1200px) {

    .blue-cta .wrapper,
    .roadmap-block .wrapper {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

.roadmap-block .container {
    position: relative;
}

.roadmap-block .container .reverse-text-2 {
    position: absolute;
    top: -50px;
    left: 0;
    z-index: -1;
}

.roadmap-block .container .reverse-text-2 .reverse-text-6 {
    display: none;
}

@media (max-width: 767.98px) {

    .roadmap-block .container .reverse-text-2 {
        left: auto;
        right: 50px;
    }

    .roadmap-block .container .reverse-text-2 {
        display: flex !important;
        flex-direction: column;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-3 {
        display: none;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-4 {
        display: flex;
        flex-direction: column;
    }
}


@media (min-width: 768px) {
    .roadmap-block .container .reverse-text-2 {
        display: flex;
        justify-content: space-between;
        right: 20px;
        left: 120px;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-3,
    .roadmap-block .container .reverse-text-2 .reverse-text-4 {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-4>img:last-child {
        display: none;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-4 {
        margin-top: 560px;
    }
}

@media (min-width: 992px) {
    .roadmap-block .container .reverse-text-2 {
        right: 85px;
        left: 230px;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-4 {
        margin-top: 460px;
    }

}

@media (min-width: 1200px) {
    .roadmap-block .container .reverse-text-2 {
        right: 50px;
        left: 290px;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-4 {
        display: none;
    }

    .roadmap-block .container .reverse-text-2 .reverse-text-6 {
        margin-top: 560px;
        display: flex;
        flex-direction: column;
    }

    .roadmap-block .container .reverse-text-2 {
        top: -80px;
    }
}

.contacts-form textarea {
    min-height: 75px;
}

.contacts-form-3 {
    background: url('/upload/contacts-bg.png') no-repeat center center;
}

.contacts-form-3 .form-group .form-control {
    background-color: #1D1D1D;
}

.contacts-form-2 .inner-block {
    background-color: #1D1D1D;
    padding: 50px 15px;
    border-radius: 5px;
}

.contacts-form-2.contacts-form-3 .inner-block {
    background-color: transparent;
}

.contacts-form-2 .h3 {
    font-size: 18px;
    line-height: 26px;
}

.contacts-form-2 .action {
    margin-top: 15px;
}

.contacts-form-2 .action .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .contacts-form-2 .inner-block {
        padding: 50px;
    }

    .contacts-form-2 .h3 {
        font-size: 26px;
        font-weight: 500;
        line-height: 36px;
        margin-bottom: 20px;
    }

    .contacts-form-2 .contacts-form {
        max-width: 355px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .contacts-form-2 .inner-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 20px;
    }

    .contacts-form-2 .contacts-form {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .contacts-form-2 .inner-block {
        padding: 100px 120px;
        gap: 50px;
    }

    .contacts-form-2 .h3 {
        font-size: 30px;
        line-height: 40px;
    }


}

footer {
    background-color: #1D1D1D;
    padding: 30px 0;
    color: #fff;
}

footer a,
.not-firstpage footer a:hover {
    color: #fff !important;
}



footer .payments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

footer .grid .logo {
    grid-area: l;
}

footer .grid .menu {
    grid-area: m;
}

footer .grid .contacts {
    grid-area: c;
}

footer .grid .payments {
    grid-area: p;
}

footer .grid .copyright {
    grid-area: co;
}

footer .grid .privacy {
    grid-area: pr;
}

footer .social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

footer .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .privacy p {
    margin-bottom: 0;
}

footer .contacts .icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

@media (max-width: 991.98px) {
    footer .grid {
        display: grid;
        grid-template-areas:
            'l m'
            'c c'
            'p p'
            'co pr';
    }

    footer .payments {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    footer .contacts {
        margin-top: 50px;
    }
}

@media (max-width: 575.98px) {
    footer .grid {
        display: grid;
        grid-template-areas:
            'l m'
            'c c'
            'p p'
            'pr pr'
            'co co';
    }

    footer .copyright,
    footer .privacy {
        text-align: center;
    }

    footer .copyright {
        margin-top: 15px;
    }
}

@media (min-width: 992px) {
    footer .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
            'l m c'
            'co pr p';
    }

    footer .payments,
    footer .copyright,
    footer .privacy {
        align-self: flex-end;
        margin-top: 50px;
    }

    footer .payments {
        justify-content: flex-start;
    }
}

.questions-block .block-header {
    grid-template-columns: 1fr;
}

.questions-block a {
    text-decoration: underline;
}

.questions-block a:hover {
    text-decoration: none;
    color: #fff;
}

.questions-block .grid .inner-block {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #777;
}

.questions-block .grid .inner-block .text {
    flex: 1 1 auto;
}

.questions-block .grid .inner-block .text .question {
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
}

.questions-block .grid .inner-block .text .answer {
    margin-top: 10px;
    display: none;
}



.questions-block .grid .inner-block .number {
    color: var(--primary-color);
    font-size: 14px;
    line-height: 18px;
    font-style: italic;
}

@media (min-width: 768px) {
    .questions-block .grid .inner-block {
        gap: 20px;
    }

    .questions-block .grid .inner-block .number {
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
    }

    .questions-block .grid .inner-block .text .question {
        font-size: 20px;
        line-height: 24px;
    }
}

@media (min-width: 1200px) {
    .questions-block .grid .inner-block .text .question {
        font-size: 24px;
        line-height: 28px;
    }

    .questions-block .grid .inner-block {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .questions-block .wrapper {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

.questions-block .grid .inner-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Ссылка-контейнер */
.plus-minus {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    /* Убираем подчеркивание */
}

/* Горизонтальная линия (минус) */
.plus-minus::before,
.plus-minus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

/* Вертикальная линия (плюс) */
.plus-minus::after {
    transform: rotate(90deg);
}

/* Превращение в минус */
.plus-minus.active::after {
    transform: rotate(0deg);
}

/* Адаптивные стили */
@media (max-width: 1199px) {
    .plus-minus {
        width: 30px;
        height: 30px;
    }

    .plus-minus::before,
    .plus-minus::after {
        height: 4px;
        /* Линии становятся тоньше */
    }
}

@media (max-width: 991px) {
    .plus-minus {
        width: 20px;
        height: 20px;
    }

    .plus-minus::before,
    .plus-minus::after {
        height: 3px;
        /* Линии ещё тоньше */
    }
}

.gift-block .inner-block {
    background-color: #1D1D1D;
    padding: 50px 16px;
    border-radius: 5px;
}

.gift-block .inner-block .text {
    margin-top: 30px;
}

.gift-block .inner-block .grid .boxes {
    display: none;
}

@media (max-width: 767.98px) {
    .gift-block .block-header h4 {
        display: none;
    }
}

@media (min-width: 768px) {
    .gift-block .inner-block {
        padding: 70px 45px;
    }

    .gift-block .inner-block .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
    }

    .gift-block .inner-block .grid h3 {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    .gift-block .inner-block .grid {
        grid-template-columns: 0.75fr 1fr 0.75fr;
        gap: 30px;
    }

    .gift-block .inner-block .grid .boxes {
        display: block;
        text-align: right;
    }
}

@media (min-width: 1200px) {
    .gift-block .inner-block {
        padding: 100px 80px;
    }

    .gift-block .inner-block .grid h3 {
        font-size: 18px;
        line-height: 24px;
    }
}

.author-talk-video {
    background-color: #000;
}

.author-talk-video h3 {
    color: #fff;
}


.youtube-block .block-header {
    grid-template-columns: 1fr;
}

.youtube-block .video-block .inner-block {
    margin-bottom: 30px;
}

.video-block .inner-block {
    overflow: hidden;
}

.video-block .inner-block a {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
}

.video-block .inner-block a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: inherit;
}

.youtube-block .text {
    width: 80%;
    margin-bottom: 30px;
}

.youtube-block .sub-title {
    text-align: center;
    padding-right: 50px;
    font-weight: 600;
    margin-bottom: 30px;
}

.youtube-block .sub-title span {
    display: block;
    padding-left: 100px;
}

.youtube-block .action {
    text-align: center;
}

@media (min-width: 992px) {
    .youtube-block .container {
        position: relative;
    }

    .youtube-block .video-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .youtube-block .video-block .inner-block {
        margin-bottom: 0;
    }

    .youtube-block .container .text {
        position: absolute;
        bottom: 0;
        left: 15px;
        width: 35%;
        margin-bottom: 0;
        text-align: justify;
    }

    .youtube-block .sub-title {
        margin-top: 30px;
    }
}

#landing-about-us-catalog,
.founder-block,
.youtube-block {
    background-color: #000;
    color: #fff;
}

.founder-block .image>div {
    position: relative;
}

.founder-block .image>div .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.founder-block .image>div .overlay>div {
    font-size: 30px;
    line-height: 36px;
    font-weight: 800;
    text-align: center;

}

.founder-block .image>div .overlay>div span {
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.founder-block .image>div .overlay>div.works {
    position: absolute;
    bottom: 15px;
    left: 25px;
}

.founder-block .image>div .overlay>div.books {
    position: absolute;
    bottom: 50px;
    right: 25px;
}

.founder-block .image>div .overlay>div.years {
    position: absolute;
    top: 50%;
    left: 25px;
}

.founder-block .image>div {
    margin-bottom: 30px;
}

.founder-block .action {
    margin-top: 30px;
    display: flex;
    gap: 30px;
}

.founder-block .action .btn-instagram {
    width: 50px;
    padding: 0;
}

.founder-block .text .title {
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
}

.founder-block .text .description {
    padding-left: 15px;
    border-left: 1px solid var(--primary-color);
}

@media (min-width: 768px) {
    .founder-block .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .founder-block .text .title {
        font-size: 20px;
        line-height: 24px;
    }

    .founder-block .action .btn-instagram {
        width: 60px;
    }
}

@media (min-width: 992px) {
    .founder-block .grid {
        align-items: center;
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .founder-block .text .title {
        font-size: 24px;
        line-height: 28px;
    }

    .founder-block .block-header {
        grid-template-columns: 1.3fr 0.7fr;
    }

    .founder-block .wrapper {
        padding: 100px 0;
    }

    .founder-block .image>div .overlay>div {
        font-size: 40px;
        line-height: 46px;
    }

    .founder-block .image>div .overlay>div span {
        font-size: 20px;
        line-height: 26px;
    }

    .founder-block .image>div .overlay>div.years {
        left: 50px;
    }

    .founder-block .image>div .overlay>div.books {
        right: 50px;
        bottom: 100px;
    }

    .founder-block .image>div .overlay>div.works {
        left: 50px;
        bottom: 25px;
    }
}

/* Убираем стандартные стили кнопок */
#custom-controls button {
    all: unset;
    /* Сбрасывает все стили кнопки */
    cursor: pointer;
}

/* Центрирование кнопок под слайдером */
#custom-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    /* Отступ сверху */
    gap: 20px;
    /* Отступ между кнопками */
}

/* Стили для картинок */
#custom-controls button img {
    width: 40px;
    height: 40px;
}

.reviews-block video {
    width: 100%;
    height: auto;
}

.reviews-block .my-slider {
    display: flex;
}

.reviews-block #tns1>.tns-item .image-slide {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    height: calc(100% - 23px);
    margin-top: 8px;
    padding: 15px;
}

.reviews-block #tns1>.tns-item .image-slide img {
    border-radius: 8px;
}

@media (max-width: 575.98px) {
    .reviews-block video {
        min-height: 298px;
    }
}

@media (min-width: 390px) {
    .reviews-block video {
        height: 311px;
    }
}

@media (min-width: 430px) {
    .reviews-block video {
        height: 347px;
    }
}

@media (min-width: 576px) {
    .reviews-block video {
        height: 444px;
    }
}

@media (min-width: 768px) {
    .reviews-block video {
        height: 595px;
    }
}

@media (min-width: 992px) {
    .reviews-block video {
        height: 526px;
    }
}

@media (min-width: 1200px) {
    .reviews-block video {
        height: 650px;
    }
}

/* Затемняющий фон */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Окошко */
.mini-modal {
    background-color: #1D1D1D;
    color: #FFFFFF;
    padding: 20px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Заголовок */
.mini-modal h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #FFFFFF;
}

/* Текст */
.mini-modal p {
    margin: 0 0 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Кнопка закрытия */
.mini-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.mini-modal .modal-body {
    padding: 0;
}

.mini-modal-close:hover {
    color: var(--primary-color);
}

#bookModal .btn {
    width: 100%;
}

#bookModal label {
    text-align: left;
    width: 100%;
}

#bookModal .custom-checkbox {
    text-align: left;
    color: #777;
    margin-bottom: 5px;
}

#bookModal .custom-checkbox a {
    color: #777;
}

#bookModal #uploadLabel img {
    margin-left: 10px;
}

@media (min-width: 576px) {
    .mini-modal {
        max-width: 450px;
    }
}

.cross {
    position: relative;
    width: 18px;
    height: 18px;
}

.cross::before,
.cross::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: var(--primary-color);
    /* Цвет линии */
    border-radius: 1px;
    /* Скругленные края */
}

.cross::before {
    transform: rotate(45deg);
}

.cross::after {
    transform: rotate(-45deg);
}

.is-invalid {
    border-color: #dc3545 !important;
}

.generated-book {
    margin-top: 20px;
}

.generated-book img {
    margin-bottom: 20px;
}

.video-block iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-block .inner-block {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
}

.video-block .inner-block iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .reverse-text-2 {
        opacity: 0.5;
    }
}

.modal-product-show {
    color: #000;
}

.modal-product-show .add-to-cart {
    height: 40px;
    width: 100%;
    margin-top: 15px;
}

.scrolltop {
    position: fixed;
    bottom: 100px;
    right: 15px;
    display: none;
    cursor: pointer;
}

/* Spinner preloader */
.sk-spinner-circle.sk-spinner {
    margin: 0 auto;
    width: 22px;
    height: 22px;
    position: relative;
}

.sk-spinner-circle .sk-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.sk-spinner-circle .sk-circle:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 20%;
    height: 20%;
    background-color: #1ab394;
    border-radius: 100%;
    -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out;
    animation: sk-circleBounceDelay 1.2s infinite ease-in-out;
    /* Prevent first frame from flickering when animation starts */
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.sk-spinner-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
}

.sk-spinner-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg);
}

.sk-spinner-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sk-spinner-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
}

.sk-spinner-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
}

.sk-spinner-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.sk-spinner-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg);
}

.sk-spinner-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg);
}

.sk-spinner-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.sk-spinner-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg);
}

.sk-spinner-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg);
}

.sk-spinner-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-spinner-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-spinner-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.sk-spinner-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.sk-spinner-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}

.sk-spinner-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}

.sk-spinner-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.sk-spinner-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}

.sk-spinner-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}

.sk-spinner-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}

.sk-spinner-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleBounceDelay {

    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes sk-circleBounceDelay {

    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/* Loader background with spinner */
.loader {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

.loader .sk-spinner-circle {
    width: 50px;
    height: 50px;
    right: 50px;
    bottom: 50px;
    margin: 0;
    position: absolute;
}

.loader .sk-spinner-circle .sk-circle:before {
    background-color: #fff;
}

.error404 {
    text-align: center;
}

.error404 .container {
    background: url('/upload/404bg.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 450px;
    color: var(--primary-color);
}

.error404 .title {
    font-size: 40px;
    font-weight: 600;
    line-height: 50px;
}

.error404 .subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    margin-top: 20px;
}

.error404 p {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    margin-top: 20px;
}

.error404 .btn-primary {
    gap: 10px;
    color: #fff;
}

.error404 .btn-primary:hover {
    color: #fff !important;
}

@media (min-width: 768px) {
    .error404 .container {
        height: 450px;
    }

    .error404 .title {
        font-size: 90px;
        line-height: 100px;
    }

    .error404 .subtitle {
        font-size: 26px;
        line-height: 32px;
    }

    .error404 p {
        font-size: 16px;
        line-height: 20px;
    }
}

@media (min-width: 992px) {
    .error404 .container {
        height: 609px;
    }
}

@media (min-width: 1200px) {
    .error404 .container {
        height: 755px;
    }

    .error404 .title {
        font-size: 120px;
        line-height: 130px;
    }

    .error404 .subtitle {
        font-size: 30px;
        line-height: 36px;
    }

    .error404 p {
        font-size: 18px;
        line-height: 24px;
    }
}

.breadcrumb {
    background: none;
}

.breadcrumb a {
    color: #777;
}

.breadcrumb .separator {
    margin-left: 10px;
    margin-right: 10px;
    display: inline-block;
}


.btn-white-outline {
    background-color: #fff;
    border: 2px solid #000;
    color: #000;
    height: 50px;
}

.btn-white-outline span:after {
    background-color: #000;
}

.btn-black {
    background-color: #000;
    border: 2px solid #000;
    color: #fff !important;
    height: 50px;
    position: relative;
}

.btn-black:hover,
.btn-black:focus,
.btn-black:active {
    color: #fff !important;
}

.btn-black span,
.btn-white-outline span {
    position: relative;
}

.btn-black span:after,
.btn-white-outline span:after,
.btn span:after {
    bottom: -6px;
}

.product-preview-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

}

.product-preview-actions .btn {
    padding-left: 10px;
    padding-right: 10px;
}

.product-block .inner-block {
    height: 100%;

    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    gap: 0px;
    background-color: #fff;
}

.product-block .inner-block:hover {
    border: 1px solid #000;
}

.product-block .inner-block .image {
    height: 255px;
    margin-bottom: 15px;
}

.product-block .inner-block .title {
    margin-bottom: 10px;
}

.product-block .inner-block .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-block .inner-block .price {
    font-size: 18px;
    line-height: 28px;
    color: #000;
    font-weight: 600;
}

.product-block .inner-block .author {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 18px;
}

.product-block .inner-block .description {
    margin-bottom: 15px;
}

.product-block .inner-block .product-preview-actions {
    margin-top: 15px;
}

@media (min-width: 1200px) {
    .product-block {
        position: relative;
    }

    .product-block .inner-block .product-preview-actions {
        display: none;
    }

    .product-block .inner-block:hover {
        position: absolute;
        left: 15px;
        right: 15px;
        top: 0;
        height: auto;
        z-index: 1000;

    }

    .product-block .inner-block:hover .product-preview-actions {
        display: grid;
    }
}

@media (max-width: 1199px) {
    .product-block .inner-block {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-block .inner-block .title .h3 {
        font-size: 20px;
        line-height: 28px;
        font-weight: 600;
    }

    .product-block .inner-block .author {
        font-size: 16px;
    }

    .product-block .inner-block .description {
        flex: 1 0 auto;
        font-size: 14px;
        line-height: 20px;
    }

    .product-block .inner-block .product-preview-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .product-block .inner-block .image {
        height: 175px;
    }
}

.paging {
    padding-top: 25px;
    padding-bottom: 25px;
    text-align: center;
}

.paging .btn {
    height: auto;
    padding: 8px 12px;
}


.MagicZoom {
    position: relative;
    display: block;
    width: 100%;
}

.MagicZoom>.mz-figure {
    width: 100%;
    height: 400px;
    position: relative;
    text-align: center;
}

.MagicZoom>.mz-figure>img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.MagicScroll {
    margin-top: 15px !important;
}

.MagicScroll .mcs-item img {
    border-radius: 0 !important;
    border: 1px solid #777;
    padding: 0 !important;
}

.MagicScroll .mcs-item .mz-thumb-selected img,
.mz-thumb:not(.mz-thumb-selected):hover img {
    border: 1px solid #777 !important;
}

.shop.product .info {
    margin-top: 25px;
}

.shop.product h1 {
    font-size: 22px;
    line-height: 32px;
    font-weight: 500;
}

.product-sale {
    display: none;
}

.shop.product .price {
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 15px;
}

.shop.product .price strike,
.product-block strike {
    display: block;
    font-size: 18px;
    line-height: 28px;
    color: #777;
}

.product-block strike {
    font-size: 14px;
}

.shop.product .qty-block {
    max-width: 150px;
}

.shop.product .actions {
    margin-top: 15px;
}

@media (min-width: 768px) {
    .shop.product h1 {
        font-size: 38px;
        line-height: 48px;
    }
}

@media (min-width: 1200px) {
    .shop.product h1 {
        font-size: 40px;
        line-height: 50px;
    }
}

.attributes .attribute {
    display: flex;
    align-items: center;
    gap: 15px;
}

.attribute input[type="radio"] {
    display: none;
}

.product-attribute-label {
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 16px;
    color: #777;
    font-weight: 600;
}

.product-attribute-label .child_price {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-top: 5px;
}

input:disabled+label.product-attribute-label {
    opacity: 0.25;
    cursor: not-allowed;
}

input[type="radio"]:checked+label.product-attribute-label {
    border: 2px solid #3C69FF;
}

button:disabled,
button[disabled] {
    opacity: 0.5;
    cursor: default;
    background-color: #777 !important;
    border-color: #777 !important;
}

.img-gallery.row {
    row-gap: 30px;
}

.post.event .image {
    margin-bottom: 15px;
    height: 220px;
}

.post.event .image img {
    width: 100%;
    height: 100%;
    object-position: top;
    object-fit: cover;

}

.post.event .page-header {
    font-size: 22px;
    line-height: 32px;
    font-weight: 500;
    margin-bottom: 15px;
}

.post.event .event-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.post.event .event-header>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post.event .post-text {
    margin-bottom: 50px;
}

.about-author,
.about-book,
.about-video,
.about-gallery {
    margin-bottom: 50px;
}

.about-author h3 span,
.about-book h3 span,
.about-video h3 span,
.about-gallery h3 span {
    font-style: italic;
}

.about-author h3,
.about-book h3,
.about-video h3,
.about-gallery h3 {
    font-size: 22px;
    line-height: 32px;
    font-weight: 400;
    text-transform: uppercase;
}

#landing-events .blog {
    margin-top: 30px;
}

.founder-block .image {
    color: #fff;
}

#landing-about-us-catalog.wrapper {
    padding-top: 100px;
}

@media (max-width: 767px) {
    #landing-about-us-catalog.wrapper {
        padding-top: 50px;
    }
}

#landing-about-us-catalog h2 {
    margin-bottom: 30px;
}

.row.blog-block {
    row-gap: 30px;
}

.blog .inner-block .title {
    margin-bottom: 10px;
}

.blog .inner-block .title a {
    color: #000;
}

.blog .inner-block .image {
    margin-bottom: 15px;
}

@media (min-width: 576px) {
    .post.event .image {
        height: 300px;
    }

    .post.event .page-header {
        font-size: 36px;
        line-height: 46px;
        font-weight: 600;
    }

    .about-author h3,
    .about-book h3,
    .about-video h3,
    .about-gallery h3 {
        font-size: 40px;
        line-height: 50px;
        font-weight: 500;
        margin-bottom: 30px;
    }
}

@media (min-width: 992px) {
    .post.event .image {
        height: 420px;
    }

    .post.event .event-header {
        flex-direction: row;
        align-items: center;
    }

    .post.event .post-text {
        columns: 2;
    }
}

@media (min-width: 1200px) {
    .post.event .image {
        height: 550px;
    }

    .post.event .page-header {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 20px;
    }
}

#landing-events,
#landing-books {
    color: #000;
}

#landing-books {
    padding-bottom: 75px;
}

#landing-books a {
    color: #000;
}

#landing-events .primary-color,
#landing-books .primary-color {
    color: var(--primary-color);
}

#landing-catalog .inner-block {
    position: relative;
}

#landing-catalog .inner-block .overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
}

#landing-catalog .inner-block .title {
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    #landing-catalog .inner-block .title {
        font-size: 26px;
        line-height: 36px;
        font-weight: 600;
    }
}

@media (min-width: 1200px) {
    #landing-catalog .inner-block .title {
        font-size: 30px;
        line-height: 40px;
        font-weight: 600;
    }
}

#landing-carousel,
#landing-carousel .carousel-item {
    height: 500px;
}

#landing-carousel .carousel-caption {
    font-size: 26px;
    line-height: 40px;
    font-weight: 400;
}

#landing-carousel .carousel-caption p {
    margin-bottom: 0;
    text-transform: uppercase;
}

#landing-carousel .carousel-caption p:first-child {
    font-weight: 500;
    text-align: left;
}

#landing-carousel .carousel-caption p:last-child {
    font-style: italic;
    text-align: right;
}

#landing-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#landing-carousel .carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    #landing-carousel .carousel-caption {
        font-size: 40px;
        line-height: 50px;
    }

    #landing-carousel .carousel-caption p:first-child {
        font-weight: 700;
    }

    #landing-carousel .carousel-caption p:last-child {
        font-weight: 500;
    }
}

@media (min-width: 992px) {

    #landing-carousel,
    #landing-carousel .carousel-item {
        height: 680px;
    }
}

@media (min-width: 1200px) {

    #landing-carousel,
    #landing-carousel .carousel-item {
        height: 750px;
    }

    #landing-carousel .carousel-caption {
        font-size: 52px;
        line-height: 62px;
    }
}

.checkout {
    margin-bottom: 50px;
}

.checkout .form-control {
    color: #000;
}

.checkout .form-control:hover,
.checkout .form-control:active,
.checkout .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.novaposhta-warehouses .btn {
    height: auto;
    text-transform: none;
    font-size: 14px;
    line-height: 24px;
    padding: 8px 12px;
}

.novaposhta-box .form-group {
    position: relative;
}

.novaposhta-box .form-group .city-search {
    max-height: 250px;
    min-width: 250px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    background: #fff;
    z-index: 999;
    display: none;
    border: 1px solid #777;
}

.city-search a {
    display: block;
    text-decoration: none;
    padding: 6px 10px;
}

.city-search a:hover {
    background: #5897fb;
    color: #fff;
    text-decoration: none;
}

.checkout-table-cart {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.checkout-table-cart>.inner-block {
    border-bottom: 1px solid #000;
    padding-bottom: 20px;
}

.checkout-table-cart>.inner-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-table-cart .inner-block .image {
    grid-area: image;
}

.checkout-table-cart .inner-block .description {
    grid-area: description;
}

.checkout-table-cart .inner-block .quantity {
    grid-area: quantity;
}

.checkout-table-cart .inner-block .price {
    grid-area: price;
    text-align: right;
    font-weight: 600;
}

.checkout-table-cart .inner-block .delete {
    grid-area: delete;
}

.checkout-table-cart .inner-block .empty {
    grid-area: empty;
}

.checkout-table-cart>.inner-block {
    display: grid;
    grid-template-areas:
        "delete image description"
        "empty quantity price";
    align-items: center;
    grid-template-columns: auto 100px 1fr;
    gap: 20px;
}

.cart-total {
    margin-bottom: 40px;
}

.btn.btn-update-cart {
    height: 40px;
}

#form-order {
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .checkout-table-cart>.inner-block {
        display: grid;
        grid-template-areas: "delete image description quantity price";
        grid-template-columns: auto 150px 1fr 150px 100px;
        gap: 15px;
        align-items: center;
    }

    .checkout-table-cart .inner-block .image {
        width: 150px;
    }

    .checkout-table-cart .inner-block .empty {
        display: none;
    }
}

.discount-block .btn,
.discount-block input {
    height: 47px;
    border-radius: 0;
}

.discount-block .btn {
    background-color: #000;
    border-color: #000;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 500;
}

.discount-block input {
    border: 1px solid #777;
    padding-left: 10px;
    padding-right: 10px;
}

#form-order h3,
#form-order h4 {
    font-weight: 500;
    text-transform: uppercase;
}

.checkout-actions {
    margin-top: 30px;
}

.shop.payment {
    margin-bottom: 50px;
}

.checkout .page-header {
    margin-bottom: 25px;
}

.available {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    margin-bottom: 15px;
}

.available>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.available .in-stock {
    color: #537A43;
}

.available .out-of-stock {
    color: #777;
}

.select2-container--default .select2-selection--single {
    height: 50px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: auto;
}

.shopping-cart-mini a {
    display: inline-block;
    position: relative;
}

.shopping-cart-mini a .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
}

.qty-block {
    margin-top: 15px;
    margin-bottom: 25px;
}

.qty-block>.inner-block {
    margin-top: 10px;
}

.qty-block .form-control,
.qty-block button,
.qty-checkout-block .form-control,
.qty-checkout-block button {
    height: 25px;
    color: #000;
    text-align: center;
}

.qty-block button,
.qty-checkout-block button {
    width: 25px;
    flex: 0 0 25px;
    background-color: #fff;
    border: 1px solid #000;
    font-size: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.qty-block .form-control,
.qty-checkout-block .form-control {
    margin-bottom: 0;
}

.qty-checkout-block .form-control,
.qty-block .form-control {
    border-radius: 0;
    border: 0;
}

.qty-block .inner-block,
.qty-checkout-block .inner-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.categorybox-dropdown {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 50px;
    font-weight: 500;
}

@media (min-width: 576px) {
    .categorybox-menu {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .categorybox-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        color: #777;
        border: 1px solid #777;
        border-radius: 4px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .categorybox-menu a:hover,
    .categorybox-menu a.active,
    .categorybox-menu a:focus {
        color: #000;
        border-color: #000;
        text-decoration: none;
    }
}

.categorybox-toggle {
    display: none;
}

/* по умолчанию — обычные ссылки */
.categorybox-block {
    display: flex;
}

/* мобилка */
@media (max-width: 575.98px) {
    .categorybox-block {
        display: none;
    }

    .categorybox-dropdown {
        position: relative;
        width: 100%;
        align-items: center;
        margin-bottom: 20px;
    }

    .categorybox-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #777;
        border-radius: 4px;
        background: #fff;
        text-align: left;
        font-weight: 500;
        cursor: pointer;
    }

    .categorybox-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        z-index: 1000;
    }

    .categorybox-menu a {
        display: block;
        padding: 10px 15px;
        color: #777;
        border-bottom: 1px solid #eee;
    }

    .categorybox-menu a:last-child {
        border-bottom: none;
    }

    .categorybox-menu a:hover,
    .categorybox-menu a.active {
        color: #000;
    }

    .categorybox-dropdown.open .categorybox-menu {
        display: block;
    }
}