/* ===== page-about.css — компактная about-страница ===== */

/* ─── Мини-герой ─── */
.ab-hero {
    padding: 56px 0 44px;
    text-align: center;
}
.ab-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.ab-hero-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--accent-soft);
    color: var(--accent);
}
.ab-hero-title {
    margin: 0 auto 14px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 600px;
}
.ab-hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ab-hero-sub {
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 520px;
}
.ab-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.ab-hero-actions .btn {
    padding: 12px 28px;
    font-size: 14px;
}

/* ─── Контент из БД ─── */
.ab-about {
    padding: 44px 0;
}
.ab-about-content {
    max-width: 780px;
    margin: 0 auto;
}
.ab-about-content p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
}
.ab-about-content p:last-child {
    margin-bottom: 0;
}

/* ─── Преимущества из БД ─── */
.ab-advantages {
    padding: 20px 0 60px;
}
.ab-advantages-title {
    margin: 0 0 28px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}
.ab-advantages ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 780px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ab-advantages ul li {
    position: relative;
    padding: 20px 22px 20px 26px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: border-color 0.25s, transform 0.2s;
}
.ab-advantages ul li:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
/* Если последний элемент нечётный (один на строке) — центрируем */
.ab-advantages ul li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
    text-align: center;
}

/* ─── Ответка ─── */
@media (max-width: 640px) {
    .ab-hero {
        padding: 36px 0 28px;
    }
    .ab-hero-title {
        font-size: 26px;
    }
    .ab-hero-sub {
        font-size: 14px;
    }
    .ab-about {
        padding: 28px 0;
    }
    .ab-advantages {
        padding: 12px 0 40px;
    }
    .ab-advantages ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ab-advantages ul li {
        padding: 16px 18px;
    }
}

/* ===== LIGHT THEME — оверрайды ===== */
html[data-theme="light"] .ab-hero-tag {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(63, 99, 241, 0.18);
}
html[data-theme="light"] .ab-advantages ul li {
    background: #ffffff;
    border-color: rgba(30, 41, 59, 0.1);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
}
html[data-theme="light"] .ab-advantages ul li:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(63, 99, 241, 0.1);
}
