/* styles.css */

body {
    margin: 0;
    padding: 48px 16px; /* ✅ добавили воздух сверху/снизу и по бокам */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f5f5;
    color: #222;

    display: flex;
    justify-content: center; /* ✅ центрируем по горизонтали */
    align-items: flex-start;  /* ✅ НЕ центрируем по вертикали, начинаем от верха */

    min-height: 100vh;
    box-sizing: border-box;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Topbar (floating, like footer card) */

.site-topbar {
    width: 100%;
    max-width: 1100px;
    padding: 0 16px;
    box-sizing: border-box;
    margin-bottom: 22px; /* чтобы не липло к следующей карточке */
}

.topbar-card {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.10),
        0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 14px 16px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    transition:
        background-color 1000ms ease,
        color 1000ms ease,
        border-color 1000ms ease;
}

/* Sticky + dark-on-scroll state for topbar */

.site-topbar {
    position: sticky;
    top: 16px; /* чтобы карточка "плавала" и не прилипала к самому краю */
    z-index: 1000; /* поверх остального контента */
}

/* Когда добавим класс .is-scrolled — делаем топбар тёмным */
.site-topbar.is-scrolled .topbar-card {
    background: #0f0f0f;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.10);
}

/* Текст бренда */
.site-topbar.is-scrolled .topbar-name {
    color: #ffffff;
}

/* Ссылки в навигации */
.site-topbar.is-scrolled .topbar-link {
    color: rgba(255,255,255,0.78);
}

.site-topbar.is-scrolled .topbar-link:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

/* Бургер-кнопка */
.site-topbar.is-scrolled .topbar-burger {
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.14);
}

.site-topbar.is-scrolled .topbar-burger:hover {
    background: rgba(255,255,255,0.08);
}

.site-topbar.is-scrolled .topbar-burger span {
    background: #ffffff;
}

/* Mobile drawer (выпадающее меню) */
.site-topbar.is-scrolled .topbar-drawer {
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.10);
}

.site-topbar.is-scrolled .topbar-drawer-link {
    color: rgba(255,255,255,0.92);
}

.site-topbar.is-scrolled .topbar-drawer-link:hover {
    background: rgba(255,255,255,0.10);
}

/* Важно: кнопки .btn-secondary у тебя чёрная рамка/текст — на тёмном фоне будет плохо.
   Переопределяем в тёмном состоянии, чтобы выглядело как "outline white". */
.site-topbar.is-scrolled .btn-secondary {
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.80);
}

.site-topbar.is-scrolled .btn-secondary:hover {
    background: rgba(255,255,255,0.10);
}


.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.topbar-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: block;

    object-fit: contain;
}

/* Logo crossfade (two images stacked) */
.topbar-logo-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    position: relative;
    display: block;
    pointer-events: none; /* чтобы клики проходили на ссылку .topbar-brand */
}

.topbar-logo-wrap .topbar-logo {
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 1000ms ease;
}


/* По умолчанию показываем светлый, тёмный скрыт */
.topbar-logo-wrap .topbar-logo--light {
    opacity: 1;
}

.topbar-logo-wrap .topbar-logo--dark {
    opacity: 0;
}


/* В тёмном режиме: светлый скрываем, тёмный показываем */
.site-topbar.is-scrolled .topbar-logo--light {
    opacity: 0;
}

.site-topbar.is-scrolled .topbar-logo--dark {
    opacity: 1;
}
/* end Logo crossfade */


.topbar-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}


/* Desktop nav */
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-link {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.topbar-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #222;
}

/* Кнопка "Войти" — используем твою .btn .btn-primary, чтобы стиль совпадал */
.topbar-login {
    /* берём тот же стиль, что у .btn-primary ниже по странице */
    padding: 12px 22px;          /* как у основной CTA-кнопки */
    border-radius: 12px;         /* чуть мягче, чем обычные ссылки */
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}


/* Mobile */
.topbar-mobile {
    display: none;
    position: relative;
}

.topbar-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Burger button */
.topbar-burger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;

    display: flex;
    flex-direction: column;        /* ВАЖНО */
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}


.topbar-burger:hover {
    background: rgba(0, 0, 0, 0.04);
}

.topbar-burger span {
    display: block;
    width: 20px;              /* чуть шире */
    height: 2px;
    background: #222;
    border-radius: 2px;

    margin: 2.5px 0;          /* ВАЖНО: вместо gap */
}


/* Drawer */
.topbar-drawer {
    position: absolute;
    right: 0;
    top: 56px;
    width: 220px;

    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.10),
        0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 10px;
    box-sizing: border-box;

    display: none;
    z-index: 50;
}

.topbar-drawer-link {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
}

.topbar-drawer-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.topbar-drawer-login {
    display: block;
    margin-top: 8px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
}

/* Toggle behavior */
#topbar-menu-toggle:checked ~ .topbar-drawer {
    display: block;
}

/* Responsive switch */
@media (max-width: 900px) {
    .topbar-nav {
        display: none;
    }
    .topbar-mobile {
        display: block;
    }
}


.card {
    background: #ffffff;
    padding: 32px 40px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    text-align: center;
}
h1 {
    font-size: 28px;
    margin-bottom: 12px;
}
p {
    margin: 0 0 8px;
    line-height: 1.5;
}
.tagline {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #e6f7ec;
    color: #21ba45;
    margin-bottom: 16px;
}
.buttons-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
    max-width: 480px;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: rgb(33, 186, 69);
    color: #ffffff;
    border: none;
}
.btn-primary:hover {
    background-color: rgb(28, 160, 59);
}
.btn-secondary {
    background-color: transparent;
    color: #222;
    border: 2px solid #222;
}
.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* Pricing section (cards like in the reference screenshot) */
.pricing-section {
    width: 100%;
    max-width: 980px;
    margin-top: 46px;
    padding: 0 16px;
}

/* Footer section */
.footer-section {
    width: 100%;
    max-width: 980px;
    margin-top: 60px;
    padding: 0 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.footer-section p {
    padding: 24px 0;
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

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

/* Outer “stage” blocks (big soft background under the card) */
.pricing-shell {
    position: relative;
    border-radius: 26px;
    padding: 26px 22px 22px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.pricing-shell--light {
    background: linear-gradient(180deg, #f3e6cf 0%, #ead8bb 48%, #e3cfb0 100%);
}

.pricing-shell--dark {
    background: linear-gradient(180deg, #f3e6cf 0%, #ead8bb 48%, #e3cfb0 100%);
}

/* The main card (floating) */
.pricing-card {
    border-radius: 22px;
    padding: 22px 22px 20px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pricing-card--light {
    background: linear-gradient(180deg, rgba(255, 242, 214, 0.98) 0%, rgba(231, 205, 160, 0.98) 100%);
    color: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.pricing-card--dark {
    background: radial-gradient(120% 120% at 20% 0%, rgba(90, 90, 90, 0.35) 0%, rgba(0, 0, 0, 0.0) 55%),
                linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Header */
.pricing-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.pricing-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.pricing-icon--light {
    background: linear-gradient(180deg, rgba(35, 35, 35, 0.92) 0%, rgba(10, 10, 10, 0.92) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
}

.pricing-icon--dark {
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 140, 0.9) 0%, rgba(170, 120, 60, 0.9) 35%, rgba(0,0,0,0.2) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.pricing-title {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: 0.2px;
}

.pricing-subtitle {
    font-size: 13px;
    opacity: 0.72;
    margin-top: 2px;
}

/* Dividers */
.pricing-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin: 14px 0 14px;
}

.pricing-divider--bottom {
    margin: 16px 0 14px;
}

.pricing-divider--dark {
    background: rgba(255, 255, 255, 0.14);
}

/* Features list */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.pricing-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pricing-features li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    flex: 0 0 auto;
}

.pricing-features--dark li::before {
    background: rgba(255, 255, 255, 0.30);
}

.pricing-features b {
    font-weight: 650;
}

/* Footer (price + little pill on the right) */
.pricing-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.pricing-price-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.pricing-price-note {
    font-size: 12px;
    opacity: 0.70;
    margin-top: 2px;
}

.pricing-pill {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-pill--dark {
    background: rgba(20, 20, 20, 0.86);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.pricing-pill--light {
    background: rgba(255, 255, 255, 0.82);
    color: rgba(15, 15, 15, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* Bottom CTA strip (like “Choose …” in the screenshot) */
.pricing-cta {
    margin-top: 16px;
    border-radius: 18px;
    padding: 14px 14px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.pricing-cta--dark {
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.92) 0%, rgba(10, 10, 10, 0.92) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.pricing-cta--light {
    background: linear-gradient(180deg, rgba(255, 242, 214, 0.92) 0%, rgba(231, 205, 160, 0.92) 100%);
    color: rgba(20, 20, 20, 0.92);
}

.pricing-cta-text {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.2px;
}
/* /Pricing section */

/* AI examples list — readable, not centered */
.ai-examples {
    margin: 12px 0 0;
    padding-left: 20px;
    text-align: justify;
}

.ai-examples li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* файл: assets/css/styles.css */
/* AI Bubbles — speech-bubbles floating stage */

.ai-bubbles-wrap {
    width: 100%;
    max-width: 480px; /* совпадает с карточкой */
    margin-top: 10px; /* аккуратный отступ от абзаца */
}

/* Белое поле, на котором “плавают” пузырьки */
.ai-bubbles-stage {
    position: relative;
    width: 100%;
    min-height: 260px; /* “сцена” — чтобы пузырькам было где жить */

    /* ВАЖНО: контейнер визуально исчезает */
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;

    overflow: hidden; /* пузырьки не вылезают наружу */
    padding: 18px; /* внутренний воздух */
    box-sizing: border-box;
}

/* Two pricing cards side-by-side (simple) */
.pricing-grid-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: 980px;
    padding: 0 16px;
    box-sizing: border-box;
}

/* On small screens: stack */
@media (max-width: 900px) {
    .pricing-grid-simple {
        grid-template-columns: 1fr;
    }
}


/* Один пузырёк */
.ai-bubble {
    position: absolute;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 14px;
    line-height: 1.45;

    /* “вау”-тень: мягкая, немного размытая */
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.03);

    /* лёгкая “стеклянность”, но очень деликатная */
    border: 1px solid rgba(0, 0, 0, 0.06);

    /* чтобы анимация была плавной */
    will-change: transform;

    /* взаимодействие */
    cursor: default;
    user-select: none;
}

/* Хвостик пузырька */
.ai-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
    box-shadow: 6px 10px 20px rgba(0, 0, 0, 0.06);
}

/* Чуть “приподнимаем” пузырёк при наведении */
.ai-bubble:hover {
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.14),
        0 3px 10px rgba(0, 0, 0, 0.07);
}

/* На очень узких экранах делаем пузырьки компактнее */
@media (max-width: 420px) {
    .ai-bubble {
        max-width: 260px;
        font-size: 13px;
    }
}

/* Если пользователь просит уменьшить анимацию — убираем “плавание” */
@media (prefers-reduced-motion: reduce) {
    .ai-bubble {
        will-change: auto;
    }
}

/* Red/pink badge variant (for “Что мы ненавидим”) */
.badge-danger {
    background: rgba(255, 59, 48, 0.12);
    color: rgb(255, 59, 48);
}

/* List inside the “hate upsells” section — readable, not centered */
.anti-upsell-list {
    margin: 12px 0 0;
    padding-left: 20px;
    text-align: left;
}

.anti-upsell-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Small note inside Free plan card */
.free-plan-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;

    background: rgba(33, 186, 69, 0.08);
    color: #1f1f1f;

    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

/* Blue badge variant (for “Ещё хотим сделать”) */
.badge-info {
    background: rgba(0, 122, 255, 0.12);
    color: rgb(0, 122, 255);
}

/* Roadmap list */
.roadmap-list {
    margin: 12px 0 0;
    padding-left: 20px;
    text-align: left;
}

.roadmap-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Footer (Smartello-style) */

.site-footer {
    width: 100%;
    padding: 80px 16px 40px;
    box-sizing: border-box;
}

.footer-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Main area */
.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding: 40px 48px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Social buttons */
.footer-socials {
    display: flex;
    gap: 10px;
}

/* ВАЖНО: в HTML у тебя class="footer-social", а не social-btn */
.footer-social {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
    box-sizing: border-box;
}

.footer-social:hover {
    background: rgba(33, 186, 69, 0.12);
    border-color: rgba(33, 186, 69, 0.4);
}

/* Делаем SVG предсказуемым по размеру */
.footer-social svg {
    width: 22px;
    height: 22px;
    display: block;
}


/* Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

/* Bottom strip */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: linear-gradient(
        180deg,
        rgba(245,245,245,0.9),
        rgba(235,235,235,0.9)
    );
    font-size: 13px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 8px;

    flex-wrap: wrap;           /* ✅ разрешаем перенос строк (главный фикс от распирания ширины) */
    max-width: 100%;           /* ✅ не даём контейнеру стать шире родителя */
    overflow-wrap: anywhere;   /* ✅ если попадётся длинный кусок без пробелов — можно переносить */
    word-break: break-word;    /* ✅ запасной вариант переноса */
}


.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;

    }

    .footer-links {
        justify-content: center; /* ✅ на мобиле красиво по центру */
    }

}


/* end of styles.css */

/* ========================================================================
   PREMIUM PRICING CARDS STYLES (from priceplans6.html)
   Секция с премиум-карточками тарифов - золотая и черная
   ======================================================================== */

/* --- CSS Variables for Premium Cards --- */
:root {
  --card-w: 430px;
  --card-radius: 22px;
  --tab-h: 78px;
  --tab-text-offset: 17px;
}

/* --- Wrapper for Premium Cards --- */
.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 18px;
  gap: 32px;
  margin-top: 80px;
  margin-bottom: 80px;
}

/* Крупный заголовок секции тарифов (премиум-карточки) */
.pricing-premium-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Layout: Two cards side-by-side */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, var(--card-w)));
  gap: 54px;
  align-items: start;
  justify-content: center;
  width: min(1100px, 100%);
}

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

/* --- Card container with "tab" --- */
.plan-shell {
  position: relative;
  width: min(100%, var(--card-w));
  padding-bottom: 0;
}

.plan-card {
  position: relative;
  z-index: 2;
  border-radius: var(--card-radius);
  overflow: hidden;

  /* Big soft shadow */
  box-shadow:
    0 30px 55px rgba(0, 0, 0, 0.22),
    0 10px 18px rgba(0, 0, 0, 0.14);

  /* Inner subtle stroke */
  outline: 1px solid rgba(255, 255, 255, 0.22);
  outline-offset: -1px;
}

/* Inner content spacing */
.plan-inner {
  padding: 22px 22px 18px 22px;
  position: relative;
  z-index: 1;
}

/* --- Top header row (icon + title) --- */
.plan-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 18px rgba(0, 0, 0, 0.14);
}

.plan-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.plan-title {
  line-height: 1.05;
}

.plan-title h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.plan-title p {
  margin: 4px 0 0 0;
  font-size: 14px;
  opacity: 0.72;
}

/* Divider line under header */
.plan-divider {
  height: 1px;
  margin: 18px 0 16px 0;
  opacity: 0.18;
  background: currentColor;
}

/* --- Feature list --- */
.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
  opacity: 0.92;
}

/* Текст в пункте может сжиматься и переноситься — убирает горизонтальный скролл на мобиле */
.features li > span:not(.feat-ico) {
  min-width: 0;
}

.feat-ico {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  opacity: 0.85;
  flex: 0 0 auto;
}

.feat-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* --- Bottom section with price + pill --- */
.plan-bottom-divider {
  height: 1px;
  margin: 18px 0 16px 0;
  opacity: 0.18;
  background: currentColor;
}

.plan-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 6px;
  min-width: 0;
}

.price {
  line-height: 1.05;
  min-width: 0;
}

.price strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.price span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.72;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  border: 1px solid rgba(0, 0, 0, 0.22);
  text-decoration: none;

  background: rgba(0, 0, 0, 0.18);
}

.pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* --- "Tab" under the card --- */
.plan-tab {
  position: relative;
  margin: -22px 10px 0 10px;
  height: var(--tab-h);
  border-radius: 0 0 var(--card-radius) var(--card-radius);

  display: grid;
  place-items: center;
  padding-top: var(--tab-text-offset);
  font-size: 22px;
  letter-spacing: -0.02em;
  user-select: none;

  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

/* --- Theme: Gold --- */
.theme-gold .plan-card {
  color: rgba(30, 30, 30, 0.92);

  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(255, 236, 180, 0.95), rgba(255, 236, 180, 0) 45%),
    radial-gradient(900px 520px at 100% 0%, rgba(255, 228, 152, 0.65), rgba(255, 228, 152, 0) 55%),
    linear-gradient(145deg, #f3dfb6 0%, #d5b886 55%, #caa977 100%);
}

.theme-gold .plan-icon {
  background: rgba(20, 20, 20, 0.14);
}

.theme-gold .pill {
  background: rgba(20, 20, 20, 0.86);
  border-color: rgba(20, 20, 20, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.theme-gold .pill svg {
  opacity: 0.95;
}

.theme-gold .plan-tab {
  background: linear-gradient(180deg, #2c2a28 0%, #1f1e1c 100%);
  color: rgba(255, 255, 255, 0.86);
}

/* --- Theme: Black --- */
.theme-black .plan-card {
  color: rgba(245, 235, 210, 0.92);

  background:
    radial-gradient(900px 520px at 20% 0%, rgba(255, 214, 140, 0.12), rgba(255, 214, 140, 0) 55%),
    radial-gradient(680px 420px at 95% 0%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #101010 0%, #1b1b1b 35%, #0c0c0c 100%);
}

.theme-black .plan-icon {
  background: rgba(255, 214, 140, 0.10);
}

.theme-black .pill {
  background: rgba(245, 235, 210, 0.92);
  border-color: rgba(245, 235, 210, 0.12);
  color: rgba(18, 18, 18, 0.88);
}

.theme-black .plan-tab {
  background: linear-gradient(180deg, #f0d7a7 0%, #e4c88e 100%);
  color: rgba(18, 18, 18, 0.78);
}

/* Align tab to look like it peeks out from under the main card */
.plan-card {
  margin: 0 10px;
}

/* Optional: premium feel with faint inner vignette */
.plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(800px 380px at 50% 20%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

/* ========================================================================
   END OF PREMIUM PRICING CARDS STYLES
   ======================================================================== */

/* ========================================================================
   Roadmap ideas popup (кнопка "Всё фигня, лучше сделайте это")
   ======================================================================== */

/* Оверлей — затемнённый фон на весь экран, центрирование модалки */
.roadmap-ideas-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    box-sizing: border-box;
}

/* Модальное окно — белая карточка с тенью */
.roadmap-ideas-modal {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    padding: 24px;
    box-sizing: border-box;
}

/* Заголовок попапа */
.roadmap-ideas-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

/* Текстовое поле для идеи */
.roadmap-ideas-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    margin: 0 0 20px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
}

.roadmap-ideas-textarea::placeholder {
    color: #999;
}

.roadmap-ideas-textarea:focus {
    outline: none;
    border-color: rgb(33, 186, 69);
}

/* Блок кнопок — Ок слева, Отмена справа */
.roadmap-ideas-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Ряд с кнопкой "Всё фигня..." под списком roadmap */
.roadmap-ideas-row {
    display: block;
}

/* ========================================================================
   Hero slider (преимущества — картинка + связанная карточка ниже)
   ======================================================================== */

.hero-slider {
    width: 100%;
    max-width: 980px;
    padding: 0 16px;
    box-sizing: border-box;
    margin-top: 8px;
}

/* Сцена с картинками */
.hero-slider-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 12 / 7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.06);
    background: #0f0f0f;
}

.hero-slider-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 600ms ease, transform 1200ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Подложка-градиент под заголовком */
.hero-slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 32px 28px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%);
    color: #fff;
}

.hero-slide-eyebrow {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.18);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 10px;
}

.hero-slide-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: pretty;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Стрелки */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #1a1a1a;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 3;
}

.hero-slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.hero-slider-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.hero-slider-arrow--prev { left: 16px; }
.hero-slider-arrow--next { right: 16px; }

.hero-slider-arrow svg {
    width: 20px;
    height: 20px;
}

/* Точки */
.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.hero-slider-dot:hover {
    background: rgba(255,255,255,0.8);
}

.hero-slider-dot.is-active {
    background: #fff;
    width: 24px;
}

/* Карточка под слайдером — связанный текст */
.hero-slider-caption {
    margin-top: 18px;
    text-align: left;
    max-width: none;
    padding: 28px 32px;
}

.hero-slider-caption .badge {
    margin-bottom: 12px;
}

.hero-slider-caption h2 {
    font-size: 24px;
    margin: 0 0 12px;
    line-height: 1.25;
    text-wrap: pretty;
}

.hero-slider-caption p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.hero-slider-caption p:last-child { margin-bottom: 0; }

/* Контейнер с двумя слотами текста для плавной смены */
.hero-caption-swap {
    position: relative;
}

.hero-caption-content {
    transition: opacity 250ms ease;
}

.hero-caption-content.is-fading {
    opacity: 0;
}

@media (max-width: 640px) {
    .hero-slide-overlay { padding: 60px 20px 24px; }
    .hero-slide-title { font-size: 20px; }
    .hero-slider-arrow { width: 38px; height: 38px; }
    .hero-slider-arrow--prev { left: 8px; }
    .hero-slider-arrow--next { right: 8px; }
    .hero-slider-caption { padding: 22px 22px; }
    .hero-slider-caption h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity 200ms linear; transform: none; }
    .hero-slide.is-active { transform: none; }
}

