:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #124693 40%, #f4552b 100%);
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-footer: rgba(255, 255, 255, 0.65);
    --bs-secondary-color: #64748b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(226, 232, 240, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    --input-bg: #f8fafc;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --hero-gradient: linear-gradient(180deg, rgba(240, 249, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    --badge-bg: #dbeafe;
    --badge-text: #3b82f6;
    --check-color: #10b981;
    --cross-color: #cbd5e1;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --primary-light: #93c5fd;
    --primary-gradient: linear-gradient(135deg, #3b82f6 40%, #f4552b 100%);
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-card-footer: rgba(30, 41, 59, 0.65);
    --bs-secondary-color: #94a3b8;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(51, 65, 85, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
    --input-bg: #1e293b;
    --navbar-bg: rgba(15, 23, 42, 0.85);
    --hero-gradient: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    --badge-bg: rgba(59, 130, 246, 0.2);
    --badge-text: #60a5fa;
    --check-color: #34d399;
    --cross-color: #475569;
}

* {
    scroll-behavior: smooth;
}

body {
    /*font-family: 'Inter', system-ui, -apple-system, sans-serif;*/
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.4s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

.theme-toggle i {
    transition: transform 0.4s ease;
}

.theme-toggle.sun i {
    transform: rotate(90deg);
}

.theme-toggle.moon i {
    transform: rotate(-90deg);
}

/* --- Animated Background --- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* --- Particles --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* --- Header --- */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--navbar-bg-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: transparent;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    transition: opacity 0.3s ease;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

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

.btn-header {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-header:hover::before {
    left: 0;
}

.btn-header:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(59, 130, 246, 0.6);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
}

.btn-primary-custom {
    background: var(--primary-gradient);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-header-outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 14px 38px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.btn-header-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

.hero-stat-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.hero-stat-text strong {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
}

.hero-stat-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Quick Actions Buttons - ENHANCED --- */
.quick-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

/* Gradient border effect */
.quick-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 50px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.quick-action-btn:hover::before {
    opacity: 1;
}

/* Icon container */
.quick-action-btn .icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.quick-action-btn:hover .icon-wrapper {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.quick-action-btn span {
    position: relative;
    z-index: 1;
}

/* Hover effects */
.quick-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: var(--text-primary);
}

/* Pulse animation for attention */
.quick-action-btn {
    animation: quickActionPulse 3s infinite;
}

.quick-action-btn:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes quickActionPulse {
    0%, 100% {
        box-shadow: var(--card-shadow);
    }
    50% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    }
}

/* Special highlight for payment button */
.quick-action-btn.payment-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.quick-action-btn.payment-btn .icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.quick-action-btn.payment-btn:hover .icon-wrapper {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Speed Showcase */
.speed-showcase {
    padding: 50px 30px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

.speed-circle {
    width: 220px;
    height: 220px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    color: white;
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
    position: relative;
    animation: circleGlow 3s infinite;
}

.speed-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--primary-gradient);
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
}

@keyframes circleGlow {
    0%, 100% {
        box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 25px 70px rgba(59, 130, 246, 0.6);
    }
}

.speed-circle i {
    font-size: 3.5rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.speed-text {
    text-align: center;
}

.speed-number {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.speed-number span {
    font-size: 1.2rem;
    font-weight: 600;
}

.speed-unit {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 600;
}

.feature-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

.badge-item i {
    color: var(--check-color);
    margin-right: 6px;
}

/* --- Tariffs Section --- */
.tariffs-section {
    padding: 0 0;
    background: transparent;
    position: relative;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* Tabs Styling */
.nav-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.nav-tabs .nav-link {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 14px 35px;
    color: var(--text-secondary);
    background: var(--bg-card);
    margin: 0;
    transition: all 0.4s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.nav-tabs .nav-link.active::before {
    opacity: 1;
}

.nav-tabs .nav-link.active {
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Tariff Row Design */
.tariff-row {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tariff-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.tariff-row:hover::before {
    transform: scaleY(1);
}

.tariff-row:hover {
    border-color: transparent;
    box-shadow: var(--card-hover-shadow);
    transform: translateX(5px);
}

.tariff-row.popular {
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.tariff-row.popular::after {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 35px;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(-45deg);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tariff-row-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.tariff-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tariff-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tariff-speed {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.tariff-speed span {
    font-size: 1rem;
    font-weight: 600;
    -webkit-text-fill-color: var(--text-secondary);
}

.tariff-slogan {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.tariff-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tariff-row .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tariff-row .feature-item:hover {
    background: var(--primary-gradient);
    transform: translateX(5px);
}

.tariff-row .feature-item:hover .feature-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.tariff-row .feature-item:hover .feature-text {
    color: white;
}

.tariff-row .feature-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tariff-row .feature-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tariff-action {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.tariff-price {
    text-align: right;
}

.price-value {
    font-size: 2rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-connect {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-connect:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: white;
}

/* All Tariffs Button */
.all-tariffs-container {
    text-align: center;
    margin-top: 50px;
}

.btn-all-tariffs {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-all-tariffs::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-all-tariffs:hover::before {
    left: 0;
}

.btn-all-tariffs:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* --- Features Section --- */
.features-section {
    padding: 100px 0 0 0;
    background: transparent;
    position: relative;
    z-index: 0;
}

.feature-item {
    text-align: center;
    padding: 30px;
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon-box {
    width: 90px;
    height: 90px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: var(--primary-gradient);
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.4);
}

.feature-item h4 {
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 0;
}

.cta-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 70px 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Modal */
.modal-content {
    border-radius: 24px;
    border: none;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 30px 30px 20px;
}

.modal-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.modal-body {
    padding: 35px;
}

.form-control {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 14px 18px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    background: var(--input-bg);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-secondary);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-banner-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    text-decoration: none;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-cookie-decline {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-cookie-decline:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-cookie {
        flex: 1;
        max-width: 200px;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .tariff-row-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 20px;
    }

    .tariff-action {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .tariff-price {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-stats {
        margin-bottom: 30px;
    }

    .hero-stats .hero-stat-item {
        display: none;
    }

    .speed-circle {
        width: 180px;
        height: 180px;
    }

    .speed-number {
        font-size: 2.5rem;
    }

    .nav-tabs {
        gap: 10px;
    }

    .nav-tabs .nav-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta-box {
        padding: 50px 20px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .quick-actions {
        gap: 10px;
    }

    .quick-action-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .tariff-row {
        padding: 20px;
    }

    .tariff-row-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tariff-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-item {
        padding: 8px 12px;
    }

    .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .feature-text {
        font-size: 0.8rem;
    }

    .tariff-action {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .btn-connect {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tariff-features-grid {
        grid-template-columns: 1fr;
    }

    .tariff-action {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .tariff-price {
        text-align: center;
    }

    .btn-connect {
        width: 100%;
    }
}

#rocket {
    position: fixed;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    left: 0;
    top: 0;
    will-change: transform;
    z-index: -1;
    pointer-events: none;
}

.fs-7 {
    font-size: 0.8rem !important;
}

/***** чекбокс *****/
.toggler-wrapper {
    display: block;
    width: 45px;
    height: 25px;
    cursor: pointer;
    position: relative;
}

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

.toggler-wrapper input[type="checkbox"]:checked + .toggler-slider {
    background-color: #0263a9;
}

.toggler-wrapper .toggler-slider {
    background-color: #ccc;
    position: absolute;
    border-radius: 100px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

.toggler-wrapper .toggler-knob {
    position: absolute;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

.toggler-wrapper.style-3 input[type="checkbox"]:checked + .toggler-slider .toggler-knob {
    left: calc(100% - 19px - 3px);
}

.toggler-wrapper.style-3 .toggler-knob {
    width: calc(25px + 6px);
    height: calc(25px + 6px);
    border-radius: 50%;
    left: -3px;
    top: -3px;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 6px rgba(153, 153, 153, 0.75);
    box-shadow: 0 2px 6px rgba(153, 153, 153, 0.75);
}

/***** end чекбокс *****/

.form-control.is-invalid {
    border-color: #dc3545 !important;
}

.form-control.is-valid {
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
}
/* === Пагинация и кнопка "Показать ещё" === */

/* Скрываем иконку перезагрузки в кнопке */
.blog-pagination .fa-redo,
.blog-pagination .button-d_icon,
button.btn_news_show_more .fa-redo,
button.btn_news_show_more .button-d_icon {
    display: none;
}

/* Кнопка "Показать ещё" */
button.btn_news_show_more,
.paginator_more_button.btn_news_show_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    font-family: "Raleway", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    margin: 20px auto 0;
}

button.btn_news_show_more:hover,
.paginator_more_button.btn_news_show_more:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

/* Убираем outline Bootstrap */
button.btn_news_show_more:focus,
button.btn_news_show_more:active {
    outline: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

/* Пагинация (цифры) */
.blog-pagination,
.paginator-d {
    width: 100%;
    padding: 30px 0;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-pagination ul,
.paginator-d ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
}

.blog-pagination li,
.paginator-d li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.blog-pagination a,
.paginator-d a,
.blog-pagination .paginat-d_item,
.paginator-d .paginat-d_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination a:hover,
.paginator-d a:hover,
.blog-pagination .paginat-d_item:hover,
.paginator-d .paginat-d_item:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    text-decoration: none;
}

/* Активная страница */
.blog-pagination li.active a,
.blog-pagination .paginat-d_item_current,
.paginator-d li.active a,
.paginator-d .paginat-d_item_current {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Последняя кнопка "В конец" */
.blog-pagination .paginat-d__item_last,
.paginator-d .paginat-d__item_last {
    background: var(--bg-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.blog-pagination .paginat-d__item_last:hover,
.paginator-d .paginat-d__item_last:hover {
    background: var(--primary-gradient);
}

/* Сбрасываем жесткие размеры у контейнера картинки */
body .vacancy-card-image {
    display: block;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
}

/* Настраиваем саму картинку, чтобы она не резалась */
body .vacancy-card-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

/* Убираем hover-эффекты (scale), если они зашиты в тему */
body .vacancy-card-fixed:hover .vacancy-card-image img {
    transform: none;
}