/* ---------------------------------------------------------
   SEO-блоки: FAQ и перелинковка «Смотрите также».
   Namespaced (.seo-*), чтобы не конфликтовать
   со стилями лендингов и фича-страниц.

   Блоки живут и на главной (home.css, широкий .site-shell),
   и на лендингах (.page, 1120–1240px), поэтому собственную
   ширину не задают — тянутся по родительскому контейнеру.
   Токены дублируются локально: base.css и home.css
   объявляют разные переменные.
   --------------------------------------------------------- */

.seo-block {
    --seo-ink: #15171c;
    --seo-ink-soft: #3f4551;
    --seo-muted: #717783;
    --seo-accent: #245ef2;
    --seo-line: rgba(47, 107, 255, 0.12);
    --seo-line-strong: rgba(47, 107, 255, 0.26);
    --seo-surface: rgba(255, 255, 255, 0.74);

    width: 100%;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Отбивка от финального CTA-блока страницы: SEO-блоки — отдельный
   смысловой слой, они не должны прилипать к карточке призыва. */
.seo-faq {
    margin-top: clamp(56px, 6.5vw, 104px);
}

.seo-related {
    margin-top: clamp(44px, 5vw, 76px);
    margin-bottom: clamp(40px, 4.5vw, 68px);
}

.seo-block__title {
    margin: 0 0 6px;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 660;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--seo-ink);
}

.seo-block__sub {
    margin: 0;
    max-width: 720px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--seo-muted);
}

/* ---------- FAQ ---------- */

.seo-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .seo-faq__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.seo-faq__item {
    padding: 24px 26px 26px;
    border: 1px solid var(--seo-line);
    border-radius: 26px;
    background: var(--seo-surface);
    box-shadow: 0 18px 54px rgba(28, 39, 70, 0.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease;
}

.seo-faq__q {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--seo-ink);
    transition: color 220ms ease;
}

.seo-faq__a {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
    color: var(--seo-muted);
}

@media (hover: hover) and (pointer: fine) {
    .seo-faq__item:hover {
        border-color: var(--seo-line-strong);
        background-color: #ffffff;
        box-shadow:
            0 24px 52px rgba(26, 36, 67, 0.13),
            0 0 0 3px rgba(47, 107, 255, 0.07);
        transform: translateY(-6px);
    }

    .seo-faq__item:hover .seo-faq__q {
        color: var(--seo-accent);
    }
}

/* ---------- Смотрите также ---------- */

.seo-related__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .seo-related__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .seo-related__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.seo-related__item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 14px 18px;
    border: 1px solid var(--seo-line);
    border-radius: 20px;
    background: var(--seo-surface);
    box-shadow: 0 14px 36px rgba(28, 39, 70, 0.05);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--seo-ink);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.35;
    letter-spacing: -0.012em;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.seo-related__item::after {
    content: "→";
    color: var(--seo-accent);
    font-size: 14px;
    opacity: 0.45;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.seo-related__item:hover {
    border-color: var(--seo-line-strong);
    background: #ffffff;
    box-shadow: 0 22px 46px rgba(47, 107, 255, 0.12);
    transform: translateY(-2px);
}

.seo-related__item:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.seo-related__item:focus-visible {
    outline: 2px solid var(--seo-accent);
    outline-offset: 3px;
}

.seo-related__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(47, 107, 255, 0.07);
    font-size: 19px;
    line-height: 1;
}

@media (max-width: 580px) {
    .seo-faq__item {
        padding: 20px 20px 22px;
        border-radius: 22px;
    }

    .seo-related__item {
        min-height: 66px;
        border-radius: 18px;
    }

    .seo-related__icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seo-faq__item,
    .seo-faq__q,
    .seo-related__item,
    .seo-related__item::after {
        transition: none;
    }

    .seo-faq__item:hover,
    .seo-related__item:hover {
        transform: none;
    }
}
