/* Верстка SEO-статей операций.

   Отдельный файл, а не утилиты Tailwind: public/css/landing.css — готовый
   собранный CSS без сборщика (docs/conventions.md §8), нужных классов в нём
   нет и добавить их нечем. Подключается на странице статьи через @push('styles')
   из layouts/landing.blade.php.

   Все стили ограничены разметкой <x-seo-article-page>, чтобы не задевать
   остальные страницы лендинга. */

/* ---------- каркас ---------- */

.seo-page {
    background: #fff;
}

.seo-shell {
    width: 100%;
    max-width: 68rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 40rem) {
    .seo-shell {
        padding-inline: 1.5rem;
    }
}

/* ---------- шапка статьи ---------- */

.seo-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: 6.5rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}

.seo-hero__blob {
    position: absolute;
    z-index: -1;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    pointer-events: none;
}

.seo-hero__blob--violet {
    top: -9rem;
    left: -7rem;
    background: #a685ff;
}

.seo-hero__blob--blue {
    top: -5rem;
    right: -8rem;
    background: #7fb0ff;
}

.seo-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #62748e;
    text-decoration: none;
    transition: color 0.15s ease;
}

.seo-breadcrumb:hover {
    color: #7008e7;
}

.seo-breadcrumb__icon {
    width: 1rem;
    height: 1rem;
}

.seo-hero__inner {
    position: relative;
    max-width: 44rem;
    margin-top: 1.25rem;
}

.seo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid #ddd6ff;
    border-radius: 999px;
    background: #f5f3ff;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7008e7;
}

.seo-kicker__icon {
    width: 0.875rem;
    height: 0.875rem;
}

.seo-hero__title {
    margin: 0.875rem 0 0;
    font-family: var(--font-plus-jakarta, ui-sans-serif), system-ui, sans-serif;
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172b;
    text-wrap: balance;
}

.seo-hero__lead {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #45556c;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.seo-tag {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    padding: 0.3125rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #45556c;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.seo-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin: 1.375rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #62748e;
}

.seo-hero__meta li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.seo-hero__meta li + li::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 0.375rem;
    border-radius: 50%;
    background: #cad5e2;
}

.seo-hero__meta-icon {
    width: 0.9375rem;
    height: 0.9375rem;
    color: #a685ff;
}

@media (min-width: 40rem) {
    .seo-hero {
        padding-top: 8rem;
        padding-bottom: 3rem;
    }

    .seo-hero__title {
        font-size: 2.5rem;
    }

    .seo-hero__lead {
        font-size: 1.1875rem;
    }
}

@media (min-width: 64rem) {
    .seo-hero__title {
        font-size: 2.875rem;
    }
}

/* ---------- тело статьи ---------- */

.seo-body {
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
}

.seo-layout {
    display: block;
}

@media (min-width: 64rem) {
    .seo-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 17rem;
        gap: 2.5rem;
        align-items: start;
    }
}

/* ---------- текст ---------- */

.seo-prose {
    max-width: 44rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #314158;
}

.seo-prose > :first-child {
    margin-top: 0;
}

.seo-prose > :last-child {
    margin-bottom: 0;
}

.seo-prose p {
    margin: 0 0 1.25rem;
}

.seo-prose strong {
    font-weight: 700;
    color: #0f172b;
}

.seo-prose__lead {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: #45556c;
}

.seo-prose h2 {
    margin: 2.75rem 0 0.875rem;
    font-family: var(--font-plus-jakarta, ui-sans-serif), system-ui, sans-serif;
    font-size: 1.4375rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f172b;
    text-wrap: balance;
    scroll-margin-top: 5.5rem;
}

.seo-prose h2::before {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    margin-bottom: 0.875rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7f22fe, #3080ff);
}

.seo-prose h3 {
    margin: 2rem 0 0.625rem;
    font-family: var(--font-plus-jakarta, ui-sans-serif), system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172b;
}

.seo-prose ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.seo-prose ul li {
    margin-bottom: 0.4rem;
}

.seo-prose ul li::marker {
    color: #a685ff;
}

@media (min-width: 40rem) {
    .seo-prose h2 {
        font-size: 1.625rem;
    }
}

/* ---------- шаги ---------- */

.seo-steps {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
    list-style: none;
    counter-reset: seo-step;
}

.seo-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #fff;
    padding: 0.875rem 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    line-height: 1.6;
}

.seo-steps li::before {
    content: counter(seo-step);
    counter-increment: seo-step;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.0625rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7f22fe, #3080ff);
    font-family: var(--font-plus-jakarta, ui-sans-serif), system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

/* ---------- картинки ---------- */

.seo-figure {
    margin: 2rem 0 2.25rem;
}

.seo-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.5);
}

/* Подпись общая для статичных картинок и для слайдера «до/после»:
   и те и другие выводятся как <figure> внутри текста статьи. */
.seo-prose figure > figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    color: #62748e;
}

/* ---------- «до / после» ---------- */

/* Слайдер стоит сразу после шагов «Как это работает» — там, где читатель уже
   понял, что делает операция, и готов посмотреть на результат. Ширину держим
   меньше колонки текста: на всю ширину блок читается как баннер и перебивает
   абзацы. */
.seo-before-after {
    margin: 1.75rem 0 2.25rem;
}

.seo-before-after .ba-stage {
    max-width: 36rem;
    margin-inline: auto;
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.5);
}

/* Подсказка нужна потому, что ползунок не выглядит кликабельным, пока его
   не тронули. Держим её совсем негромкой — это служебная строка, а не часть
   текста статьи, и она не должна спорить с подписью под кадром. */
.seo-before-after__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #b0bccd;
}

.seo-before-after__hint-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: #c3cde0;
}

/* ---------- ссылки ---------- */

.seo-prose a:not(.seo-button) {
    color: #7008e7;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: #ddd6ff;
    text-underline-offset: 0.15em;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.seo-prose a:not(.seo-button):hover {
    color: #4d179a;
    text-decoration-color: currentColor;
}

/* ---------- кнопки ---------- */

.seo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.8125rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.seo-button__icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.15s ease;
}

.seo-button--light {
    background: #fff;
    color: #7008e7;
    box-shadow: 0 12px 26px -14px rgba(15, 23, 42, 0.55);
}

.seo-button--light:hover {
    color: #4d179a;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -14px rgba(15, 23, 42, 0.6);
}

.seo-button--light:hover .seo-button__icon {
    transform: translateX(2px);
}

.seo-button--violet {
    background: linear-gradient(135deg, #7f22fe, #3080ff);
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(76, 23, 154, 0.75);
}

.seo-button--violet:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -14px rgba(76, 23, 154, 0.85);
}

/* ---------- блок призыва в конце статьи ---------- */

.seo-cta-card {
    position: relative;
    overflow: hidden;
    margin: 2.25rem 0 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #7f22fe, #3080ff);
    padding: 1.75rem;
    color: #fff;
    box-shadow: 0 24px 48px -28px rgba(76, 23, 154, 0.85);
}

.seo-cta-card::before,
.seo-cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.seo-cta-card::before {
    top: -5rem;
    right: -4rem;
    width: 13rem;
    height: 13rem;
}

.seo-cta-card::after {
    bottom: -7rem;
    left: -3rem;
    width: 11rem;
    height: 11rem;
    background: rgba(255, 255, 255, 0.1);
}

.seo-cta-card > * {
    position: relative;
    z-index: 1;
}

.seo-cta-card__title {
    margin: 0;
    font-family: var(--font-plus-jakarta, ui-sans-serif), system-ui, sans-serif;
    font-size: 1.375rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.seo-cta-card__text {
    margin: 0.5rem 0 0;
    max-width: 30rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.seo-cta-card .seo-button {
    margin-top: 1.25rem;
}

.seo-cta-card__note {
    margin: 0.875rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 40rem) {
    .seo-cta-card {
        padding: 2rem 2.25rem;
    }

    .seo-cta-card__title {
        font-size: 1.5rem;
    }
}

/* ---------- боковая колонка ---------- */

.seo-aside {
    display: none;
}

@media (min-width: 64rem) {
    .seo-aside {
        display: block;
        position: sticky;
        top: 6rem;
    }
}

.seo-aside-card {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 20px 44px -32px rgba(15, 23, 42, 0.5);
}

.seo-aside-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7008e7;
}

.seo-aside-card__eyebrow-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.seo-toc {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: seo-toc;
}

.seo-toc li {
    counter-increment: seo-toc;
}

.seo-toc li + li {
    border-top: 1px solid #f1f5f9;
}

.seo-toc a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #45556c;
    text-decoration: none;
    transition: color 0.15s ease;
}

.seo-toc a::before {
    content: counter(seo-toc, decimal-leading-zero);
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #cad5e2;
}

.seo-toc a:hover {
    color: #7008e7;
}

.seo-aside-card + .seo-aside-card {
    margin-top: 1rem;
}

.seo-aside-card__title {
    margin: 0.5rem 0 0;
    font-family: var(--font-plus-jakarta, ui-sans-serif), system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 800;
    color: #0f172b;
}

.seo-aside-card__text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #62748e;
}

.seo-aside-card .seo-button {
    width: 100%;
    margin-top: 1.125rem;
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.seo-note {
    margin: 0.875rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #90a1b9;
}

/* ---------- прочее ---------- */

@media (prefers-reduced-motion: reduce) {
    .seo-button,
    .seo-button__icon,
    .seo-breadcrumb,
    .seo-prose a:not(.seo-button) {
        transition: none;
    }

    .seo-button:hover {
        transform: none;
    }
}
