/* SEO-лендінги (page-seo-landing.php). Hero спирається на .page-hero з main.css,
   кнопки .btn, акордеон .faq-* теж звідти. Токени --ndc-* визначені в main.css. */

.main-seo-landing {
    /* Скидаємо відступи й градієнт глобального .main: інакше над hero і під останнім блоком видно смуги. */
    display: block;
    min-height: 0;
    height: auto;
    padding: 0;
    background: #fff;
    animation: none;
}
.main-seo-landing .ndc-custom-blocks { background: #fff; }

/* ---- Hero ---- */
.sl-hero { padding: 150px 0 100px; }
.sl-hero__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.ndc-custom-blocks .sl-hero h1 { font-size: 48px; margin-top: 0; max-width: none; text-transform: none; font-weight: 800; line-height: 1.15; }
.ndc-custom-blocks .sl-hero .hero-badge { margin-top: 0; margin-bottom: 24px; }
.ndc-custom-blocks .sl-hero .hero-sub { font-size: 18px; max-width: 620px; margin-top: 24px; }
.ndc-custom-blocks .sl-hero .hero-actions { margin-top: 36px; }
.sl-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* однакові колонки: рівні відстані між метриками */
    gap: 20px 32px;
    max-width: 620px;
    list-style: none;
    margin: 44px 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
.sl-hero__meta li { display: flex; flex-direction: column; gap: 6px; }
.sl-hero__meta strong { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; }
.sl-hero__meta span { font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.35; }
.sl-hero__card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 24px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}
.sl-hero__card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}
.sl-hero__row { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sl-hero__row:first-of-type { border-top: 0; padding-top: 0; }
.sl-hero__row-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ndc-accent-2);
    margin-bottom: 4px;
}
.sl-hero__row-text { display: block; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

/* ---- Sections ---- */
.sl-section { padding: 96px 0; background: #fff; }
.sl-section--soft { background: var(--ndc-bg-soft); }
.sl-section--dark { background: var(--ndc-grad); color: #fff; }

.sl-head { margin-bottom: 48px; max-width: 760px; }
.sl-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sl-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8a99;
    margin-bottom: 12px;
}
.sl-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1b1b2f;
    margin: 0;
}
.sl-section--dark .sl-title { color: #fff; }
.sl-line { display: block; width: 38px; height: 3px; border-radius: 3px; background: #d41a45; margin: 18px 0 0; }
.sl-head--center .sl-line { margin-left: auto; margin-right: auto; }
.sl-lead { font-size: 17px; line-height: 1.65; color: #55556a; margin: 22px 0 0; }
.sl-section--dark .sl-lead { color: rgba(255, 255, 255, 0.75); }
.sl-text { font-size: 17px; line-height: 1.7; color: #55556a; max-width: 860px; margin: 0 0 18px; }
.sl-outro {
    margin: 40px 0 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    color: #1b1b2f;
    max-width: 780px;
}
.sl-note { margin: 28px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.sl-note--light { color: #8a8a99; }

/* ---- Cards ---- */
.sl-grid { display: grid; gap: 22px; margin-top: 32px; }
.sl-head + .sl-grid { margin-top: 0; }
.sl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sl-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sl-card, .sl-case, .sl-link, .sl-price, .sl-step {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(27, 27, 47, 0.04);
}
.sl-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(238, 57, 96, 0.1);
    color: var(--ndc-accent);
    margin-bottom: 20px;
}
.sl-card__icon svg { width: 24px; height: 24px; }
.sl-card__num, .sl-step__num {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--ndc-accent);
    margin-bottom: 16px;
}
.sl-card__role {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8a99;
    margin-bottom: 6px;
}
.sl-card__title { font-size: 19px; font-weight: 700; line-height: 1.3; color: #1b1b2f; margin: 0 0 10px; }
.sl-card__text { font-size: 15px; line-height: 1.6; color: #55556a; margin: 0; }

/* ---- Chat ---- */
.sl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sl-split .sl-head { margin-bottom: 28px; }
.sl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sl-points li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.55;
    color: #3d3d52;
}
.sl-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(238, 57, 96, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee3960' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.sl-points--tight { gap: 8px; margin-top: 18px; }
.sl-points--tight li { font-size: 14px; }
.sl-chat {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(27, 27, 47, 0.08);
    display: grid;
    gap: 12px;
}
.sl-chat__top {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8a99;
    padding-bottom: 12px;
    border-bottom: 1px solid #ececf3;
}
.sl-chat__msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.sl-chat__msg--user { justify-self: end; background: var(--ndc-bg-dark-1); color: #fff; border-bottom-right-radius: 4px; }
.sl-chat__msg--ai { background: var(--ndc-bg-soft); color: #1b1b2f; border-bottom-left-radius: 4px; }
.sl-chat__name { display: block; font-size: 12px; font-weight: 700; color: var(--ndc-accent); margin-bottom: 3px; }
.sl-chat__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sl-chat__tags span {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 192, 138, 0.12);
    color: #138a62;
}

/* ---- Compare table ---- */
.sl-table-wrap { overflow-x: auto; border: 1px solid #ececf3; border-radius: 18px; background: #fff; }
.sl-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sl-table th, .sl-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-top: 1px solid #ececf3; color: #55556a; }
.sl-table thead th { border-top: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a99; background: #fafafc; }
.sl-table tbody th { font-weight: 700; color: #1b1b2f; width: 22%; }
.sl-table .is-ours { background: rgba(238, 57, 96, 0.05); color: #1b1b2f; font-weight: 600; }
.sl-table thead th.is-ours { color: var(--ndc-accent); background: rgba(238, 57, 96, 0.08); }

/* ---- Stats ---- */
.sl-grid--stat { margin-top: 0; }
.sl-stat { display: flex; flex-direction: column; padding: 26px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.sl-stat__value { font-size: 28px; font-weight: 800; line-height: 1.15; color: #fff; }
.sl-stat__label { margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.sl-stat__who { margin-top: auto; padding-top: 16px; /* підпис притиснутий до низу: на одному рівні в усіх картках */ font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ndc-accent-2); }

/* ---- Chips ---- */
.sl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sl-chips li {
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid #e0e0ea;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #1b1b2f;
}
.sl-chips--accent { margin-top: 36px; }
.sl-chips--accent li { background: rgba(238, 57, 96, 0.08); border-color: rgba(238, 57, 96, 0.25); color: #b3163b; }

/* ---- Cases ---- */
.sl-case { display: flex; flex-direction: column; }
.sl-case__tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(238, 57, 96, 0.1);
    color: var(--ndc-accent);
    margin-bottom: 16px;
}
.sl-case__title { font-size: 20px; font-weight: 700; line-height: 1.3; color: #1b1b2f; margin: 0 0 10px; }
.sl-case__result {
    margin-top: auto;
    padding-top: 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1b1b2f;
}
.sl-case .sl-card__text + .sl-case__result { margin-top: 18px; border-top: 1px solid #ececf3; }
.sl-case .sl-points + .sl-case__result { margin-top: 18px; border-top: 1px solid #ececf3; }
.sl-case .sl-card__text { flex: 1 0 auto; }

/* ---- Steps ---- */
.sl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.sl-step { position: relative; }
.sl-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ndc-pink-line);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
    padding-top: 1px; /* Gilroy: цифра візуально сидить вище центру рядка, компенсуємо */
    margin-bottom: 16px;
}

/* ---- Pricing ---- */
.sl-price__label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a99; }
.sl-price__value { font-size: 36px; font-weight: 800; line-height: 1.15; color: #1b1b2f; margin: 10px 0 14px; }
.sl-price--main { background: var(--ndc-grad); border-color: transparent; }
.sl-price--main .sl-price__label { color: rgba(255, 255, 255, 0.65); }
.sl-price--main .sl-price__value { color: #fff; }
.sl-price--main .sl-card__text { color: rgba(255, 255, 255, 0.8); }
.sl-factors { margin-top: 36px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid #ececf3; }
.sl-section--soft .sl-factors { background: #fff; }
.sl-factors .sl-card__title { margin-bottom: 18px; }

/* ---- CTA ---- */
.sl-cta { padding: 0 0 96px; background: #fff; }
/* Після сірої секції біла смуга CTA починається впритул до неї: додаємо верхній відступ. Після білої відступ уже є в самій секції. */
.sl-section--soft + .sl-cta { padding-top: 96px; }
.sl-cta__box {
    position: relative;
    overflow: hidden;
    padding: 64px 56px;
    border-radius: 28px;
    background: var(--ndc-grad);
    color: #fff;
    text-align: center;
}
.sl-cta__box::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -140px;
    top: -200px;
    background: radial-gradient(closest-side, rgba(238, 57, 96, 0.4), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.sl-cta__title { position: relative; z-index: 1; font-size: 38px; font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: #fff; }
.sl-cta__text { position: relative; z-index: 1; max-width: 640px; margin: 0 auto 32px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
.sl-cta__box .btn { position: relative; z-index: 1; }
.sl-cta__note { position: relative; z-index: 1; margin: 20px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* ---- Related ---- */
.sl-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sl-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(27, 27, 47, 0.1); }
.sl-link .sl-card__title { margin: 0; }
.sl-link__arrow { margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--ndc-accent); }

/* ---- FAQ on soft/white ---- */
.sl-section .faq-list { max-width: 900px; margin: 0 auto; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .sl-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .sl-hero__grid, .sl-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .sl-hero { padding: 120px 0 64px; }
    .ndc-custom-blocks .sl-hero h1 { font-size: 32px; }
    .ndc-custom-blocks .sl-hero .hero-sub { font-size: 16px; }
    .sl-section { padding: 64px 0; }
    .sl-title, .sl-cta__title { font-size: 28px; }
    .sl-grid--2, .sl-grid--3, .sl-grid--4, .sl-steps { grid-template-columns: 1fr; }
    .sl-cta { padding-bottom: 64px; }
    .sl-section--soft + .sl-cta { padding-top: 64px; }
    .sl-cta__box { padding: 44px 24px; }
    .sl-outro { font-size: 17px; }
    .sl-table thead { display: none; }
    .sl-table, .sl-table tbody, .sl-table tr, .sl-table th, .sl-table td { display: block; width: 100%; }
    .sl-table tbody th { width: 100%; background: #fafafc; padding-bottom: 10px; }
    .sl-table td { border-top: 0; padding-top: 10px; padding-bottom: 10px; }
    .sl-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a99; margin-bottom: 2px; }
}
