/* ============================================================
   thanks.css — страница «Спасибо за заявку» (после verify)
   ============================================================ */

html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}
html { min-height: 0 !important; height: auto !important; }
body.thanks-page {
    min-height: 0 !important;
    height: auto !important;
    background: var(--color-bg);
    margin: 0;
    padding: 0;
}

/* ============================================================
   ШАПКА — используем общий .site-header из main.css.
   На thanks делаем relative вместо sticky (короткая страница, sticky не нужен)
   и принудительно прижимаем к верху без отступов.
   ============================================================ */
.thanks-page .site-header {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
}

/* ============================================================
   ФУТЕР thanks — компактнее (переопределяем общий)
   ============================================================ */
.thanks-page .site-footer {
    padding: 14px 0 10px !important;
    border-top: 0 !important;
}
.thanks-page .footer__inner { gap: 14px !important; }
.thanks-page .footer__logo-img { height: 56px !important; }
.thanks-page .footer__copy {
    margin-top: 8px !important;
    padding-top: 10px !important;
    font-size: 12px;
}
.thanks-page .footer__legal a {
    min-height: 36px !important;
    padding: 6px 8px !important;
    font-size: 14px;
}
@media (max-width: 991px) {
    .thanks-page .site-footer { padding: 8px 0 4px !important; }
    .thanks-page .footer__logo-img { height: 82px !important; }
}
@media (max-width: 767px) {
    /* На мобиле — вертикальный футер сильно компактнее */
    .thanks-page .footer__inner {
        gap: 10px;
    }
    .thanks-page .footer__legal {
        flex-direction: column;
        gap: 2px;
        align-items: center;
    }
    .thanks-page .footer__legal a {
        min-height: 36px;            /* всё ещё тач-friendly, но плотнее */
        padding: 6px 8px;
        font-size: 14px;
    }
}
@media (max-width: 575px) {
    .thanks-page .site-footer { padding: 6px 0 4px !important; }
    .thanks-page .footer__logo-img { height: 74px !important; }
    .thanks-page .footer__copy {
        margin-top: 6px !important;
        padding-top: 6px !important;
        font-size: 12px;
    }
}
@media (max-width: 360px) {
    .thanks-page .footer__logo-img { height: 66px !important; }
}

/* ============================================================
   MAIN wrapper
   ============================================================ */
.thanks {
    padding: 24px 0 0;              /* нижний padding обнулил — footer сразу */
    /* flex: 1 убран — main больше не растягивает страницу до 100vh. */
}
@media (max-width: 767px) {
    .thanks { padding: 12px 0 0; }
}

/* ============================================================
   HERO «Спасибо за заявку!»
   ============================================================ */
.thanks-hero {
    position: relative;
    overflow: hidden;
    padding: 12px 0 24px;
}
.thanks-hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (min-width: 900px) {
    .thanks-hero__container {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 32px;
    }
}

.thanks-hero__content {
    max-width: 640px;
    text-align: left;
}
.thanks-hero__title {
    font-size: clamp(40px, 5.6vw, 88px);
    line-height: 1.04;
    font-weight: 800;
    color: var(--color-brand);
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}
.thanks-hero__text {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 540px;
}

.thanks-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0;
}
/* Halo — мягкое тёплое пятно за щитом */
.thanks-hero__visual::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    width: clamp(320px, 36vw, 580px);
    height: clamp(320px, 36vw, 580px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
}
.thanks-hero__shield {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    filter: drop-shadow(0 36px 60px rgba(var(--accent-rgb), 0.18));
}

/* Планшет/мобайл — всё по центру, щит снизу */
@media (max-width: 899px) {
    .thanks-hero { padding: 8px 0 16px; }
    .thanks-hero__container { gap: 16px; }
    .thanks-hero__content {
        text-align: center;
        margin: 0 auto;
        max-width: 560px;
    }
    .thanks-hero__title {
        font-size: clamp(36px, 8vw, 60px);
        margin-bottom: 16px;
    }
    .thanks-hero__title br { display: none; }
    .thanks-hero__text {
        margin: 0 auto;
        max-width: 520px;
        font-size: 16px;
    }
    .thanks-hero__visual { order: 2; padding-top: 8px; }
    .thanks-hero__shield { max-width: 340px; }
    .thanks-hero__visual::before { width: 340px; height: 340px; }
}
@media (max-width: 575px) {
    .thanks-hero__title { font-size: clamp(32px, 10vw, 44px); }
    .thanks-hero__text  { font-size: 15px; line-height: 1.5; }
    .thanks-hero__shield { max-width: 240px; }
    .thanks-hero__visual::before { width: 260px; height: 260px; }
}

/* Декоративные звёзды */
.thanks-hero__star {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.75;
}
.thanks-hero__star--1 { top: 8%;  left: 2%;  width: 52px;  }
.thanks-hero__star--2 { top: 40%; right: 6%; width: 30px;  opacity: 0.6; }
.thanks-hero__star--3 { bottom: 6%; left: 28%; width: 40px; opacity: 0.55; }
@media (max-width: 899px) {
    .thanks-hero__star--1 { width: 36px; top: 4%; left: 3%; }
    .thanks-hero__star--2 { width: 24px; right: 4%; top: 30%; }
    .thanks-hero__star--3 { width: 28px; bottom: 4%; left: 12%; }
}
@media (max-width: 575px) {
    .thanks-hero__star--1 { width: 28px; }
    .thanks-hero__star--2 { width: 18px; }
    .thanks-hero__star--3 { width: 22px; }
}

/* ============================================================
   3 КАРТОЧКИ С ИНФОРМАЦИЕЙ
   На планшетах (<1024) — одна колонка, чтобы текст не перекашивало.
   На десктопе (≥1024) — три колонки, выровненные по верху.
   ============================================================ */
.thanks-features {
    padding: 12px 0 28px;
}
.thanks-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 1024px) {
    .thanks-features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

.thanks-feature {
    background: #fff;
    border-radius: 20px;
    padding: 22px 22px;
    display: flex;
    align-items: center;                /* иконка по центру вертикально */
    gap: 18px;
    border: 1px solid rgba(var(--brand-rgb), 0.06);
    box-shadow: 0 16px 36px rgba(var(--brand-rgb), 0.07);
    transition: transform var(--t-base) ease, box-shadow var(--t-base) ease;
}
.thanks-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(var(--brand-rgb), 0.10);
}
.thanks-feature__icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--color-bg-warm);
    padding: 9px;
    box-shadow: 0 6px 14px rgba(var(--brand-rgb), 0.06);
}
.thanks-feature__body {
    min-width: 0;
    text-align: left;
    flex: 1;
}
.thanks-feature__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-brand);
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.thanks-feature__text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text-muted);
    margin: 0;
}

/* На десктопе 1024+ — иконка и текст выравниваются по верху,
   чтобы заголовки во всех карточках стартовали с одной линии. */
@media (min-width: 1024px) {
    .thanks-feature {
        align-items: flex-start;
        padding: 22px 20px;
        gap: 16px;
        min-height: 120px;
    }
    .thanks-feature__icon {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
        border-radius: 14px;
    }
}
@media (min-width: 1200px) {
    .thanks-feature { padding: 24px 22px; gap: 18px; }
    .thanks-feature__icon {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
        border-radius: 16px;
    }
    .thanks-feature__title { font-size: 17px; }
}

@media (max-width: 575px) {
    .thanks-features { padding: 4px 0 20px; }
    .thanks-feature {
        padding: 18px 16px;
        gap: 14px;
        border-radius: 16px;
    }
    .thanks-feature__icon {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        padding: 7px;
        border-radius: 12px;
    }
    .thanks-feature__title { font-size: 16px; }
    .thanks-feature__text  { font-size: 14px; }
}

/* ============================================================
   TRUST-BAR (нижняя плашка)
   ============================================================ */
.thanks-trust {
    padding: 12px 0 12px;            /* уменьшил нижний отступ — футер сразу за trust-bar */
}
.thanks-trust__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 26px;
    background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.10);
    box-shadow: 0 16px 36px rgba(var(--brand-rgb), 0.06);
    overflow: hidden;
}
.thanks-trust__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}
.thanks-trust__text {
    flex: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    min-width: 0;
}
.thanks-trust__text strong {
    color: var(--color-brand);
    font-weight: 800;
}
.thanks-trust__star {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    opacity: 0.85;
}
@media (max-width: 575px) {
    .thanks-trust { padding: 4px 0 16px; }
    .thanks-trust__inner {
        padding: 16px 16px;
        gap: 12px;
        border-radius: 16px;
    }
    .thanks-trust__icon { width: 32px; height: 32px; flex: 0 0 32px; }
    .thanks-trust__star { width: 32px; height: 32px; flex: 0 0 32px; }
    .thanks-trust__text { font-size: 14px; line-height: 1.45; }
}
