html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    height: 100%;
    color: #0a0a0a;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrapper {
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
}

[class*="__container"] {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
.header {
    background-color: #0A0A0A;
    color: #717171;
    font-size: 24px;
    letter-spacing: 0;
    line-height: normal;
    padding: 33px 0;
    transition: all 0.3s ease;
}

.header__nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    flex: 1 0 0;
}

.logo {
    max-height: 48px;
}

.logo-image {
    fill: #717171;
}

.logo-image:hover {
    fill: #A0A0A0;
}

.menu__item {
    cursor: pointer;
}

.menu__item:not(:last-child) {
    margin: 0 30px 0 0;
}

.phone__item {
    flex: 1 0 0;
    display: flex;
    justify-content: flex-end;
}

.phone {
    text-align: right;
}

.menu__item:hover,
.phone:hover {
    color: #A0A0A0;
}

.btn-menu {
    display: none;
    position: relative;
    width: 40px;
    height: 48px;
    background-color: transparent;
    border: none;
}

.btn-menu__line {
    position: absolute;
    left: 0;
    height: 2px;
    background-color: #717171;
    width: 100%;
}

.btn-menu__line:nth-child(1) {
    top: 0;
}

.btn-menu__line:nth-child(2) {
    top: 20px;
}

.btn-menu__line:nth-child(3) {
    top: 20px;
}

.btn-menu__line:nth-child(4) {
    top: 40px;
}

/* big size */
@media (min-width: 1200px) {}

/* laptops and monitor */
@media (max-width: 1199.98px) {
    .header__nav {
        justify-content: space-between;
    }

    .menu,
    .phone__item {
        flex: 0 1 auto;
    }
}

/* middle tablet */
@media (max-width: 991.98px) {}

/* small tablets and phones */
@media (max-width: 767.98px) {
    .btn-menu {
        display: inline-block;
    }

    .menu {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #0A0A0A;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: .3s ease;
    }

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

    .menu__item:not(:last-child) {
        margin: 0 0 30px 0;
    }

    .logo,
    .phone {
        position: relative;
    }
}

/* phones */
@media (max-width: 575.98px) {
    .phone {
        font-size: 18px;
    }
}

/* HEADLINE */
.headline {
    background-color: #F5F5F7;
    padding: 71px 0 40px;
}

.headline__body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headline__title {
    color: #490e84;
    font-size: 64px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 0 40px;
}

.headline__image {
    margin: 0 0 25px;
}

.headline__btn {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    background-color: #490E84;
    border-radius: 30px;
    padding: 22px 117px 19px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.headline__btn:hover {
    background-color: #651cb9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* big size */
@media (min-width: 1200px) {}

/* laptops and monitor */
@media (max-width: 1199.98px) {}

/* middle tablet */
@media (max-width: 991.98px) {}

/* small tablets and phones */
@media (max-width: 767.98px) {
    .headline__title {
        font-size: 37px;
    }

    .headline__btn {
        padding: 22px 85px 19px;
    }
}

/* phones */
@media (max-width: 575.98px) {}

/* WHAT NEW */
.what-new {
    padding: 87px 0 150px;
}

.what-new__title,
.color__title {
    color: #717171;
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 50px;
}

.what-new__body {
    display: flex;
    align-items: center;
}

.what-new__text {
    flex: 0 1 560px;
}

.what-new__para {
    line-height: 1.29;
    letter-spacing: 0;
}

.what-new__para:not(:last-child) {
    margin: 0 0 30px;
}

.what-new__para_strong {
    color: #0a0a0a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.what-new__image {
    margin: 0 0 0 190px;
}

/* big size */
@media (min-width: 1200px) {}

/* laptops and monitor */
@media (max-width: 1199.98px) {
    .what-new__body {
        flex-direction: column;
    }

    .what-new__text {
        flex: 0 1 auto;
    }

    .what-new__image {
        margin: 0;
    }
}

/* middle tablet */
@media (max-width: 991.98px) {}

/* small tablets and phones */
@media (max-width: 767.98px) {}

/* phones */
@media (max-width: 575.98px) {
    .what-new {
        padding: 40px 0 110px;
    }
}

/* COLOR */
.color {
    padding: 0 0 140px;
}

.color__body {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.color__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease 0s;
    border-radius: 20px;
    cursor: pointer;
}

.color__item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.color__image {
    margin: 0 0 20px;
}

.color__name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.subname__wrapper {
    min-height: 28px;
}

.color__subname {
    line-height: 1.28;
    letter-spacing: 0;
    padding-bottom: 10px;
}

/* big size */
@media (min-width: 1200px) {}

/* laptops and monitor */
@media (max-width: 1199.98px) {
    .color__item {
        flex: 0 0 50%;
        margin-bottom: 60px;
    }
}

/* middle tablet */
@media (max-width: 991.98px) {}

/* small tablets and phones */
@media (max-width: 767.98px) {}

/* phones */
@media (max-width: 575.98px) {
    .color {
        padding: 0;
    }

    .color__item {
        flex: 0 0 100%;
    }
}

/* CONTACTS */
.contacts__body {
    background-color: #574B63;
    display: flex;
    justify-content: space-between;
}

.contacts__form {
    padding: 137px 93px;
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; */
    flex: 0 1 600px;
}

.contacts__title-wrapper {
    min-height: 97px;
}

.contacts__title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
}

.contacts__input {
    border: none;
    border-bottom: 1px solid #fff;
    background-color: inherit;
    padding: 10px 0;
    width: 100%;
    color: #fff;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.28;
}

.contacts__input:focus {
    outline: none;
    box-shadow: none;
    /* Видаляє тінь, якщо вона є */
}

.contacts__subtext-wrapper {
    min-height: 66px;
    text-align: center;
}

.contacts__input::placeholder,
.contacts__subtext {
    color: #fff;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: 0;
    opacity: .5;
}

.contacts__input:not(:last-of-type) {
    margin-bottom: 20px;
}

.contacts__input:last-of-type {
    margin-bottom: 30px;
}

.contacts__subtext {
    align-self: center;
}

.contacts__btn {
    align-self: center;
    border: none;
    background-color: #fff;
    border-radius: 30px;
    color: #490e84;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0;
    text-transform: uppercase;
    min-width: 240px;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.contacts__btn:hover {
    background-color: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: #0a0a0a;
}

/* big size */
@media (min-width: 1200px) {}

/* laptops and monitor */
@media (max-width: 1199.98px) {
    .contacts__body {
        flex-direction: column;
    }

    .contacts__title {
        align-self: center;
    }
}

/* middle tablet */
@media (max-width: 991.98px) {}

/* small tablets and phones */
@media (max-width: 767.98px) {}

/* phones */
@media (max-width: 575.98px) {
    .contacts {
        background-color: #574B63;
    }

    .contacts__form {
        padding: 80px 0;
        flex: 0 1 auto;
    }

    .contacts__title {
        font-size: 23px;
    }

    .contacts__subtext {
        text-align: center;
    }
}

/* FFOTER */
.footer {
    background-color: #0A0A0A;
    color: #717171;
    padding: 50px 0 15px;
    transition: all 0.3s ease;
}

.footer__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer__politics-item {
    flex: 1 0 0;
    line-height: 1.28;
    letter-spacing: 0;
}

.footer__logo {
    fill: #717171;
    max-height: 48px;
}

.footer__logo:hover {
    fill: #A0A0A0;
}

.footer__phone-item {
    flex: 1 0 0;
    text-align: right;
    font-size: 24px;
    line-height: normal;
    letter-spacing: 0;
}

.footer__politics:hover,
.footer__phone:hover {
    color: #A0A0A0;
}

/* big size */
@media (min-width: 1200px) {}

/* laptops and monitor */
@media (max-width: 1199.98px) {}

/* middle tablet */
@media (max-width: 991.98px) {}

/* small tablets and phones */
@media (max-width: 767.98px) {}

/* phones */
@media (max-width: 575.98px) {
    .footer__body {
        flex-direction: column;
    }

    .footer__logo {
        margin: 15px 0;
    }

    .footer {
        padding: 25px 0;
    }
}

/* Top button */
.back-to-top-btn {
    /* Робимо кнопку ідеально круглою */
    width: 50px;
    height: 50px;
    border-radius: 50%;

    /* Позиціонуємо кнопку в нижньому правому куті */
    position: fixed;
    bottom: 20px;
    right: 20px;

    /* Вигляд кнопки */
    background-color: #651cb9;
    /* Темно-фіолетовий фон */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Легка тінь */
    border: none;
    cursor: pointer;

    /* Вирівнювання стрілки по центру за допомогою Flexbox */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Плавна анімація */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Приховуємо кнопку за замовчуванням */
.back-to-top-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ефект при наведенні курсора */
.back-to-top-btn:hover {
    transform: translateY(-3px);
    /* Легкий підйом кнопки */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    /* Помітніша тінь */
}



/* Перемикач мови */
/* Контейнер для перемикача */
.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    width: 100px;
    height: 34px;
    background-color: #e0e0e0;
    border-radius: 34px;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Приховуємо стандартний чекбокс */
.lang-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Стили для текстових міток */
.lang-label-ua,
.lang-label-en {
    position: absolute;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 34px;
    transition: color 0.4s;
}

/* Стан за замовчуванням (коли UA активна) */
.lang-label-ua {
    left: 15px;
    color: #000;
    /* Колір UA чорний */
}

.lang-label-en {
    right: 15px;
    color: #a0a0a0;
    /* Колір EN сірий */
}

/* Візуальний слайдер */
.slider {
    position: absolute;
    height: 26px;
    width: 40px;
    left: 5px;
    background-color: #fff;
    border-radius: 34px;
    transition: transform 0.4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Зміни при увімкненні (коли EN активна) */
.lang-switch input[type="checkbox"]:checked~.slider {
    transform: translateX(50px);
}

.lang-switch input[type="checkbox"]:checked~.lang-label-ua {
    color: #a0a0a0;
}

.lang-switch input[type="checkbox"]:checked~.lang-label-en {
    color: #000;
}

/* big size */
@media (min-width: 1200px) {
    .lang-switch {
        cursor: pointer;
    }
}

/* laptops and monitor */
@media (max-width: 1199.98px) {}

/* middle tablet */
@media (max-width: 991.98px) {}

/* small tablets and phones */
@media (max-width: 767.98px) {}

/* phones */
@media (max-width: 575.98px) {
    .lang-switch {
        margin: 0 auto;
    }
}