/* ---- Базовое ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f7f7f7;
    --primary: #de393b;
    --on-surface: #2c3850;
    --on-surface-variant: #586173;
    --inactive: #c8cdd9;
    --white: #fff;
    --shadow: 0 3px 13px rgba(14, 33, 73, 0.1);
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--on-surface);
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Каркас страницы ---- */
.page {
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
    padding: 60px 40px 48px;
    overflow: hidden;
}

/* Декоративное «пятно» справа сверху */
.blob {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}
.blob img { width: 828px; height: 574px; max-width: none; aspect-ratio: 828 / 574; }

/* Всё содержимое выше «пятна» */
.header, .hero, .card, .foot { position: relative; z-index: 1; }

/* ---- Шапка ---- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo { display: block; }
.logo img { width: 232px; height: 35px; }
.credit { font-size: 14px; color: var(--on-surface-variant); letter-spacing: -0.28px; }
.credit span { text-decoration: underline; }

/* ---- Герой ---- */
.hero {
    position: relative;
    margin-top: 100px; /* лого → «Помогаем» = 100px */
}
.hero__content { max-width: 620px; }
.hero__title {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.08;
    color: var(--on-surface);
}
.features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 70px;   /* «Помогаем» → список фич = 70px */
    margin-left: 40px;  /* список фич сдвинут вправо на 40px */
}
.feature {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 21px;
    letter-spacing: -0.42px;
    color: var(--on-surface);
}
.feature__icon { width: 32px; height: 32px; }
/* Иллюстрация абсолютно позиционирована справа — не влияет на вертикальный ритм слева */
.hero__illustration { position: absolute; top: -35px; right: 0; z-index: 1; }
.hero__illustration img { width: 472px; height: 419px; max-width: 100%; aspect-ratio: 472 / 419; }

/* ---- Карточка формы ---- */
.card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 32px 40px;
    margin-top: 70px; /* список фич → плашка с формой = 70px */
}
.card__text { flex-shrink: 0; }
.card__title { font-size: 22px; font-weight: 700; letter-spacing: -0.44px; }
.card__sub { font-size: 16px; color: var(--on-surface-variant); letter-spacing: -0.32px; margin-top: 3px; }
.card__input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--inactive);
    border-radius: 99px;
    background: var(--white);
}
.card__input-icon { width: 20px; height: 20px; flex-shrink: 0; }
.card__input input {
    border: none;
    outline: none;
    width: 100%;
    font: inherit;
    font-size: 16px;
    letter-spacing: -0.32px;
    color: var(--on-surface);
    background: transparent;
}
.card__input input::placeholder { color: var(--on-surface-variant); }
.card__btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 40px;
    border: none;
    border-radius: 99px;
    background: var(--primary);
    color: var(--white);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.36px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.card__btn:hover { transform: translateY(-1px); opacity: 0.95; }

/* ---- Нижний блок ---- */
.foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 70px;
}
.foot__left { margin-left: 40px; } /* блок «А пока…» сдвинут вправо на 40px, как список фич */
.foot__note { font-size: 16px; letter-spacing: -0.32px; color: var(--on-surface); }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    max-width: 320px;
    font-size: 22px;
    letter-spacing: -0.44px;
    color: var(--primary);
}
.service-link__arrow { font-size: 18px; }

.foot__right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.socials { display: flex; gap: 15px; }
.social {
    width: 64px;
    height: 64px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.15s ease;
}
.social:hover { transform: translateY(-2px); }
.social img { width: 100%; height: 100%; }
.social--red { background: var(--primary); }
.social--red .social__glyph { width: 44%; height: auto; }
.copyright { font-size: 16px; color: var(--on-surface-variant); line-height: 1.5; }

/* ---- Модалка ответа формы ---- */
.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 33, 73, 0.35);
    backdrop-filter: blur(2px);
}
.modal__card {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}
.modal__title { font-size: 22px; font-weight: 700; letter-spacing: -0.44px; color: var(--on-surface); }
.modal__text { font-size: 16px; color: var(--on-surface-variant); margin-top: 10px; line-height: 1.4; }
.modal__btn {
    margin-top: 24px;
    height: 48px;
    padding: 0 40px;
    border: none;
    border-radius: 99px;
    background: var(--primary);
    color: var(--white);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.36px;
    cursor: pointer;
}
.card__btn:disabled { opacity: 0.6; cursor: default; }

/* ============ Планшет крупный (≤1024) ============ */
@media (max-width: 1024px) {
    .page { padding: 48px 32px 40px; }
    .hero__title { font-size: 42px; }
    .hero__content { max-width: 460px; }
    .hero__illustration { top: 0; }
    .hero__illustration img { width: 360px; height: auto; }
    .blob img { width: 620px; height: auto; }
    .card { flex-wrap: wrap; }
    .card__input { order: 2; flex: 1 1 60%; }
    .card__btn { order: 3; }
    .card__text { order: 1; flex: 1 1 100%; }
}

/* ============ Планшет (≤768) ============ */
@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 60px;
    }
    .hero__content { max-width: none; order: 1; }
    /* Иллюстрация возвращается в обычный поток — над текстом, по центру */
    .hero__illustration { position: static; order: 0; align-self: center; }
    .hero__illustration img { width: 340px; height: auto; }
    .hero__title { font-size: 40px; }
    /* На узких экранах убираем сдвиги вправо на 40px */
    .features { margin-top: 40px; margin-left: 0; }
    .card { margin-top: 40px; }
    .foot { flex-direction: column; align-items: flex-start; gap: 28px; }
    .foot__left { margin-left: 0; }
    .foot__right { align-items: flex-start; }
    .blob img { width: 460px; height: auto; }
}

/* ============ Мобильный (≤480) ============ */
@media (max-width: 480px) {
    .page { padding: 32px 20px 36px; }
    .header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero__title { font-size: 32px; letter-spacing: -1px; }
    .feature { font-size: 18px; }
    .hero__illustration img { width: 260px; height: auto; }

    .card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 24px;
    }
    .card__input, .card__btn { order: 0; width: 100%; }
    .card__btn { justify-content: center; }

    .service-link { font-size: 20px; max-width: 100%; }
    .socials { gap: 12px; }
    .social { width: 56px; height: 56px; }
}
