/* custom.css */

/* Базовые переменные (на случай, если tailwind не подгрузился) */
:root {
    --background: 0 0% 98%;
    --foreground: 340 15% 20%;
    --card: 0 0% 100%;
    --card-foreground: 340 15% 20%;
    --muted: 25 30% 95%;
    --border: 340 20% 90%;
    --radius: 1rem;
    --shadow-soft: 0 10px 30px -10px hsl(340 82% 67% / 0.2);
    --shadow-card: 0 4px 20px hsl(340 20% 80% / 0.15);
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

/* Отключаем скролл, когда открыт модал */
.body--modal-open {
    overflow: hidden;
}

/* Анимация появления блоков — замена framer-motion */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Модальное окно подписки */
.subscription-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.subscription-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.subscription-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 64rem;
    max-height: 90vh;
    overflow-y: auto;
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
}

.subscription-modal--open .subscription-modal__dialog {
    transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
    .subscription-modal__dialog {
        padding: 2rem;
    }
}

.subscription-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
    transition:
        opacity 0.15s ease,
        background-color 0.15s ease;
}

.subscription-modal__close:hover {
    opacity: 1;
    background-color: rgba(148, 163, 184, 0.12);
}

/* Табы на странице личного кабинета */
.lk-tabs__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background-color: hsl(var(--muted));
    border-radius: 999px;
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.lk-tabs__btn {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.lk-tabs__btn--active {
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: 0 4px 12px hsl(340 20% 80% / 0.35);
}

.lk-tabs__content {
    display: none;
}

.lk-tabs__content--active {
    display: block;
}

/* фиксим верхний отступ, т.к. header fixed */
.page-main {
    padding-top: 5rem;
}

/* визуально чуть акцентируем заголовки секций */
.section-title {
    letter-spacing: -0.03em;
}

/* ===========================
   Цвета и базовые переменные
   (если уже есть — можно не дублировать)
=========================== */
:root {
    --fs-primary: #f973b7;
    --fs-secondary: #6ee7b7;
    --fs-bg-soft: #fff7fb;
    --fs-bg-accent: #fff5f7;
    --fs-text-main: #111827;
    --fs-text-muted: #6b7280;
}

/* Общий отступ для новых секций */
.fs-extra-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.fs-extra-section--soft {
    background: radial-gradient(circle at top left, #ffe4f3 0, transparent 55%),
        radial-gradient(circle at bottom right, #dcfce7 0, transparent 55%),
        #ffffff;
}

.fs-extra-section--accent {
    background: linear-gradient(135deg, #fff5f7, #f5fbff);
}

.fs-extra-section--border-top {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* Сетка блоков */
.fs-extra-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.fs-extra-layout--reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
}

.fs-extra-text {
    max-width: 620px;
}

.fs-extra-visual {
    position: relative;
    min-height: 260px;
}

/* Заголовки / текст */
.fs-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fs-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.fs-extra-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--fs-text-main);
    margin-bottom: 1rem;
}

.fs-extra-lead {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--fs-text-muted);
    margin-bottom: 1.75rem;
}

/* Списки */
.fs-extra-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.fs-extra-list-item {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--fs-text-main);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(248, 187, 208, 0.4);
    backdrop-filter: blur(10px);
}

.fs-extra-list-item strong {
    font-weight: 600;
}

.fs-extra-list--icon .fs-extra-list-item {
    border-radius: 1rem;
}

/* Маленькие KPI */
.fs-extra-kpi {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.fs-extra-kpi-item {
    flex: 1 1 160px;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #fecdd3, #f9a8d4);
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
}

.fs-extra-kpi-item:nth-child(2) {
    background: radial-gradient(circle at top left, #bbf7d0, #6ee7b7);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
}

.fs-extra-kpi-label {
    font-weight: 500;
    display: block;
}

.fs-extra-kpi-value {
    font-weight: 600;
}

/* Фото‑коллаж */
.fs-photo-main {
    position: absolute;
    inset: 10% 0 10% 10%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.fs-photo-main img,
.fs-photo-small img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-photo-small {
    position: absolute;
    width: 42%;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(148, 163, 184, 0.4);
}

.fs-photo-small--top {
    top: -4%;
    right: 8%;
}

.fs-photo-small--bottom {
    bottom: -4%;
    left: 2%;
}

/* Карточки "что внутри" */
.fs-section-header {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.fs-cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fs-extra-card {
    background: #ffffff;
    border-radius: 1.4rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.18);
    font-size: 0.95rem;
}

.fs-extra-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.fs-extra-card p {
    color: var(--fs-text-muted);
    margin-bottom: 0.8rem;
}

.fs-extra-card ul {
    list-style: disc;
    padding-left: 1.1rem;
    color: var(--fs-text-main);
}

/* Telegram‑бот, псевдо‑мокап */
.fs-bot-cta {
    margin-top: 1.7rem;
}

.fs-bot-cta .btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--fs-primary), var(--fs-secondary));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 14px 40px rgba(236, 72, 153, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fs-bot-cta .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: 0 18px 50px rgba(236, 72, 153, 0.5);
}

.fs-bot-note {
    font-size: 0.8rem;
    color: var(--fs-text-muted);
    margin-top: 0.7rem;
    max-width: 360px;
}

/* Мокап экрана бота */
.fs-bot-preview {
    position: relative;
    display: flex;
    justify-content: center;
}

.fs-bot-screen {
    width: 280px;
    border-radius: 1.5rem;
    padding: 0.9rem;
    background: radial-gradient(circle at top, #fdf2ff, #e0f2fe);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.fs-bot-header {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

.fs-bot-circle {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.8);
}

.fs-bot-body {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.1rem;
    padding: 0.9rem;
    font-size: 0.8rem;
}

.fs-bot-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.fs-bot-text {
    color: var(--fs-text-muted);
    margin-bottom: 0.7rem;
}

.fs-bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fecdd3, #f9a8d4);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
}

.fs-bot-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fs-bot-bubbles span {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid rgba(209, 213, 219, 0.85);
}

/* Таймлайн (путь) */
.fs-timeline {
    list-style: none;
    margin: 0;
    margin-top: 2.4rem;
    padding: 0;
    display: grid;
    gap: 1.3rem;
}

.fs-timeline-step {
    position: relative;
    padding: 1.2rem 1.4rem 1.2rem 1.9rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 36px rgba(148, 163, 184, 0.18);
    font-size: 0.95rem;
}

.fs-timeline-step h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.fs-timeline-step p {
    color: var(--fs-text-muted);
    margin: 0;
}

.fs-timeline-badge {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.9);
}

/* Плавающие «шарики» */
.fs-floating-badge {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
    animation: fs-float 16s ease-in-out infinite alternate;
}

.fs-floating-badge--pink {
    background: rgba(244, 114, 182, 0.6);
    top: -40px;
    right: 0;
}

.fs-floating-badge--mint {
    background: rgba(52, 211, 153, 0.5);
    bottom: -40px;
    left: 0;
}

.fs-floating-badge--small {
    width: 80px;
    height: 80px;
    filter: blur(14px);
}

.fs-floating-badge--right {
    right: -10px;
    top: 10%;
    background: rgba(59, 130, 246, 0.5);
}

@keyframes fs-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-12px, 18px, 0) scale(1.1);
    }

    100% {
        transform: translate3d(16px, -10px, 0) scale(0.95);
    }
}

/* Анимации появления новых блоков */
[data-fs-animate] {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition:
        opacity 0.7s cubic-bezier(0.21, 0.78, 0.26, 0.99),
        transform 0.7s cubic-bezier(0.21, 0.78, 0.26, 0.99);
    transition-delay: var(--fs-anim-delay, 0ms);
    will-change: opacity, transform;
}

[data-fs-animate].fs-in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Варианты направлений */
[data-fs-animate][data-fs-variant="left"] {
    transform: translateX(-32px);
}

[data-fs-animate].fs-in-view[data-fs-variant="left"] {
    transform: translateX(0);
}

[data-fs-animate][data-fs-variant="right"] {
    transform: translateX(32px);
}

[data-fs-animate].fs-in-view[data-fs-variant="right"] {
    transform: translateX(0);
}

[data-fs-animate][data-fs-variant="zoom"] {
    transform: scale(0.9);
}

[data-fs-animate].fs-in-view[data-fs-variant="zoom"] {
    transform: scale(1);
}

/* Адаптив */
@media (max-width: 992px) {

    .fs-extra-layout,
    .fs-extra-layout--reverse {
        grid-template-columns: minmax(0, 1fr);
    }

    .fs-extra-visual {
        min-height: 220px;
        margin-top: 1.8rem;
    }

    .fs-photo-main {
        inset: 5% 4% 5% 4%;
    }
}

@media (max-width: 768px) {
    .fs-extra-section {
        padding: 56px 0;
    }

    .fs-cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fs-extra-card {
        border-radius: 1rem;
    }

    .fs-timeline-step {
        padding-left: 1.2rem;
    }

    .fs-timeline-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.4rem;
    }
}