* {
    margin: 0;
    padding: 0;
}

/* Цветовая палитра */
:root {
    --primary: #007AFF;
    --secondary: #0462C8;
    --main-text: #222222;
    --secondary-text: #818285;
    --gray: #E8EDFF;
    --light: #F7F4EE;
    --white: #fff;
}

/* Общие стили */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    color: var(--main-text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
}

section {
    position: relative;
}

h1 {
    font-size: 32px;
    font-family: "Exo", sans-serif;
}

h2 {
    font-family: "Exo", sans-serif;
    position: relative;
    font-size: 32px;
    text-align: left;
    margin-bottom: 32px;
}

h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    margin-top: 16px;
}

p {
    line-height: 1.7;
}

br {
    margin-bottom: 1.25em;
    display: block;
    content: "";
}

ul,
li {
    display: inline-block;
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary);
    position: relative;
}


a.nav-links__link::before {
    content: '';
    position: absolute;
    height: 2px;
    bottom: -10px;
    width: 100%;
    transform: scale(0, 1);
    background-color: var(--secondary);
    transition: 0.3s;
}

a:hover::before {
    transform: scale(1);
}

a:active {
    text-shadow: 0 0 1px #000;
}

input,
textarea {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

textarea {
    resize: none;
    height: 120px;
}


/* Кнопки */
button,
a.button-link {
    background-color: transparent;
    padding: 20px 30px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    background-color: var(--primary);
    color: #fff;
}

button:hover {
    color: #fff;
    outline: none;
    /* background-color: var(--secondary) !important; */
}

button:active {
    color: #fff;
    outline: none;
    background-color: var(--primary);
}

button.secondary {
    outline: none;
    background-color: var(--primary);
    color: #fff;
}




button.outline {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    /* Цвет текста синий */
    border: 2px solid var(--primary);
    /* Синяя обводка */
    background-color: transparent;
    /* Прозрачный фон */
    cursor: pointer;
    padding: 15px 20px;
    transition: 0.3s, color 0.3s;
    /* Плавные переходы */
}


button.outline:hover {
    background-color: var(--primary);
    /* Синий фон при наведении */
    color: white;
    /* Белый цвет иконки */
}

button.outline:active {
    background-color: var(--secondary);
    /* Темно-синий фон при нажатии */
}

button.outline.prev svg path,
button.outline.next svg path {
    fill: var(--primary);
    /* Использование текущего цвета */
    width: 24px;
    height: 24px;
}

button.outline.prev:hover svg path,
button.outline.next:hover svg path {
    fill: var(--white);
}

.container {
    width: 1170px;
    margin: 0 auto;
}

.section__heading {
    margin: 0 auto 40px;
    max-width: 400px;
    text-align: center;
}


.section__heading h2 {
    margin-bottom: 15px;
    text-align: center;
}

/* nav */

nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    background: linear-gradient(#2873B5 0%, #2C75B29B 60%, #3378AD00 100%);
    transition: 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 80px;
    align-items: center;
}

button.nav-links__link {
    display: inline-block;
    padding: 10px 20px;
}

.nav-links-home {
    display: none;
}

.navbar__toggler {
    display: none;
    height: 36px;
    width: 36px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    padding-top: 3px;
}

.navbar__logo {
    height: 40px;
    overflow: hidden;
}

.navbar__logo img {
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.nav-links__link {
    color: #fff;
    width: 100%;
}

.navbar__logo_dark {
    display: none;
}

nav.dark {
    background: var(--white);
}

nav.dark .nav-links__link:not(button) {
    color: var(--secondary-text);
}

nav.dark .navbar__logo_dark {
    display: block;
}

nav.dark .navbar__logo_light {
    display: none;
}

.lang_btn {
    padding: 5px;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.dropdown-content {
    padding-top: 10px;
    display: none;
    position: absolute;
    width: 100%;
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
}

.lang-dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* promo */
header {
    background-image: url('../img/header_bg.jpg');
    background-position: 80%;
    background-size: cover;
}

.promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding-bottom: 80px;
    height: 650px;
    box-sizing: border-box;
    padding-top: 40px;
}

.promo__content {
    flex: 1;
}

.promo__title {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 900;
    max-width: 800px;
}

.promo__content {
    max-width: 50%;
}

.promo__description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #222;
}

.promo__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
    align-items: start;
}

.promo__image img {
    border-radius: 10px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.promo__button {
    padding: 0;
}

.app-store-button {
    display: block;
    width: auto;
}

.app-store-button img {
    transition: transform 0.2s ease;
}

.app-store-button img:hover {
    transform: scale(1.05);
}

/* about */

.about {
    padding: 100px 0 120px;
}

.about__block {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

.about__card {
    width: 330px;
    flex-grow: 0;
    flex-shrink: 1;
}

.about__card_img {
    margin-bottom: 32px;
}

.about__card_title {
    margin-bottom: 16px;
}

.about__card_description {
    color: #808089;
}

.about .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about .swiper-pagination {
    position: static;
    /* Отменяем позиционирование по умолчанию */
    margin-top: 20px;
    /* Добавляем отступ для визуального разделения */
    text-align: center;
    /* Центрируем пагинацию */
}

/* video */

.video {
    padding: 50px 0 100px;
}

.video__block {
    border-radius: 30px;
    width: 100%;
    height: 660px;
    overflow: hidden;
}

.video__block iframe {
    width: 100%;
    height: 100%;
}

/* description */

.description__block {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding: 0 64px;
}

.description__item {
    display: flex;
    gap: 110px;
}

.description__item:nth-child(even) {
    flex-direction: row-reverse;
}

.description__title {
    font-size: 32px;
}

.description__subtitle {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 16px;
}

.description__article {
    margin-bottom: 20px;
}

.descriptions_cost {
    padding-top: 100px;
}

.descriptions_cost .description__item {
    flex-direction: row-reverse;
}

.descriptions_cost .description__item:nth-child(even) {
    flex-direction: row;
}

/* steps */
.steps {
    padding: 100px 0;
}

.steps__block {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.steps__nav {
    position: relative;
    padding: 20px 50px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}


.steps__nav::before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 2px;
    background-color: #00D0FF;
    z-index: -1;
    top: 0;
}

.steps__step {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transform: scale(0.3);
    line-height: 50px;
    text-align: center;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0;
}

.steps__step-active {
    background: #00D0FF;
    color: #fff;
    transform: scale(1);
    font-size: 16px;
}


.steps__text h3 {
    margin-bottom: 20px;
    font-size: 34px;
}

.steps__img,
.steps__text {
    position: relative;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 50%;
}

.steps__img img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.steps__text {
    margin-top: 20px;
}

.steps__btn {
    display: flex;
    /* justify-content: center; */
    gap: 10px;
    margin-top: 20px;

}




/* banner */

.banner {
    padding: 50px 0;
}

.banner__block {
    background: url('../img/banner.png');
    border-radius: 16px;
    height: 250px;
    padding: 0 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner__item {
    text-align: center;
}

.banner__item h3 {
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    font-style: italic;
}

.banner__item p {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* faq */

.faq {
    padding: 50px 0;
}

.faq__block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq__item_head {
    display: flex;
    justify-content: space-between;
}

.faq__item {
    padding: 15px 0;
    border-bottom: 1px solid #dedfe0;
}

.faq__item_text {
    padding-top: 20px;
}

.faq__item_text {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    color: var(--secondary-text)
}

.faq__item.active .faq__item_text {
    max-height: 100px;
}

.faq__item_toggler_open {
    display: none;
}

.faq__item.active .faq__item_toggler_open {
    display: flex;
}

.faq__item.active .faq__item_toggler_close {
    display: none;
}

/* contacts */

.contacts {
    padding: 50px 0 100px;
}

.contacts__block {
    display: flex;
    border-radius: 16px;
    padding: 50px;
    background-color: var(--gray);
}

.contacts__info {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 60%;
}

.contacts__info p {
    margin-bottom: 15px;
}

.contacts__info h2 {
    font-size: 26px;
}

.contacts__info h2::after {
    content: none;
    display: none;
}

.contacts__form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 40%;
}

.contacts__form button {
    margin-bottom: 20px;
}

/* footer */

footer {
    position: relative;
    background-color: var(--gray);
    padding: 60px 0 0;
}

footer * {
    color: var(--main-text);
}


.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__block {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.footer__logo img {
    height: 40px;
}

.footer__heading {
    margin-bottom: 15px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer .nav-links__link:not(button) {
    color: #818285;
}

.footer__copy {
    padding: 40px 0;
}

.footer__banner {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 24px;
    overflow: hidden;
}

.footer__banner_text {
    flex-grow: 1;
    flex-basis: 50%;
    padding: 60px;
    box-sizing: border-box;
}

.footer__banner h2,
.footer__banner p {
    color: var(--white);
    margin-bottom: 10px;
}

.footer__banner p {
    max-width: 400px;
}

.footer__banner h2::after {
    content: none;
}

.footer__banner_img {
    flex-grow: 1;
    flex-basis: 50%;
    text-align: center;
    position: relative;
}

.footer__banner_img img {
    position: absolute;
    right: 0;
    top: 0;
}

img.footer__banner_phone {
    right: auto;
    top: 20px;
    left: 50%;
    transform: translate(-50%);
}

.footer__banner_bg_m {
    display: none;
}

.footer__copy {
    display: flex;
    justify-content: space-between;
}

.privacy {
    padding-top: 100px;
}

.privacy p {
    margin-bottom: 20px;
}

/* modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 335px;
    border-radius: 10px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content img {
    display: block;
    margin: 0 auto 20px;
    width: 50px;
}

.modal-content h2 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.modal-content h2::after {
    content: none;
    display: none;
}

.modal-content p:not(:last-child) {
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-content button {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
}

.close {
    position: absolute;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    top: 15px;
    right: 25px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* media */

@media screen and (max-width:567px) {

    h2 {
        /* text-align: center; */
        font-size: 24px;
    }

    .container {
        width: auto;
        padding: 0 15px;
    }

    .section__heading {
        width: auto;
        max-width: auto;
    }

    nav {
        /* position: sticky; */
        top: 0;
        z-index: 1000;
        /* background-color: #fff; */
    }

    header {
        /* background-image: none; */
        background-position: 90% 0px;
        background-size: 200%;
        background-color: var(--white);
        background-repeat: no-repeat;
        /* max-height: 100vh; */
        padding: 0;
        padding-bottom: 20px;
        box-sizing: border-box;
        padding-top: 300px;
    }

    .promo {
        align-items: flex-end;
        padding-bottom: 20px;
        height: auto;
    }

    .promo__content {
        max-width: 100%;
    }

    .promo__title {
        font-size: 32px;
    }

    .navbar__toggler {
        display: block;
        outline: none;
    }

    .navbar__links {
        background-color: var(--white);
        position: absolute;
        top: 70px;
        height: calc(100vh - 70px);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0;
        z-index: 100;
        padding: 20px;
        box-sizing: border-box;
        display: none;
    }

    .nav-links__item {
        width: 100%;
        display: flex;
        /* flex-grow: 1; */
    }

    .nav-links {
        width: 100%;
    }

    .nav-links__link:not(button) {
        padding: 20px 0;
        width: 100%;
        color: var(--secondary-text);
        display: flex;
        justify-content: space-between;
    }

    .nav-links__link::after:not(button) {
        content: url('../img/nav_arrow.svg');
        margin-left: auto;
    }

    .nav-links-home {
        display: block;
    }

    .navbar.active .navbar__links {
        display: flex;
    }

    .navbar__toggler_close {
        display: none;
    }

    .navbar.active .navbar__toggler_close {
        display: inline-block;
    }

    .navbar.active .navbar__toggler_burger {
        display: none;
    }

    .promo__actions {
        flex-direction: column;
    }

    .promo__actions button {
        width: 100%;
    }

    .promo__image {
        overflow-x: hidden;
        position: absolute;
        bottom: 300px;
        right: 0;
        width: 175px;
        height: 300px;
        z-index: 1;
    }

    .promo__image img {
        right: -100px;
        position: absolute;
        height: 300px;
    }

    .about {
        padding-top: 0;
        padding-bottom: 50px;
    }

    .about__card {
        flex-shrink: 0;
    }

    .about__card_img {
        width: 100%;
    }

    .about__card_img img {
        width: 100%;
    }

    .video-review__actions {
        flex-direction: column;
    }

    .video__block {
        height: 200px;
    }

    .description__block {
        flex-direction: column;
        padding: 0;
        gap: 20px;
    }


    .descriptions_cost {
        padding-top: 0;
    }

    .description__title {
        font-size: 24px;
    }

    .description__item {
        flex-direction: column !important;
        gap: 20px;
    }

    .description__img img {
        width: 100%;
    }

    .description__subtitle {
        display: none;
    }

    .banner__block {
        flex-direction: column;
        height: auto;
        background-size: cover;
        background-position: 70%;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .steps {
        padding-bottom: 0px;
    }

    .steps__block {
        flex-direction: column;
        width: 100%;
        padding-bottom: 0;
    }

    .steps__img {
        width: 100%;
    }

    .steps__nav {
        flex-direction: row;
        height: auto;
        width: 100%;
        padding: 20px 0;
    }

    .steps__nav::before {
        width: 100%;
        height: 2px;
        top: 50%;
        left: 50%;
        transform: translate(-50%);
    }

    .steps__text {
        width: 100%;
    }

    .steps__block h3 {
        font-size: 20px;
    }

    .steps__btn {
        justify-content: space-between;
    }

    .steps__btn-prev,
    .steps__btn-next {
        flex-grow: 1;
    }

    .faq__list {
        width: auto;
    }

    .faq__item.active .faq__item_text {
        max-height: 150px;
    }


    .banner__block {
        gap: 40px;
    }


    .contacts__block {
        flex-direction: column;
        padding: 10px;
    }

    .modal {
        width: 100%;
        box-sizing: border-box;
    }

    .modal-content {
        width: 90%;
        box-sizing: border-box;
    }

    .footer {
        flex-direction: column;
        align-items: start;
    }

    .footer .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer__block {
        flex-wrap: wrap;
        gap: 20px 0;
    }

    .footer__column {
        flex-basis: 50%;
    }

    .footer__banner {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        height: 560px;
    }

    .footer__banner h2 {
        text-align: center;
    }

    .footer__banner_img {
        height: 230px;
        width: 100%;
        flex-shrink: 0;
        overflow: hidden;
    }

    .footer__banner_bg {
        display: none;
    }

    .footer__banner_bg_m {
        display: block;
        left: 0;
        width: 100%;
    }
}