/* ===== CSS VARIABLES ===== */
:root {
    --background: oklch(0.9158 0 0);
    --foreground: oklch(0.1450 0 0);
    --card: oklch(1.0000 0 0);
    --card-foreground: oklch(0.1450 0 0);
    --popover: oklch(1.0000 0 0);
    --popover-foreground: oklch(0.1450 0 0);
    --primary: oklch(0.8208 0.2550 138.6075);
    --primary-foreground: oklch(0 0 0);
    --secondary: oklch(0.8208 0.2550 138.6075);
    --secondary-foreground: oklch(0.2050 0 0);
    --muted: oklch(0.9158 0 0);
    --muted-foreground: oklch(0.5560 0 0);
    --accent: oklch(1.0000 0 0);
    --accent-foreground: oklch(0.0878 0.0360 29.2339);
    --destructive: oklch(0 0 0);
    --destructive-foreground: oklch(1 0 0);
    --border: oklch(0.7498 0.2343 138.8934);
    --input: oklch(1.0000 0 0);
    --ring: oklch(0.5637 0.2257 28.7005);
    --chart-1: oklch(0.6289 0.2567 29.1099);
    --chart-2: oklch(0.6200 0.1900 260);
    --chart-3: oklch(0.5500 0.2200 263);
    --chart-4: oklch(0.4900 0.2200 264);
    --chart-5: oklch(0.4200 0.1800 266);
    --sidebar: oklch(0.9850 0 0);
    --sidebar-foreground: oklch(0.1450 0 0);
    --sidebar-primary: oklch(0.2050 0 0);
    --sidebar-primary-foreground: oklch(0.9850 0 0);
    --sidebar-accent: oklch(0.9700 0 0);
    --sidebar-accent-foreground: oklch(0.2050 0 0);
    --sidebar-border: oklch(0.9220 0 0);
    --sidebar-ring: oklch(0.7080 0 0);
    --font-sans: Montserrat, ui-sans-serif, sans-serif, system-ui;
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --radius: 0.625rem;
    --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
    --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
    --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
    --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
    --tracking-normal: 0em;
    --spacing: 0.25rem;
    --avatar-3d-depth: 20px;
    --avatar-3d-perspective: 800px;
    --avatar-3d-rotate-y: -15deg;
    --avatar-3d-rotate-x: 5deg;
    --avatar-shadow-light: rgba(255, 255, 255, 0.9);
    --avatar-shadow-dark: rgba(0, 0, 0, 0.15);
}

.dark {
    --background: oklch(0.2046 0 0);
    --foreground: oklch(0.9850 0 0);
    --card: oklch(0.2050 0 0);
    --card-foreground: oklch(0.9850 0 0);
    --popover: oklch(0.2690 0 0);
    --popover-foreground: oklch(0.9850 0 0);
    --primary: oklch(0.8208 0.2550 138.6075);
    --primary-foreground: oklch(0.0654 0.0453 264.0520);
    --secondary: oklch(0.8208 0.2550 138.6075);
    --secondary-foreground: oklch(0.1448 0 0);
    --muted: oklch(0.2690 0 0);
    --muted-foreground: oklch(0.7080 0 0);
    --accent: oklch(1.0000 0 0);
    --accent-foreground: oklch(0.1448 0 0);
    --destructive: oklch(0.7040 0.1910 22.2160);
    --destructive-foreground: oklch(0.9850 0 0);
    --border: oklch(0.2750 0 0);
    --input: oklch(0.3250 0 0);
    --ring: oklch(0.5560 0 0);
    --chart-1: oklch(0.6280 0.2577 29.2339);
    --chart-2: oklch(0.6200 0.1900 260);
    --chart-3: oklch(0.5500 0.2200 263);
    --chart-4: oklch(0.4900 0.2200 264);
    --chart-5: oklch(0.4200 0.1800 266);
    --sidebar: oklch(0.2050 0 0);
    --sidebar-foreground: oklch(0.9850 0 0);
    --sidebar-primary: oklch(0.4880 0.2430 264.3760);
    --sidebar-primary-foreground: oklch(0.9850 0 0);
    --sidebar-accent: oklch(0.2690 0 0);
    --sidebar-accent-foreground: oklch(0.9850 0 0);
    --sidebar-border: oklch(0.2750 0 0);
    --sidebar-ring: oklch(0.4390 0 0);
    --font-sans: Montserrat, ui-sans-serif, sans-serif, system-ui;
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --radius: 0.625rem;
    --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
    --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
    --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
    --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
}

@theme inline {
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);
    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);
    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);
    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);
    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);
    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);
    --color-destructive: var(--destructive);
    --color-destructive-foreground: var(--destructive-foreground);
    --color-border: var(--border);
    --color-input: var(--input);
    --color-ring: var(--ring);
    --color-chart-1: var(--chart-1);
    --color-chart-2: var(--chart-2);
    --color-chart-3: var(--chart-3);
    --color-chart-4: var(--chart-4);
    --color-chart-5: var(--chart-5);
    --color-sidebar: var(--sidebar);
    --color-sidebar-foreground: var(--sidebar-foreground);
    --color-sidebar-primary: var(--sidebar-primary);
    --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
    --color-sidebar-accent: var(--sidebar-accent);
    --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
    --color-sidebar-border: var(--sidebar-border);
    --color-sidebar-ring: var(--sidebar-ring);

    --font-sans: var(--font-sans);
    --font-mono: var(--font-mono);
    --font-serif: var(--font-serif);

    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);

    --shadow-2xs: var(--shadow-2xs);
    --shadow-xs: var(--shadow-xs);
    --shadow-sm: var(--shadow-sm);
    --shadow: var(--shadow);
    --shadow-md: var(--shadow-md);
    --shadow-lg: var(--shadow-lg);
    --shadow-xl: var(--shadow-xl);
    --shadow-2xl: var(--shadow-2xl);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
    position: relative;
}

.theme-toggle-label {
    display: none; /* Убираем слово "Тема" */
}

.theme-toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
}

.theme-toggle-switch:hover {
    border-color: #60a5fa;
    background: #4b5563;
}

.theme-toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #fbbf24;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.theme-toggle input[type="checkbox"] {
    display: none;
}

.theme-toggle input[type="checkbox"]:checked + .theme-toggle-switch {
    background: #1f2937;
    border-color: #374151;
}

.theme-toggle input[type="checkbox"]:checked + .theme-toggle-switch::before {
    transform: translateX(26px);
    background: #e5e7eb;
}

.theme-toggle-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    justify-content: space-between;
    padding: 0 4px;
}

.theme-toggle-icons .sun-icon,
.theme-toggle-icons .moon-icon {
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.theme-toggle input[type="checkbox"]:checked ~ .theme-toggle-icons .sun-icon {
    opacity: 0.3;
}

.theme-toggle input[type="checkbox"]:checked ~ .theme-toggle-icons .moon-icon {
    opacity: 1;
}

.theme-toggle input[type="checkbox"]:not(:checked) ~ .theme-toggle-icons .sun-icon {
    opacity: 1;
}

.theme-toggle input[type="checkbox"]:not(:checked) ~ .theme-toggle-icons .moon-icon {
    opacity: 0.3;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    font-weight: 400;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
    background-color: var(--card);
}

.btn-secondary:hover {
    background-color: var(--muted);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-1px);
}

.btn-small {
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* ===== HEADER ===== */
.header {
    background: var(--card);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Показываем меню после полной инициализации */
.header.menu-loaded {
    opacity: 1;
    visibility: visible;
}

/* Mobile hamburger button */
.hamburger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
}

.hamburger-box {
    display: inline-block;
    width: 20px;
    height: 14px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--foreground);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { top: -6px; }
.hamburger-inner::after { top: 6px; }

.hamburger.is-active .hamburger-inner { transform: translateY(-50%) rotate(45deg); }
.hamburger.is-active .hamburger-inner::before { transform: rotate(-90deg) translateX(-6px); }
.hamburger.is-active .hamburger-inner::after { opacity: 0; }

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    flex-direction: column;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 10;
    line-height: 1.2;
}

.logo-main {
    display: block;
}

.logo-subtitle {
    display: block;
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--muted-foreground);
    letter-spacing: 0.02em;
    margin-top: 0.125rem;
    line-height: 1.2;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-list li {
    margin: 0;
    position: relative;
    z-index: 10;
}

.nav-list a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10;
}

.nav-list a:hover {
    color: var(--primary);
}

.nav-list a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-outline {
    color: var(--muted-foreground);
    border-color: var(--border);
    background: transparent;
}

.btn-outline:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--muted);
}

.btn-accent {
    color: var(--primary-foreground);
    background: var(--primary);
    border-color: transparent;
}

.btn-accent:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    z-index: 10;
}

/* Ensure menu is hidden on mobile by default (prevents flash on page load) */
@media screen and (max-width: 1126px) {
    .nav {
        display: none !important;
    }
    
    .header.is-open .nav {
        display: flex !important;
    }
}

/* Open state for mobile */
.header.is-open .nav {
    display: block;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: #5ce809 !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background-color: #5ce809;
}

.dropdown-item.active {
    color: #5ce809 !important;
    background-color: rgba(92, 232, 9, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== DROPDOWN MENU ===== */
.nav-dropdown {
    position: relative;
    z-index: 10;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 11;
}

.dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--muted-foreground);
    margin-left: 8px;
    transition: all 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    border-top-color: var(--primary);
}

.nav-dropdown:hover .dropdown-toggle {
    color: var(--primary);
}

.nav-dropdown:hover .dropdown-toggle.active {
    color: #5ce809 !important;
}

.dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-toggle.active {
    color: #5ce809 !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--popover);
    border: 1px solid var(--muted);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--popover-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--muted);
    position: relative;
    z-index: 10001;
    white-space: nowrap;
    min-width: 220px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--muted);
    color: var(--foreground);
    padding-left: 20px;
}

.dropdown-item.active:hover {
    background-color: var(--muted) !important;
    color: var(--foreground) !important;
}

/* Стили для выпадающих меню в карточках экспертов */
.expert-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--popover-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10001;
    white-space: nowrap;
    min-width: 220px;
}

.expert-dropdown-item:last-child {
    border-bottom: none;
}

.expert-dropdown-item:hover {
    background-color: var(--muted);
    color: var(--primary);
    padding-left: 20px;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.header-actions .btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    position: relative;
    z-index: 11;
}

.header-actions .btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    position: relative;
    z-index: 11;
}

.header-actions .btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    position: relative;
    z-index: 11;
}

.header-actions .btn-accent {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 11;
}

.header-actions .btn-accent:hover {
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 11;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 140px 0 100px;
    background: var(--background);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.03) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 2;
}

.hero-title .highlight {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Анимация для цифр */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number.animate {
    animation: countUp 0.5s ease forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 280px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.hero-actions .btn-secondary {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.hero-actions .btn-secondary:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Стили для текста "в моей нише" */
.hero-actions .btn span {
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0.8;
    display: block;
    margin-top: 1px;
}

/* Специальные стили для многострочных кнопок */
.hero-actions .btn:has(br) {
    white-space: normal;
    flex-direction: column;
    padding: 12px 16px;
    max-width: 180px;
}

/* ===== AI EXPERTS SECTION ===== */
.ai-experts {
    padding: 100px 0;
    background: var(--background);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

.expert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--card-foreground);
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.expert-card:hover::before {
    left: 100%;
}

.expert-card:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary);
}

.expert-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.8rem;
    color: #1E40AF;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.expert-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

.expert-title {
    font-size: 1.4rem;
    color: var(--foreground);
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.expert-description {
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    flex-grow: 1;
}

.expert-pricing {
    margin-bottom: 2rem;
    padding: 0.75rem 1.25rem;
    background: #F8FAFC;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    border: 1px solid #E2E8F0;
}

.expert-pricing.free {
    background: #ECFDF5;
    color: #059669;
}

.expert-pricing.paid {
    background: #FEF3C7;
    color: #D97706;
}

.expert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

.expert-actions .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    text-align: center;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

/* Responsive design for expert cards */
@media (max-width: 768px) {
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expert-card {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .expert-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }
    
    .expert-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .expert-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .expert-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .expert-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===== MESSENGERS SECTION ===== */
.messengers {
    padding: 100px 0;
    background: var(--muted);
}

.messengers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.messenger-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--card-foreground);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.messenger-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.messenger-card:hover::before {
    left: 100%;
}

.messenger-card:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary);
}

.messenger-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.messenger-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0;
}

.messenger-title {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 1rem;
    font-weight: 600;
}

.messenger-description {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.messenger-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
}

.messenger-actions .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    text-align: center;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive design for messenger cards */
@media (max-width: 1024px) {
    .messengers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .messengers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .messenger-card {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .messenger-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .messenger-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===== EXPERT PAGES ===== */
.expert-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    color: #1E40AF;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.features {
    padding: 100px 0;
    background: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Solution grid - 2 cards per row */
.solution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* AI experts grid - 2 cards per row */
.ai-experts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #1E40AF;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive design for expert pages */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-grid,
    .ai-experts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .expert-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.8rem;
    }
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots {
    padding: 100px 0;
    background: var(--muted);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.screenshot-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #64748B;
    border: 2px dashed #CBD5E1;
}

.screenshot-placeholder svg {
    margin-bottom: 1rem;
}

.screenshot-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
}

.screenshot-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.screenshot-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive design for screenshots */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshot-card {
        padding: 1.5rem;
    }
    
    .screenshot-placeholder {
        height: 150px;
    }
}

/* ===== DROPDOWN SUBMENU ===== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--popover-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10001;
    white-space: nowrap;
    min-width: 220px;
}

.dropdown-submenu-toggle:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

.dropdown-submenu-toggle::after {
    content: "▶";
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover .dropdown-submenu-toggle::after {
    transform: rotate(90deg);
}

.dropdown-submenu-content {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--popover);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 10002;
}

.dropdown-submenu:hover .dropdown-submenu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ===== BOT TYPES SECTION ===== */
.bot-types {
    padding: 100px 0;
    background: var(--background);
}

.bot-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.bot-type-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bot-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.bot-type-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1E40AF;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.bot-type-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.bot-type-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bot-type-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.bot-type-card li {
    padding: 0.5rem 0;
    color: var(--muted-foreground);
    position: relative;
    padding-left: 1.5rem;
}

.bot-type-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== PERSONAL FEATURES SECTION ===== */
.personal-features {
    padding: 100px 0;
    background: var(--muted);
}

.personal-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.personal-feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.personal-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.personal-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1E40AF;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.personal-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.personal-feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===== WHATSAPP FEATURES SECTION ===== */
.whatsapp-features {
    padding: 100px 0;
    background: var(--background);
}

.whatsapp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.whatsapp-feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.whatsapp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.whatsapp-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #25D366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.15);
}

.whatsapp-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.whatsapp-feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.whatsapp-feature-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.whatsapp-feature-card li {
    padding: 0.5rem 0;
    color: var(--muted-foreground);
    position: relative;
    padding-left: 1.5rem;
}

.whatsapp-feature-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== API FEATURES SECTION ===== */
.api-features {
    padding: 100px 0;
    background: var(--muted);
}

.api-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.api-feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.api-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.api-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #25D366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.15);
}

.api-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.api-feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.api-feature-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.api-feature-card li {
    padding: 0.5rem 0;
    color: var(--muted-foreground);
    position: relative;
    padding-left: 1.5rem;
}

.api-feature-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Responsive design for new sections */
@media (max-width: 768px) {
    .bot-types-grid,
    .personal-features-grid,
    .whatsapp-features-grid,
    .api-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bot-type-card,
    .personal-feature-card,
    .whatsapp-feature-card,
    .api-feature-card {
        padding: 1.5rem;
    }
    
    .dropdown-submenu-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .dropdown-submenu-toggle::after {
        display: none;
    }
}

/* ===== MODAL FORMS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--muted);
    color: var(--foreground);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Темная тема для полей ввода */
.dark .form-group input,
.dark .form-group textarea {
    background: #2d2d2d;
    color: #ffffff;
    border-color: #404040;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
    color: #1a1a1a;
}

.dark .form-group input:focus,
.dark .form-group textarea:focus {
    background: #2d2d2d;
    color: #ffffff;
}

/* Стили для placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.dark .form-group input::placeholder,
.dark .form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--muted-foreground);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.dark .checkmark {
    background: #2d2d2d;
    border-color: #6b7280;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.modal-submit {
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 10px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
    }
}

/* ===== ROI CALCULATOR ===== */
.roi-calculator {
    padding: 100px 0;
    background: #FFFFFF;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.calculator-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1A1A1A;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #FFFFFF;
}

.form-group input:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    flex-direction: column;
}

.calculate-btn span {
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0.8;
    display: block;
    margin-top: 1px;
}

.results {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #E5E7EB;
}

.results h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1A1A1A;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E40AF;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.85rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.calculator-explanation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 4px solid #1E40AF;
}

.calculator-explanation h4 {
    color: #1A1A1A;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.calculator-explanation p {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ===== TESTIMONIALS SLIDER ===== */
.testimonials {
    padding: 100px 0;
    background: var(--muted);
    overflow: hidden;
}

.testimonials-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    margin-bottom: 2rem;
}

.testimonial-card {
    min-width: 400px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: hidden;
    color: var(--card-foreground);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transform: perspective(var(--avatar-3d-perspective)) rotateY(var(--avatar-3d-rotate-y)) rotateX(var(--avatar-3d-rotate-x));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 6px 12px var(--avatar-shadow-dark),
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 var(--avatar-shadow-light);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.testimonial-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.testimonial-avatar:hover {
    transform: perspective(var(--avatar-3d-perspective)) rotateY(0deg) rotateX(0deg) scale(1.15) translateZ(var(--avatar-3d-depth));
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 8px 16px var(--avatar-shadow-dark),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.testimonial-avatar:hover::before {
    left: 100%;
}

.testimonial-avatar:active {
    transform: perspective(var(--avatar-3d-perspective)) rotateY(0deg) rotateX(0deg) scale(1.05) translateZ(calc(var(--avatar-3d-depth) / 2));
    transition: all 0.1s ease;
}

/* Дополнительные анимации для смайлов */
.testimonial-avatar:hover .emoji {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Эффект свечения для смайлов */
.testimonial-avatar:hover {
    filter: drop-shadow(0 0 8px rgba(30, 64, 175, 0.3));
}

.testimonial-info h4 {
    color: var(--foreground);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

/* Центрирование содержимого карточек */
.testimonial-card > *:not(.testimonial-actions):not(.testimonial-form) {
    flex-shrink: 0;
}

.testimonial-company {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.testimonial-niche {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #FBBF24;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--muted-foreground);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-results {
    background: var(--muted);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-results h5 {
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.testimonial-results ul {
    list-style: none;
    padding: 0;
}

.testimonial-results li {
    color: var(--muted-foreground);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.testimonial-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.testimonial-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    justify-content: center;
}

.testimonial-actions .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* ===== TESTIMONIAL FORM ===== */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

/* Темный контейнер для формы захвата */
.testimonial-card:has(.form-fields) {
    background: var(--popover);
    color: var(--popover-foreground);
    border: 2px solid var(--border);
}

.testimonial-card:has(.form-fields) .testimonial-avatar {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.testimonial-card:has(.form-fields) .testimonial-header h4 {
    color: var(--popover-foreground);
}

.testimonial-card:has(.form-fields) .testimonial-company,
.testimonial-card:has(.form-fields) .testimonial-niche {
    color: var(--muted-foreground);
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding: 1.5rem;
    background: var(--muted);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Темный контейнер для формы в темной карточке */
.testimonial-card:has(.form-fields) .testimonial-form {
    background: var(--muted);
    border: 1px solid var(--border);
}

.testimonial-form .form-group {
    display: flex;
    flex-direction: column;
}

.testimonial-form input,
.form-fields input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--input);
    color: var(--foreground);
    font-family: inherit;
}

.testimonial-form input:focus,
.form-fields input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

/* Стили для полей в темном контейнере */
.testimonial-card:has(.form-fields) .form-fields input {
    background: var(--input);
    border-color: var(--border);
    color: var(--foreground);
}

.testimonial-card:has(.form-fields) .form-fields input::placeholder {
    color: var(--muted-foreground);
}

.testimonial-card:has(.form-fields) .form-fields input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.testimonial-form input::placeholder,
.form-fields input::placeholder {
    color: var(--muted-foreground);
}

.testimonial-form .btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
}

/* Стили для кнопки в темном контейнере */
.testimonial-card:has(.form-fields) .testimonial-form .btn {
    background: var(--accent);
    color: var(--accent-foreground);
    border: 1px solid var(--border);
}

.testimonial-card:has(.form-fields) .testimonial-form .btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    background: var(--card);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 100px 0;
    background: var(--card);
    color: var(--foreground);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--accent);
    font-weight: 600;
}

.cta .btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== ABOUT PAGE STYLES ===== */

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 120px 0 80px;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    z-index: 1;
}

.about-hero .section-container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

/* Hero Visual - Layered Cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.layered-cards {
    position: relative;
    width: 600px;
    height: 700px;
}

/* Основная карточка */
.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 450px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: all 0.4s ease;
}

.main-card:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 4px solid #FFFFFF;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-photo.small {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Специальные стили для аватара Владислава Решетова */
.employee-photo[alt="Владислав Решетов"] {
    object-fit: cover;
    object-position: center 30%;
    border-radius: 50%;
}

/* Дополнительные стили для аватара в секции команды */
.member-photo .employee-photo[alt="Владислав Решетов"] {
    object-position: center 25%;
}

/* Специальные стили для аватара Дмитрия Растегаева */
.employee-photo[alt="Дмитрий Растегаев"] {
    object-fit: cover;
    object-position: center 45%;
    border-radius: 50%;
}

/* Дополнительные стили для аватара Дмитрия в секции команды */
.member-photo .employee-photo[alt="Дмитрий Растегаев"] {
    object-position: center 40%;
}

/* Специальные стили для аватара Ольги Гусаровой */
.employee-photo[alt="Ольга Гусарова"] {
    object-fit: cover;
    object-position: center 40%;
    border-radius: 50%;
}

/* Дополнительные стили для аватара Ольги в секции команды */
.member-photo .employee-photo[alt="Ольга Гусарова"] {
    object-position: center 35%;
}

/* Аватар Владислава Решетова - CSS-версия */
.employee-photo[alt="Владислав Решетов"] {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.employee-photo[alt="Владислав Решетов"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Голова - основной круг */
        radial-gradient(circle at 50% 35%, #8B4513 0%, #654321 100%),
        /* Борода - эллипс внизу */
        radial-gradient(ellipse at 50% 75%, #654321 0%, #8B4513 100%),
        /* Волосы - темные на верхней части */
        radial-gradient(ellipse at 50% 20%, #2F1810 0%, #8B4513 100%),
        /* Дополнительные детали лица */
        radial-gradient(ellipse at 50% 45%, rgba(139, 69, 19, 0.8) 0%, transparent 50%);
    border-radius: 50%;
}

.employee-photo[alt="Владислав Решетов"]::after {
    content: '';
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #1E90FF;
    border-radius: 50%;
    box-shadow: 
        18px 0 0 #1E90FF,
        0 0 0 2px rgba(30, 144, 255, 0.4);
    animation: blink 4s ease-in-out infinite;
}

/* Нос */
.employee-photo[alt="Владислав Решетов"] .nose {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 2px;
}

/* Рот - легкая улыбка */
.employee-photo[alt="Владислав Решетов"] .mouth {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 4px;
    border: 2px solid #654321;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

@keyframes blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
    text-align: center;
}

.card-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
    text-align: center;
}

.card-content p {
    font-size: 1.1rem;
    color: #6B7280;
    text-align: center;
    margin: 0;
}

.card-decoration {
    position: absolute;
    font-size: 1.5rem;
    animation: float 4s ease-in-out infinite;
}

.tech-icon {
    top: 20px;
    right: 20px;
    color: #10B981;
}

.flower-icon {
    top: 15px;
    right: 15px;
    color: #F59E0B;
}

.ai-icon {
    top: 15px;
    right: 15px;
    color: #8B5CF6;
}

/* Карточки с наложением */
.overlay-card {
    position: absolute;
    width: 280px;
    height: 320px;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 5;
    transition: all 0.4s ease;
}

.overlay-card:hover {
    transform: scale(1.05);
    z-index: 15;
}

.overlay-card.top-right {
    top: 10%;
    right: 5%;
    transform: rotate(15deg);
}

.overlay-card.top-right:hover {
    transform: rotate(5deg) scale(1.05);
}

.overlay-card.bottom-left {
    bottom: 10%;
    left: 5%;
    transform: rotate(-15deg);
}

.overlay-card.bottom-left:hover {
    transform: rotate(-5deg) scale(1.05);
}

/* Плавающие элементы */
.floating-element {
    position: absolute;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 3;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-element:hover {
    transform: scale(1.1);
    z-index: 20;
}

.floating-element span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.element-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    text-align: center;
}

.floating-element.robot {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

/* 3D Robot Styles */
.robot-3d {
    width: 80px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: robotFloat 4s ease-in-out infinite;
}

.robot-head {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #374151 0%, #6B7280 100%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 10px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.robot-eye {
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    box-shadow: 0 0 10px #10B981;
    animation: robotBlink 3s ease-in-out infinite;
}

.robot-eye.left {
    left: 15px;
}

.robot-eye.right {
    right: 15px;
}

.robot-mouth {
    width: 20px;
    height: 8px;
    background: #EF4444;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.robot-body {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.robot-arm {
    width: 8px;
    height: 25px;
    background: #374151;
    border-radius: 4px;
    position: absolute;
    top: 5px;
    animation: robotWave 2s ease-in-out infinite;
}

.robot-arm.left {
    left: -15px;
    transform: rotate(-20deg);
}

.robot-arm.right {
    right: -15px;
    transform: rotate(20deg);
    animation-delay: 1s;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(10deg); }
}

@keyframes robotBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

@keyframes robotWave {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-30deg); }
}

.floating-element.folder {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element.smiley {
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}

/* 3D Smiley Styles */
.smiley-3d {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: smileyBounce 3s ease-in-out infinite;
}

.smiley-face {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
    transform: rotateX(15deg) rotateY(15deg);
}

.smiley-eye {
    width: 8px;
    height: 8px;
    background: #1A1A1A;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.smiley-eye.left {
    left: 20px;
}

.smiley-eye.right {
    right: 20px;
}

.smiley-mouth {
    width: 30px;
    height: 20px;
    background: #1A1A1A;
    border-radius: 0 0 30px 30px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes smileyBounce {
    0%, 100% { 
        transform: translateY(0px) rotateX(15deg) rotateY(15deg); 
    }
    50% { 
        transform: translateY(-15px) rotateX(25deg) rotateY(25deg); 
    }
}

/* Фоновые декоративные элементы */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0.1));
    animation: pulse 8s ease-in-out infinite;
}

.bg-decoration.circle-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.bg-decoration.circle-2 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 25%;
    animation-delay: 3s;
}

.bg-decoration.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 30%;
    animation-delay: 6s;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .layered-cards {
        width: 300px;
        height: 400px;
    }
    
    .main-card {
        width: 240px;
        height: 300px;
        padding: 1.5rem;
    }
    
    .overlay-card {
        width: 160px;
        height: 200px;
        padding: 1rem;
    }
}

.about-hero .hero-title {
    font-size: 3rem;
    color: #1A1A1A;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 700;
    text-align: left;
}

.about-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #374151;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
}

/* Mission Section */
.mission-section {
    padding: 100px 0;
    background: #FFFFFF;
}

/* Простая визуализация статистики */
.simple-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E40AF;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #374151;
    line-height: 1.4;
    font-weight: 500;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-content h2 {
    font-size: 2.5rem;
    color: #1A1A1A;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.mission-content p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mission-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--card-foreground);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1E40AF;
}

.value-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-size: 1.5rem;
    color: #1A1A1A;
    margin-bottom: 1rem;
}

.value-card p {
    color: #6B7280;
    line-height: 1.6;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.story-content h2 {
    font-size: 2.5rem;
    color: #1A1A1A;
    margin-bottom: 3rem;
    text-align: center;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: #1E40AF;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    z-index: 2;
}

.timeline-content {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0 2rem;
    flex: 1;
    border: 1px solid #E5E7EB;
}

.timeline-content h3 {
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #6B7280;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--card-foreground);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1E40AF;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member h3 {
    font-size: 1.25rem;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #6B7280;
    line-height: 1.6;
}

/* Стили для дополнительных сотрудников команды */
.team-section-subtitle {
    text-align: center;
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.team-section-subtitle h3 {
    font-size: 1.75rem;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.team-section-subtitle p {
    color: #6B7280;
    font-size: 1.1rem;
}

.team-grid-extended {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 100%;
}

.team-member-small {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--card-foreground);
}

.team-member-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.team-member-small:hover::before {
    left: 100%;
}

.team-member-small:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary);
}

.member-photo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.member-avatar-placeholder {
    width: 100%;
    height: 100%;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.member-info-small h4 {
    font-size: 1.1rem;
    color: #1F2937;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-info-small p {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: #1F2937;
    color: #FFFFFF;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #60A5FA;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: #D1D5DB;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #FFFFFF;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #1A1A1A;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Blog Styles */

.hero-search {
    display: flex;
    max-width: 400px;
    margin: 0;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-btn {
    padding: 12px 16px;
    background: #3B82F6;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #2563EB;
}

/* WIKI Layout */
.wiki-layout {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-bottom: 1px solid #374151;
    margin-top: 80px;
}

/* Two Column Layout */
.wiki-columns {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Wiki Header */
.wiki-header {
    text-align: left;
    margin-bottom: 3rem;
}

.wiki-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.wiki-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #D1D5DB;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

/* Left Sidebar */
.wiki-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Wiki Quick Search */
.wiki-quick-search {
    margin-bottom: 2rem;
    position: relative;
}

.search-container {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
    color: #FFFFFF;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-btn {
    padding: 18px 20px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 60px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    transform: translateY(-2px);
}

/* Search Suggestions */
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result h4 {
    color: #FFFFFF;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.result-category {
    color: #60A5FA;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.result-tags {
    color: #9CA3AF;
}

.no-results {
    padding: 1rem;
    color: #9CA3AF;
    text-align: center;
}

/* Main Categories */
.wiki-categories {
    margin-bottom: 2rem;
}

.wiki-categories h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: visible;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* Убираем странное свечение */

.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.category-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
}

.category-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.category-content {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.category-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
}

/* Expand Button */
.expand-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.expand-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.expand-btn.expanded {
    transform: rotate(90deg);
    color: #60A5FA;
}

/* Submenu */
.submenu {
    display: none;
    margin-top: 0.5rem;
    margin-left: 0;
    padding-left: 2.25rem;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    width: 100%;
    position: relative;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.category-item.expanded .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 0.5rem;
}

.submenu-item {
    display: block;
    padding: 0.4rem 0.6rem;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.submenu-item:hover {
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

/* Animation for submenu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Structure */
.content {
    min-height: 100vh;
    background: var(--background);
    padding: 24px;
    padding-top: 100px; /* Отступ для фиксированного header */
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Blog Page Styles */
.blog-page .content {
    background: var(--background);
}

.blog-page .content-wrapper {
    background: var(--card);
    border: 1px solid var(--border);
}

.blog-page .breadcrumbs {
    color: var(--foreground);
}

.blog-page .breadcrumbs a {
    color: var(--primary);
}

.blog-page .breadcrumbs span {
    color: var(--muted-foreground);
}

.blog-page .footer {
    background: var(--card);
    border-top: 1px solid var(--border);
}

/* Blog Hero */
.blog-hero {
    text-align: center;
    padding: 20px 0 15px 0;
    margin-bottom: 1rem;
    background: var(--background);
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* Blog Navigation Cards */
.blog-navigation {
    margin-bottom: 4rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.nav-card {
    background: linear-gradient(135deg, var(--card) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--card-foreground);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 232, 9, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    background: linear-gradient(135deg, rgba(96, 232, 9, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(96, 232, 9, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(96, 232, 9, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.nav-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(96, 232, 9, 0.3));
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--card-foreground);
    margin: 0 0 0.75rem 0;
    text-align: left;
    line-height: 1.2;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--card-foreground) 0%, rgba(96, 232, 9, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-card:hover .card-content h3 {
    background: linear-gradient(135deg, var(--card-foreground) 0%, rgba(96, 232, 9, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content p {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin: 0 0 1rem 0;
    line-height: 1.6;
    text-align: left;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-card:hover .card-content p {
    opacity: 1;
    color: var(--card-foreground);
}

.card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.topic {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary);
    opacity: 0.8;
}

.card-arrow {
    font-size: 1.8rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.nav-card:hover .card-arrow {
    color: rgba(96, 232, 9, 1);
    transform: translateX(8px) scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(96, 232, 9, 0.3));
}

/* Широкие карточки для Глоссария и Документации */
.nav-card-wide {
    grid-column: 1 / -1;
    max-width: none;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--card) 0%, rgba(96, 232, 9, 0.02) 100%);
    border: 1px solid rgba(96, 232, 9, 0.1);
}

.nav-card-wide:hover {
    background: linear-gradient(135deg, rgba(96, 232, 9, 0.08) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(96, 232, 9, 0.4);
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 25px 50px rgba(96, 232, 9, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-card-wide .card-icon {
    font-size: 3.5rem;
}

.nav-card-wide .card-content h3 {
    font-size: 1.6rem;
}

.nav-card-wide .card-content p {
    font-size: 1.1rem;
}

/* Subscribe Section */
.subscribe-section {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.subscribe-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.subscribe-content p {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.subscribe-input {
    width: 100%;
    padding: 1rem;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--foreground);
    font-size: 1rem;
    text-align: center;
}

.subscribe-input::placeholder {
    color: var(--muted-foreground);
}

.subscribe-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary);
    opacity: 0.9;
}

.subscribe-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--muted);
    border-radius: 20px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.benefit:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Blog Search */
.blog-search {
    margin-bottom: 1rem;
    padding: 0;
}

/* Mobile Responsive for Blog */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px 0;
        margin-bottom: 2rem;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-card {
        padding: 1.5rem;
    }
    
    .nav-card-wide {
        grid-column: 1;
        padding: 2rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .nav-card-wide .card-icon {
        font-size: 3rem;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .nav-card-wide .card-content h3 {
        font-size: 1.4rem;
    }
    
    .card-content p {
        font-size: 0.95rem;
    }
    
    .nav-card-wide .card-content p {
        font-size: 1rem;
    }
    
    .subscribe-section {
        padding: 1.5rem;
    }
    
    .subscribe-content h2 {
        font-size: 1.5rem;
    }
    
    .subscribe-benefits {
        flex-direction: column;
        gap: 1rem;
    }
}

.search-container {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #FFFFFF;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-btn {
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.8);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: rgba(59, 130, 246, 1);
}

/* Quick Links */
.wiki-quick-links {
    margin-bottom: 0;
}

.wiki-quick-links h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #FFFFFF;
    border-color: #3B82F6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.subcategory-group {
    display: none;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.subcategory-group.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.subcategory-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.subcategory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.subcategory-tag {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.subcategory-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.popular-tags {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-label {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    font-weight: 500;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #FFFFFF;
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Right Content */
.wiki-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.content-header h2 {
    font-size: 2.5rem;
    color: #1F2937;
    margin-bottom: 1rem;
}

.content-header p {
    font-size: 1.1rem;
    color: #6B7280;
}

/* Knowledge Base */
.knowledge-base {
    padding: 4rem 0;
    background: #F9FAFB;
}

.knowledge-base h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1F2937;
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-article.main {
    grid-row: span 2;
}

.featured-article {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.featured-article.main .article-image {
    height: 400px;
    margin-bottom: 1rem;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image:hover .article-img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.article-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-article.main .article-content {
    padding: 2rem;
}

.article-content h3 {
    margin-bottom: 1.5rem;
    line-height: 1.3;
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.article-content h3 a {
    color: #1F2937;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.featured-article.main .article-content h3 a {
    font-size: 1.25rem;
}

.article-content h3 a:hover {
    color: #3B82F6;
}

.article-content p {
    color: #6B7280;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
    font-size: 0.9rem;
}

.featured-article.main .article-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #9CA3AF;
}

.article-date,
.article-read-time,
.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date::before {
    content: "📅";
}

.article-read-time::before {
    content: "⏱️";
}

.article-author::before {
    content: "👤";
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-article.main .article-content h3 {
    font-size: 1.5rem;
}

.article-content h3 a {
    color: #1F2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #3B82F6;
}

.article-content p {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #9CA3AF;
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* All Articles */
.all-articles {
    padding: 4rem 0;
    background: var(--background);
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.articles-header h2 {
    font-size: 2.5rem;
    color: #1F2937;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: #FFFFFF;
    color: #374151;
    font-size: 0.9rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E5E7EB;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-card .article-image {
    height: 180px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.page-link.active {
    background: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
}

.page-link.next {
    background: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
}

.page-link.next:hover {
    background: #2563EB;
    border-color: #2563EB;
}

/* Subscribe Section */
.subscribe-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: #FFFFFF;
    text-align: center;
}

.subscribe-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.subscribe-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #D1D5DB;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto 2rem;
    gap: 1rem;
}

.subscribe-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.subscribe-btn {
    width: 100%;
    padding: 15px 24px;
    background: #3B82F6;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subscribe-btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.subscribe-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.benefit:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Floating Telegram Link */
.floating-telegram {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.telegram-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 800px;
    width: 90%;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    animation: popupSlideIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

.close-btn:hover {
    background: linear-gradient(135deg, #ff3742 0%, #ff4757 100%);
    transform: scale(1.15) rotate(180deg);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.close-btn:active {
    transform: scale(0.95);
}

.telegram-content {
    text-align: center;
    color: #FFFFFF;
    position: relative;
}

.telegram-header {
    margin-bottom: 2rem;
    text-align: center;
}



.telegram-header h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.header-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.telegram-main {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 2rem;
}

.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    width: 210px;
    height: 210px;
    background: #FFFFFF;
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 37px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.qr-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.telegram-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    padding: 18px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.telegram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.telegram-btn:hover::before {
    left: 100%;
}

.telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}



.btn-text {
    font-weight: 600;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.telegram-btn:hover .btn-arrow {
    transform: translateX(5px);
}



.telegram-benefits {
    margin-bottom: 1.5rem;
}

.benefits-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.benefit-icon-wrapper {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.benefit-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-align: left;
}

.benefit-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.benefit-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}



@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translate(-50%, -50%);
    }
    to {
        opacity: 1;
        transform: scale(1) translate(-50%, -50%);
    }
}



@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    
    .timeline-content {
        margin: 1rem 0 0 0;
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Blog Responsive */
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .hero-search {
        flex-direction: column;
        max-width: 100%;
    }
    
    .search-input {
        border-radius: 8px 8px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 8px 8px;
    }
    
    .nav-tabs {
        gap: 0.5rem;
    }
    
    .nav-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-article.main {
        grid-row: auto;
    }
    
    .featured-article.main .article-image {
        height: 200px;
    }
    
    .articles-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subscribe-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-telegram {
        padding: 1rem;
    }
    
    .telegram-popup {
        padding: 1.5rem;
        max-width: 95%;
        border-radius: 20px;
    }
    
    .close-btn {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .telegram-main {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .left-column,
    .right-column {
        flex: none;
        width: 100%;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
        border-radius: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }
    
    .telegram-btn {
        min-width: auto;
        width: 100%;
        max-width: 250px;
        padding: 14px 24px;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-arrow {
        display: none;
    }
    
    .telegram-header h3 {
        font-size: 1.4rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .benefit-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .benefit-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .benefit-icon {
        font-size: 1rem;
    }
    
    .benefit-title {
        font-size: 0.9rem;
    }
    
    .benefit-desc {
        font-size: 0.75rem;
    }
    
    .footer-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--card);
    color: var(--foreground);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--muted-foreground);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--foreground);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .hamburger { display: inline-flex; }
    
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 12px 16px 20px;
        background: var(--popover);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav .nav-dropdown,
    .nav .nav-link {
        display: block;
        margin: 8px 0;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .messengers-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 300px;
        padding: 1.5rem;
    }
    
    .slider-controls {
        margin-top: 1.5rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .calculator-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Blog Search Mobile */
    .blog-search {
        padding: 0;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input,
    .search-btn {
        padding: 12px 16px;
    }
    
    /* Featured Articles Mobile */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-article {
        margin-bottom: 1rem;
    }
    
    .article-image {
        height: 200px;
    }
    
    .featured-article.main .article-image {
        height: 250px;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-content h3 a {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* WIKI Mobile */
    .wiki-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .wiki-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .wiki-content {
        padding: 1.5rem;
    }
    
    .content-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .nav { top: 56px; }
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .expert-card {
        padding: 1.25rem;
    }
    
    .expert-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .expert-actions .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .messenger-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .messenger-actions .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav { top: 52px; }
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-actions {
        flex-direction: column;
    }
    
    .expert-actions,
    .messenger-actions {
        flex-direction: column;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ===== BLOG SECTION PAGES STYLES ===== */
.breadcrumbs {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
    opacity: 0.8;
}

.breadcrumbs span {
    color: var(--muted-foreground);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.section-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header p {
    font-size: 1.2rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.subcategories {
    margin-bottom: 4rem;
}

.subcategories h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.subcategory-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.subcategory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.subcategory-card:hover::before {
    left: 100%;
}

.subcategory-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.subcategory-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.subcategory-card p {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.subcategory-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.subcategory-topics .topic {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary);
    opacity: 0.8;
}

.subcategory-link {
    display: inline-flex;
    align-items: center;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.1);
    margin-top: auto;
    align-self: flex-start;
}

.subcategory-link:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.featured-articles {
    margin-bottom: 4rem;
}

.featured-articles h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #60a5fa;
}

.article-content p {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.all-articles {
    margin-bottom: 4rem;
}

.all-articles h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 2rem;
    text-align: center;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.article-item:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-info {
    flex: 1;
}

.article-info .article-category {
    margin-bottom: 0.5rem;
}

.article-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-info h3 a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info h3 a:hover {
    color: var(--primary);
}

.article-info p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.article-item .article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-align: right;
    min-width: 120px;
}

.article-item .article-meta .article-date,
.article-item .article-meta .article-read-time {
    color: var(--muted-foreground);
}

/* Mobile Responsive for Blog Sections */
@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-item .article-meta {
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ===== HOMEPAGE OVERRIDES ===== */
/* Скрываем мини-шапку (логотип INTEGRA и меню) внутри карточек AI-экспертов на главной */
.ai-experts .expert-card .expert-card-header {
    display: none;
}/* ===== PRICING PAGE STYLES ===== */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: #f1f5f9;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: 0.3s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.discount {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pricing-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-title {
    font-size: 28px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #f1f5f9;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #f1f5f9;
}

.price-period {
    font-size: 16px;
    color: #94a3b8;
}

.pricing-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #e2e8f0;
}

.feature-item svg {
    color: #10b981;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.features-comparison {
    padding: 80px 0;
    background: #0f172a;
}

.comparison-table {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #334155;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: #334155;
    font-weight: 600;
    color: #f1f5f9;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #334155;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-feature {
    padding: 20px;
    color: #e2e8f0;
    border-right: 1px solid #334155;
}

.comparison-plan {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: #f1f5f9;
    border-right: 1px solid #334155;
}

.comparison-value {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    border-right: 1px solid #334155;
}

.comparison-value:last-child {
    border-right: none;
}

.faq {
    padding: 80px 0;
    background: #0f172a;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #334155;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.faq-question svg {
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 24px;
    margin: 0;
    color: #e2e8f0;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .comparison-plan,
    .comparison-value {
        border-right: none;
        border-bottom: 1px solid #334155;
    }
    
    .comparison-plan:last-child,
    .comparison-value:last-child {
        border-bottom: none;
    }
}

/* ===== CAREERS PAGE STYLES ===== */
.why-work {
    padding: 80px 0;
    background: #0f172a;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.benefit-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.benefit-card p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
}

.open-positions {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.position-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.position-title {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.position-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.position-type {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.position-location {
    color: #94a3b8;
    font-size: 14px;
}

.position-description {
    font-size: 16px;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 24px;
}

.position-requirements {
    margin-bottom: 24px;
}

.position-requirements h4 {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.position-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.position-requirements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.position-requirements li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.position-salary {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 24px;
}

.culture {
    padding: 80px 0;
    background: #0f172a;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.culture-item {
    text-align: center;
}

.culture-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.culture-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.culture-item p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
}

.application-process {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Responsive Design for Careers */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .position-meta {
        align-items: flex-start;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
 
/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */
/* Адаптивный дизайн для всех размеров экранов */

/* ===== MOBILE DEVICES ===== */
/* Мобильные устройства: 360-412px ширина */

/* Базовые стили для мобильных устройств */
@media screen and (max-width: 480px) {
    :root {
        --spacing: 0.2rem;
        font-size: 14px;
    }
    
    /* Container */
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Header - компактный */
    header,
    .header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        padding: 0 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        height: 44px; /* Фиксированная высота */
    }
    
    .logo {
        font-size: 1.1rem;
        letter-spacing: -0.01em;
        line-height: 1.2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        height: 100%;
        order: 1;
        flex-shrink: 0;
        max-width: calc(100% - 120px); /* Оставляем место для кнопок */
        margin-right: 0.5rem;
    }
    
    .logo-main {
        font-size: 1.1rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin: 0;
        margin-top: 0.125rem;
        padding: 0;
    }
    
    /* Header actions - кнопки Войти и Попробовать */
    .header-actions {
        display: flex !important;
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
        height: 100%;
        flex-shrink: 0;
        justify-content: flex-end;
        padding: 0;
        order: 2;
        min-width: 110px; /* Минимальная ширина для кнопок */
        margin-right: 0.25rem;
    }
    
    .header-actions .theme-toggle {
        display: none; /* Скрываем переключатель темы на мобильных */
    }
    
    .header-actions .btn {
        padding: 0.15rem 0.55rem;
        font-size: 0.7rem;
        white-space: nowrap;
        min-width: auto;
        height: 13px; /* Уменьшено на 50% */
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-actions .btn-outline {
        padding: 0.125rem 0.5rem;
        height: 13px;
    }
    
    .header-actions .btn-accent {
        padding: 0.15rem 0.6rem;
        height: 13px;
    }
    
    /* Hamburger menu - идет после кнопок */
    .hamburger {
        display: inline-flex;
        width: 36px;
        height: 36px;
        padding: 0;
        margin-left: 0;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        order: 3;
    }
    
    .hamburger-box {
        width: 18px;
        height: 12px;
    }
    
    /* Navigation - скрыта по умолчанию, открывается hamburger */
    .nav {
        width: 100%;
        padding: 1rem;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .header.is-open .nav {
        display: block;
    }
    
    .nav a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    /* Hero Section - компактный для мобильных */
    .hero {
        padding: 1rem 0 1.5rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    /* Большой текст "Экономьте" */
    .hero-title span:first-child {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }
    
    /* Средний текст внизу */
    .hero-title span:last-child {
        font-size: 0.95rem !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    /* Buttons - компактные */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons,
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn,
    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: auto !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        min-height: 44px !important;
        height: auto !important;
    }
    
    /* Индикатор прокрутки */
    .scroll-indicator {
        margin-top: 1rem;
    }
    
    /* Grids */
    .experts-grid,
    .features-grid,
    .messengers-grid,
    .bot-types-grid,
    .personal-features-grid,
    .whatsapp-features-grid,
    .screenshots-grid,
    .pricing-grid,
    .benefits-grid,
    .positions-grid,
    .culture-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Горизонтальная прокрутка для секции "Мы нужны, когда:" */
    .problems .experts-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 1rem 0.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .problems .experts-grid .flip-card {
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: center;
    }
    
    /* Горизонтальная прокрутка для секции "Мессенджеры" */
    .messengers .messengers-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 1rem 0.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .messengers .messengers-grid .messenger-card {
        flex: 0 0 80%;
        min-width: 80%;
        scroll-snap-align: center;
    }
    
    /* Анимации для иконок мессенджеров */
    @keyframes messengerFloat {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-6px) scale(1.05);
        }
    }
    
    @keyframes messengerRotate {
        0%, 100% {
            transform: rotate(0deg);
        }
        25% {
            transform: rotate(-8deg);
        }
        75% {
            transform: rotate(8deg);
        }
    }
    
    @keyframes messengerPulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(96, 232, 9, 0.4);
        }
        50% {
            transform: scale(1.08);
            box-shadow: 0 0 15px 5px rgba(96, 232, 9, 0.2);
        }
    }
    
    /* Применяем анимации к иконкам мессенджеров */
    .messengers .messenger-icon {
        animation: messengerFloat 2.5s ease-in-out infinite;
    }
    
    .messengers .messenger-icon img {
        animation: messengerRotate 4s ease-in-out infinite;
    }
    
    /* Разные задержки для разных карточек мессенджеров */
    .messengers .messenger-card:nth-child(1) .messenger-icon {
        animation-delay: 0s;
    }
    
    .messengers .messenger-card:nth-child(2) .messenger-icon {
        animation-delay: 0.3s;
    }
    
    .messengers .messenger-card:nth-child(3) .messenger-icon {
        animation-delay: 0.6s;
    }
    
    .messengers .messenger-card:nth-child(4) .messenger-icon {
        animation-delay: 0.9s;
    }
    
    .messengers .messenger-card:nth-child(5) .messenger-icon {
        animation-delay: 1.2s;
    }
    
    .messengers .messenger-card:nth-child(6) .messenger-icon {
        animation-delay: 1.5s;
    }
    
    /* Анимации для мобильных */
    @keyframes tapAnimation {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-8px) scale(1.2);
        }
    }
    
    @keyframes pulse {
        0%, 100% {
            opacity: 0.7;
        }
        50% {
            opacity: 1;
        }
    }
    
    @keyframes iconBounce {
        0%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        25% {
            transform: translateY(-5px) rotate(-5deg);
        }
        75% {
            transform: translateY(-3px) rotate(5deg);
        }
    }
    
    @keyframes iconPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
    
    /* Анимация для иконки 👆 */
    .problems .flip-hint {
        animation: tapAnimation 1.2s ease-in-out infinite, pulse 2s ease-in-out infinite;
    }
    
    /* Живые анимации для иконок карточек */
    .problems .problem-icon {
        animation: iconBounce 3s ease-in-out infinite;
        animation-delay: 0s;
    }
    
    .problems .solution-icon {
        animation: iconPulse 2.5s ease-in-out infinite;
        animation-delay: 0.5s;
    }
    
    /* Разные задержки для разных карточек */
    .problems .flip-card:nth-child(1) .problem-icon {
        animation-delay: 0s;
    }
    
    .problems .flip-card:nth-child(2) .problem-icon {
        animation-delay: 0.3s;
    }
    
    .problems .flip-card:nth-child(3) .problem-icon {
        animation-delay: 0.6s;
    }
    
    .problems .flip-card:nth-child(4) .problem-icon {
        animation-delay: 0.9s;
    }
    
    .problems .flip-card:nth-child(1) .solution-icon {
        animation-delay: 0.2s;
    }
    
    .problems .flip-card:nth-child(2) .solution-icon {
        animation-delay: 0.5s;
    }
    
    .problems .flip-card:nth-child(3) .solution-icon {
        animation-delay: 0.8s;
    }
    
    .problems .flip-card:nth-child(4) .solution-icon {
        animation-delay: 1.1s;
    }
    
    /* Cards */
    .expert-card,
    .feature-card,
    .messenger-card,
    .bot-type-card,
    .pricing-card,
    .benefit-card,
    .position-card {
        padding: 1.25rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 1rem;
        padding: 1.25rem;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    /* Tables */
    table {
        font-size: 0.85rem;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Оптимизация для 360px ширины */
@media screen and (max-width: 360px) {
    :root {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    header,
    .header {
        padding: 0.4rem 0;
    }
    
    .header-container {
        padding: 0 0.5rem;
        gap: 0.3rem;
        height: 40px;
    }
    
    .logo {
        font-size: 1rem;
        order: 1;
        flex-shrink: 0;
        max-width: calc(100% - 120px);
        margin-right: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        line-height: 1.2;
    }
    
    .logo-main {
        font-size: 1rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    .logo-subtitle {
        font-size: 0.45rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin: 0;
        margin-top: 0.125rem;
        padding: 0;
    }
    
    .header-actions {
        gap: 0.3rem;
        order: 2;
        margin-right: 0.25rem;
        flex-shrink: 0;
        min-width: 110px;
    }
    
    .hamburger {
        margin-left: 0;
    }
    
    .header-actions .btn {
        padding: 0.125rem 0.45rem;
        font-size: 0.65rem;
        height: 12px;
    }
    
    .header-actions .btn-outline {
        padding: 0.1rem 0.4rem;
        height: 12px;
    }
    
    .header-actions .btn-accent {
        padding: 0.125rem 0.5rem;
        height: 12px;
    }
    
    .hamburger {
        width: 32px;
        height: 32px;
        order: 3;
        margin-left: 0;
    }
    
    .logo {
        flex-shrink: 0;
        max-width: calc(100% - 120px);
        margin-right: 0.5rem;
    }
    
    .logo-main {
        font-size: 1.1rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin: 0;
        margin-top: 0.125rem;
        padding: 0;
    }
    
    .hamburger-box {
        width: 16px;
        height: 11px;
    }
    
    .nav {
        padding: 0.75rem;
    }
    
    .nav a {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    /* Hero еще компактнее */
    .hero {
        padding: 0.75rem 0 1.25rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    /* Большой текст "Экономьте" */
    .hero-title span:first-child {
        font-size: 1.8rem !important;
    }
    
    /* Средний текст внизу */
    .hero-title span:last-child {
        font-size: 0.85rem !important;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-actions {
        gap: 0.6rem;
        margin-top: 0.75rem;
    }
    
    .hero-actions .btn {
        padding: 0.65rem 0.9rem !important;
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        height: auto !important;
        min-height: 40px !important;
    }
}

/* Оптимизация для 375-412px ширины */
@media screen and (min-width: 361px) and (max-width: 480px) {
    .hero {
        padding: 1.2rem 0 1.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    /* Большой текст "Экономьте" */
    .hero-title span:first-child {
        font-size: 2.5rem !important;
    }
    
    /* Средний текст внизу */
    .hero-title span:last-child {
        font-size: 1rem !important;
    }
    
    .hero-actions {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .hero-actions .btn {
        padding: 0.75rem 1.1rem !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        height: auto !important;
        min-height: 44px !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== TABLETS ===== */
/* Планшеты: 768-1280px ширина */

/* Базовые стили для планшетов портретной ориентации */
@media screen and (min-width: 481px) and (max-width: 900px) {
    :root {
        font-size: 15px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    /* Header для планшетов - показываем hamburger */
    header,
    .header {
        padding: 0.65rem 0;
    }
    
    .header-container {
        padding: 0 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: 48px;
    }
    
    .logo {
        font-size: 1.35rem;
        line-height: 1;
        display: flex;
        align-items: center;
        height: 100%;
        order: 1;
    }
    
    /* Header actions - кнопки видны всегда */
    .header-actions {
        display: flex !important;
        flex-direction: row;
        gap: 0.65rem;
        align-items: center;
        height: 100%;
        flex-shrink: 0;
        justify-content: flex-end;
        padding: 0;
        order: 2;
        margin-right: 0.25rem;
        min-width: 110px;
    }
    
    .header-actions .theme-toggle {
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .header-actions .btn {
        padding: 0.2rem 0.85rem;
        font-size: 0.8rem;
        white-space: nowrap;
        min-width: auto;
        height: 16px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger {
        display: inline-flex;
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        order: 3;
    }
    
    .hamburger-box {
        width: 20px;
        height: 14px;
    }
    
    /* Navigation - скрыта, открывается hamburger */
    .nav {
        padding: 1.25rem;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .header.is-open .nav {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav a {
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Hero Section - оптимизация для планшетов */
    .hero {
        padding: 1.5rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    /* Большой текст "Экономьте" */
    .hero-title span:first-child {
        font-size: 3.5rem !important;
    }
    
    /* Средний текст внизу */
    .hero-title span:last-child {
        font-size: 1.35rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-actions {
        gap: 0.85rem;
        margin-top: 1.25rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-actions .btn {
        padding: 0.85rem 1.75rem !important;
        font-size: 1rem !important;
        min-width: 200px !important;
        max-width: 48% !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        height: auto !important;
        min-height: 48px !important;
    }
    
    /* Grids - 2 columns */
    .experts-grid,
    .features-grid,
    .messengers-grid,
    .bot-types-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Горизонтальная прокрутка для секции "Мы нужны, когда:" на планшетах */
    .problems .experts-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .problems .experts-grid .flip-card {
        flex: 0 0 75%;
        min-width: 75%;
        scroll-snap-align: center;
    }
    
    /* Горизонтальная прокрутка для мессенджеров на планшетах */
    .messengers .messengers-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .messengers .messengers-grid .messenger-card {
        flex: 0 0 70%;
        min-width: 70%;
        scroll-snap-align: center;
    }
    
    /* Анимации для иконок мессенджеров на планшетах */
    @keyframes messengerFloat {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-6px) scale(1.05);
        }
    }
    
    @keyframes messengerRotate {
        0%, 100% {
            transform: rotate(0deg);
        }
        25% {
            transform: rotate(-8deg);
        }
        75% {
            transform: rotate(8deg);
        }
    }
    
    .messengers .messenger-icon {
        animation: messengerFloat 2.5s ease-in-out infinite;
    }
    
    .messengers .messenger-icon img {
        animation: messengerRotate 4s ease-in-out infinite;
    }
    
    /* Разные задержки для мессенджеров */
    .messengers .messenger-card:nth-child(1) .messenger-icon {
        animation-delay: 0s;
    }
    
    .messengers .messenger-card:nth-child(2) .messenger-icon {
        animation-delay: 0.3s;
    }
    
    .messengers .messenger-card:nth-child(3) .messenger-icon {
        animation-delay: 0.6s;
    }
    
    .messengers .messenger-card:nth-child(4) .messenger-icon {
        animation-delay: 0.9s;
    }
    
    .messengers .messenger-card:nth-child(5) .messenger-icon {
        animation-delay: 1.2s;
    }
    
    .messengers .messenger-card:nth-child(6) .messenger-icon {
        animation-delay: 1.5s;
    }
    
    /* Анимации для планшетов */
    @keyframes tapAnimation {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-8px) scale(1.2);
        }
    }
    
    @keyframes pulse {
        0%, 100% {
            opacity: 0.7;
        }
        50% {
            opacity: 1;
        }
    }
    
    @keyframes iconBounce {
        0%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        25% {
            transform: translateY(-5px) rotate(-5deg);
        }
        75% {
            transform: translateY(-3px) rotate(5deg);
        }
    }
    
    @keyframes iconPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
    
    /* Анимация для иконки 👆 */
    .problems .flip-hint {
        animation: tapAnimation 1.2s ease-in-out infinite, pulse 2s ease-in-out infinite;
    }
    
    /* Живые анимации для иконок карточек */
    .problems .problem-icon {
        animation: iconBounce 3s ease-in-out infinite;
    }
    
    .problems .solution-icon {
        animation: iconPulse 2.5s ease-in-out infinite;
    }
    
    /* Разные задержки для разных карточек */
    .problems .flip-card:nth-child(1) .problem-icon {
        animation-delay: 0s;
    }
    
    .problems .flip-card:nth-child(2) .problem-icon {
        animation-delay: 0.3s;
    }
    
    .problems .flip-card:nth-child(3) .problem-icon {
        animation-delay: 0.6s;
    }
    
    .problems .flip-card:nth-child(4) .problem-icon {
        animation-delay: 0.9s;
    }
    
    /* Some grids stay 1 column */
    .pricing-grid,
    .positions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }
}

/* Планшеты ландшафтной ориентации и малые десктопы */
@media screen and (min-width: 901px) and (max-width: 1024px) {
    :root {
        font-size: 16px;
    }
    
    .container {
        max-width: 960px;
        padding: 0 2rem;
    }
    
    /* Header для планшетов ландшафт - показываем полное меню */
    header,
    .header {
        padding: 0.85rem 0;
    }
    
    .header-container {
        padding: 0 2rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    /* Скрываем hamburger, показываем меню */
    .hamburger {
        display: none;
    }
    
    .nav-list {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .header-actions {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .header-actions .btn {
        padding: 0.6rem 1.15rem;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    /* Hero для планшетов в ландшафте */
    .hero {
        padding: 2rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    /* Большой текст "Экономьте" */
    .hero-title span:first-child {
        font-size: 4rem !important;
    }
    
    /* Средний текст внизу */
    .hero-title span:last-child {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-actions {
        gap: 1rem;
        margin-top: 1.5rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-actions .btn {
        padding: 1rem 2rem !important;
        font-size: 1.05rem !important;
        min-width: 220px !important;
    }
    
    /* Grids - 2-3 columns */
    .experts-grid,
    .messengers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Горизонтальная прокрутка для секции "Мы нужны, когда:" на планшетах ландшафт */
    .problems .experts-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .problems .experts-grid .flip-card {
        flex: 0 0 60%;
        min-width: 60%;
        scroll-snap-align: center;
    }
    
    /* Горизонтальная прокрутка для мессенджеров на планшетах ландшафт */
    .messengers .messengers-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .messengers .messengers-grid .messenger-card {
        flex: 0 0 55%;
        min-width: 55%;
        scroll-snap-align: center;
    }
    
    /* Анимации для иконок мессенджеров на планшетах ландшафт */
    @keyframes messengerFloat {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-6px) scale(1.05);
        }
    }
    
    @keyframes messengerRotate {
        0%, 100% {
            transform: rotate(0deg);
        }
        25% {
            transform: rotate(-8deg);
        }
        75% {
            transform: rotate(8deg);
        }
    }
    
    .messengers .messenger-icon {
        animation: messengerFloat 2.5s ease-in-out infinite;
    }
    
    .messengers .messenger-icon img {
        animation: messengerRotate 4s ease-in-out infinite;
    }
    
    /* Разные задержки для мессенджеров */
    .messengers .messenger-card:nth-child(1) .messenger-icon {
        animation-delay: 0s;
    }
    
    .messengers .messenger-card:nth-child(2) .messenger-icon {
        animation-delay: 0.3s;
    }
    
    .messengers .messenger-card:nth-child(3) .messenger-icon {
        animation-delay: 0.6s;
    }
    
    .messengers .messenger-card:nth-child(4) .messenger-icon {
        animation-delay: 0.9s;
    }
    
    .messengers .messenger-card:nth-child(5) .messenger-icon {
        animation-delay: 1.2s;
    }
    
    .messengers .messenger-card:nth-child(6) .messenger-icon {
        animation-delay: 1.5s;
    }
    
    /* Анимации для планшетов ландшафт */
    @keyframes tapAnimation {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-8px) scale(1.2);
        }
    }
    
    @keyframes pulse {
        0%, 100% {
            opacity: 0.7;
        }
        50% {
            opacity: 1;
        }
    }
    
    @keyframes iconBounce {
        0%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        25% {
            transform: translateY(-5px) rotate(-5deg);
        }
        75% {
            transform: translateY(-3px) rotate(5deg);
        }
    }
    
    @keyframes iconPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
    
    /* Анимация для иконки 👆 */
    .problems .flip-hint {
        animation: tapAnimation 1.2s ease-in-out infinite, pulse 2s ease-in-out infinite;
    }
    
    /* Живые анимации для иконок карточек */
    .problems .problem-icon {
        animation: iconBounce 3s ease-in-out infinite;
    }
    
    .problems .solution-icon {
        animation: iconPulse 2.5s ease-in-out infinite;
    }
    
    /* Разные задержки для разных карточек */
    .problems .flip-card:nth-child(1) .problem-icon {
        animation-delay: 0s;
    }
    
    .problems .flip-card:nth-child(2) .problem-icon {
        animation-delay: 0.3s;
    }
    
    .problems .flip-card:nth-child(3) .problem-icon {
        animation-delay: 0.6s;
    }
    
    .problems .flip-card:nth-child(4) .problem-icon {
        animation-delay: 0.9s;
    }
    
    .features-grid,
    .bot-types-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Большие планшеты */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 1140px;
        padding: 0 2rem;
    }
    
    /* Header */
    header,
    .header {
        padding: 1rem 0;
    }
    
    .header-container {
        max-width: 1140px;
        padding: 0 2rem;
    }
    
    .logo {
        font-size: 1.7rem;
    }
    
    .nav-list {
        gap: 1.75rem;
    }
    
    .nav a {
        font-size: 1rem;
    }
    
    .header-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-actions {
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .hero-actions .btn {
        padding: 1rem 2.25rem !important;
        font-size: 1.1rem !important;
        min-width: 250px !important;
    }
    
    /* Grids - 3 columns */
    .experts-grid,
    .messengers-grid,
    .features-grid,
    .bot-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===== DESKTOP ===== */
/* Настольные компьютеры: 1280-1920px ширина */

/* Средние десктопы (1280-1366px) */
@media screen and (min-width: 1281px) and (max-width: 1440px) {
    :root {
        font-size: 16px;
    }
    
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    /* Header */
    header,
    .header {
        padding: 1rem 0;
    }
    
    .header-container {
        max-width: 1200px;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .nav-list {
        gap: 2rem;
    }
    
    .nav a {
        font-size: 1rem;
    }
    
    .header-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-actions .btn {
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
        min-width: 280px !important;
    }
    
    /* Grids - 3-4 columns */
    .experts-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .messengers-grid,
    .features-grid,
    .bot-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Большие десктопы (1441-1920px) */
@media screen and (min-width: 1441px) {
    :root {
        font-size: 16px;
    }
    
    .container {
        max-width: 1320px;
        padding: 0 2rem;
    }
    
    /* Header */
    header,
    .header {
        padding: 1.25rem 0;
    }
    
    .header-container {
        max-width: 1320px;
    }
    
    .logo {
        font-size: 1.85rem;
    }
    
    .nav-list {
        gap: 2.5rem;
    }
    
    .nav a {
        font-size: 1.05rem;
    }
    
    .header-actions .btn {
        padding: 0.85rem 1.75rem;
        font-size: 1.05rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }
    
    .hero-actions {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-actions .btn {
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
        min-width: 280px !important;
    }
    
    /* Grids - максимальные колонки */
    .experts-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .messengers-grid,
    .features-grid,
    .bot-types-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    section {
        padding: 5rem 0;
    }
}

/* Ультра-широкие экраны (1921px+) */
@media screen and (min-width: 1921px) {
    .container {
        max-width: 1600px;
    }
    
    .header-container {
        max-width: 1600px;
    }
    
    header,
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .nav-list {
        gap: 3rem;
    }
    
    .nav a {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ===== HEIGHT-BASED RESPONSIVE ===== */
/* Адаптация по высоте экрана */

/* Короткие экраны */
@media screen and (max-height: 720px) {
    header,
    .header {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .nav a {
        padding: 0.5rem 0.75rem;
    }
    
    .hero {
        padding: 1rem 0 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Очень короткие мобильные экраны */
@media screen and (max-width: 480px) and (max-height: 700px) {
    header,
    .header {
        padding: 0.35rem 0;
    }
    
    .header-container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hamburger {
        width: 36px;
        height: 36px;
    }
    
    .nav {
        padding: 0.75rem;
    }
    
    .hero {
        padding: 0.75rem 0 1rem;
    }
    
    .hero-title {
        margin-bottom: 0.5rem;
    }
    
    .hero-title span:first-child {
        font-size: 1.8rem !important;
    }
    
    .hero-title span:last-child {
        font-size: 0.8rem !important;
    }
    
    .hero-actions {
        margin-top: 0.6rem;
        gap: 0.6rem;
    }
    
    .hero-actions .btn {
        padding: 0.6rem 0.85rem !important;
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        height: auto !important;
        min-height: 38px !important;
    }
    
    .scroll-indicator {
        margin-top: 0.75rem;
    }
}

/* Высокие экраны */
@media screen and (min-height: 1080px) {
    .hero {
        padding: 4rem 0;
    }
    
    section {
        padding: 5rem 0;
    }
}

/* ===== ORIENTATION RESPONSIVE ===== */
/* Адаптация по ориентации */

/* Ландшафтная ориентация на мобильных */
@media screen and (max-width: 915px) and (orientation: landscape) {
    .hero {
        padding: 1rem 0 1.25rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-title span:first-child {
        font-size: 2.5rem !important;
    }
    
    .hero-title span:last-child {
        font-size: 1rem !important;
    }
    
    .hero-actions {
        margin-top: 0.75rem;
        gap: 0.75rem;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .hero-actions .btn {
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
        min-width: 150px !important;
        max-width: 48% !important;
        white-space: normal !important;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .nav {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ===== RETINA DISPLAYS ===== */
/* Оптимизация для Retina дисплеев */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
    
    @supports (image-rendering: crisp-edges) and (not (-ms-ime-align: auto)) {
        img {
            image-rendering: crisp-edges;
        }
    }
    
    @-moz-document url-prefix() {
        img {
            image-rendering: -moz-crisp-edges;
        }
    }
}

/* ===== PRINT STYLES ===== */
/* Стили для печати */
@media print {
    .nav,
    .hero-buttons,
    footer,
    .theme-toggle,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
/* Улучшения для доступности */

/* Увеличенные элементы для touch */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav a {
        min-height: 44px;
        padding: 0.875rem 1rem;
    }
    
    input,
    textarea,
    select {
        min-height: 44px;
    }
}

/* Уменьшение анимаций для пользователей с предпочтением */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== MESSENGERS SECTION ===== */
.messengers {
    padding: 4rem 0;
    background: var(--background);
}

.messengers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.messenger-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.messenger-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: transparent;
    border-radius: 16px;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.messenger-card:hover .messenger-icon {
    background: transparent;
    transform: scale(1.1);
}

.messenger-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0;
}

.messenger-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.messenger-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.messenger-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* Mobile optimization for messenger cards */
@media (max-width: 1024px) {
    .messengers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .messengers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .messenger-card {
        padding: 1.5rem 1rem;
    }
    
    .messenger-icon {
        width: 48px;
        height: 48px;
    }
    
    .messenger-icon img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .messenger-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .messenger-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .messenger-actions .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

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

/* Высококонтрастный режим */
@media (prefers-contrast: high) {
    :root {
        --border: #000;
    }
    
    .dark {
        --border: #fff;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}