:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --accent: #dc2626;
    --accent-light: #ef4444;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --dark: #0f172a;
    --dark-gray: #1e293b;
    --text-gray: #475569;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    line-height: 1.7;
    color: var(--dark);
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-attachment: scroll;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Улучшение скроллинга на мобильных */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Исправление скроллинга на мобильных */
html {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    width: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

/* Предотвращение горизонтального скролла */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
}

.air-box {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 
                0 8px 25px rgba(15, 23, 42, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 48px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: fadeInMove 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width:900px) { .air-box {padding:32px 20px 24px 20px;} }
@keyframes fadeInMove { 
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    } 
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    } 
}

/* Header */
header {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08), 
                0 1px 3px rgba(15, 23, 42, 0.05);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.logo span { 
    color: var(--accent);
    font-weight: 800;
}

nav ul, .nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

nav a:hover::after {
    width: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: .08;
    pointer-events: none;
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%),
                url('https://images.unsplash.com/photo-1552674605-db6ffd4facb5?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 { 
    font-size: 3.2rem; 
    margin-bottom: 24px; 
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 32px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
    width: 100%;
}

.hero-btns .btn {
    flex: 0 1 auto;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Stats Section */
.stats-section { 
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%); 
    padding: 60px 0 40px; 
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border-top: 1px solid var(--border-color);
} 
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 28px; 
    max-width: 1100px; 
    margin: 0 auto; 
} 
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 32px 24px 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08),
                0 1px 3px rgba(15, 23, 42, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center;
    position: relative;
    min-width: 150px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover { 
    transform: translateY(-6px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15),
                0 8px 16px rgba(15, 23, 42, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}
.stat-icon {
    width: 64px; 
    height: 64px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15),
                0 2px 6px rgba(15, 23, 42, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}
.stat-label { 
    color: var(--dark-gray); 
    font-weight: 600; 
    margin-bottom: 10px; 
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
} 
.stat-count { 
    font-size: 2.4rem; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    color: var(--dark); 
    min-height: 2.8rem; 
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} 
@media (max-width:900px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }}
/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
    position: relative;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Адаптивная навигация */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Оптимизация для мобильных устройств */
@media (max-width: 600px) { 
    /* Общие настройки */
    html, body {
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Исправление всех секций */
    section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Hero секция */
    .hero {
        padding: 40px 0 30px;
        background-attachment: scroll;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .hero .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }
    
    .hero .air-box {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 32px 16px;
        box-sizing: border-box;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 12px;
        padding: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero p {
        font-size: 0.9rem;
        padding: 0;
        line-height: 1.6;
        margin-bottom: 20px;
        word-wrap: break-word;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        width: 100%;
        margin-top: 16px;
        align-items: stretch;
        justify-content: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        text-align: center;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
    
    /* Air-box оптимизация */
    .air-box {
        padding: 20px 16px;
        margin-bottom: 20px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Заголовки */
    h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
        padding: 0;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    /* Статистика */
    .stats-section {
        padding: 30px 0 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .stat-card {
        padding: 20px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .stat-count {
        font-size: 1.8rem;
        min-height: 2.2rem;
    }
    
    /* Поиск */
    .search-section {
        padding: 24px 0 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .search-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }
    
    .search-section h2 {
        margin-bottom: 16px;
        font-size: 1.3rem;
        padding: 0;
    }
    
    .search-box {
        flex-direction: column;
        padding: 14px;
        gap: 10px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-box input {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        margin-bottom: 0;
        border-radius: 10px;
    }
    
    .search-box button {
        width: 100%;
        height: 48px;
        padding: 0 24px;
        justify-content: center;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    /* Таблица */
    .results-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 12px 0 0;
        padding: 10px 0;
        max-height: none;
        width: 100%;
        box-sizing: border-box;
        /* Улучшение скроллинга */
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .results-table::-webkit-scrollbar {
        height: 6px;
    }
    
    .results-table::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .results-table::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    table {
        min-width: 600px;
        font-size: 0.8rem;
        border-spacing: 0 6px;
        width: 100%;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    th {
        font-size: 0.7rem;
        white-space: nowrap;
        padding: 10px 8px;
    }
    
    td {
        padding: 10px 8px;
        word-wrap: break-word;
    }
    
    /* Кнопки */
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 48px; /* Минимальная высота для touch */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* FAQ */
    .faq-section {
        padding: 30px 0 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        padding: 16px 18px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* App секция */
    .app-section {
        padding: 30px 0 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .app-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .app-section .air-box {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 20px 16px;
        box-sizing: border-box;
        display: block;
    }
    
    .app-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-items: stretch;
        display: grid;
    }
    
    .app-text {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
    
    .app-text h2 {
        font-size: 1.3rem;
        margin-bottom: 14px;
        line-height: 1.3;
        text-align: center;
    }
    
    .app-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 16px;
        text-align: left;
    }
    
    .features {
        margin-bottom: 16px;
        padding-left: 0;
        list-style: none;
    }
    
    .features li {
        font-size: 0.85rem;
        margin-bottom: 10px;
        padding-left: 24px;
        line-height: 1.5;
        position: relative;
    }
    
    .features li i {
        position: absolute;
        left: 0;
        color: var(--primary);
    }
    
    .download-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        margin-top: 20px;
        margin-bottom: 32px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    
    .download-card i {
        font-size: 2.5rem;
        margin-right: 16px;
        flex-shrink: 0;
    }
    
    .download-card div {
        flex: 1;
    }
    
    .download-card span {
        font-size: 0.85rem;
        display: block;
    }
    
    .download-card strong {
        font-size: 0.95rem;
        display: block;
        margin-top: 4px;
    }
    
    /* Phone mockup */
    .app-mockup {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        margin-top: 24px;
    }
    
    .phone {
        width: 200px;
        height: 400px;
        margin: 0 auto;
        max-width: 100%;
        position: relative;
    }
    
    /* Empty state */
    .empty-state {
        padding: 32px 16px;
        margin-top: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .empty-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .empty-state h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .empty-state p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    /* Footer */
    footer {
        padding: 24px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    footer p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin: 6px 0;
    }
    
    /* Улучшение touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Улучшение скролла */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    /* Исправление header на мобильных */
    header {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    header .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }
    
    /* Улучшение навигации */
    nav {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Планшеты */
@media (min-width: 601px) and (max-width: 900px) {
    .container {
        padding: 0 24px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .air-box {
        padding: 32px 24px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    html, body {
        font-size: 15px;
    }
    
    .logo {
        font-size: 0.95rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .stat-count {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .air-box {
        padding: 16px 12px;
    }
}

/* Дополнительные исправления для всех мобильных */
@media (max-width: 768px) {
    /* Убираем все горизонтальные отступы, которые могут вызвать скролл */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Исправление всех карточек */
    .card-hover {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Исправление всех изображений */
    img {
        max-width: 100%;
        height: auto;
    }
}

.btn {
    padding: 16px 42px;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2),
                0 2px 8px rgba(220, 38, 38, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff;
    border: none;
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15),
                0 2px 8px rgba(30, 64, 175, 0.1);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.25),
                0 4px 12px rgba(220, 38, 38, 0.2);
    filter: brightness(1.08);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Search Section */
.search-section { 
    padding: 50px 0 30px; 
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1),
                0 2px 8px rgba(15, 23, 42, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 24px 28px;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15),
                0 4px 12px rgba(30, 64, 175, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 64, 175, 0.3);
}

.search-box input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03);
    background: #fff;
    color: var(--dark);
    font-weight: 400;
}

.search-box input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03),
                0 0 0 3px rgba(30, 64, 175, 0.1);
    background: #fff;
}

.search-box button {
    padding: 0 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.25),
                0 2px 8px rgba(220, 38, 38, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; 
    align-items: center; 
    gap: 10px;
    height: 50px;
}

.search-box button:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3),
                0 4px 12px rgba(30, 64, 175, 0.2);
}

.search-box button:active {
    transform: translateY(0) scale(0.98);
}

h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    line-height: 1.3;
}

/* Специальные стили для секции поиска */
.search-section h2 {
    margin-bottom: 20px;
}

.results-table {
    margin-top: 20px;
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 7px 36px rgba(34,55,180,0.06);
    padding: 12px 8px 12px 8px;
    max-height: 600px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

th {
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-gray);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.8rem;
    white-space: nowrap;
}
td {
    padding: 12px 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    transition: all 0.2s ease;
    vertical-align: middle;
}
.status-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, var(--accent) 55%, var(--primary));
    box-shadow: 0 4px 16px rgba(220,38,38,0.09);
    border: none;
    margin-right: 2px;
    margin-bottom: 1px;
    transition: background 0.2s, color 0.2s;
}
.status-tag[data-status*="госпиталей"] {
    background: linear-gradient(90deg,#059669, #7c3aed 100%);
}
.status-tag[data-status*="поиск"] {
    background: linear-gradient(90deg,#f59e42,#f87171 100%);
}
/* FAQ Section */
.faq-section { background: #fff; padding: 60px 0; }
.faq-section h2 { 
    text-align: center; 
    margin-bottom: 40px; 
    font-size: 2.4rem; 
    font-weight: 700;
    letter-spacing: -0.02em; 
    color: var(--dark);
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { 
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
    margin-bottom: 20px; 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08),
                0 1px 3px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
} 
.faq-item:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12),
                0 2px 8px rgba(15, 23, 42, 0.08);
}
.faq-item.open { 
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15),
                0 4px 12px rgba(30, 64, 175, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
} 
.faq-question { 
    width: 100%; 
    background: none; 
    border: none; 
    outline: none; 
    color: var(--dark-gray); 
    font-size: 1.1rem; 
    font-weight: 600; 
    padding: 24px 32px; 
    cursor: pointer; 
    text-align: left; 
    transition: all 0.3s ease; 
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.01em;
} 
.faq-item.open .faq-question, .faq-question:hover { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
    color: #fff; 
} 
.faq-answer { 
    display: none; 
    padding: 24px 32px; 
    color: var(--text-gray); 
    background: #fff; 
    font-size: 1.05rem; 
    line-height: 1.8;
} 
.faq-item.open .faq-answer { display: block; animation: fadeIn .28s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform: none; } }

/* App Section */
.app-section { 
    background: var(--light); 
    padding: 80px 0; 
    width: 100%;
    overflow-x: hidden;
}

.app-section .container {
    width: 100%;
    max-width: 100%;
}

.app-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px; 
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.app-text {
    width: 100%;
    box-sizing: border-box;
}

.app-mockup {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-top: 20px;
}

.action-link {
    color: var(--primary) !important;
    font-weight: 600;
    border-bottom: 1.5px dotted var(--primary);
    padding-bottom: 1px;
    transition: color 0.2s, border-bottom 0.2s;
}
.action-link:hover {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
}

.download-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 24px 28px;
    border-radius: 16px;
    text-decoration: none;
    margin-top: 32px;
    margin-bottom: 40px;
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3),
                0 2px 8px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-card:hover { 
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.4),
                0 4px 12px rgba(15, 23, 42, 0.3);
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
} 
.download-card i { 
    font-size: 3.2rem; 
    margin-right: 24px; 
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
} 

tbody tr {
    transition: transform .15s ease, box-shadow .15s ease;
}
tbody tr:hover td {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.15),
                0 2px 8px rgba(30, 64, 175, 0.1);
    transform: translateX(4px);
    border-color: rgba(30, 64, 175, 0.2);
}


.phone {
    border: 12px solid #333;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

footer { 
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-gray) 100%); 
    color: #fff; 
    padding: 48px 0; 
    text-align: center; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 8px 0;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}


.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 70px rgba(30, 64, 175, 0.2),
                0 8px 20px rgba(15, 23, 42, 0.12);
}


.hidden {
    opacity: 0;
    transform: translateY(25px);
}
.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s ease, transform .6s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
    transform: translateX(-100%);
}
.btn:hover::after {
    transform: translateX(100%);
    transition: transform .6s ease;
}

/* PHONE */
.phone {
    width: 270px;
    height: 540px;
    border-radius: 36px;
    padding: 12px;
    background: linear-gradient(180deg, #111827, #000);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.screen {
    background: #f8fafc;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* APP UI */
.app-header {
    background: linear-gradient(90deg, #1e3a8a, #dc2626);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-title {
    font-weight: 800;
    letter-spacing: .08em;
    font-size: .9rem;
}

/* SEARCH */
.app-search {
    background: #fff;
    margin: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(30,58,138,.12);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: .9rem;
}

/* LIST */
.app-cards {
    flex: 1;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(30,58,138,.12);
}
.app-card small {
    display: block;
    color: #64748b;
    margin-top: 2px;
    font-size: .78rem;
}

/* BADGES */
.badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}
.badge.green { background: #16a34a; }
.badge.orange { background: #f59e0b; }
.badge.red { background: #dc2626; }

/* FOOTER NAV */
.app-footer {
    background: #fff;
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e5e7eb;
}
.nav-item {
    color: #94a3b8;
    font-size: 1.1rem;
}
.nav-item.active {
    color: #1e3a8a;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 70px 30px 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.12),
                0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-top: 24px;
}

.empty-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.big-button {
  height: 50px;       /* фиксированная высота */
  padding: 0 24px;    /* только горизонтальные отступы */
}


.big-button:hover {
  background-color: #0ea5e9;
}


.empty-state p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-btn {
    padding: 14px 34px;
    font-size: 1.05rem;
}
