/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --work-primary: #0f172a;
    --work-secondary: #2563eb;
    --work-accent: #fbbf24;
    --work-bg: #f8fafc;
    --work-card-bg: #ffffff;
    --work-text: #1e293b;
    --work-text-light: #64748b;
    --work-border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: #1e293b;
    line-height: 1.5;
}

body.section-work {
    background: var(--work-bg);
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 20px;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 30px;
}
    
.logo__icon {
    width: 56px;
    height: 56px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 10px 15px -3px rgba(37, 99, 235, 0.3));
    transition: all 0.3s ease;
}
    
.logo:hover .logo__icon {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 20px 25px -5px rgba(37, 99, 235, 0.4));
}
    
.logo__svg {
    width: 56px;
    height: 56px;
}
    
.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__main {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #1E293B 0%, #2563EB 50%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}
    
.logo__badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748B;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 30px;
    display: inline-block;
    width: fit-content;
    margin-top: 2px;
    border: 1px solid #E2E8F0;
}
    
/* Анимация при наведении */
.logo:hover .logo__badge {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}
    
/* Для темной темы (если нужно) - добавим позже */
@media (prefers-color-scheme: dark) {
    .logo__badge {
        background: #1E293B;
        color: #94A3B8;
        border-color: #334155;
    }
}

.nav {display: flex;
    gap: clamp(15px, 2vw, 32px);
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: flex-start; /* Выровняли влево, а не по центру */
    margin-right: auto;
}

.nav__link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
    padding: 8px 0;
}

.nav__link:hover {
    color: #2563eb;
}

.nav__link--active {
    color: #2563eb;
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.search {
    position: relative;
    min-width: 200px;
}

.search__input {
    padding: 10px 16px 10px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    width: 100%;
    min-width: 180px;
    background: #f8fafc;
    transition: all 0.2s;
}

.search__input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.btn--primary {
    background: #2563eb;
    color: white;
}

.btn--primary:hover {
    background: #1e40af;
}

.btn--outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn--outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: #64748b;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #94a3b8;
}

/* ===== ГЕРОЙ ===== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 24px;
    margin: 24px 0;
}

.hero__container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title span {
    color: #fbbf24;
}

.hero__text {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fbbf24;
}

.hero__stat-label {
    font-size: 14px;
    color: #94a3b8;
}

.hero__image {
    flex: 1;
    text-align: center;
}

.hero__image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ===== ТЭГИ ===== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
}

.tag {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f0f9ff;
}

.tag--blue {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.tag__icon {
    width: 16px;
    height: 16px;
}

/* ===== ЗАГОЛОВКИ РАЗДЕЛОВ ===== */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title__badge {
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

        /* ===== КАРТОЧКИ ===== */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
            margin: 24px 0;
        }

        .card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
            border-color: #2563eb;
        }

        .card__icon {
            width: 48px;
            height: 48px;
            background: #dbeafe;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-bottom: 16px;
            color: #2563eb;
        }

        .card__title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #1e293b;
        }

        .card__text {
            font-size: 14px;
            color: #64748b;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .card__link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #2563eb;
            font-weight: 500;
            font-size: 14px;
            text-decoration: none;
        }

        .card__link:hover {
            gap: 12px;
        }

        .card__badge {
            position: absolute;
            top: 16px;
            right: 16px;
            background: #fef3c7;
            color: #b45309;
            padding: 4px 12px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
        }

        /* ===== ТАБЛИЦА ПАРТНЕРОК ===== */
        .table-wrapper {
            background: white;
            border-radius: 20px;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            margin: 24px 0;
        }

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

        .table th {
            background: #f8fafc;
            padding: 16px 20px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            color: #475569;
            border-bottom: 1px solid #e2e8f0;
        }

        .table td {
            padding: 16px 20px;
            border-bottom: 1px solid #e2e8f0;
            font-size: 14px;
        }

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

        .table tr:hover td {
            background: #f8fafc;
        }

        .table__link {
            color: #2563eb;
            text-decoration: none;
            font-weight: 500;
        }

        .table__link:hover {
            text-decoration: underline;
        }

        .table__badge {
            background: #dbeafe;
            color: #2563eb;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 12px;
        }

        /* ===== КЕЙСЫ ===== */
        .cases {
            background: white;
            border-radius: 20px;
            padding: 32px;
            border: 1px solid #e2e8f0;
            margin: 32px 0;
        }

        .cases__grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-top: 24px;
        }

        .case {
            padding: 20px;
            background: #f8fafc;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
        }

        .case__number {
            font-size: 14px;
            font-weight: 600;
            color: #94a3b8;
            margin-bottom: 12px;
        }

        .case__title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #1e293b;
        }

        .case__profit {
            font-size: 20px;
            font-weight: 700;
            color: #059669;
            margin: 12px 0;
        }

        .case__text {
            font-size: 14px;
            color: #64748b;
        }

        /* ===== CTA БЛОК ===== */
        .cta {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border-radius: 20px;
            padding: 48px;
            text-align: center;
            margin: 48px 0;
        }

        .cta__title {
            font-size: 32px;
            font-weight: 700;
            color: white;
            margin-bottom: 16px;
        }

        .cta__text {
            font-size: 18px;
            color: #cbd5e1;
            max-width: 600px;
            margin: 0 auto 32px;
        }

        .cta__form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
            gap: 12px;
        }

        .cta__input {
            flex: 1;
            padding: 14px 20px;
            border: 1px solid #334155;
            border-radius: 30px;
            background: #1e293b;
            color: white;
            font-size: 16px;
        }

        .cta__input::placeholder {
            color: #64748b;
        }

        .cta__input:focus {
            outline: none;
            border-color: #fbbf24;
        }

        .cta__btn {
            padding: 14px 32px;
            background: #fbbf24;
            border: none;
            border-radius: 30px;
            color: #1e293b;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .cta__btn:hover {
            background: #f59e0b;
            transform: scale(1.05);
        }

        /* ===== МАТЕРИАЛЫ ДЛЯ СКАЧИВАНИЯ ===== */
        .downloads {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin: 24px 0 48px;
        }

        .download-item {
            flex: 1;
            min-width: 200px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            text-decoration: none;
            color: #1e293b;
            transition: all 0.2s;
        }

        .download-item:hover {
            border-color: #2563eb;
            transform: translateY(-4px);
            box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.2);
        }

        .download-item__icon {
            font-size: 32px;
            margin-bottom: 12px;
        }

        .download-item__title {
            font-weight: 600;
            margin-bottom: 4px;
        }

        .download-item__size {
            font-size: 12px;
            color: #94a3b8;
        }
        
/* Двухколоночный макет */
        .article-layout {
            display: flex;
            gap: 40px;
            margin: 40px 0;
        }

        /* Основная колонка с контентом */
        .article-main {
            flex: 2;
            min-width: 0; /* Для предотвращения переполнения */
        }

        /* Сайдбар */
        .article-sidebar {
            flex: 1;
            max-width: 350px;
        }

        /* Навигация (хлебные крошки) */
        .article-breadcrumbs {
            padding: 20px 0 10px;
            font-size: 14px;
            color: var(--work-text-light);
        }
        .article-breadcrumbs a {
            color: var(--work-secondary);
            text-decoration: none;
        }
        .article-breadcrumbs a:hover { text-decoration: underline; }
        .article-breadcrumbs span { margin: 0 8px; color: #94a3b8; }

        /* Заголовок статьи */
        .article-header {
            margin-bottom: 30px;
        }
        .article-header h1 {
            font-size: 38px;
            font-weight: 700;
            color: var(--work-primary);
            line-height: 1.2;
            margin-bottom: 15px;
        }
        .article-meta {
            display: flex;
            gap: 20px;
            color: var(--work-text-light);
            font-size: 14px;
            border-bottom: 1px solid var(--work-border);
            padding-bottom: 15px;
        }
        .article-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Текст статьи */
        .article-content {
            font-size: 16px;
            line-height: 1.7;
            color: #334155;
        }
        .article-content h2 {
            font-size: 26px;
            font-weight: 600;
            color: var(--work-primary);
            margin: 40px 0 20px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--work-accent);
        }
        .article-content h3 {
            font-size: 20px;
            font-weight: 600;
            color: var(--work-primary);
            margin: 30px 0 15px;
        }
        .article-content p {
            margin-bottom: 20px;
        }
        .article-content ul, .article-content ol {
            margin: 15px 0 20px 25px;
        }
        .article-content li {
            margin-bottom: 8px;
        }
        .article-content strong {
            color: var(--work-primary);
            font-weight: 600;
        }

        /* Инфо-блоки */
        .info-box {
            background: #e0f2fe;
            border-left: 4px solid var(--work-secondary);
            padding: 20px;
            border-radius: 0 12px 12px 0;
            margin: 30px 0;
        }
        .info-box__title {
            font-weight: 600;
            color: var(--work-primary);
            margin-bottom: 10px;
            font-size: 18px;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin: 30px 0;
        }
        .stat-card {
            background: var(--work-card-bg);
            border: 1px solid var(--work-border);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
        }
        .stat-card__value {
            font-size: 24px;
            font-weight: 700;
            color: var(--work-secondary);
            margin-bottom: 5px;
        }
        .stat-card__label {
            font-size: 13px;
            color: var(--work-text-light);
        }

        /* Таблица преимуществ */
        .pros-cons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin: 30px 0;
        }
        .pros, .cons {
            background: var(--work-card-bg);
            border: 1px solid var(--work-border);
            border-radius: 16px;
            padding: 25px;
        }
        .pros h4, .cons h4 {
            font-size: 18px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .pros ul, .cons ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .pros li, .cons li {
            margin-bottom: 12px;
            padding-left: 24px;
            position: relative;
        }
        .pros li::before {
            content: "✅";
            position: absolute;
            left: 0;
            color: #10b981;
        }
        .cons li::before {
            content: "❌";
            position: absolute;
            left: 0;
        }

        /* Виджеты сайдбара */
        .sidebar-widget {
            background: var(--work-card-bg);
            border: 1px solid var(--work-border);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
        }
        .sidebar-widget__title {
            font-size: 18px;
            font-weight: 600;
            color: var(--work-primary);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--work-accent);
        }
        .offer-card {
            text-align: center;
        }
        .offer-card__rate {
            font-size: 42px;
            font-weight: 700;
            color: var(--work-secondary);
            margin: 15px 0 5px;
        }
        .offer-card__label {
            color: var(--work-text-light);
            font-size: 14px;
        }
        
        .similar-offers a {
            display: block;
            padding: 12px;
            border-bottom: 1px solid var(--work-border);
            text-decoration: none;
            color: var(--work-text);
            transition: all 0.2s;
        }
        .similar-offers a:hover {
            background: #f1f5f9;
            padding-left: 18px;
            color: var(--work-secondary);
        }
        .similar-offers a:last-child {
            border-bottom: none;
        }

/* ===== ПОДВАЛ ===== */
.footer {
    background: #0f172a;
    color: white;
    padding: 48px 0 24px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2563eb, #fbbf24, #2563eb, transparent);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Колонка */
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer__logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.footer__logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer__logo-text .logo__hover:hover {
    color: #fbbf24;
}

.footer__about {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.footer__social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.footer__social-link:hover {
    background: #2563eb;
    transform: translateY(-4px);
    color: white;
    border-color: #fbbf24;
}

.footer__social-link:hover::before {
    width: 100px;
    height: 100px;
}

.footer__social-link svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
}

/* Заголовки */
.footer__title {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    min-width: 40px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #fbbf24);
    border-radius: 2px;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer__list a:hover {
    color: #fbbf24;
}

.footer__list a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #2563eb;
}

.footer__list a:hover::before {
    left: -15px;
    opacity: 1;
}

/* Подписка */
.footer__subscribe {
    margin-top: 20px;
}

.footer__subscribe p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer__form {
    display: flex;
    gap: 8px;
    position: relative;
}

.footer__input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 30px;
    border: 1px solid #334155;
    background: #1e293b;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
}

.footer__input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.footer__submit {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__submit:hover {
    transform: scale(1.1) rotate(180deg);
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.footer__bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
}

.footer__copyright {
    color: #64748b;
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-links a {
    color: #64748b;
    text-decoration: none;
}

.footer__bottom-links a:hover {
    color: #fbbf24;
}
        
/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    z-index: 100;
    border: 2px solid transparent;
}

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

.scroll-top:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
    border-color: #fbbf24;
}

.scroll-top:active {
    transform: translateY(0) scale(0.95);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.scroll-top:hover svg {
    transform: translateY(-3px);
}

/* ===== АДАПТИВНОСТЬ ===== */
        
@media (max-width: 1024px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
            
    .hero__stats {
        justify-content: center;
    }
    
    .hero__image {
        order: -1;
    }
            
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
            
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
            
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__container {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 15px; 
    }
            
    .search__input {
        width: 180px;
    }
            
    .hero__title {
        font-size: 32px;
    }
            
    .cta__form {
        flex-direction: column;
    }
            
    .article-header h1 {
        font-size: 28px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .cases__grid {
        grid-template-columns: 1fr;
    }
            
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
            
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}

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

@media (max-width: 480px) {
    .nav {
        display: none; /* Прячем обычное меню */
    }
    
    .header__container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        gap: 8px;
        flex-wrap: nowrap; /* УБИРАЕМ ПЕРЕНОС */
    }
    
    .logo {
        margin-right: 0;
        flex: 0 0 auto; /* Не растягивается */
    }
    
    .logo__main {
        font-size: 18px;
    }
    
    .logo__badge {
        font-size: 7px;
        padding: 2px 6px;
    }
    
    .logo__icon {
        width: 40px;
        height: 40px;
    }
    
    .logo__svg {
        width: 40px;
        height: 40px;
    }
    
    .header__actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
        margin-left: auto;
        flex: 0 0 auto; /* Не растягивается */
    }
    
    .search {
        display: none;
    }
    
    .btn--outline {
        display: none;
    }
    
    .btn--primary {
        display: inline-block;
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 35px;
        height: 35px;
        background: #2563eb;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 5px;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle span {
        background: white;
        width: 20px;
        height: 3px;
        margin: 2px 0;
        border-radius: 2px;
        display: block !important;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer__links {
        flex-direction: column;
        gap: 10px;
    }
}
        
/* ===== МОБИЛЬНОЕ МЕНЮ ===== */

/* Кнопка бургер (скрыта на десктопе) */
.mobile-menu-toggle {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #2563eb;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Само мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

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

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.mobile-menu__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu__logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.mobile-menu__logo-text {
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu__close {
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    background: #f1f5f9;
    border: none;
}

.mobile-menu__close:hover {
    background: #2563eb;
    color: white;
    transform: rotate(90deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    flex: 1;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #e2e8f0;
    transition: color 0.2s;
    border-radius: 10px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #2563eb;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.mobile-nav__link:hover {
    background: #f1f5f9;
    padding-left: 24px;
}

.mobile-nav__link:hover::before {
    transform: translateX(0);
}

.mobile-nav__link--active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.mobile-nav__link--active::before {
    transform: translateX(0);
}

.mobile-nav__icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #2563eb;
}

.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.mobile-menu__btn {
    display: flex;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.mobile-menu__btn--outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #475569;
}

.mobile-menu__btn--outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
}

.mobile-menu__btn--primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    background-size: 100% 100%;
}

.mobile-menu__btn--primary:hover {
    background: linear-gradient(135deg, #1e40af, #0f2b5e); /* Темнее, но градиент */
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.mobile-menu__btn:active {
    transform: scale(0.98);
}

.mobile-menu__footer {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
}
