﻿/* ==========================
   ПЕРЕМЕННЫЕ СВЕТЛОЙ ТЕМЫ
========================== */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #4895ef;
    --primary-lighter: #e8f0fe;
    --secondary-color: #4cc9f0;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    --light-color-2: #f1f3f4;
    --dark-color: #1a1d28;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #95a5a6;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 15px 35px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-round: 50%;
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #8B5CF6, #3B82F6);
    --gradient-success: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --bg-sidebar: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100% );
    --bg-qrcard: linear-gradient(135deg, #F5F7FF 0%, #EEF2FF 100%);
    --bg-top: linear-gradient(180deg, #F5F7FB 0%, #EEF1F7 40%, #E9ECF5 70%, #ECEBFF 100%);
}
@font-face {
    font-family: 'Material Symbols Rounded';
    src: url('/fonts/material/MaterialSymbolsRounded.woff2') format('woff2');
    font-weight: 100 300;
    font-style: italic;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
}
/* ==========================
   СТИЛИ ТЕКСТА
========================== */
/* Тёмные градиентные заголовки */
h1 {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1a2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2, h3, h4, h5 {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1a2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Для большей глубины можно добавить лёгкую тень */
h1 {
    text-shadow: 0 4px 12px rgba(10, 26, 47, 0.3);
}

h2 {
    text-shadow: 0 2px 8px rgba(10, 26, 47, 0.2);
    text-align: center;
}
/* ==========================
   БАЗОВЫЕ СТИЛИ
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Для Webkit браузеров */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(84,118,246,0.6);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(84,118,246,0.9);
    }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
    }



.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    padding: 0.625rem 1.25rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    }

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-success {
    background: var(--gradient-success);
    border: none;
}

.btn-danger {
    background: var(--gradient-danger);
    border: none;
}

.btn-light {
    background: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    border: 2px solid rgba(99,102,241,0.08);
}

    .btn-light:hover {
        background: var(--light-color);
    }

.btn-icon {
    background: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    border: 2px solid rgba(99,102,241,0.08);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.1rem;
}

    .btn-icon:hover {
        background: var(--light-color);
        border-color: #c6c7c8;
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }
.btn-create {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}
.form-control, .form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        outline: none;
    }
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    padding: 0.625rem 1.25rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    }

.btn-success {
    background: var(--gradient-success);
    border: none;
}

/* ==========================
   КАРТОЧКИ В USER PANEL
========================== */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .card:hover {
        box-shadow: var(--shadow-md);
    }

.card-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 1.5rem 1rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
    background: white;
}

    .card-body:focus,
    .card-body:focus-visible {
        outline: none;
        box-shadow: none;
    }

/* ==========================
   БЭДЖИ
========================== */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
/* ==========================
   FIRST BLOCK
========================== */

.hero {
    background: #f8f9fa !important;
}

.hero-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-left {
    flex: 1;
}

    .hero-left p {
        font-size: 3.5rem;
    }

.badge {
    display: inline-block;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.premium-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(245,247,250,0.85));
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 600px;
    margin: 60px auto;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    z-index: 1;
}

    /* Эффект тумана вокруг карточки */
    .premium-hero::before {
        content: '';
        position: absolute;
        top: -40px;
        bottom: -40px;
        left: -40px;
        right: -40px;
        background: rgba(255, 255, 255, 0.3);
        filter: blur(40px);
        border-radius: 32px;
        z-index: -1;
    }

    .premium-hero .badge {
        display: inline-block;
        background-color: rgba(255,255,255,0.7); /* полупрозрачный фон */
        color: #2563eb; /* спокойный синий акцент */
        font-weight: 600;
        padding: 6px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        backdrop-filter: blur(6px);
    }

    .premium-hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .premium-hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        max-width: 500px;
        color: #4b5563;
    }

    .premium-hero .cta-button {
        background-color: #2563eb;
        color: #ffffff;
        font-weight: 600;
        padding: 14px 32px;
        border-radius: 14px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .premium-hero .cta-button:hover {
            background-color: #1d4ed8;
            transform: translateY(-2px);
        }

.hero-right {
    padding-top: 90px;
    flex: 1;
    position: relative;
}

.dashboard-card img {
    width: 100%;
    border-radius: 16px;
}

.stat {
    position: absolute;
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .stat strong {
        display: block;
        font-size: 22px;
    }

    .stat span {
        font-size: 14px;
        color: #666;
    }

.growth {
    color: #27ae60;
    font-size: 14px;
}

.stat-2 {
    top: -20px;
    left: -20px;
}
.stat-2:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #D0D5DA;
}
.stat-1 {
    position: absolute;
    bottom: -40px;
    right: 40px;
    transform: translateX(80%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

    .stat-1:hover {
        pointer-events: none !important;
    }
/* Заголовок блока */
.stat-title {
    display: block;
    text-align: center;
    margin-bottom: 12px;
    font-size: 18px;
    color: #1A1D23; /* основной текст */
}

/* Список статистики */
.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

    .stat-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #475569; /* вторичный текст */
    }

    .stat-list .material-symbols-rounded {
        font-size: 20px;
        color: #9CA3AF; /* нейтральные иконки */
    }

    .stat-list .center {
        grid-column: 1 / -1;
        justify-content: center;
    }

/* Карточка */
.stat {
    background: #FFFFFF;
    border: 1px solid #E2E4E8;
    border-radius: 12px;
    padding: 16px;
}


/* ==========================
   МОДАЛЬНЫЕ ОКНА
========================== */
#resetModal {
    pointer-events: none;
    display: none;
}

#modal.show {
    pointer-events: auto;
    display: block;
}

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    padding: 1.5rem 2rem;
    border: none;
}

    .modal-header .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: white !important;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    background: var(--light-color);
    justify-content: center;
}

/* ==========================
   SUBSCRIPTION PLANS
========================== */
.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .plan-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .plan-card ul li {
        text-align: left;
        margin-bottom: 0.5rem;
    }

.select-plan {
    width: 100%;
}


/* ==========================
   SUBSCRIPTION STEPS QR GEN
=============================== */
.containerStep {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 20px;
    margin-bottom: 80px;
    background: var(--bg-top);
}

.steps {
    display: grid;
    grid-template-columns: minmax(280px, 380px) auto minmax(280px, 380px) auto minmax(280px, 380px);
    align-items: stretch; /* все ячейки одной высоты (самая высокая карточка задаёт высоту ряда) */
    gap: 10px;
    justify-content: center;
    padding-bottom: 80px;
}

/* Карточка шага */
.step-card {
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 30px 25px;
    border: 1px solid #eaeef2;
    mask-image: radial-gradient(circle at center, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 70%, transparent 100%);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    backdrop-filter: blur(6px);
    /* NEW: делаем карточку flex-контейнером для управления вертикальным расположением */
    display: flex;
    flex-direction: column;
    height: 100%; /* занимает всю высоту ячейки грида */
}

    .step-card::before {
        content: '';
        position: absolute;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        background: inherit;
        filter: blur(30px);
        opacity: 0.7;
        z-index: -1;
        border-radius: inherit;
    }

    .step-card h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1e3a5f;
        margin: 0 0 0.5rem 0; /* небольшой отступ снизу */
        flex-shrink: 0; /* запрещаем сжиматься */
    }

    .step-card p {
        line-height: 1.6;
        color: #555;
        margin: 0 0 20px 0; /* отступ перед картинкой */
        flex: 1 0 auto; /* растягивается, занимая всё доступное место между заголовком и картинкой */
    }

.step-number {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
    flex-shrink: 0; /* номер шага не должен сжиматься */
}

.step-image {
    width: 80%; /* можно оставить индивидуальные ширины для разных шагов */
    height: auto;
    display: block;
    margin: 0 auto; /* центрируем */
    flex-shrink: 0; /* картинка не сжимается */
}

/* Соединители (стрелки) */
.step-connector {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: center; /* центрируем по вертикали относительно карточек */
}

.dotted-line {
    width: 50px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #2d6a4f, #2d6a4f 5px, transparent 5px, transparent 10px);
}

.dot {
    width: 8px;
    height: 8px;
    background: #2d6a4f;
    border-radius: 50%;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr; /* одна колонка */
        gap: 20px;
    }

    .step-connector {
        display: none; /* или можно повернуть, если нужно сохранить вертикальные стрелки */
    }
}



/* ==========================
   МИНИМАЛИСТИЧНЫЙ ВАРИАНТ NEW
========================== */
.btn-outline-success {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border: 3px solid groove;
    color: white !important;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: var(--radius-md); 
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5), 0 0 20px rgba(76, 175, 80, 0.3);
}

    /* Эффект свечения */
    .btn-outline-success::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70% );
        animation: shine 3s infinite linear;
    }

.btn-outline-danger {
    background: rgba(100, 100, 120, 0.3); /* полупрозрачный стальной */
    border: 1px solid rgba(100, 100, 120, 0.5); /* мягкая граница */
    color: black !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    padding: 5px 12px; /* компактная */
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: none; /* без ярких теней */
}

    /* При наведении чуть выделяем */
    .btn-outline-danger:hover {
        background: rgba(100, 100, 120, 0.5);
    }



@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.btn-outline-success:hover {
    background: #66bb6a;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.7), 0 0 30px rgba(76, 175, 80, 0.5);
}

.btn-outline-success:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.6), 0 0 15px rgba(76, 175, 80, 0.4);
}

.btn-outline-success i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-outline-success:hover i {
    transform: rotate(180deg);
}




/* ==========================
   Секция с типами QR-кодов
========================== */
.qr-section {
    max-width: 1400px;
    margin: auto;
    padding-left: 100px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    padding-top: 20px;
    margin-bottom: 80px;
    align-items: center;
}


.qr-tabs-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
    max-width: 650px;
}
    .qr-tabs-wrapper .right {
        margin-left: 30px;
    }
    .qr-tabs-wrapper .left {
        margin-right: 30px;
    }
.qr-tabs {
    display: flex;
    overflow: hidden;
    gap: 10px;
    flex: 1;
    scroll-behavior: smooth;
}



.scroll-btn {
    all: unset; /* убирает все дефолтные стили кнопки */
    cursor: pointer; /* только курсор */
    display: inline-flex; /* чтобы иконка центрировалась */
    align-items: center;
    justify-content: center;
    position: relative; /* для псевдоэлементов, если нужно */
    margin-top: -10px;
    margin: 15px;
}

/* Стиль стрелки (иконки внутри кнопки) */
.scroll-btn span.material-symbols-rounded {
    font-size: 32px; /* размер стрелки */
    color: rgba(84,118,246,0.8); /* полупрозрачный цвет */
    transition: transform 0.3s, color 0.3s; /* плавная анимация */
    cursor: pointer;
    
}

/* Убираем выделение при клике */
.scroll-btn {
    outline: none; /* убирает синий контур при фокусе */
    user-select: none; /* запретить выделение текста внутри кнопки */
}

    /* Убираем эффект при активном клике */
    .scroll-btn:active {
        background: transparent; /* если есть фон */
        transform: scale(0.98); /* опционально: легкое уменьшение при клике */
    }
/* Карточка-вкладка */
.qr-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9f9f9;
    border: none;
}

    /* Иконка внутри вкладки (круглый фон) */
    .qr-tab span.material-symbols-rounded {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #88B8FB 0%, #3B82F6 100%);
        color: white;
        font-size: 20px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        margin-bottom: 6px;
    }

    /* Текст под иконкой */
    .qr-tab span:last-child {
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        text-align: center;
    }

    /* Эффект при наведении */
    .qr-tab:hover {
        transform: translateY(-2px);
    }

    /* Активная вкладка */
    .qr-tab.active {
        background: #edeff6;
        max-height:90px;
    }

        .qr-tab.active span.material-symbols-rounded {
            background: #3B82F6;
            color: white;
            font-size: 22px;
            box-shadow: 0 4px 12px rgba(59,130,246,0.3);
        }


/* Контейнер для двух колонок (текст + мокап) */
.qr-content {
    display: flex;
    gap: 40px;
    align-items: center; /* ← изменено с flex-start на center */
}

/* Правая колонка с мокапом */
.qr-mockup {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -100px;
}

/* Левая колонка с текстом */
.qr-text {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#qr-text-vcard p, h2 {
    margin-bottom: 40px !important;
}
.hero p, h2 {
    margin-bottom: 40px !important;
}

/* Блоки текста для каждого типа */
.qr-text-content.hidden {
    display: none;
}

.qr-text-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.qr-text-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 16px 0;
}

/* Список преимуществ */
.qr-benefits {
    margin-top: 25px;
    font-size: 14px;
    color: #374151;
    list-style: none;
}

    .qr-benefits li {
        margin-bottom: 6px;
    }

.btn-create {
    margin-left: 50px;
}
/* Контейнер самого мокапа (фон с картинкой телефона) */
.phone-mockup-container {
    position: relative;
    width: 70%; /* ширина относительно родительской колонки */
    aspect-ratio: 9 / 12; /* соотношение сторон вашего мокапа (подставьте своё) */
    background-size: contain; /* или cover – по желанию */
    background-repeat: no-repeat;
    background-position: top;
}

/* Адаптивность для узких экранов (до 900px) */
@media (max-width: 1279px) {
    .qr-content {
        align-items: center; /* опционально, если хотите центрировать колонки по горизонтали */
        display: flex;
        align-items: center; /* вертикально по центру */
        justify-content: center; /* горизонтально по центру */
        height: 100%;
    }

    .qr-mockup {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 20px; /* отступ сверху */
    }

    .phone-mockup-container {
        width: 80%;
        max-width: 300px; /* чтобы не слишком большой */
        aspect-ratio: 9 / 12;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    /* если нужно, убедитесь, что левая колонка тоже центрирована */
    .qr-text {
        text-align: center;
    }
    .btn-success {
        max-width: 320px;
        height: auto;
        font-size: 1.5rem;
    }
    .premium-hero {
        justify-content: center;
        text-align: center;
        margin-bottom: 40px !important;
    }
    .btn-create {
        align-content: center;
        justify-content: center;
        justify-content: center;
        margin: 0;
        text-align: center;
    }
}

/* ===================== MOBILE STYLING (MAX 768px) ===================== */
@media (max-width: 768px) {
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center; /* центрирует все дочерние элементы по горизонтали */
    }

    .badge {
        margin-bottom: 20px !important;
        box-shadow: 0 3px 14px rgba(0,0,0,0.08) !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        border-radius: 2rem;
        margin: 0;
        /* убираем justify-content, align-items отсюда */
    }
    .steps {
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    /* Можно уменьшить смещение для мобильных */
    .step-card h2,
    .step-card p {
        transform: translateX(-20px);
    }

    .step-card .step-image {
        transform: translateX(20px);
    }
    /* ===================== Контейнеры ===================== */
    .hero,
    #qr-text-vcard,
    .qr-section,
    .qr-content {
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .qr-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        text-align: center;
    }

    /* ===================== Phone Mockup ===================== */
    .phone-mockup-container {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        aspect-ratio: 9 / 12;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        margin: auto;
    }

    /* ===================== Кнопки скрываем ===================== */
    .scroll-btn {
        display: none !important;
    }

    .qr-tabs-wrapper {
        overflow: visible; /* убираем возможные ограничения */
    }

    .qr-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 4 равные колонки */
        gap: 20px; /* расстояние между табами */
        justify-items: center; /* центрируем содержимое внутри ячеек */
        align-items: center;
        padding: 20px 0; /* отступы сверху/снизу */
        overflow-x: visible; /* убираем скролл */
        white-space: normal; /* разрешаем перенос текста */
        scroll-snap-type: none; /* отключаем snap */
    }

    .qr-tab {
        width: 100%; /* занимаем всю ширину ячейки */
        min-width: auto; /* убираем min-width, если был */
        text-align: center;
        padding: 10px; /* добавляем внутренние отступы */
        box-sizing: border-box;
    }

    /* Скрываем кнопки прокрутки на десктопе */
    .scroll-btn {
        display: none !important;
    } 
    .qr-tabs-wrapper .left,
    .qr-tabs-wrapper .right {
        display: none;
    }

    /* ===================== Текстовые блоки QR ===================== */
    .qr-text {
        text-align: center;
    }

    /* ===================== Кнопки ===================== */
    .btn-success,
    .btn-create {
        max-width: 320px;
        height: auto;
        font-size: 1.5rem;
        margin: auto;
        text-align: center;
        justify-content: center;
        align-content: center;
    }

    /* ===================== Premium Hero ===================== */
    .premium-hero {
        padding-top: 20px;
        padding-bottom: 60px;
        margin: 0 auto;
        justify-content: center;
        text-align: center;
        margin-bottom: 0 !important;
    }
    .stepParent {
        display: flex;
        justify-content: center;
    }
    .containerStep {
        width: auto;
        margin: 0 auto;
        padding-bottom: 20px;
        background: var(--bg-top);
        text-align: center;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        margin-top: 40px;
    }


    .qr-mockup {
        display: none; /* скрываем десктопный блок */
    }
}


/* Сетка шагов */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
}

/* Карточка шага */
.step-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    /* Начальное состояние для анимации появления всей карточки */
    opacity: 0;
    transition: opacity 0.7s ease;
    margin: 0;
}

/* Номер шага */
.step-number {
    width: 50px;
    height: 50px;
    background: #1E3A8A;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Текстовые элементы (заголовок, параграф) */
.step-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1E3A8A;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

.step-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

/* Изображение */
.step-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: translateX(30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

/* Класс, добавляемый при появлении в зоне видимости */
.step-card.visible {
    opacity: 1;
}

    .step-card.visible h2,
    .step-card.visible p {
        transform: translateX(0);
        opacity: 1;
    }

    .step-card.visible .step-image {
        transform: translateX(0);
        opacity: 1;
    }

    /* Небольшая задержка для последовательности (опционально) */
    .step-card.visible h2 {
        transition-delay: 0.1s;
    }

    .step-card.visible p {
        transition-delay: 0.2s;
    }

    .step-card.visible .step-image {
        transition-delay: 0.3s;
    }


/*==========================================
    ========PLAN CARDS NEW========
============================================*/
/* =========================
   FONT (Material Symbols)
========================= */
/* =========================
   ICONS
========================= */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px;
    line-height: 1;
    transition: 0.2s ease;
}

/* =========================
   CARD BASE
========================= */
/* Контейнер планов */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr; /* 1 колонка */
    }
}
.plan-card {
    border-radius: 16px;
    transition: all 0.25s ease;
    overflow: hidden;
}

    .plan-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    }

    /* =========================
   LIST (ИСПРАВЛЕНИЕ ВЫРАВНИВАНИЯ)
========================= */
    .plan-card ul {
        padding: 0;
        margin: 0;
    }

        .plan-card ul li {
            display: flex;
            align-items: center; /* ключ к идеальному центру */
            gap: 8px;
            font-size: 0.9rem;
            margin-bottom: 8px;
            color: #444;
        }

    /* =========================
   TEXT
========================= */
    .plan-card p {
        font-size: 0.9rem;
        color: #666;
    }

    /* =========================
   BUTTON
========================= */
    .plan-card .btn {
        border-radius: 10px;
        font-weight: 600;
    }

/* =========================
   GRADIENTS
========================= */
.gradient-trial {
    background: linear-gradient(135deg, #6a82fb, #fc5c7d);
    color: #fff;
}

.gradient-starter {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #fff;
}

.gradient-standard {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #fff;
}

.gradient-pro {
    background: linear-gradient(135deg, #8a6df5, #b39cff); /* мягкий premium */
    color: #fff;
}

/* =========================
   ICON COLORS PER PLAN
========================= */
.plan-trial .material-symbols-rounded {
    color: #6a82fb;
}

.plan-starter .material-symbols-rounded {
    color: #f7971e;
}

.plan-standard .material-symbols-rounded {
    color: #38cfa3;
}

.plan-pro .material-symbols-rounded {
    color: #8a6df5;
}

/* =========================
   HOVER EFFECT (иконки)
========================= */
.plan-card:hover .material-symbols-rounded {
    transform: scale(1.15);
}

/* =========================
   RECOMMENDED PLAN
========================= */
.recommended {
    border: 2px solid #ffc107;
    position: relative;
}

    /* Optional badge style tweak */
    .recommended .badge {
        font-size: 0.7rem;
        margin-left: 6px;
    }

/* =========================
   SMALL POLISH
========================= */
.plan-card h2 {
    margin-bottom: 6px;
}

.plan-card ul li:last-child {
    margin-bottom: 0;
}

/* Минимальный CSS для отображения */
.feature-item {
    opacity: 1 !important; /* Временно отключаем анимацию для проверки */
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1E3A8A;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.5;
}
/* ===========================================
   FIX FOR FEATURES SECTION - DESKTOP & MOBILE
   =========================================== */

/* Базовые стили для features-section */
.features-section {
    padding: 60px 0;
    background: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

    .features-section .row {
        margin: 0 auto;
        max-width: 1200px;
        padding: 0 15px;
    }

.feature-item {
    opacity: 1 !important;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.feature-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1E3A8A;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* ===========================================
   MOBILE FIXES (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {

    /* Исправляем features-section на мобильных */
    .features-section {
        padding: 40px 0 !important;
        margin: 0 !important;
        width: 100%;
        overflow-x: hidden;
    }

        .features-section .row {
            margin: 0 !important;
            padding: 0 15px !important;
            width: 100%;
        }

        .features-section .col-md-4 {
            padding: 0 10px !important;
            margin-bottom: 20px;
            width: 100%;
            flex: 0 0 100%;
            max-width: 100%;
        }

    .feature-item {
        padding: 25px 20px !important;
        margin-bottom: 0 !important;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .feature-item h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Исправляем контейнер abstract */
    .abstract {
        width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

        /* Исправляем все секции внутри abstract */
        .abstract section,
        .abstract .container,
        .abstract .container-fluid {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

    /* Исправляем hero-section если есть */
    .hero-section {
        padding: 40px 20px !important;
        width: 100%;
        text-align: center;
    }

    /* Исправляем секцию с кнопкой */
    .abstract .d-flex.flex-column {
        padding: 30px 20px !important;
        width: 100%;
    }

    /* Исправляем pricing container */
    .abstract .container[style*="padding-bottom"] {
        padding: 30px 15px 50px !important;
        width: 100%;
    }

    /* Убираем возможные отрицательные отступы */
    .py-5 {
        margin-top: 0 !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Убеждаемся что все колонки видимы */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-md-4,
    .col-12,
    .col-lg-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ===========================================
   EXTRA SMALL DEVICES (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
    .features-section {
        padding: 30px 0 !important;
    }

    .feature-item {
        padding: 20px 15px !important;
    }

        .feature-item h4 {
            font-size: 1.1rem;
        }

    .feature-icon {
        font-size: 2rem;
    }

    .abstract section,
    .abstract .container,
    .abstract .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ===========================================
   FIX FOR FADE-UP ANIMATION ISSUES
   =========================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Убеждаемся что все элементы видны до анимации на мобильных */
@media (max-width: 768px) {
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .feature-item {
        opacity: 1 !important;
        transform: none !important;
    }
}
