/* Базовые стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border: #e2e8f0;
    --success: #48bb78;
    --warning: #ed8936;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Шапка сайта */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    /*z-index: 101;*/
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    z-index: 101;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

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

.nav-link:hover svg {
    opacity: 1;
}

.dropdown-arrow {
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 16px;
    min-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

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

.dropdown-group {
    padding: 8px;
}

.dropdown-group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dropdown-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    padding: 0 6px;
}

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Анимированный фон с орбами */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.6), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.5), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: heroFadeIn 1s ease-out;
}

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

/* Бейдж */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.hero-badge svg {
    animation: lightning 1.5s infinite;
}

@keyframes lightning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title-main {
    display: block;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(90deg, #fff, #ffd700, #fff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite, slideInRight 0.8s ease-out;
}

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

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

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки Hero */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn span,
.hero-btn svg {
    position: relative;
    z-index: 1;
}

.hero-btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-btn-primary svg {
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover svg {
    transform: translateX(5px);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scaleIn 0.6s ease-out both;
}

.stat-item:nth-child(1) {
    animation-delay: 0.9s;
}

.stat-item:nth-child(2) {
    animation-delay: 1.1s;
}

.stat-item:nth-child(3) {
    animation-delay: 1.3s;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.stat-icon svg {
    color: white;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Индикатор прокрутки */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

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

/* Секции */
.rating-section,
.compare-section,
.about-section {
    padding: 80px 0;
}

.rating-section {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Фильтры */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Карточки моделей */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.model-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.model-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.model-logo svg {
    width: 32px;
    height: 32px;
    display: block;
}

.model-rank {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
}

.model-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.model-company {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.model-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.tag.tag-new {
    background: #fef5e7;
    color: #f39c12;
}

.tag.tag-premium {
    background: #f3e5f5;
    color: #9c27b0;
}

.tag.tag-fast {
    background: #e8f5e9;
    color: var(--success);
}

.model-features {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: var(--primary);
}

.model-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: var(--transition);
    margin-top: auto;
}

.model-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.model-cta-button svg {
    transition: transform 0.3s ease;
}

.model-cta-button:hover svg {
    transform: translateX(4px);
}

/* Таблица сравнения */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: var(--bg-secondary);
}

.comparison-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: #f3e5f5;
    color: #9c27b0;
}

.badge-standard {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.badge-fast {
    background: #e8f5e9;
    color: var(--success);
}

.table-notes {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.table-notes p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.table-notes p:last-child {
    margin-bottom: 0;
}

/* Стили для якорных ссылок в сносках */
sup a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

sup a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.table-notes sup a {
    color: var(--text-muted);
}

.table-notes sup a:hover {
    color: var(--primary);
}

/* Эффект подсветки при переходе к якорю */
.table-notes p:target {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px;
    border-radius: 8px;
    animation: highlight-fade 2s ease-out;
}

@keyframes highlight-fade {
    0% {
        background: rgba(102, 126, 234, 0.3);
    }
    100% {
        background: rgba(102, 126, 234, 0.1);
    }
}

/* О проекте */
.about-content h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-primary);
}

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

.about-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 20px auto;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.methodology-section {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.methodology-section h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.methodology-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.methodology-list {
    list-style: none;
    padding-left: 0;
}

.methodology-list li {
    padding: 12px 0 12px 32px;
    color: var(--text-secondary);
    font-size: 15px;
    position: relative;
    line-height: 1.6;
}

.methodology-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

/* Подвал */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
        overflow-y: auto;
        z-index: 100;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-link {
        width: 100%;
        padding: 16px 0;
        border-radius: 0;
    }

    /* Dropdown в мобильной версии */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
        grid-template-columns: 1fr;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--bg-secondary);
        border-radius: 8px;
        margin-top: 8px;
    }

    .nav-item-dropdown.active .dropdown-menu {
        max-height: calc(100vh - 200px) !important;
        padding: 12px !important;
        overflow-y: auto;
    }
    
    /* Стиль скроллбара для dropdown */
    .nav-item-dropdown.active .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-item-dropdown.active .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }
    
    .nav-item-dropdown.active .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

    .nav-item-dropdown:not(.active):hover .dropdown-menu {
        max-height: 0;
        padding: 0;
    }

    .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .nav-item-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-group {
        padding: 4px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-item-dropdown.active .dropdown-group {
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    .dropdown-group-title {
        padding: 8px 12px 4px;
        font-size: 11px;
    }

    .dropdown-item {
        padding: 12px;
        font-size: 15px;
    }

    /* Оверлей для мобильного меню */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 100px;
        min-height: auto;
    }

    .gradient-orb {
        filter: blur(60px);
    }

    .orb-1 {
        width: 400px;
        height: 400px;
    }

    .orb-2 {
        width: 350px;
        height: 350px;
    }

    .orb-3 {
        width: 300px;
        height: 300px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .hero-stats {
        gap: 40px;
        margin-top: 40px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 80px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        margin-top: 32px;
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .rating-section,
    .compare-section,
    .about-section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .model-card {
        padding: 20px;
    }

    .methodology-section {
        padding: 24px;
    }
}

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

.model-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Оптимизация производительности */
.model-card,
.about-card,
.filter-tab {
    will-change: transform;
}

/* Скрытие элементов */
.hidden {
    display: none !important;
}

/* Гайд по выбору */
.guide-section {
    background: var(--bg-primary);
    padding: 80px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.guide-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.guide-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.guide-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.guide-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Тренды */
.trends-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.trends-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.trend-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.trend-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.trend-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.trend-main h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.trend-main p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    opacity: 0.95;
}

.trend-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trend-item {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.trend-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.trend-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.trend-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Кейсы использования */
.use-cases-section {
    background: var(--bg-primary);
    padding: 80px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.case-card {
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
}

.case-purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.05));
    color: #7c3aed;
}

.case-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
    color: #3b82f6;
}

.case-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.05));
    color: #22c55e;
}

.case-orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.05));
    color: #f97316;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.case-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.case-icon svg {
    color: white;
}

.case-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.case-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
}

.case-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* FAQ */
.faq-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Адаптивность для новых секций */
@media (max-width: 968px) {
    .trends-content {
        grid-template-columns: 1fr;
    }

    .trend-main {
        padding: 32px;
    }

    .trend-main h3 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .faq-item {
        padding: 24px;
    }

    .faq-item h3 {
        font-size: 18px;
    }
}

/* Скролл */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================
   Стили для статей
   ============================ */

/* Страница списка статей */
.articles-hero {
    min-height: 400px;
    padding: 120px 0 80px;
}

.articles-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.article-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-category {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.article-card h2 a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Страница отдельной статьи */
.article-content {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.article-container {
    max-width: 900px;
}

.article-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border);
}

.article-header h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0 24px;
    color: var(--text-primary);
}

.article-body {
    background: var(--bg-primary);
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.article-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 20px;
    color: var(--text-primary);
}

.article-body h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 16px;
    color: var(--text-primary);
}

.article-body p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.article-body p.lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.article-body ul,
.article-body ol {
    margin: 24px 0;
    padding-left: 28px;
}

.article-body li {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--primary);
}

.article-body sup {
    font-size: 12px;
    font-weight: 600;
}

.article-body sup a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0 2px;
}

.article-body sup a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.article-body table {
    margin: 32px 0;
}

/* Conclusion блок */
.article-conclusion {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.article-conclusion h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary);
}

.article-conclusion ul {
    margin: 0;
    padding-left: 24px;
}

.article-conclusion li {
    margin-bottom: 12px;
}

/* References блок */
.article-references {
    margin: 48px 0 0;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.article-references h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-references ol {
    margin: 0;
    padding-left: 24px;
    counter-reset: reference-counter;
}

.article-references li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
    scroll-margin-top: 100px;
}

.article-references li:target {
    background: rgba(102, 126, 234, 0.1);
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 6px;
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background: rgba(102, 126, 234, 0.3); }
    100% { background: rgba(102, 126, 234, 0.1); }
}

.back-to-content {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.back-to-content:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Навигация между статьями */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.btn-back,
.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-back:hover,
.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Адаптивность для статей */
@media (max-width: 968px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-header h1 {
        font-size: 36px;
    }

    .article-body {
        padding: 40px 32px;
    }

    .article-body h2 {
        font-size: 28px;
    }

    .article-body h3 {
        font-size: 22px;
    }

    .article-navigation {
        flex-direction: column;
    }

    .btn-back,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .article-card {
        padding: 24px;
    }

    .article-card h2 {
        font-size: 20px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .article-body {
        padding: 24px 20px;
    }

    .article-body p,
    .article-body li {
        font-size: 16px;
    }

    .article-body p.lead {
        font-size: 18px;
        padding: 20px;
    }

    .article-conclusion,
    .article-references {
        padding: 24px;
    }

    .comparison-table {
        font-size: 13px;
    }
}

/* ============================
   Хлебные крошки (Breadcrumbs)
   ============================ */

.breadcrumbs {
    padding: 20px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.breadcrumbs-item svg {
    width: 14px;
    height: 14px;
}

.breadcrumbs-separator {
    margin: 0 8px;
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumbs-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================
   Кнопка "Наверх" (Scroll to Top)
   ============================ */

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Адаптивность для кнопки "Наверх" */
@media (max-width: 968px) {
    .scroll-to-top {
        bottom: 30px;
        right: 30px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .breadcrumbs-list {
        font-size: 13px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98), rgba(118, 75, 162, 0.98));
    backdrop-filter: blur(10px);
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent-text {
    color: white;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.cookie-consent-text p {
    margin: 0 0 8px 0;
}

.cookie-consent-text a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-consent-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cookie-consent-btn-decline {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-consent-text {
        font-size: 14px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

