/* Подключение шрифтов */
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Thin.woff2') format('woff2'),
    url('../fonts/TT Interphases Pro Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Regular.woff2') format('woff2'),
    url('../fonts/TT Interphases Pro Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Bold.woff2') format('woff2'),
    url('../fonts/TT Interphases Pro Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Black.woff2') format('woff2'),
    url('../fonts/TT Interphases Pro Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Сброс и базовые стили */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'TT Interphases Pro', sans-serif;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    background: #0a0a0a;
}

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

ul {
    list-style: none;
}

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

/* Фоновый слайдер */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.bg-slider .swiper-slide {
    background-size: cover;
    background-position: center;
}

/* Кнопки навигации слайдера */
.slider-nav {
    position: fixed;
    top: 0;
    width: 80px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.slider-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}

.slider-nav--prev {
    left: 0;
}

.slider-nav--next {
    right: 0;
}

/* Основной контейнер */
.wrapper {
    max-width: 1280px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

/* Хедер */
.header {
    flex-shrink: 0;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.header__phone {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.3s;
}

.header__phone:hover {
    opacity: 0.8;
}

/* Hero секция */
.hero {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero__content {
    max-width: 650px;
}

/* Бейдж */
.badge {
    display: inline-block;
    padding: 8px 20px;
    background: #ff1921;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 24px;
}

/* Заголовок */
.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 32px;
}

/* Список преимуществ */
.hero__list {
    margin-bottom: 32px;
}

.hero__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 18px;
    opacity: 0.9;
}

.hero__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff1921;
    font-size: 24px;
    line-height: 1;
}

/* CTA текст */
.hero__cta {
    font-size: 18px;
    opacity: 0.8;
    line-height: 1.5;
}

/* Блок формы */
.form-block {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 36px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.form-block__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 28px;
    text-align: center;
}

/* Форма */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: #ff1921;
}

/* intl-tel-input стили */
.iti {
    width: 100%;
}

.iti input.form__input {
    padding-left: 100px;
}

.iti__selected-dial-code {
    color: #333;
    font-size: 16px;
}

.iti__country-list {
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.iti__country {
    padding: 8px 12px;
}

.iti__country:hover {
    background: #f5f5f5;
}

.iti__flag {
    background-image: url("../../libs/intl-tel-input/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("../../libs/intl-tel-input/flags@2x.png");
    }
}

.form__input::placeholder {
    color: #999;
}

/* Радио кнопки */
.form__radios {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form__radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.form__radio input {
    width: 18px;
    height: 18px;
    accent-color: #ff1921;
    cursor: pointer;
}

/* Кнопка отправки */
.form__btn {
    width: 100%;
    padding: 16px;
    background: #ff1921;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 16px;
}

.form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 25, 33, 0.4);
}

/* Примечание под кнопкой */
.form__note {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Чекбокс */
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.form__checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #ff1921;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form__checkbox a {
    color: #ff1921;
    text-decoration: underline;
}

/* Футер */
.footer {
    flex-shrink: 0;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.6;
    line-height: 1.6;
}

.footer p {
    margin-bottom: 8px;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    color: #1a1a1a;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
    margin: auto;
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal__close:hover {
    color: #333;
}

.modal__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ff1921;
}

.modal__text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #333;
}

.modal__link {
    color: #ff1921;
    text-decoration: underline;
}

.modal__link:hover {
    text-decoration: none;
}

.modal__subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1a1a1a;
}

/* Блок Telegram */
.telegram-block {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

.telegram-block__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.telegram-block__list {
    margin-bottom: 20px;
}

.telegram-block__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.telegram-block__list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #ff1921;
}

.telegram-block__btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #0088cc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    transition: background 0.3s;
}

.telegram-block__btn:hover {
    background: #006699;
}

.hero__desc {
    margin-bottom: 30px;
    font-size: 18px;
    & p {
        margin: 16px 0;
    }
}

.form__btn_red {
    display: block;
    width: 100%;
    text-align: center;
}

.form__btn_blue {
    display: block;
    width: 100%;
    text-align: center;
    margin: 16px 0 0;
    background: #0088cc;
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
    }
}

.btn_desc {
    font-size: 16px;
}

.form__btn_mobile {
    display: none;
}



/* Адаптивность */

/* Планшет */
@media (max-width: 1024px) {
    .wrapper {
        padding: 24px 40px;
    }

    .hero {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero__title {
        font-size: 36px;
    }

    .form-block {
        max-width: 100%;
    }

    .slider-nav {
        width: 60px;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    .wrapper {
        padding: 20px 16px;
        min-height: auto;
    }

    .header {
        margin-bottom: 24px;
    }

    .logo img {
        height: 26px;
    }

    .header__phone {
        font-size: 14px;
    }

    .badge {
        padding: 6px 14px;
        font-size: 10px;
        margin-bottom: 16px;
    }

    .hero {
        padding-bottom: 20px;
    }

    .hero__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero__list {
        margin-bottom: 20px;
    }

    .hero__list li {
        font-size: 14px;
        padding-left: 18px;
        margin-bottom: 10px;
    }

    .hero__list li::before {
        font-size: 18px;
    }

    .hero__cta {
        font-size: 14px;
    }

    .hero__content {
        margin-bottom: 24px;
    }

    .form-block {
        padding: 20px;
        border-radius: 12px;
    }

    .form-block__title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form__group {
        margin-bottom: 16px;
    }

    .form__input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form__radios {
        gap: 12px;
    }

    .form__radio {
        font-size: 13px;
    }

    .form__btn {
        padding: 14px;
        font-size: 14px;
    }

    .form__note {
        font-size: 11px;
    }

    .form__checkbox {
        font-size: 11px;
    }

    .footer {
        margin-top: 24px;
        padding-top: 16px;
        font-size: 10px;
    }

    /* Кнопки слайдера - скрываем на мобильных */
    .slider-nav {
        display: none;
    }

    /* Модальное окно */
    .modal {
        padding: 16px;
        overflow-y: auto;
    }

    .modal__content {
        padding: 24px 20px;
        margin: 0;
        max-height: none;
        border-radius: 12px;
    }

    .modal__close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    .modal__title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .modal__text {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .modal__subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .telegram-block {
        padding: 16px;
        border-radius: 10px;
    }

    .telegram-block__title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .telegram-block__list {
        margin-bottom: 16px;
    }

    .telegram-block__list li {
        font-size: 12px;
        padding-left: 16px;
        margin-bottom: 6px;
    }

    .telegram-block__btn {
        padding: 12px;
        font-size: 13px;
    }

    .hero__desc {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .btn_desc {
        font-size: 13px;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    .wrapper {
        padding: 16px 12px;
    }

    .hero__title {
        font-size: 20px;
    }

    .hero__list li {
        font-size: 13px;
    }

    .hero__cta {
        font-size: 13px;
    }

    .form-block {
        padding: 16px;
    }

    .form-block__title {
        font-size: 18px;
    }

    .form__radios {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        gap: 16px;
    }

    .form__btn_desktop {
        display: none;
    }

    .form__btn_mobile{
        display: block;
    }

}

/* Фикс для iOS - безопасные зоны */
@supports (padding: max(0px)) {
    .wrapper {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}