/* Общие стили */
:root {
    --main-bg: #4429cd;
    --main-br: 100px;
    --main-color: #0b0b0b;
    --orange-btn: #ff5500;
    --violet-color: #eceafa;
    --gray-color: #f5f5f7;
    --dark-color: #0b0b0b;
    
    --main-bg-dark: #28138f;
    --orange-btn-dark: #c23d00;

    --smally-fontsize: 14px;
    --base-fontsize: 18px;
    --big-fontsize: 90px;
    --medium-fontsize: 58px;
    --small-fontsize: 32px;

    --h1-fontsize: 65px;
    --h2-fontsize: 38px;

    --border-radius: 30px;
}

html {
    font-size: var(--base-fontsize);
}

#yamap {
	width: 100%;
	height: 100%;
}

body {
    font-family: 'MarbyPro', Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    color: var(--main-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    user-select: none;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--main-color);
}

.text-center {
    text-align: center;
}

.underline {
    text-decoration: underline;
}

button, .btn {
    display: inline-block;
    background-color: var(--orange-btn);
    color: white;
    padding: 15px 35px;
    border-radius: var(--main-br);
    font-size: 1rem;
    line-height: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}

button:hover, .btn:hover {
    background-color: var(--orange-btn-dark);
}

.btn-blue {
    background-color: var(--main-bg);
    color: #fff;
}

.btn-blue:hover {
    background-color: var(--main-bg-dark);
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: var(--main-bg);
}

.btn-white:hover {
    background-color: #becaff;
    color: var(--main-bg);
}

.btn-outline {
    background-color: transparent;
    color: white;
    outline: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #00000024;
}

.center {
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.list-unstyled {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.second-color {
    color: var(--main-bg);
}

.new-line {
    display: block;
}

.star-bg {
    background-image: url('/wa-data/public/site/themes/landings/img/icons/s.svg');
    background-repeat: no-repeat;
    background-position: top 30px right 30px;
}

.captcha-container {
    margin-bottom: 10px;
}

/* Шапка */
header {
    display: flex;
    align-items: center;
    background-color: #fff;
    width: 100%;
    height: 100px;
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex: 1 1 100%;
}

.logo {
    font-size: 0;
}

.header-list {
    display: flex;
    gap: 40px;
    margin-right: auto;
    font-size: 1rem;
    font-weight: 500;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    color: var(--main-color);
    font-size: 2rem;
    line-height: 2rem;
    cursor: pointer;
}

.close-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 2rem;
    cursor: pointer;
}

.menu-btn:hover {
    font-weight: bold;
    background: none;
}

.close-btn:hover {
    font-weight: bold;
    background: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    padding: 30px;
    background-color: var(--main-bg);
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    visibility: visible;
    transform: translateX(0);
}

.mobile-list {
    margin-top: 50px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-header img{
    filter: invert(1);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

/* Главный баннер */
.hero {
    color: white;
    text-align: center;
    margin-top: 20px;
    padding: 0;
}

.hero-img_mobile {
    display: none;
}

.hero-title {
    position: absolute;
    left: -9999px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.hero-list {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-item:not(:first-child) {
    margin-left: -20px;
}

.hero-item:nth-child(2) {
    transform: rotate(-5deg);
}

.hero-item:nth-child(4) {
    transform: rotate(5deg);
}

.hero-link {
    display: inline-block;
    background-color: var(--main-bg);
    box-shadow: -3px 2px 0px rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 12px 26px;
    border: 3px solid #ffffff;
    border-radius: var(--main-br);
    transition: all .2s;
}

.hero-link:hover {
    background-color: var(--main-bg-dark);
    box-shadow: -3px 2px 0px rgba(0, 0, 0, 0.5);
}

.hero-info {
    max-width: 330px;
    margin: 0 auto;
}

.hero-info-text {
    font-size: 1rem;
    line-height: 1.3rem;
    color: var(--main-color);
}

.hero-info-btn {
    padding: 15px 50px;
}

/* Секции */
section {
    margin: 0;
    margin-top: 6rem;
}

.section-title {
    margin: 0;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: bold;
    font-size: var(--h1-fontsize);
    line-height: 1.2em;
    text-transform: uppercase;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/** карточки **/
.cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.card {
    display: flex;
    background-color: #fff;
    flex-direction: column;
    border: 5px solid var(--main-bg);
    border-radius: 30px;
    padding: 35px;
}

.blue {
    border: none;
    background-color: var(--main-bg);
    color: #fff;
}

.violet {
    border: none;
    background-color: var(--violet-color);
}

.gray {
    border: none;
    background-color: var(--gray-color);
}

.dark {
    border: none;
    background-color: var(--dark-color);
    color: #fff;
}

.light {
    border: none;
    background-color: #fff;
    color: var(--main-color);
}

.card-text {
    margin: 0;
    margin-top: auto;
    text-align: left;
    color: var(--main-color);
    font-size: 1rem;
    line-height: 1.2rem;
}

/* slider */
.scroll-style::-webkit-scrollbar {
    height: 4px;
}

.scroll-style::-webkit-scrollbar-track {
    border-radius: 5px;
    background: rgba(0, 0, 0, .05);
}

.scroll-style::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(0, 0, 0, .3);
}

.scroll-style::-webkit-scrollbar-thumb:hover {
    background: #696969;
    cursor: pointer;
}

.slider {
    position: relative;
}

.slide-prev, .slide-next {
    cursor: pointer;
    position: absolute;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 5.53984px rgba(0, 0, 0, 0.2);
    font-size: 0;
    padding: 0;
    border: none;
    color: #000;
    top: 50%;
    margin-top: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all .2s;
    display: none;
}

.slide-prev.viewed, .slide-next.viewed{
    display: block;
}

.slide-prev svg, .slide-next svg{
    vertical-align: middle;
}

.slide-prev {
    left: -25px;
}

.slide-next {
    right: -25px;
}

.slide-prev:hover, .slide-next:hover {
    background-color: rgb(204, 204, 204);
}

/* Reviews */
.reviews-cards {
    overflow-y: auto;
    align-items: stretch;
    padding-bottom: 10px;
    scroll-snap-stop: always;
    scroll-snap-type: x mandatory;
}

.reviews-cards .card {
    scroll-snap-align: center;
    flex: 1 1 30%;
    gap: 20px;
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.review-photo {
    width: 50px;
}

.review-photo img {
    border-radius: 50%;
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-text {
    margin-top: 0;
    line-height: 1.5rem;
}

.review-time {
    margin-top: auto;
}

/* Form banner */
.form-banner-card {
    position: relative;
    background-color: var(--main-bg);
    border-radius: 30px;
    color: #fff;
    padding: 60px 50px;
    padding-right: 40%;
}

.form-banner-title {
    margin: 0;
    text-align: left;
    font-weight: 700;
    font-size: var(--h1-fontsize);
    line-height: 1.2em;
}

.form-banner-text {
    margin: 0;
    margin-top: 30px;
    font-size: 1.3rem;
    line-height: 1.4em;
}

.form-banner-button {
    margin-top: 30px;
}

.form-banner-img {
    position: absolute;
    top: 0px;
    bottom: -10px;
    right: 60px;
    max-height: 110%;
}

/* Форма */
form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 15px;
}

.form-success {
    display: none;
}

.form-success.show {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.form-error {
    color: red;
    text-align: center;
}

.custom-select {
    position: relative;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
}

.select-box {
    padding: 1rem;
    border: 1px solid #ddd;
    color: #757575;
    border-radius: 15px;
    cursor: pointer;
    background-color: white;
}

.select-box.selected {
    color: var(--main-color);
}

.select-box.open + .select-options {
    display: block;
}

.select-options {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 99999;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    margin-top: 0.5rem;
    list-style: none;
    padding: .5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.select-options li {
    padding: .5rem 1rem;
    cursor: pointer;
}

.select-options li:hover {
    background-color: #f0f0f0;
}

/* Стили для модального окна */
.modal {
    visibility: hidden;
    opacity: 0;
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    transition: all .2s;
}

.modal.open {
    visibility: visible;
    opacity: 1;
}

.modal h3 {
    margin-top: 0;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
}

.modal .close {
    color: #aaa;
    float: right;
    margin-top: -20px;
    margin-right: -20px;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* FAQ */
.faq-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: var(--violet-color);
    padding: 40px;
    border-radius: 30px;
    margin-top: 30px;
    transition: all .2s;
    cursor: pointer;
}

.faq-title h4{
    font-weight: normal;
}

.faq-title svg{
    transition: all .2s;
}

.faq-box.open .faq-title{
    background: var(--main-bg);
    color: #fff;
}

.faq-box.open svg{
    filter: invert(1);
    transform: rotate(180deg);
}

.faq-title h4{
    margin: 0;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    padding: 0px 40px;
    overflow: hidden;
    transition: max-height .2s ease, opacity .2s ease;
}

.faq-box.open .faq-answer {
    max-height: 1000px;
    opacity: 1;
}

/* footer */
.footer {
    margin-top: 60px;
    padding: 30px 0;
}

.footer .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer .logo {
    display: inline-block;
    font-size: 0px;
}

.social-media {
    display: flex;
    gap: 10px;
}

.social-media a{
    font-size: 0;
    display: inline-block;
    background-color: #ebebeb;
    border-radius: 10px;
    padding: 6px 14px;
}

.social-media a:hover{
    background-color: #a0a0a0;
}

.social-media a svg{
    vertical-align: middle;
}

.view-pc {
    display: inline-block;
}

.view-mobile {
    display: none;
}

@media (max-width: 1200px) {
    :root {
        --big-fontsize: 70px;
        --medium-fontsize: 48px;
        --small-fontsize: 24px;
    }

    .form-banner-card {
        display: flex;
        flex-direction: column;
        padding-right: 40px;
        padding: 40px;
    }

    .form-banner-img {
        position: initial;
    }

    .header-btn {
        display: none;
    }
}

@media (max-width: 700px) {
    :root {
        --base-fontsize: 16px;
        --h1-fontsize: 40px;
        --h2-fontsize: 32px;
        --big-fontsize: 48px;
        --medium-fontsize: 36px;
        --small-fontsize: 18px;
    }

    .view-pc {
        display: none;
    }

    .view-mobile {
        display: inline-block;
    }

    .header-list {
        display: none;
    }

    .hero {
        margin-top: 0;
    }

    .hero-img {
        display: none;
    }

    .hero-img_mobile {
        display: block;
        margin-bottom: 30px;
    }

    .menu-btn {
        display: block;
    }

    section {
        margin-top: 4rem;
    }

    .modal-content {
        height: 100%;
        border-radius: 0px;
    }

    .form-banner-title {
        font-size: var(--h2-fontsize);
    }

    .form-banner-text {
        font-size: 1.2rem;
        line-height: 1.3em;
    }

    .faq-title {
        gap: 20px;
    }

    .faq-title svg{
        flex-shrink: 0;
    }

    .star-bg {
        background-position: top 20px right 20px;
    }

    .card {
        min-height: 140px;
    }

    .card.star-bg {
        padding-top: 80px;
    }

    .reviews-cards .card {
        flex: 0 0 100%;
        min-width: 0px;
        gap: 20px;
    }

    .footer {
        text-align: center;
    }
    
    .footer .container{
        flex-direction: column;
        gap: 30px;
    }

    .social-media {
        width: 100%;
    }

    .social-media a{
        flex: 1 1 30%;
        padding: 10px 14px;
    }
}