/* === OCTOPU 2026 - УЛЬТРАСОВРЕМЕННЫЙ СТИЛЬ === */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #7209b7;
    --accent: #ff0055;
    --accent-light: #ffeef4;
    --success: #00cc66;
    --warning: #ff9900;
    --danger: #ff3333;
    
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-dark: #475569;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    --shadow-accent: 0 4px 24px rgba(255, 0, 85, 0.25);
    --shadow-primary: 0 4px 24px rgba(67, 97, 238, 0.25);
    --shadow-glow: 0 0 30px rgba(67, 97, 238, 0.3);
    
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-accent: linear-gradient(135deg, #ff0055 0%, #ff9900 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-neon: linear-gradient(135deg, #4361ee 0%, #7209b7 50%, #ff0055 100%);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Темная тема */
[data-theme="dark"] {
    --dark: #f8fafc;
    --light: #0f172a;
    --white: #1e293b;
    --gray-light: #334155;
    --gray-dark: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Исправления для темной темы */
[data-theme="dark"] .footer {
    background: var(--light) !important;
    color: var(--dark);
}

[data-theme="dark"] .footer .logo-title {
    color: var(--dark) !important;
}

[data-theme="dark"] .footer .logo-subtitle {
    color: var(--gray) !important;
}

[data-theme="dark"] .footer-description {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .footer-col h3 {
    color: var(--dark) !important;
}

[data-theme="dark"] .footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--dark) !important;
}

[data-theme="dark"] .contact-info p {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .footer-links-bottom a {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .footer-links-bottom a:hover {
    color: var(--dark) !important;
}

[data-theme="dark"] .footer::before {
    background: var(--gradient-accent) !important;
}

/* Модальные окна в темной теме */
[data-theme="dark"] .modal-content {
    background: var(--white) !important;
    color: var(--dark);
}

[data-theme="dark"] .modal-header {
    background: var(--primary-light) !important;
    color: var(--dark);
}

[data-theme="dark"] .modal-header h3 {
    color: var(--dark) !important;
}

[data-theme="dark"] .modal-header p {
    color: var(--gray-dark) !important;
}

/* Квиз в темной теме */
[data-theme="dark"] .quiz-modal .modal-content {
    background: var(--white) !important;
    color: var(--dark);
}

[data-theme="dark"] .quiz-header {
    background: var(--primary-light) !important;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light) !important;
}

[data-theme="dark"] .quiz-header h3 {
    color: var(--dark) !important;
}

[data-theme="dark"] .quiz-header p {
    color: var(--gray-dark) !important;
}

[data-theme="dark"] .quiz-question h4 {
    color: var(--dark) !important;
}

[data-theme="dark"] .quiz-option {
    background: var(--light) !important;
    color: var(--dark) !important;
    border-color: var(--gray-light) !important;
}

[data-theme="dark"] .quiz-option:hover {
    border-color: var(--primary) !important;
}

[data-theme="dark"] .quiz-option.selected {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

[data-theme="dark"] .quiz-option i {
    color: var(--primary) !important;
}

[data-theme="dark"] .quiz-option.selected i {
    color: var(--primary) !important;
}

/* Image badge в герое в темной теме */
[data-theme="dark"] .image-badge {
    background: rgba(15, 23, 42, 0.95) !important;
    color: var(--dark) !important;
}

/* Form элементы в темной теме */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--light) !important;
    color: var(--dark) !important;
    border-color: var(--gray-light) !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: var(--white) !important;
    border-color: var(--primary) !important;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--gray) !important;
}

/* Кнопка закрытия модального окна в темной теме */
[data-theme="dark"] .modal-close {
    color: var(--dark) !important;
}

[data-theme="dark"] .modal-close:hover {
    background: var(--gray-light) !important;
    color: var(--dark) !important;
}

/* Заголовки формы в темной теме */
[data-theme="dark"] .modal-form,
[data-theme="dark"] .quiz-form {
    color: var(--dark);
}

[data-theme="dark"] .modal-form .form-group input,
[data-theme="dark"] .modal-form .form-group textarea,
[data-theme="dark"] .quiz-form .form-group input {
    background: var(--light) !important;
    color: var(--dark) !important;
}

[data-theme="dark"] .modal-form .form-group input::placeholder,
[data-theme="dark"] .modal-form .form-group textarea::placeholder,
[data-theme="dark"] .quiz-form .form-group input::placeholder {
    color: var(--gray) !important;
}

/* Иконки в полях формы в темной теме */
[data-theme="dark"] .form-group i {
    color: var(--gray-dark) !important;
}

/* Текст формы в темной теме */
[data-theme="dark"] .form-notice {
    color: var(--gray-dark) !important;
}

[data-theme="dark"] .form-notice i {
    color: var(--success) !important;
}

/* Progress bar в квизе в темной теме */
[data-theme="dark"] .quiz-progress-bar {
    background: var(--gray-light) !important;
}

[data-theme="dark"] .quiz-progress {
    background: var(--gradient-primary) !important;
}

/* Навигация квиза в темной теме */
[data-theme="dark"] .quiz-navigation .btn-outline {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

[data-theme="dark"] .quiz-navigation .btn-outline:hover {
    color: var(--white) !important;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, 
                color 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ========== АНИМАЦИИ ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes float3D {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotateX(5deg); 
    }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glow {
    from { 
        text-shadow: 0 0 20px rgba(67, 97, 238, 0.5); 
        box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
    }
    to { 
        text-shadow: 0 0 30px rgba(67, 97, 238, 0.8), 0 0 40px rgba(67, 97, 238, 0.6); 
        box-shadow: 0 0 30px rgba(67, 97, 238, 0.5);
    }
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0);
    }
}

/* ========== УТИЛИТЫ ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.animated-gradient {
    background: linear-gradient(90deg, #4361ee, #3a0ca3, #7209b7, #4361ee);
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
}

.floating-card {
    animation: float3D 6s ease-in-out infinite;
}

/* ========== ФОНОВЫЕ ЭЛЕМЕНТЫ ========== */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(40px);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
    background: var(--gradient-primary);
    animation: float3D 20s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    background: var(--gradient-accent);
    animation: float3D 25s ease-in-out infinite reverse;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(255, 0, 85, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 15%;
    animation: float 20s ease-in-out infinite reverse;
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-slow);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: var(--shadow-primary);
    animation: pulse 3s infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

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

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

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

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light);
    border: 2px solid var(--gray-light);
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-slow);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

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

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

.btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary), var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(67, 97, 238, 0.4);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    box-shadow: 0 8px 32px rgba(255, 0, 85, 0.4), 0 0 30px rgba(255, 0, 85, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

/* ========== HERO ========== */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 85, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite alternate;
    z-index: -1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: var(--shadow-primary);
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
}

.title-glow {
    text-shadow: 
        0 0 20px rgba(67, 97, 238, 0.3),
        0 0 40px rgba(67, 97, 238, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent, rgba(67, 97, 238, 0.1), transparent);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

.image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(67, 97, 238, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.image-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 25px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--dark);
    box-shadow: var(--shadow-lg);
}

.image-badge i {
    color: #ffd700;
    font-size: 18px;
}

/* ========== СЕКЦИИ ========== */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dark);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray-dark);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.divider-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.divider-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

.section-cta {
    text-align: center;
    margin-top: 80px;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 25px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-features i {
    color: var(--success);
    font-size: 14px;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-dark);
    line-height: 1.7;
}

.features-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.detail-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.detail-text p {
    color: var(--gray-dark);
    margin-bottom: 15px;
    line-height: 1.7;
}

.detail-text ul {
    list-style: none;
}

.detail-text li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 14px;
}

.detail-text i {
    color: var(--success);
    font-size: 12px;
}

.details-image {
    position: relative;
}

.details-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: block;
}

.badge-on-image {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

/* ========== PROCESS ========== */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-content p {
    color: var(--gray-dark);
    line-height: 1.7;
}

/* ========== STATS ========== */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stats-section .stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-section .stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stats-section .stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stats-section .stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stats-section .stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
}

/* ========== CTA ========== */
.cta-section {
    background: var(--light);
    padding: 100px 0;
}

.cta-content {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid var(--gray-light);
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.cta-text p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
    line-height: 1.7;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

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

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

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.contact-info i {
    color: var(--primary);
    width: 20px;
    font-size: 16px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-links-bottom {
    display: flex;
    gap: 30px;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: var(--white);
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: modalAppear 0.3s ease;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.4s ease;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    background: var(--primary-light);
    border-bottom: 1px solid var(--gray-light);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.modal-header p {
    color: var(--gray-dark);
}

.modal-form {
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 18px;
    pointer-events: none;
}

.form-group textarea + i {
    top: 25px;
    transform: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 18px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--gray);
    font-size: 14px;
}

.form-notice i {
    color: var(--success);
}

.success-modal {
    max-width: 400px;
}

.modal-body {
    padding: 50px;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.modal-body p {
    color: var(--gray-dark);
    margin-bottom: 30px;
}

/* ========== ПРЕЛОАДЕР ========== */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 42px;
    color: white;
    animation: pulse 1.5s infinite;
}

.loader-text {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    animation: loading 1.5s ease-in-out forwards;
}

/* ========== КВИЗ ========== */
.quiz-modal {
    max-width: 600px;
}

.quiz-header {
    padding: 40px 40px 20px;
    text-align: center;
    background: var(--primary-light);
    border-bottom: 1px solid var(--gray-light);
}

.quiz-progress-bar {
    height: 4px;
    background: var(--gray-light);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.quiz-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 20%;
    transition: width 0.3s ease;
}

.quiz-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
}

.quiz-form {
    padding: 30px 40px 40px;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--dark);
    text-align: center;
}

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

.quiz-option {
    padding: 20px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 120px;
    justify-content: center;
}

.quiz-option:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quiz-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.quiz-option i {
    font-size: 24px;
    margin-bottom: 5px;
}

.quiz-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.quiz-navigation .btn {
    min-width: 120px;
}

.quiz-contact .form-group {
    margin-bottom: 20px;
}

/* ========== БЛОГ ========== */
.blog-search {
    display: flex;
    max-width: 500px;
    margin: 30px auto;
    background: var(--white);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-search input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.blog-search button {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

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

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

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

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

.article-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.article-content p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ========== ПОРТФОЛИО ========== */
.portfolio-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
}

.portfolio-stats .stat {
    text-align: center;
}

.portfolio-stats .stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-full);
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-info {
    padding: 25px;
}

.project-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.project-info p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-results {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.project-results .result {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.project-results i {
    font-size: 16px;
}

/* ========== ОТЗЫВЫ ========== */
.rating-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.rating-score {
    text-align: center;
}

.rating-score .stars {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 10px;
}

.rating-score h2 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.rating-stats {
    display: flex;
    gap: 30px;
}

.rating-stats .stat {
    text-align: center;
}

.rating-stats .stat h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

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

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

.reviewer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.reviewer-info p {
    color: var(--gray);
    font-size: 14px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
}

.review-rating span {
    color: var(--dark);
    font-weight: 600;
    margin-left: 5px;
}

.review-content {
    margin-bottom: 20px;
}

.review-content p {
    color: var(--gray-dark);
    line-height: 1.7;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 14px;
}

.review-date,
.review-service {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    [data-theme="dark"] .nav-menu {
        background: var(--white);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .features-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .details-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    section {
        padding: 80px 0;
    }
    
    .service-card,
    .feature-card {
        padding: 30px;
    }
    
    .cta-content {
        padding: 40px 30px;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-text p {
        font-size: 1.1rem;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 30px;
    }
    
    .rating-stats {
        gap: 20px;
    }
    
    .portfolio-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge,
    .image-badge,
    .badge-on-image {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal-header,
    .modal-form,
    .modal-body,
    .quiz-header,
    .quiz-form {
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ========== */
/* Улучшаем читаемость текста */
p {
    line-height: 1.7;
}

/* Улучшаем видимость активных ссылок */
.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

/* Улучшаем фокус для доступности */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Улучшаем отображение изображений при ошибке загрузки */
img {
    background: var(--light);
}

/* Стили для 3D иконок */
.fa-3d {
    text-shadow: 
        0 2px 0 #ccc,
        0 3px 0 #bbb,
        0 4px 0 #aaa,
        0 5px 0 #999,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.fa-3d:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}