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

body {
    font-family: Montserrat;
    margin: 0;
    background: var(--grad-2, radial-gradient(50.12% 47.63% at 26.1% 58.8%, rgba(38, 70, 89, 0.45) 0%, rgba(0, 29, 47, 0.45) 100%), linear-gradient(131deg, #001727 0.59%, #011D2B 99.41%), linear-gradient(240deg, #001624 4.13%, #00263D 94.56%));
}

h1 {
    margin: 0;
}

.container {
    max-width: 1140px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Затемнение фона + центрирование */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* ← было 0.3, теперь 0.7 для темноты */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Показываем при добавлении класса */
.modal-overlay.show {
    display: flex;
}

/* Стили самого окна */
.modal-window {
    display: inline-flex;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-radius: 16px;
    border: 1px solid var(--blue-light, #08BCCA);
    background: var(--yellow, #CFE52D);
    box-shadow: 0px 4px 16px 0px rgba(34, 255, 249, 0.24);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-text {
    color: var(--blue-dark, #012139);
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 16.8px */
}

.modal-text.ft-18 {
    font-size: 18px;
}

.video-container {
    position: relative;
    width: 100%; /* Ширина контейнера всегда 100% от родителя */
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 (9/16 = 0.5625 * 100 = 56.25%) */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-button {
    display: flex;
    width: 100%;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;

    border: none;
    border-radius: 16px;
    background: var(--color-button, linear-gradient(92deg, rgba(34, 255, 249, 0.90) 1.41%, rgba(20, 153, 149, 0.90) 99.77%));
    box-shadow: 0px 4px 12px 0px rgba(14, 23, 30, 0.26);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;

    color: var(--white, #FFF);

    /* title/h3 */
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 33.6px */
}

.modal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 14px 0px rgba(14, 23, 30, 0.35);
}


/* Адаптивність */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 10px;
    background: var(--yellow, #CFE52D);
}

.marquee {
    display: flex;
    width: max-content;
    gap: 10px;
    animation: scroll 10s linear infinite;
}

.marquee span {
    white-space: nowrap;
    color: var(--blue-dark, #012139);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 25.2px */
}

.marquee-track {
    display: flex;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.header__wrap {
    display: flex;
    padding: 24px 0;
    align-items: center;
    justify-content: center;
}

.header__logo {
    width: 251px;
}

.header__countdown {
    display: flex;
    padding: 16px 24px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid var(--blue-light, #08BCCA);
    background: var(--blue-light-15, rgba(8, 188, 202, 0.15));
}

.header__countdown__item {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

#countdown {
    width: 300px;
}

.header__countdown__label {
    color: var(--white-80, rgba(255, 255, 255, 0.80));
    /* bode/large */
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 28px */
}

.header__countdown__value {
    color: var(--yellow, #CFE52D);
    /* title/h2 */
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 44.8px */
}

.header__countdown__hr {
    color: #FFF;
    text-align: center;

    /* bode/large */
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 28px */
}

.promo {
    /*background-image: url("../img/bg-main.png");*/
    /*background-repeat: no-repeat;*/
    /*background-position: center;*/
    /*background-size: cover;*/
}

.promo__wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    /*min-height: 100vh;*/
    /*height: 862px;*/
}

.promo__title {
    color: var(--yellow, #CFE52D);
    text-align: center;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

    /* title/h1 */
    font-family: Montserrat;
    font-size: 72px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 100.8px */
}

.promo__descr {
    color: var(--white, #FFF);
    text-align: center;

    /* title/h2 */
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 44.8px */
}

.promo__badge {
    display: flex;
    padding: 4px 32px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    border-radius: 26px;
    background: var(--white-80, rgba(255, 255, 255, 0.80));
}

.promo__badge__title {
    color: var(--blue-dark, #012139);
    text-align: center;

    /* title/h3 */
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 33.6px */
}

.promo__badge__text {
    color: var(--blue-dark, #012139);
    text-align: center;

    /* bode/body smal */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 22.4px */
}

.promo__subscribers {
    display: block;
    margin: 0 auto;
    margin-top: 22px;
}

.promo__text {
    text-align: center;
    margin-top: 10px;
    color: var(--white, #FFF);

    /* bode/body smal */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 22.4px */
}

.subscribe {
    padding: 36px 0;
}

.subscribe__wrap {
    display: flex;
    align-items: flex-end;
    gap: 104px;
    align-self: stretch;
}

.subscribe__main, .subscribe__form {
    width: calc(50% - 52px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.subscribe__main__title {
    width: 100%;
    color: var(--white, #FFF);
    text-align: center;

    /* title/h2 */
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 44.8px */
    margin-bottom: 12px;
}

.subscribe__main__item {
    width: calc(50% - 12px);
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    padding: 12px 24px;
    align-items: flex-start;
    gap: 16px;
    border-radius: 8px;
    border: 1px solid var(--blue-90, rgba(34, 255, 249, 0.90));
}

.subscribe__main__item:last-child {
    width: 100%;
}

.subscribe__main__item__top {
    display: flex;
    gap: 8px;
    align-items: center;
}

.subscribe__main__item__title {
    color: var(--white, #FFF);
    /* bode/large */
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 28px */
}

.subscribe__main__item__img {
    width: 74px;
}

.subscribe__main__item__text {
    width: 100%;
    color: var(--white, #FFF);

    /* bode/body smal */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 22.4px */
}

.subscribe__form {
    position: relative;
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    border-radius: 16px;
    border: 1px solid var(--blue-light, #08BCCA);
    background: var(--yellow, #CFE52D);

    /* shadow blue */
    box-shadow: 0px 4px 16px 0px rgba(34, 255, 249, 0.24);
}

.subscribe__form__title {
    color: var(--blue-dark, #012139);
    text-align: center;

    /* title/h2 */
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 44.8px */
}

.subscribe__form__text {
    margin-top: -32px;
    color: var(--blue-dark, #012139);
    text-align: center;

    /* title/h3 */
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 33.6px */
}

.form-group {
    width: 100%;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--blue-light, #08BCCA);
    background: var(--white, #FFF);
    color: var(--blue-dark, #012139);

    /* bode/body smal */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 22.4px */
}

.form-group input::placeholder {
    color: var(--gray, #707070);
}

.form-group input:focus-visible {
    outline: none;
}

.subscribe__form button {
    cursor: pointer;
    display: flex;
    width: 352px;
    max-width: 100%;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: var(--color-button, linear-gradient(92deg, rgba(34, 255, 249, 0.90) 1.41%, rgba(20, 153, 149, 0.90) 99.77%));

    /* shadow button */
    box-shadow: 0px 4px 12px 0px rgba(14, 23, 30, 0.26);
    color: var(--white, #FFF);

    /* title/h3 */
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 33.6px */
    border: none;
}

.subscribe__form button:hover {
    background: linear-gradient(92deg, rgba(140, 173, 172, 0.90) 1.41%, rgba(41, 113, 111, 0.90) 99.77%);

    /* shadow button */
    box-shadow: 0px 4px 12px 0px rgba(14, 23, 30, 0.26);
}

.subscribe__form button:focus-visible {
    outline: none;
}

.form-group {
    color: #FD2020;

    /* bode/body smal */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 22.4px */
}

.custom-checkbox {
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
}

/* Скрываем стандартный чекбокс */
.custom-checkbox input {
    display: none;
}

/* Пустой чекбокс */
.custom-checkbox .checkmark {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #095589;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

/* Внутренний квадрат (появляется при :checked) */
.custom-checkbox .checkmark::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: #095589;
    display: none;
}

/* Показываем внутренний квадрат, когда чекбокс активен */
.custom-checkbox input:checked + .checkmark::after {
    display: block;
}

/* Текст рядом с чекбоксом */
.custom-checkbox .label-text {
    color: var(--blue-dark, #012139);

    /* bode/medium */
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 25.2px */
}

.error {
    color: #FD2020;

    /* bode/body smal */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 22.4px */
    display: block;
}

.custom-checkbox.invalid .checkmark {
    border: 1px solid #FD2020;
}

.custom-checkbox.invalid .label-text {
    color: #FD2020;
}

.success {
    color: #095589;

    /* bode/body smal */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 22.4px */
    display: block;
}

.error-common, .success-common {
    position: absolute;
    bottom: 90px;
    width: 100%;
    text-align: center;
}

.promo__bottom {
    margin-top: 25px;
    display: flex;
}

.promo__subscribers-container {
    margin-left: 24px;
}

@media (max-width: 1200px) {
    .header__countdown {
        flex-direction: column;
    }

    .header__countdown__hr {
        display: none;
    }

    .header__countdown__item {
        flex-direction: column;
    }

    /*.promo {*/
    /*    background-image: url("../img/bg-main-tab.png");*/
    /*}*/
    .promo__wrap {
        height: 830px;
    }

    .promo__title {
        font-size: 64px;
    }

    .promo__descr {
        font-size: 24px;
    }

    .subscribe__wrap {
        flex-direction: column;
        gap: 32px;
    }

    .subscribe__main, .subscribe__form {
        width: 100%
    }
}

@media (max-width: 991px) {
    .header__wrap {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .promo__subscribers-container {
        margin-left: 0;
    }

    .promo__descr {
        margin-bottom: 12px;
    }

    .subscribe {
        padding: 6px 0;
    }

    .promo__bottom {
        width: 100%;
        display: block;
        margin-top: 19px;
    }

    /*.promo {*/
    /*    background-image: url("../img/bg-main-mob.png");*/
    /*}*/
    .promo__wrap {
        height: 600px;
    }

    .promo__title {
        font-size: 38px;
    }

    .promo__badge__title {
        font-size: 18px;
    }

    .promo__badge {
        width: 100%;
    }

    .promo__badge__text {
        font-size: 16px;
    }

    .subscribe__main__title {
        margin-top: 10px;
        margin-bottom: 0;
        font-size: 24px;
    }

    .subscribe__main__item {
        width: 100%;
    }

    input[name="contact"]::placeholder {
        word-break: break-word;
    }
}