/* ==============================================================================
   LEVEL UP (1up.kz) - Modern Clean Design System
   Чистый современный CSS без SP Page Builder и Helix Ultimate
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

/* --- CSS Переменные (Tokens) --- */
:root {
    /* Фирменный градиент брендбука 1UP.KZ */
    --brand-gradient: linear-gradient(44.2deg, #9C00AE 0%, #6300CA 62%, #1300F6 100%);
    --brand-gradient-btn: linear-gradient(44.2deg, #9C00AE 0%, #5800D4 62%, #1300F6 100%);
    --brand-gradient-soft: linear-gradient(44.2deg, rgba(156, 0, 174, 0.08) 0%, rgba(19, 0, 246, 0.08) 100%);
    --brand-magenta: #9C00AE;
    --brand-purple: #6300CA;
    --brand-blue: #1300F6;

    /* Цветовая палитра */
    --color-primary: #9C00AE;
    /* Magenta-Violet Brandbook */
    --color-primary-hover: #7b008b;
    --color-primary-light: rgba(156, 0, 174, 0.08);
    --color-primary-rgb: 156, 0, 174;

    --color-secondary: #1300F6;
    /* Electric Ultramarine */
    --color-accent: #EA580C;
    /* Warm Orange со старого сайта */
    --color-accent-hover: #c2410c;
    --color-telegram: #229ED9;
    /* Telegram Brand Blue */
    --color-whatsapp: #25D366;
    /* WhatsApp Brand Green */
    --color-kaspi: #f14635;
    /* Kaspi Brand Red */

    /* Тёмные и глубокие оттенки */
    --color-dark: #0f172a;
    /* Slate 900 (Глубокий индиго/угольный) */
    --color-dark-surface: #1e293b;
    /* Slate 800 */
    --color-dark-card: #0b1329;
    /* Deep Navy */

    /* Нейтральные и светлые фоны */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    /* Slate 50 */
    --color-bg-gray: #f1f5f9;
    /* Slate 100 - Светло-серый футер */
    --color-bg-card: #ffffff;

    /* Текст */
    --color-text: #1e293b;
    /* Основной текст */
    --color-text-muted: #64748b;
    /* Второстепенный текст */
    --color-text-light: #94a3b8;
    --color-heading: #0f172a;
    /* Заголовки */

    /* Границы и тени */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --border-color-light: #f1f5f9;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --border-radius-pill: 9999px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 3px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);

    /* Типографика */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Oswald', 'Inter', -apple-system, sans-serif;

    /* Сетка и контейнер */
    --container-max: 1240px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 82px;
}

/* --- Сброс и базовые стили --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.65;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.site-content {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* --- Контейнер --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Типографика --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Кнопки (CTA) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(44.2deg, #9C00AE 0%, #5800D4 62%, #1300F6 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(99, 0, 202, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(156, 0, 174, 0.5), 0 6px 16px rgba(19, 0, 246, 0.35);
    background: linear-gradient(44.2deg, #b000c4 0%, #6800ea 62%, #2210ff 100%);
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-heading);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.45);
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9, #0088cc);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.35);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.5);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 34px;
    font-size: 17px;
}

/* --- Градиентные бейджи --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--border-radius-pill);
    background: rgba(156, 0, 174, 0.08);
    color: #9C00AE;
    border: 1px solid rgba(156, 0, 174, 0.2);
    letter-spacing: 0.02em;
}

.badge-pill i {
    font-size: 12px;
}

.badge-accent {
    background: rgba(255, 87, 34, 0.08);
    color: var(--color-accent);
    border-color: rgba(255, 87, 34, 0.2);
}

.badge-success {
    background: rgba(99, 0, 202, 0.08);
    color: #6300CA;
    border-color: rgba(99, 0, 202, 0.2);
}

/* ==============================================================================
   ЛИПКАЯ ШАПКА (Header) с мягким размытием фона
   ============================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

/* Изящная тонкая градиентная линия-акцент по нижнему краю шапки */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(156, 0, 174, 0.25), rgba(19, 0, 246, 0.45), rgba(156, 0, 174, 0.25));
    pointer-events: none;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

/* Логотип */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-symbol {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-dark);
}

.logo-symbol strong {
    color: var(--color-accent);
}

.logo-tagline {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
    font-size: 11px;
    line-height: 1.25;
    color: var(--color-text-muted);
    font-weight: 500;
}

.logo-tagline span:first-child {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Навигация (Десктоп) */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-heading);
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

.nav-link i.fa-angle-down {
    font-size: 11px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-link:hover {
    color: #9C00AE;
    background: rgba(99, 0, 202, 0.05);
}

.nav-item.active>.nav-link {
    color: #9C00AE;
    background: rgba(99, 0, 202, 0.08);
    font-weight: 600;
}

.nav-item:hover .nav-link i.fa-angle-down {
    transform: rotate(180deg);
}

/* Выпадающие меню */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 1010;
}

.nav-item:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-heading);
    transition: var(--transition);
}

.dropdown-link i {
    font-size: 15px;
    margin-top: 3px;
    color: var(--color-primary);
    width: 18px;
    text-align: center;
}

.dropdown-link-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.dropdown-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Правый блок шапки (Контакты + CTA) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    padding: 8px 12px;
    border-radius: var(--border-radius-pill);
    background: var(--color-bg-alt);
    border: 1px solid var(--border-color);
}

.header-phone:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.header-phone i {
    color: var(--color-primary);
}

.header-messengers {
    display: flex;
    gap: 8px;
}

.messenger-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 15px;
    transition: var(--transition);
}

.messenger-btn.tg {
    background: var(--color-telegram);
}

.messenger-btn.wa {
    background: var(--color-whatsapp);
}

.messenger-btn.phone {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
}

.messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Бургер для мобилок */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 22px;
    color: var(--color-heading);
}

/* ==============================================================================
   МОБИЛЬНОЕ МЕНЮ (Drawer / Offcanvas)
   ============================================================================== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1998;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    z-index: 1999;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.drawer-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-text-muted);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-nav a {
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-heading);
}

.drawer-nav a.active,
.drawer-nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.drawer-submenu {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding-left: 14px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    border-left: 2px solid rgba(99, 0, 202, 0.18) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.drawer-submenu a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 7px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--color-text-muted) !important;
    border-radius: var(--border-radius-sm) !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.drawer-submenu a:hover,
.drawer-submenu a.active {
    color: var(--color-primary) !important;
    background: rgba(99, 0, 202, 0.06) !important;
}

.drawer-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==============================================================================
   СЕКЦИИ ГЛАВНОЙ СТРАНИЦЫ
   ============================================================================== */
.section {
    padding: 90px 0;
    position: relative;
}

/* Сетка для Оферты и Конфиденциальности (Оглавление + Документ) */
.legal-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Парящее оглавление (Floating Sticky Table of Contents) для Оферты и Конфиденциальности */
.legal-toc-aside {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 104px !important;
    z-index: 30 !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: 24px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    max-height: calc(100vh - 128px) !important;
    overflow-y: auto !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.legal-toc-aside:hover {
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 6px 14px -2px rgba(15, 23, 42, 0.06) !important;
}

/* Крупные фоновые слова-водяные знаки со старого сайта (Watermark Typography) */
.section-watermark {
    position: absolute;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4.5rem, 10vw, 8.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(99, 0, 202, 0.04);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* Фирменные концентрические круги-орбиты для темных блоков */
.dark-section-orbits {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 320px;
    height: 320px;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .dark-section-orbits {
        width: 220px;
        height: 220px;
        right: -40px;
        bottom: -40px;
        opacity: 0.6;
    }
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-dark {
    background-color: var(--color-dark);
    color: #ffffff;
}

/* Декоративный инженерный фон (Blueprint Flanks) для светлых секций */
.section-blueprint {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.section-blueprint>.container {
    position: relative;
    z-index: 1;
}

.section-blueprint-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.section-blueprint-decor .blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 25%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 25%, transparent 100%);
}

.section-blueprint-decor .blueprint-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.section-blueprint-decor .blueprint-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px;
}

.section-header .section-tag {
    margin-bottom: 14px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

.section-dark .section-header p {
    color: #94a3b8;
}

.section-dark h2 {
    color: #ffffff;
}

/* --- 1. HERO СЕКЦИЯ --- */
.hero-section {
    position: relative;
    padding: 70px 0 95px;
    background:
        radial-gradient(circle at 80% 18%, rgba(156, 0, 174, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 12% 82%, rgba(19, 0, 246, 0.06) 0%, transparent 40%),
        #ffffff;
    border-bottom: 1px solid var(--border-color-light);
    overflow: hidden;
}

/* Декоративный многослойный инженерный фон */
.hero-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Слой 1: Архитектурная сетка + Dot Matrix */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(99, 0, 202, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 0, 202, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 35%, transparent 100%);
}

.hero-dot-matrix {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 0, 202, 0.09) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 20%, transparent 85%);
    mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 20%, transparent 85%);
    opacity: 0.7;
}

/* Слой 2: Aurora Glow пятна брендбука */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(65px);
    pointer-events: none;
}

.hero-glow-1 {
    top: -80px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(156, 0, 174, 0.10) 0%, rgba(99, 0, 202, 0.05) 50%, transparent 70%);
}

.hero-glow-2 {
    top: 15%;
    right: -120px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(99, 0, 202, 0.12) 0%, rgba(19, 0, 246, 0.08) 50%, transparent 70%);
}

.hero-glow-3 {
    bottom: -60px;
    left: 32%;
    width: 440px;
    height: 320px;
    background: radial-gradient(circle, rgba(156, 0, 174, 0.07) 0%, transparent 70%);
}

/* Слой 3: Векторные SVG-орбиты и технические узлы */
.hero-svg-decor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 24px;
    color: var(--color-heading);
    font-weight: 700;
}

.hero-title .text-gradient {
    background: linear-gradient(44.2deg, #9C00AE 0%, #5800D4 62%, #1300F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Авторский рукотворный штрих маркером под «ИИ-решений» */
.hero-drawn-word {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.drawn-stroke-svg {
    position: absolute;
    bottom: -9px;
    left: -2px;
    width: calc(100% + 4px);
    height: 15px;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 620px;
}

/* Кнопки первого экрана в одну строку */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
}

/* Живой блок доверия (Micro-Trust Bar) */
.hero-trust-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--border-radius-pill);
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(8px);
}

.trust-badge-icon {
    color: #6300CA;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.trust-sep {
    color: #cbd5e1;
    margin: 0 4px;
}

.trust-highlight {
    color: var(--color-heading);
    font-weight: 600;
}

/* Рисованная стрелка и подпись к витрине проектов */
.hero-hand-arrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--color-primary);
}

.handwritten-note {
    font-family: 'Caveat', 'Segoe Script', cursive, sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    color: var(--color-primary);
    transform: rotate(-2deg);
    display: inline-block;
}

.handwritten-arrow-svg {
    width: 65px;
    height: 28px;
    flex-shrink: 0;
}

/* Статистика в одну полоску */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    padding-top: 26px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.35;
    font-weight: 500;
}

/* Правая колонка Hero: macOS / Studio Bento Frame */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.showcase-studio-frame {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 16px 18px 20px;
    box-shadow:
        0 24px 60px -12px rgba(15, 23, 42, 0.16),
        0 10px 24px -6px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(37, 99, 235, 0.08);
    width: 100%;
    max-width: 530px;
    margin: 0 auto;
}

.studio-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.studio-frame-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-frame-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.studio-frame-dots .dot.red {
    background: #ff5f56;
}

.studio-frame-dots .dot.yellow {
    background: #ffbd2e;
}

.studio-frame-dots .dot.green {
    background: #27c93f;
}

.studio-frame-address {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(241, 245, 249, 0.9);
    padding: 3px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.studio-frame-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6300CA;
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6300CA;
    box-shadow: 0 0 8px rgba(99, 0, 202, 0.6);
    animation: pulse 2s infinite;
}

.hero-showcase-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.showcase-slot {
    position: relative;
    overflow: hidden;
    height: 94px;
    border-radius: var(--border-radius-md);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
    display: block;
}

.showcase-slot:hover {
    transform: translateX(-4px) scale(1.02);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    border-color: var(--color-primary);
    z-index: 5;
}

.showcase-slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
    display: block;
}

.showcase-slot:hover .showcase-slot-img {
    transform: scale(1.06);
}

/* Усиленный высококонтрастный оверлей слева направо */
.showcase-slot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(15, 23, 42, 0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    transition: background 0.3s ease;
}

.showcase-slot:hover .showcase-slot-overlay {
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.94) 0%, rgba(15, 23, 42, 0.75) 60%, rgba(15, 23, 42, 0.3) 100%);
}

.showcase-slot-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    z-index: 2;
}

.showcase-slot-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.showcase-slot-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.showcase-slot-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.showcase-slot-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border-radius: var(--border-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    z-index: 2;
}

/* Плавающие карточки-бейджи (вынесены строго ЗА пределы текста) */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 9px 15px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    animation: float 4s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

.floating-badge.badge-studio-top-right {
    top: -24px;
    right: -24px;
    animation-delay: 0s;
}

.floating-badge.badge-studio-bottom-left {
    bottom: -22px;
    left: -24px;
    animation-delay: 2s;
}

.floating-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.floating-icon.blue {
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
}

.floating-icon.orange {
    background: rgba(255, 87, 34, 0.12);
    color: var(--color-accent);
}

.floating-icon.green {
    background: rgba(99, 0, 202, 0.08);
    color: #6300CA;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* ==============================================================================
   PAGE HERO & ДЕКОРАТИВНЫЕ ПАТТЕРНЫ (Внутренние страницы)
   ============================================================================== */
.page-hero {
    position: relative;
    padding: 60px 0 70px;
    background:
        radial-gradient(circle at 85% 15%, rgba(156, 0, 174, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(19, 0, 246, 0.06) 0%, transparent 45%),
        #ffffff;
    border-bottom: 1px solid var(--border-color-light);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(99, 0, 202, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 0, 202, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-inner {
    max-width: 860px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 18px;
    background: rgba(241, 245, 249, 0.7);
    padding: 5px 14px;
    border-radius: var(--border-radius-pill);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    font-size: 10px;
    color: #94a3b8;
}

.breadcrumb-current {
    color: var(--color-heading);
    font-weight: 600;
}

.page-hero-badge {
    margin-bottom: 16px;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    line-height: 1.15;
    color: var(--color-heading);
    margin-bottom: 18px;
    font-weight: 700;
}

.page-hero-title .text-gradient {
    background: linear-gradient(44.2deg, #9C00AE 0%, #5800D4 62%, #1300F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero-subtitle {
    font-size: 1.12rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 720px;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Декоративный точечный паттерн (.bg-dot-pattern) для секций */
.bg-dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
    position: relative;
}

.section-alt>.container {
    position: relative;
    z-index: 1;
}

/* --- 2. BENTO GRID — ДВА ФЛАГМАНСКИХ КРЫЛА --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.bento-card:hover {
    /* transform: translateY(-6px); */
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.bento-card.card-business {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

.bento-card.card-edtech {
    background: linear-gradient(180deg, #ffffff 0%, #fdf8f6 100%);
    border: 1px solid #e2e8f0;
}

/* Иллюстративный баннер карточки Bento */
.bento-card-media {
    width: 100%;
    height: 180px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    background: #f1f5f9;
}

.bento-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.bento-card:hover .bento-card-media img {
    transform: scale(1.05);
}

.bento-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.45) 100%);
}

.bento-tag {
    margin-bottom: 16px;
}

.bento-title {
    font-size: 26px;
    margin-bottom: 14px;
    color: var(--color-heading);
}

.bento-desc {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.bento-features {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 24px;
}

.bento-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.bento-features li i {
    color: var(--color-primary);
    margin-top: 3px;
    font-size: 15px;
}

.bento-card.card-edtech .bento-features li i {
    color: var(--color-accent);
}

.bento-action {
    margin-top: auto;
    padding-top: 16px;
}

/* --- 3. ВИТРИНА EDTECH (УПАКОВКА МЕТОДИК В IT-ОБОЛОЧКУ) --- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.showcase-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 0, 174, 0.45) !important;
    box-shadow: 0 14px 32px -8px rgba(99, 0, 202, 0.14) !important;
}

.showcase-icon,
.showcase-icon.blue,
.showcase-icon.orange,
.showcase-icon.cyan,
.showcase-icon.green {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
    background: rgba(99, 0, 202, 0.07) !important;
    color: #6300CA !important;
    transition: var(--transition);
}

.showcase-icon i {
    color: #6300CA !important;
}

.showcase-card:hover .showcase-icon,
.showcase-card:hover .showcase-icon.blue,
.showcase-card:hover .showcase-icon.orange,
.showcase-card:hover .showcase-icon.cyan,
.showcase-card:hover .showcase-icon.green {
    background: linear-gradient(44.2deg, #9C00AE 0%, #6300CA 62%, #1300F6 100%) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.showcase-card:hover .showcase-icon i {
    color: #ffffff !important;
}

.showcase-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.showcase-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
    flex-grow: 1;
}

.showcase-action {
    margin-top: auto;
    padding-top: 18px;
}

.showcase-action a {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.showcase-action a:hover {
    gap: 10px;
}

/* --- 4. ОБУЧЕНИЕ И TELEGRAM-КОПИЛКА --- */
.learning-section {
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.course-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-thumb {
    height: 190px;
    width: 100%;
    object-fit: cover;
    background: #e2e8f0;
}

.course-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

.course-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.course-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color-light);
}

/* Акцентный баннер: IT-копилка для учителей в Telegram */
.telegram-banner {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 50%, #0f274a 100%);
    border-radius: var(--border-radius-xl);
    padding: 50px 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(156, 0, 174, 0.22) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 35%, transparent 85%);
    mask-image: radial-gradient(ellipse at 80% 50%, #000 35%, transparent 85%);
    pointer-events: none;
    z-index: 1;
}

.telegram-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(156, 0, 174, 0.28) 0%, rgba(19, 0, 246, 0.18) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.telegram-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.telegram-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 88, 12, 0.15);
    color: #ff7a45;
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(234, 88, 12, 0.35);
}

.telegram-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 14px;
}

.telegram-desc {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.telegram-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.telegram-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    color: #e2e8f0;
}

.telegram-feature-pill i {
    color: #EA580C;
}

/* Правая композиция баннера: вертикальный мокап Telegram + карточка статистики */
.telegram-right-composition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.telegram-phone-mockup {
    width: 184px;
    height: 400px;
    border-radius: 26px;
    border: 5px solid rgba(255, 255, 255, 0.18);
    background: #0f172a;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 0, 202, 0.28);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.telegram-phone-mockup:hover {
    transform: rotate(0deg) scale(1.03);
}

.telegram-mockup-topbar {
    height: 32px;
    background: #0f274a;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-mockup-topbar i {
    color: #ff7a45;
    font-size: 13px;
}

.telegram-mockup-img {
    width: 100%;
    height: calc(100% - 32px);
    object-fit: cover;
    display: block;
}

.telegram-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-lg);
    padding: 26px 18px;
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    max-width: 210px;
}

.telegram-stat-num {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}

.telegram-stat-txt {
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* --- 5. БЕСПЛАТНЫЕ МИНИ-СЕРВИСЫ ДЛЯ УРОКОВ --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.app-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.app-thumb {
    height: 160px;
    width: 100%;
    object-fit: cover;
    background: #f1f5f9;
}

.app-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.app-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.5;
}

/* --- 6. ПРЕИМУЩЕСТВА И ШАГИ РАБОТЫ --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px 22px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.25;
    position: absolute;
    top: 18px;
    right: 22px;
    line-height: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.step-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-text {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* --- 7. ФИНАЛЬНАЯ ФОРМА ЗАЯВКИ (LEAD FORM) --- */
.lead-section {
    background: linear-gradient(135deg, #0b1329 0%, #172554 100%);
    color: #ffffff;
    padding: 90px 0;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.lead-info h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 18px;
}

.lead-info p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.6;
}

.lead-perks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.lead-perk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.lead-perk-item i {
    color: #EA580C;
    font-size: 18px;
}

.lead-contacts-direct {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Форма в карточке */
.lead-card {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    padding: 44px;
    color: var(--color-text);
    box-shadow: var(--shadow-xl);
}

.lead-card-header {
    margin-bottom: 24px;
}

.lead-card-header h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.lead-card-header p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 6px;
}

/* Четко видимые поля ввода во ВСЕХ формах на всех страницах */
.form-control,
.form-input,
.form-select,
.ajax-lead-form input[type="text"],
.ajax-lead-form input[type="tel"],
.ajax-lead-form input[type="email"],
.ajax-lead-form select,
.ajax-lead-form textarea,
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form select,
form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: var(--border-radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-control::placeholder,
.form-input::placeholder,
.ajax-lead-form input::placeholder,
.ajax-lead-form textarea::placeholder,
form input::placeholder,
form textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.form-control:hover,
.form-input:hover,
.form-select:hover,
.ajax-lead-form input[type="text"]:hover,
.ajax-lead-form input[type="tel"]:hover,
.ajax-lead-form input[type="email"]:hover,
.ajax-lead-form select:hover,
.ajax-lead-form textarea:hover,
form input[type="text"]:hover,
form input[type="tel"]:hover,
form input[type="email"]:hover,
form select:hover,
form textarea:hover {
    border-color: #64748b !important;
    background-color: #ffffff !important;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.ajax-lead-form input[type="text"]:focus,
.ajax-lead-form input[type="tel"]:focus,
.ajax-lead-form input[type="email"]:focus,
.ajax-lead-form select:focus,
.ajax-lead-form textarea:focus,
form input[type="text"]:focus,
form input[type="tel"]:focus,
form input[type="email"]:focus,
form select:focus,
form textarea:focus {
    outline: none !important;
    border-color: #9C00AE !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(156, 0, 174, 0.18) !important;
}

.form-privacy {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 14px;
    line-height: 1.4;
}

.form-privacy a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-alert {
    padding: 14px;
    border-radius: var(--border-radius-sm);
    margin-top: 16px;
    display: none;
    font-size: 14px;
}

.form-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

/* ==============================================================================
   ФИНАЛЬНАЯ LUXURY-КОМПОЗИЦИЯ ФУТЕРА
   1. Dot Matrix паттерн + фирменная полоса 3px (#9C00AE -> #1300F6)
   2. Парящая белая карточка 1 + Открытые колонки 2–4 на фоне
   3. Темная Luxury-полоса (Dark Bottom Bar)
   ============================================================================== */
.site-footer.luxury-footer {
    background-color: #f4f6fb;
    background-image:
        radial-gradient(rgba(99, 0, 202, 0.08) 1.2px, transparent 1.2px),
        radial-gradient(circle at 10% 15%, rgba(156, 0, 174, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(19, 0, 246, 0.05) 0%, transparent 45%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    color: #475569;
    padding-top: 60px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    border-top: none;
}

.footer-brand-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(44.2deg, #9C00AE 0%, #6300CA 62%, #1300F6 100%);
    z-index: 2;
}

.site-footer>.container {
    position: relative;
    z-index: 1;
}

.luxury-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.15fr 1.15fr;
    gap: 36px;
    align-items: start;
    padding-bottom: 54px;
}

/* Колонка 1: Парящая белая бренд-карточка Level UP */
.luxury-brand-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 28px;
    border: 1px solid rgba(156, 0, 174, 0.14);
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

/*
Тонкий фирменный градиентный блик по верхнему краю карточки
.luxury-brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9C00AE 0%, #6300CA 55%, #1300F6 100%);
}
*/

.luxury-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.luxury-card-brand {
    display: inline-block;
}

.luxury-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.luxury-badge {
    font-size: 11px;
    font-weight: 700;
    color: #6300CA;
    background: rgba(99, 0, 202, 0.08);
    border: 1px solid rgba(99, 0, 202, 0.18);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Живая плашка статуса с пульсирующей зеленой точкой */
.luxury-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
    background: #f0fdf4;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 20px;
    padding: 5px 12px;
    margin-bottom: 16px;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    display: inline-block;
}

.status-pulse-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: #10b981;
    animation: status-pulse-glow 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    will-change: transform, opacity;
}

@keyframes status-pulse-glow {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    70% {
        transform: scale(2.2);
        opacity: 0;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.luxury-about-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 22px;
}

/* Кнопки соцсетей (Squircle 42x42px, border-radius 12px) */
.luxury-socials {
    display: flex;
    gap: 10px;
}

.luxury-social-squircle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(156, 0, 174, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.luxury-social-squircle:hover {
    background: linear-gradient(135deg, #9C00AE 0%, #1300F6 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px -4px rgba(99, 0, 202, 0.45);
}

/* Колонки 2, 3 и 4: свободно на точечном фоне БЕЗ карточек */
.open-footer-col {
    padding-top: 12px;
}

.open-footer-col .footer-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 10px;
}

.open-footer-col .footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #9C00AE, #6300CA);
    border-radius: 2px;
}

.luxury-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.luxury-nav-links li {
    display: flex;
}

.luxury-nav-links a {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.45;
    transition: all 0.22s ease;
    text-decoration: none;
}

.luxury-nav-links a i {
    font-size: 10px;
    color: #6300CA;
    transition: transform 0.22s ease, color 0.22s ease;
}

.luxury-nav-links a:hover {
    color: #6300CA;
    transform: translateX(5px);
}

.luxury-nav-links a:hover i {
    color: #1300F6;
    transform: translateX(2px);
}

/* Элегантная плашка IT-копилка в Telegram */
.luxury-it-capsule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 7px 16px 7px 8px;
    border-radius: 100px;
    background: #ffffff;
    border: 1px solid rgba(34, 158, 217, 0.28);
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.luxury-it-capsule .capsule-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #229ED9 0%, #1783b7 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.luxury-it-capsule .capsule-text {
    line-height: 1.2;
}

.luxury-it-capsule:hover {
    background: #ffffff;
    border-color: #229ED9;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(34, 158, 217, 0.28);
}

.luxury-it-capsule:hover .capsule-icon {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 4px 10px rgba(34, 158, 217, 0.45);
}

/* Колонка 4: Телефон, Контакты и Кнопка */
.luxury-phone-number {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.luxury-phone-number:hover {
    color: #6300CA;
    transform: translateX(3px);
}

.luxury-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.luxury-contacts-list .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.45;
}

.luxury-contacts-list .footer-contact-item i {
    color: #6300CA;
    margin-top: 3px;
    font-size: 14px;
    flex-shrink: 0;
}

.luxury-contacts-list .footer-contact-item a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.luxury-contacts-list .footer-contact-item a:hover {
    color: #6300CA;
}

.luxury-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(156, 0, 174, 0.2);
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.08);
}

.luxury-map-btn i {
    color: #6300CA;
    transition: color 0.2s ease;
}

.luxury-map-btn:hover {
    background: linear-gradient(135deg, #9C00AE 0%, #1300F6 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(99, 0, 202, 0.35);
}

.luxury-map-btn:hover i {
    color: #ffffff;
}

/* 3. Luxury Dark Bottom Bar */
.site-footer .footer-bottom.luxury-dark-bottom {
    background: #0b0f19;
    background: linear-gradient(90deg, #090d16 0%, #111827 50%, #090d16 100%);
    padding: 18px 0;
    font-size: 13px;
    border-top: 1px solid rgba(156, 0, 174, 0.25);
    color: #94a3b8;
}

.site-footer .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    flex-wrap: nowrap;
}

.luxury-copyright {
    color: #94a3b8;
    white-space: nowrap;
}

.luxury-copyright .brand-name {
    color: #f8fafc;
    font-weight: 700;
}

.luxury-legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.luxury-legal-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.luxury-legal-links a:hover {
    color: #ffffff;
    border-bottom-color: #a855f7;
}

.legal-bullet {
    color: rgba(148, 163, 184, 0.4);
    user-select: none;
}

/* Адаптивность для планшетов и мобильных */
@media (max-width: 1024px) {
    .luxury-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .open-footer-col {
        padding-top: 0;
    }
}

@media (max-width: 991px) {
    .site-footer .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .luxury-copyright {
        white-space: normal;
    }

    .luxury-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Скрытие блоков 'ИИ и Веб-разработка', 'EdTech и Педагогам', 'Контакты' для мобильных */
    .site-footer .open-footer-col {
        display: none !important;
    }

    /* Скрытие трех ссылок из самой нижней части футера (Онлайн-оплата, Договор-оферта, Политика) */
    .site-footer .luxury-legal-links {
        display: none !important;
    }

    .site-footer.luxury-footer {
        padding-top: 36px;
    }

    .luxury-footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 28px;
    }

    .luxury-brand-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .site-footer .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 14px 0;
    }

    .site-footer .luxury-copyright {
        text-align: center;
        width: 100%;
        margin: 0;
        white-space: normal;
    }
}


/* ==============================================================================
   АНИМАЦИИ ПО СКРОЛЛУ (IntersectionObserver)
   ============================================================================== */
.reveal-init {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ==============================================================================
   КОМПОНЕНТЫ ВНУТРЕННИХ СТРАНИЦ (Page Hero, Breadcrumbs, Grids, Accordions)
   ============================================================================== */

/* --- Page Hero (Шапка внутренней страницы) --- */
.page-hero {
    padding: 60px 0 65px;
    background: radial-gradient(circle at 90% 10%, rgba(156, 0, 174, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(19, 0, 246, 0.06) 0%, transparent 40%),
        #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-hero-inner {
    max-width: 860px;
}

.page-hero.centered .page-hero-inner {
    margin: 0 auto;
    text-align: center;
}

.page-hero.centered .breadcrumb {
    justify-content: center;
}

.page-hero.centered .page-hero-actions {
    justify-content: center;
}

.page-hero-badge {
    margin-bottom: 16px;
}

.page-hero-title {
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 700;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Хлебные крошки (Breadcrumbs) */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    opacity: 0.4;
    font-size: 11px;
}

.breadcrumb-current {
    color: var(--color-heading);
    font-weight: 600;
}

/* Сетки для внутренних страниц */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Карточки возможностей и преимуществ */
.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 26px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Унифицированные карточки feature-box */
.feature-box {
    border: 1px solid #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.feature-box:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(156, 0, 174, 0.45) !important;
    box-shadow: 0 14px 32px -8px rgba(99, 0, 202, 0.14) !important;
}

.feature-box:hover .feature-box-icon,
.feature-box:hover .feature-icon {
    background: linear-gradient(44.2deg, #9C00AE 0%, #6300CA 62%, #1300F6 100%) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.feature-box:hover .feature-box-icon i,
.feature-box:hover .feature-icon i {
    color: #ffffff !important;
}

.feature-box-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-box:hover .feature-box-icon {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.feature-box-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-box-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

/* Временная шкала (Timeline для истории) */
.timeline {
    position: relative;
    padding-left: 36px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 11px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.timeline-date {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 19px;
    margin-bottom: 8px;
}

.timeline-text {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Аккордеон (FAQ и учебные модули) */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: #cbd5e1;
}

.accordion-item[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.accordion-summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-heading);
    user-select: none;
    list-style: none;
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.accordion-item[open] .accordion-icon {
    transform: rotate(180deg);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.accordion-body {
    padding: 0 24px 22px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
    border-top: 1px solid var(--border-color-light);
    padding-top: 16px;
}

/* Карточки учебных модулей программы курса */
.curriculum-module {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.curriculum-module:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.curriculum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.curriculum-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    text-transform: uppercase;
}

.curriculum-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.curriculum-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.curriculum-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.curriculum-topics li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text);
}

.curriculum-topics li i {
    color: var(--color-primary);
    margin-top: 4px;
    font-size: 12px;
}

/* Карточка семинара / вебинара */
.seminar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
}

.seminar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.seminar-card {
    border: 1px solid #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.seminar-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(156, 0, 174, 0.45) !important;
    box-shadow: 0 14px 32px -8px rgba(99, 0, 202, 0.14) !important;
}

.seminar-poster-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: #f1f5f9;
}

.seminar-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.seminar-card:hover .seminar-poster {
    transform: scale(1.05);
}

.seminar-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.seminar-body,
.seminar-content {
    padding: 24px 28px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.seminar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.seminar-title {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 12px;
    line-height: 1.35;
}

.seminar-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
    flex-grow: 1;
}

.seminar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-color-light);
    margin-top: auto;
}

/* Акцентный баннер CTA внизу страниц */
.cta-banner {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 50%, #172554 100%);
    border-radius: var(--border-radius-xl);
    padding: 56px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.cta-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    color: #ffffff;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.cta-banner-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Секция IT-копилка на странице learning */
.kopilka-cta-banner {
    padding: 48px;
}

.kopilka-banner-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.kopilka-card-box {
    padding: 36px 30px;
}

/* Секция Бонусы и Сертификат на странице learning-website */
.bonus-cta-banner {
    padding: 48px;
}

.bonus-banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.bonus-certificate-card {
    padding: 32px;
}

/* Секция Семинары для школ на странице teachers-help */
.school-seminar-banner {
    padding: 48px;
}

.school-seminar-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.school-benefits-card {
    padding: 28px;
}

/* Информационные плашки / Бейджи карточек */
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--border-radius-pill);
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    border: 1px solid var(--border-color);
}

.meta-pill.blue {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: rgba(37, 99, 235, 0.2);
}

.meta-pill.orange {
    background: rgba(255, 87, 34, 0.08);
    color: var(--color-accent);
    border-color: rgba(255, 87, 34, 0.2);
}

.meta-pill.green {
    background: rgba(99, 0, 202, 0.08);
    color: #6300CA;
    border-color: rgba(99, 0, 202, 0.2);
}

/* ==============================================================================
   АДАПТИВНЫЕ СЕТКИ И ФОРМЫ (Responsive Grids & Forms)
   ============================================================================== */
.responsive-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.responsive-lead-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-panel-card {
    background: var(--color-card-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    box-shadow: var(--shadow-md);
}

.form-panel-centered {
    max-width: 760px;
    margin: 0 auto;
}

.contacts-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contacts-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.contacts-messengers-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==============================================================================
   АДАПТИВНОСТЬ (Responsive)
   ============================================================================== */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* На мобильных и планшетах: сначала заголовок и оффер компании, затем витрина разработок */
    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-image-wrap {
        max-width: 420px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .telegram-inner {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lead-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .responsive-2col,
    .responsive-lead-split,
    .contacts-grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 860px) {

    .main-nav,
    .header-phone,
    .header-messengers {
        display: none !important;
    }

    .header-inner {
        height: 68px;
        gap: 12px;
    }

    .header-actions {
        gap: 10px;
        flex-shrink: 0;
    }

    .mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(99, 0, 202, 0.08);
        border: 1.5px solid rgba(99, 0, 202, 0.2);
        color: var(--color-primary);
        font-size: 20px;
        cursor: pointer;
        transition: var(--transition);
        flex-shrink: 0;
    }

    .mobile-toggle:hover {
        background: rgba(99, 0, 202, 0.16);
        color: var(--color-primary-dark);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .curriculum-topics {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Скрыть на мобилках блоки доверия и рисованную стрелку */
    .hero-trust-bar,
    .hero-hand-arrow {
        display: none !important;
    }

    .floating-badge {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .page-hero {
        padding: 45px 0 50px;
    }

    .cta-banner {
        padding: 34px 20px !important;
    }

    .kopilka-cta-banner {
        padding: 28px 18px !important;
    }

    .kopilka-banner-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .kopilka-card-box {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 26px 18px !important;
    }

    .bonus-cta-banner {
        padding: 28px 18px !important;
    }

    .bonus-banner-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .bonus-certificate-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 24px 18px !important;
    }

    .school-seminar-banner {
        padding: 28px 18px !important;
    }

    .school-seminar-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .school-benefits-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 24px 18px !important;
    }

    .telegram-banner {
        padding: 34px 24px;
    }

    .telegram-right-composition {
        flex-direction: column;
        gap: 16px;
    }

    .telegram-phone-mockup {
        width: 190px;
        height: 280px;
    }

    .telegram-stat-card {
        max-width: 100%;
        width: 100%;
    }

    .lead-card {
        padding: 28px 20px;
    }
}

@media (max-width: 600px) {

    /* На смартфонах прячем кнопку «Оставить заявку» из узкой шапки (она есть в меню и на странице),
       чтобы кнопка мобильного меню аккуратно прилегала к правому краю */
    .header-actions .btn-primary {
        display: none !important;
    }

    .brand-logo .logo-tagline span:last-child {
        display: none;
    }

    /* Адаптивность кнопок: текст мягко переносится и не вылезает за границы */
    .btn {
        white-space: normal !important;
        text-align: center;
        max-width: 100%;
        line-height: 1.35;
        padding: 12px 18px;
        font-size: 14.5px;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .hero-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .bento-action .btn {
        width: 100%;
        white-space: normal !important;
        line-height: 1.35;
        padding: 13px 16px;
    }

    .telegram-banner .btn {
        width: 100%;
        white-space: normal !important;
        line-height: 1.35;
    }

    .lead-contacts-direct {
        flex-direction: column;
        gap: 10px;
    }

    .lead-contacts-direct .btn {
        width: 100%;
        justify-content: center;
        white-space: normal !important;
    }

    .lead-card .btn {
        white-space: normal !important;
        line-height: 1.35;
        padding: 14px 16px;
    }

    /* Сетки по 2 столбика на мобилках */
    .showcase-grid,
    .apps-grid,
    .steps-grid,
    .about-stats-grid,
    .about-pillars-grid,
    .contacts-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .grid-4:not(.about-stats-grid),
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    /* Адаптация карточек контактов в 2 столбика на смартфонах */
    .contacts-cards-grid .feature-box {
        padding: 14px 10px !important;
        gap: 6px !important;
        border-radius: var(--border-radius-lg, 16px) !important;
    }

    .contacts-cards-grid .feature-box > div:first-child {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    /* Скрытие оглавления и комфортный полноэкранный текст документов на смартфонах */
    .legal-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        display: block !important;
    }

    .legal-toc-aside {
        display: none !important;
    }

    .legal-document {
        padding: 20px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Страница О нас: карточки 10+ лет и показатели в 2 столбика */
    .about-stats-grid .feature-box {
        padding: 16px 12px !important;
        border-radius: var(--border-radius-lg, 16px) !important;
    }

    .about-stats-grid .stat-number {
        font-size: 32px !important;
    }

    .about-stats-grid .stat-title {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .about-stats-grid .stat-desc {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }

    /* Страница О нас: секция 'Почему организации и педагоги выбирают Level UP' в 2 столбика */
    .about-pillars-grid .feature-box {
        padding: 18px 14px !important;
        border-radius: var(--border-radius-lg, 16px) !important;
    }

    .about-pillars-grid .feature-box-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 17px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }

    .about-pillars-grid .feature-box-title {
        font-size: 15px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }

    .about-pillars-grid .feature-box-text {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .about-pillars-grid .feature-box:nth-child(3) {
        grid-column: 1 / -1 !important;
    }

    /* Адаптация карточек EdTech-мастерской в 2 колонки */
    .showcase-card {
        padding: 16px 12px;
        border-radius: var(--border-radius-lg, 18px) !important;
    }

    .showcase-icon,
    .showcase-icon.blue,
    .showcase-icon.orange,
    .showcase-icon.cyan,
    .showcase-icon.green {
        width: 38px;
        height: 38px;
        font-size: 16px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .showcase-title {
        font-size: 13.5px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .showcase-text {
        font-size: 11.5px;
        line-height: 1.35;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .showcase-action a {
        font-size: 11.5px;
        font-weight: 600;
    }

    /* Адаптация мини-сервисов в 2 колонки */
    .app-card {
        border-radius: var(--border-radius-lg, 18px) !important;
        overflow: hidden !important;
    }

    .app-thumb {
        height: 110px;
    }

    .app-body {
        padding: 12px 10px;
    }

    .app-title {
        font-size: 13.5px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .app-desc {
        font-size: 11.5px;
        line-height: 1.35;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .app-card .btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    /* Адаптация 4 шагов процесса в 2 колонки */
    .step-item {
        padding: 16px 12px;
        border-radius: var(--border-radius-lg, 18px) !important;
    }

    .step-number {
        font-size: 26px;
        top: 12px;
        right: 12px;
    }

    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .step-title {
        font-size: 13.5px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .step-text {
        font-size: 11.5px;
        line-height: 1.35;
    }

    .form-row-2 {
        gap: 14px;
        margin-bottom: 14px;
    }

    .form-panel-card {
        padding: 24px 18px;
    }

    .contacts-messengers-row .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2.1rem;
    }
}

/* ==============================================================================
   ПЛАВНЫЕ АНИМАЦИИ ПОЯВЛЕНИЯ (.reveal-init / .revealed)
   ============================================================================== */
.reveal-init {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ==============================================================================
   АККОРДЕОНЫ (FAQ / DETAILS)
   ============================================================================== */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-heading);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header::marker {
    display: none;
}

.accordion-icon {
    font-size: 14px;
    color: var(--color-primary);
    transition: transform 0.25s ease;
}

.accordion-item[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==============================================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (ОФЕРТА / ПОЛИТИКА)
   ============================================================================== */
.legal-document {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.legal-intro {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.legal-section {
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(99, 0, 202, 0.15);
}

.legal-section-body {
    font-size: 14.5px;
    color: var(--color-text);
    line-height: 1.7;
}

.legal-section-body p {
    margin-bottom: 14px;
}

.legal-section-body ul,
.legal-section-body ol {
    margin: 12px 0 16px 24px;
}

.legal-section-body li {
    margin-bottom: 6px;
}

.legal-section-body strong {
    color: var(--color-heading);
}

@media (max-width: 900px) {
    .legal-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        display: block !important;
    }

    .legal-toc-aside {
        display: none !important;
    }

    .legal-document {
        padding: 24px 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 404 Error Page */
.error-giant-code {
    font-size: clamp(6rem, 16vw, 11rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

/* Toast Notifications for Leads */
.lead-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    background: #0f172a;
    color: #ffffff;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 440px;
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.lead-toast.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.lead-toast-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(99, 0, 202, 0.12);
    color: #6300CA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.lead-toast-icon.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.lead-toast-title {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 3px;
}

.lead-toast-text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.45;
}

.lead-toast-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    transition: color 0.2s;
}

.lead-toast-close:hover {
    color: #ffffff;
}

/* ==============================================================================
   ФОРМЫ И ПОЛЯ ВВОДА (ГЛОБАЛЬНО ДЛЯ ВСЕХ СТРАНИЦ - ПУНКТ 1)
   ============================================================================== */
.form-control,
.form-input,
.form-select,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: var(--border-radius-sm, 10px);
    outline: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-control,
select.form-select,
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}

.form-control::placeholder,
.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.form-control:hover,
.form-input:hover,
.form-select:hover,
input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover {
    border-color: #64748b !important;
    background-color: #ffffff !important;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: #6300CA !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(99, 0, 202, 0.12) !important;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 7px;
}

/* ==============================================================================
   КАРТОЧКИ (.feature-box, .seminar-card) И АКЦЕНТНЫЕ ЦВЕТА (ПУНКТ 6)
   ============================================================================== */
.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ==============================================================================
   УНИФИЦИРОВАННАЯ ЦВЕТОВАЯ СИСТЕМА БРЕНДБУКА 1UP.KZ ДЛЯ ВСЕХ КАРТОЧЕК
   ============================================================================== */
.card-blue,
.card-cyan,
.card-orange,
.card-green,
.card-purple,
.card-warning,
.feature-box,
.seminar-card,
.showcase-card,
.bento-card {
    border: 1px solid #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Единое оформление квадратов иконок внутри карточек в обычном состоянии */
.feature-box-icon,
.feature-icon,
.card-icon,
.showcase-icon {
    background: rgba(99, 0, 202, 0.07) !important;
    color: #6300CA !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.feature-box-icon i,
.feature-icon i,
.card-icon i,
.showcase-icon i {
    color: #6300CA !important;
    transition: color 0.3s ease;
}

/* При наведении мыши (:hover) на любую карточку */
.card-blue:hover,
.card-cyan:hover,
.card-orange:hover,
.card-green:hover,
.card-purple:hover,
.card-warning:hover,
.feature-box:hover,
.seminar-card:hover,
.showcase-card:hover,
.bento-card:hover {
    border-color: rgba(156, 0, 174, 0.45) !important;
    box-shadow: 0 14px 32px -8px rgba(99, 0, 202, 0.14) !important;
    /* transform: translateY(-5px) !important; */
}

/* Иконка карточки при :hover заливается фирменным градиентом с белым символом */
.card-blue:hover .feature-icon,
.card-cyan:hover .feature-icon,
.card-orange:hover .feature-icon,
.card-green:hover .feature-icon,
.card-purple:hover .feature-icon,
.card-warning:hover .feature-icon,
.feature-box:hover .feature-box-icon,
.feature-box:hover .feature-icon,
.seminar-card:hover .feature-icon,
.showcase-card:hover .showcase-icon,
.bento-card:hover .feature-icon,
.bento-card:hover .card-icon {
    background: linear-gradient(44.2deg, #9C00AE 0%, #6300CA 62%, #1300F6 100%) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.card-blue:hover .feature-icon i,
.card-cyan:hover .feature-icon i,
.card-orange:hover .feature-icon i,
.card-green:hover .feature-icon i,
.card-purple:hover .feature-icon i,
.card-warning:hover .feature-icon i,
.feature-box:hover .feature-box-icon i,
.feature-box:hover .feature-icon i,
.seminar-card:hover .feature-icon i,
.showcase-card:hover .showcase-icon i,
.bento-card:hover .feature-icon i,
.bento-card:hover .card-icon i {
    color: #ffffff !important;
}

/* Унификация галочек списков (fa-check-circle, fa-check, .text-success, .text-cyan) */
.fa-check-circle,
.fa-check,
.text-success,
.text-cyan {
    color: #6300CA !important;
}

/* Исключение для кнопки WhatsApp: сохраняем официальный зеленый цвет */
.btn-whatsapp i,
.fab.fa-whatsapp {
    color: inherit;
}

/* ==============================================================================
   СЕМИНАРЫ И ВЕБИНАРЫ (.seminar-card - ПУНКТ 3)
   ============================================================================== */
.seminar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.seminar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.seminar-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f1f5f9;
    overflow: hidden;
}

.seminar-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.seminar-card:hover .seminar-poster {
    transform: scale(1.04);
}

.seminar-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Внутренние отступы для контента карточки семинара (24px 28px) */
.seminar-content,
.seminar-body {
    padding: 24px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    gap: 14px;
}

.seminar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.35;
    margin: 0;
}

.seminar-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.seminar-footer {
    margin-top: auto !important;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ==============================================================================
   ТОЧЕЧНЫЕ ПРАВКИ: 13 ПУНКТОВ ТЗ
   ============================================================================== */

/* 1, 6, 8, 9, 11, 12. Отключение эффекта подпрыгивания для указанных карточек */
.no-hover-jump,
.feature-box.no-hover-jump,
.seminar-card.no-hover-jump,
.workshop-card.no-hover-jump,
.app-card.no-hover-jump,
.course-card.no-hover-jump {
    transform: none !important;
}

.no-hover-jump:hover,
.feature-box.no-hover-jump:hover,
.seminar-card.no-hover-jump:hover,
.workshop-card.no-hover-jump:hover,
.app-card.no-hover-jump:hover,
.course-card.no-hover-jump:hover {
    transform: none !important;
}

/* 3, 4. Гарантированная видимость и четкий темный цвет документов (Оферта и Политика) */
.legal-document,
.legal-document.reveal-init,
.legal-document.revealed {
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.legal-document,
.legal-document p,
.legal-document div,
.legal-document span,
.legal-document li,
.legal-intro,
.legal-intro p,
.legal-section-body,
.legal-section-body p,
.legal-section-body div,
.legal-section-body span,
.legal-section-body li,
.sppb-addon-content,
.sppb-addon-content p {
    color: #1e293b !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.legal-section-title,
.legal-document h1,
.legal-document h2,
.legal-document h3,
.legal-document h4 {
    color: #0f172a !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.legal-document a {
    color: var(--color-primary) !important;
}

/* 10. Плавный zoom-in картинки внутри карточки обучения при наведении */
.course-thumb-wrap {
    overflow: hidden !important;
    width: 100%;
    height: 190px;
    background: #e2e8f0;
}

.course-thumb-wrap img,
.course-card img.course-thumb {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card:hover .course-thumb-wrap img,
.course-card:hover img.course-thumb {
    transform: scale(1.07) !important;
}

/* 13. Глобальная плавающая кнопка «Наверх» */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(44.2deg, #9C00AE 0%, #5800D4 62%, #1300F6 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(99, 0, 202, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -4px rgba(156, 0, 174, 0.5), 0 6px 16px rgba(19, 0, 246, 0.35);
    color: #ffffff !important;
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* ==============================================================================
   Секция «Комплексные IT-услуги под ключ» на странице /services
   ============================================================================== */
.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.service-features-list li i {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 14px;
}

.service-item-text {
    flex: 1 1 auto;
    line-height: 1.55;
    font-size: 14px;
    color: var(--color-text);
}

.service-item-text strong {
    display: inline;
    color: var(--color-heading);
    font-weight: 700;
}

/* ==============================================================================
   PAGE HERO 2-COLUMN GRID & CYBER-BLUEPRINT VECTOR VISUALS
   ============================================================================== */
.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}

@media (min-width: 992px) {
    .page-hero-grid {
        grid-template-columns: 1fr 370px;
        gap: 36px;
    }
}

@media (min-width: 1200px) {
    .page-hero-grid {
        grid-template-columns: 1fr 400px;
        gap: 48px;
    }
}

.page-hero-grid .page-hero-inner {
    max-width: 100%;
}

.page-hero-visual {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: none;
}

@media (min-width: 992px) {
    .page-hero-visual {
        display: flex;
    }
}

.page-hero-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(37, 99, 235, 0.08));
}