@charset "UTF-8";

/* ======================================
   Переменные темы (цвета, размеры)
   Используются для единообразия стилей
======================================= */
:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #6b7280;
    --border: #e5e7eb;
    --accent: #c540ab;
    --accent-600: #aa2d93;
    --container: 1200px;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --header-h: 76px;
}

/* ======================================
   База: сбросы, типографика, утилиты
======================================= */
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html, body { overflow-x: hidden; }
}

@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-Regular.woff2') format('woff2'),
    url('/css/fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-Medium.woff2') format('woff2'),
    url('/css/fonts/Inter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-SemiBold.woff2') format('woff2'),
    url('/css/fonts/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-Bold.woff2') format('woff2'),
    url('/css/fonts/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-ExtraBold.woff2') format('woff2'),
    url('/css/fonts/Inter-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* === Sticky footer (футер всегда внизу) === */
body {
    display: flex;
    flex-direction: column;

    /* Главное: корректная высота экрана на всех устройствах */
    min-height: 100dvh;                         /* современно и корректно на мобилках */
}
/* Фолбэк для старых браузеров */
@supports not (height: 100dvh) {
    body { min-height: 100vh; }
}

main, .main { flex: 1 1 auto; }

/* Ключевой трюк: футер сам «прилипает» к низу */
footer { margin-top: auto; }

/* === Оформление 404 === */
.error {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.error-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px; height: 120px;
    margin: 0 auto 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: #fff;
}
.error-code {
    font-size: 4.5rem;
    line-height: 1;
    margin: 10px 0 8px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.error-text { color: #374151; margin: 0 0 16px; }
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.error-help { margin-top: 16px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Отступ при якорной прокрутке с учётом фиксированной шапки */
section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Контейнер сетки */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: clamp(12px, 5vw, 20px);
}

/* Тихий текст и бейдж */
.muted { color: var(--muted); }
.badge {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.875rem;
}

/* ======================================
   Кнопки (основная и контурная)
======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    background: transparent;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-600); }
.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff;
}
.btn-outline:hover { background: #fff0fb; }

/* ======================================
   Шапка и навигация
======================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.logo { margin-bottom: 6px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопка-гамбургер (моб.) */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.nav-toggle .icon {
    stroke: #111;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.nav-toggle .line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.nav-toggle .icon-burger { display: block; }
.nav-toggle .icon-close  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close  { display: block; }
.nav-toggle[aria-expanded="true"] .line.top    { transform: translateY(5px)  rotate(45deg); }
.nav-toggle[aria-expanded="true"] .line.middle { opacity: 0; }
.nav-toggle[aria-expanded="true"] .line.bottom { transform: translateY(-5px) rotate(-45deg); }

/* Мобильная панель навигации */
.mobile-menu {
    position: fixed;
    left: 0; right: 0; top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    padding: 14px 20px 18px;
    z-index: 49;
}
.mobile-menu.open { display: block; }
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-links a {
    color: #374151;
    font-size: 1.0625rem;
    font-weight: 500;
    padding: 8px 0;
}
.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.mobile-cta .btn { width: 100%; }
html.body-lock {
    overflow: hidden;
}

/* ======================================
   Общие секции и компоненты
======================================= */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.875rem, 3.2vw, 2.375rem); line-height: 1.15; margin: 0 0 24px; }
.accent-text { color: var(--accent); }
.page-heading { font-size: clamp(2.125rem, 4vw, 2.875rem); line-height: 1.12; margin: 8px 0 12px; }
.section-title-center { text-align: center; }
.section-title-spacious { margin-bottom: 40px !important; }
.section-title-tight { margin-bottom: 15px !important; }
.section-text-center { text-align: center; }
.section-text-spaced { margin-bottom: 25px !important; }
.section-soft-box {
    background: #f8f9fa;
    padding: 60px 0;
    border-radius: 20px;
    margin: 40px 15px;
}
.section-soft-box-bottom {
    margin: 0 15px 40px;
    padding: 40px 0;
}
.section-divider-box {
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 40px 0;
}

/* Панель для контентных страниц (Политика, Соглашение) */
.panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.panel .subtitle {
    font-size: clamp(1.625rem, 2.8vw, 2rem);
    line-height: 1.2;
    font-weight: 400;
}
.panel-offset-top { margin-top: 16px; }
.contacts-content {
    max-width: 760px;
}
.contacts-content h1 {
    margin: 0 0 28px;
}
.contacts-content h3 {
    margin: 32px 0 14px;
    font-size: 1.5rem;
    line-height: 1.25;
}
.contacts-content p {
    margin: 0 0 18px;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
}
.contacts-content a {
    color: var(--accent-600);
}
.contacts-content .muted {
    color: var(--muted);
}

/* ======================================
   Компоненты главной страницы (main.php)
======================================= */
.hero { padding: 48px 0 24px; }
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 36px;
    align-items: center;
}
.hero h1 { font-size: clamp(2.625rem, 5vw, 3.25rem); line-height: 1.04; margin: 0 0 16px; }
.hero p.sub { font-size: 1.125rem; line-height: 1.7; color: #374151; margin: 0 0 28px; }
.hero .cta-note { font-size: 0.9375rem; color: var(--muted); margin-top: 8px; }
.hero h1,
.hero p.sub,
.hero .cta-note,
.hero .hero-trust-note {
    overflow-wrap: anywhere;
    hyphens: auto;
}
.hero-media {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
}
.hero-media-link{ position:relative; display:block; }
.hero-media-cta{
    position:absolute;
    right:16px; bottom:16px;
    /*background: rgba(136, 45, 119, 0.75);*/
    background: rgba(17, 17, 17, 0.65);
    color:#fff;
    padding:10px 12px;
    border-radius:12px;
    font-weight:600;
    font-size:1rem;
}
.hero-media-cta{
    max-width: calc(100% - 32px); /* 16px слева + 16px справа */
    white-space: normal;          /* разрешаем перенос строк */
    text-wrap: balance;           /* если поддерживается — аккуратнее переносы */
}
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}
.card .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #fff0fb;
    border: 1px solid #ffd2f1;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.card .icon img { width: 22px; height: 22px; }
.card h3 { margin: 6px 0 8px; font-size: 1.25rem; line-height: 1.25; }
.card p,
.step p,
.tcard p {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.benefit {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    margin: 34px 0;
}
.benefit h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.2;
}
.benefit p {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0;
}
.benefit:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.benefit .viz {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.steps-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cards-auto-fit-wide {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.step {
    border: 1px dashed #f1c5e7;
    border-radius: 16px;
    padding: 20px;
}
.step .num { font-weight: 700; color: var(--accent); margin-bottom: 8px; font-size: 1.25rem;}
.step .sicon { width: 28px; height: 28px; margin-bottom: 8px; }
.step h3 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.tcard {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.person .meta { line-height: 1.2; }
.person .name { font-size: 1.0625rem; font-weight: 600; }
.person .role { font-size: 0.875rem; color: var(--muted); }
.quote { font-size: 1.125rem; line-height: 1.7; font-style: italic; color: #1f2937; }

.cta-final {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    background: linear-gradient(180deg, #fff 0, #c540ab0d 100%);
    text-align: center;
}
.cta-final h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.15; margin: 0 0 8px; }
.cta-final p { font-size: 1.0625rem; line-height: 1.7; color: #374151; margin: 0 0 18px; }
.maturity-title {
    font-size: clamp(1.75rem, 2.7vw, 2.125rem) !important;
    margin-bottom: 20px !important;
    text-align: center;
}
.maturity-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.faq {

}
details {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    background: #fff;
}
details + details { margin-top: 12px; }
summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1875rem;
    line-height: 1.45;
    font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary .q { margin-right: 12px; }
summary .toggle {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: #fff0fb;
    border: 1px solid #ffd2f1;
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; line-height: 1;
}
details[open] summary .toggle {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
details .answer { margin-top: 10px; color: #374151; }

/* ======================================
   Компоненты страницы тарифов (pricing.html)
======================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.plan {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 26px;
    display: flex;
    flex-direction: column;
}
.plan h3 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.2; }
.price { font-size: clamp(2.125rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.1; margin: 8px 0 0; }
.per { color: var(--muted); font-size: 0.9375rem; }
.ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul li {
    font-size: 0.9375rem;
    line-height: 1.6;
}
.pill {
    display: inline-block;
    border: 1px solid #ffd2f1;
    background: #fff0fb;
    color: var(--accent);
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 8px;
}
.popular {
    border: 2px solid var(--accent);
    position: relative;
}
.popular:after {
    content: "Лучший выбор";
    position: absolute;
    top: -12px;
    right: 18px;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

/* ======================================
   Компоненты страниц блога (blog.html, blog-post.html)
======================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}
.grid .card { /* Стили для карточки поста в блоге */
    overflow: hidden;
    padding: 0;
}
.grid .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.grid .card .body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.grid .card .meta { font-size: 0.875rem; color: var(--muted); }
.grid .card .title { font-weight: 700; font-size: 1.3125rem; line-height: 1.25; }
.grid .card .excerpt { font-size: 1rem; line-height: 1.65; color: #374151; }

/* Стили для страницы одного поста */
article h1 { font-size: clamp(2.25rem, 4.2vw, 3rem); line-height: 1.08; margin: 0 0 12px; }
article h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.18; margin-top: 34px; margin-bottom: 14px; }
article p,
article li {
    font-size: 1.125rem;
    line-height: 1.78;
    color: #374151;
}
article ul,
article ol {
    padding-left: 24px;
}
article li + li {
    margin-top: 10px;
}
article img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
}
article.prose a{
    color: #c540ab;
    text-decoration: underline;
}

article.prose .cta-actions a {
    text-decoration: none;
}

.cta-actions a.btn-outline {
    color: var(--accent);
}

.cta-actions a.btn-primary {
    color: #FFF;
}

.prose {
    max-width: 920px;
}
.prose .meta {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--muted);
}
.prose blockquote {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    background: #fff0fb;
    border-radius: 8px;
    font-size: 1.0625rem;
    line-height: 1.7;
}
.related-articles {
    margin: 26px 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fafafa;
}
.related-articles h2 {
    margin: 0 0 12px;
    font-size: 1.375rem;
    line-height: 1.2;
}
.related-articles-list {
    margin: 0;
    padding-left: 20px;
}
.related-articles-list li + li {
    margin-top: 10px;
}
.cta {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    background: linear-gradient(180deg, #fff 0, #fff0fb 100%);
    text-align: center;
    margin: 26px 0;
}
.cta-title { font-size: 1.5rem; line-height: 1.2; margin: 0 0 6px; }
.cta-text { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 14px; color: #374151; }
.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ======================================
   Подвал
======================================= */
footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 44px 0 60px;
    margin-top: 40px;
}
footer h4 { margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 20px;
}
.fbrand { display: flex; align-items: center; gap: 12px; }
.fmuted { color: #9ca3af; }
.fdesc { margin-top: 10px; max-width: 500px; }
.fdesc,
.flinks a {
    font-size: 0.9375rem;
    line-height: 1.6;
}
.fsocial { display: flex; gap: 12px; margin-top: 12px; }
.fsocial img {
    width: 22px; height: 22px;
    display: block;
    filter: invert(100%) saturate(0%) brightness(200%);
}
.flinks { display: flex; flex-direction: column; gap: 10px; }
.flinks a { color: #e5e7eb; }
.copyright {
    margin-top: 24px;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
}

.js-dashboard-button {
    display: none;
}

/* ===== Pricing: billing toggle (month/year) ===== */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    /* центрируем сам блок */
    width: fit-content;
    margin: 40px auto 50px;

    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    /*box-shadow: var(--shadow);*/
}

.billing-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;

    /* увеличили шрифт */
    font-size: 1rem;
    line-height: 1.1;

    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 600;
    color: #374151;
    transition: all .15s ease;
    white-space: nowrap;
}

.billing-btn:hover { background: #f9fafb; }
.billing-btn.is-active {
    background: #fff0fb;
    border-color: #ffd2f1;
    color: var(--accent-600);
}

.save-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--accent);
    color: #fff;
    position: relative;
    top: -1px;
}

/* Price subline */
.price-sub {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    color: var(--muted);
}
.price-sub .period { color: var(--muted); }
.price-sub .save-note {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #ffd2f1;
    background: #fff0fb;
    color: var(--accent-600);
    font-weight: 700;
}
.save-note-caption {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #c774b7;
}

/* 4 plans layout on desktop */
.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Pricing cards: align + same buttons ===== */
.pricing-grid .plan .btn {
    width: 100%;
    white-space: nowrap;   /* запрет переноса */
    font-size: 1rem;
    padding: 14px 16px;    /* чуть компактнее */
}

/* чтобы цена/подпись/кнопка не "прыгали" из-за разной высоты текста */
.plan h3 {
    min-height: 28px;
    font-size: 1.5rem;
}
.plan > .muted { min-height: 22px; }

.plan .subh3 {
    margin: 5px 0 10px;
}

.price {
    min-height: 42px;
    margin-top: 10px;
}
.price-sub {
    min-height: 29px;
    align-content: center;
}

/* actions block — всегда внизу карточки */
.plan-actions {
    margin-top: auto;
    padding-top: 30px;
}


/* ===== Comparison table ===== */
.pricing-compare { margin-top: 28px; }
.pricing-compare-title { margin: 40px 0 8px !important; }
.pricing-compare-subtitle { margin: 0 0 18px; }
.pricing-faq-section {
    margin-top: 60px;
    width: 100%;
}
.pricing-faq-title { margin: 0 0 10px !important; }
.pricing-faq-list { margin: 0 auto; }
.table-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: auto;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px; /* чтобы таблица не ломалась на узких экранах */
}
.compare-table th,
.compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 0.875rem;
}
.compare-table td:first-child, .compare-table th:first-child {
    padding-left: 30px;
}

.compare-table thead th {
    background: #fafafa;
    font-size: 0.875rem;
    color: #374151;
}
.compare-table tbody tr:last-child td { border-bottom: none; padding-bottom: 25px; }

.btn,
.badge,
.hero-media-cta {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word; /* страховка */
}


/* ======================================
   Адаптивные правила
======================================= */
@media (max-width: 1100px) {
    .section {
        padding: 40px 0;
    }

    /* Перестраиваем все основные сетки в одну колонку */
    .hero-grid,
    .benefit, .benefit:nth-child(even),
    .cards-3, .steps, .testimonials,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-grid { gap: 20px; }
    .hero-grid > * {
        min-width: 0;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* Показываем мобильную навигацию */
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; margin-left: auto; }

    /* Benefits: на <1100px всегда "текст -> картинка" независимо от порядка в HTML */
    #benefits .benefit{
        display: flex;           /* переопределяем grid на mobile/tablet */
        flex-direction: column;
        align-items: flex-start;
    }

    /* По умолчанию все дети идут первыми (текст) */
    #benefits .benefit > *{
        order: 1;
    }

    /* А .viz всегда уходит после текста */
    #benefits .benefit .viz{
        order: 2;
    }
}

@media (max-width: 500px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div { min-width: 0; }
}

@media (max-width: 410px) {
    /* Бейдж растягиваем между левым и правым отступом внутри картинки */
    .hero-media-cta{
        left: 16px;
        right: 16px;
    }
}

@media (max-width: 410px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        width: 100%;
    }
}
