/* ===== MODERN 2024 REDESIGN ===== */
/* Enhanced with modern trends while keeping all functionality */

:root {
    /* Modernized Color Palette */
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-glass: rgba(248, 250, 252, 0.9);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-panel: rgba(255, 255, 255, 0.98);
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(140deg, #f0f4ff 0%, #f8faff 40%, #f5f0ff 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
    
    /* Enhanced Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #ff6b9d;
    --accent-soft: rgba(255, 107, 157, 0.12);
    --success: #10b981;
    --border-glow: rgba(102, 126, 234, 0.2);
    
    /* Modern Shadows */
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.15);
    
    /* Improved Border Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-full: 9999px;
    
    font-size: 16px;
}

/* Enhanced Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-kerning: normal;
}

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

/* Modern Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Enhanced Header with Glass Morphism */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    height: 72px;
}

/* Modern Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease;
}

.logo-wrap:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Navigation */
.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

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

.nav a:hover::after {
    width: 80%;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}

.btn-glow {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(255, 107, 157, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid #cbd5e1;
    background: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005c8a 100%);
    color: #fff;
    width: 100%;
    justify-content: center;
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* UPDATED: Enhanced Hero Section with Image */
.hero {
    padding: 100px 0 120px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 157, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    opacity: 0.03;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    opacity: 0.02;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 35px 60px -12px rgba(15, 23, 42, 0.25);
}

/* Modern Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.hero h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-muted);
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* UPDATED: Enhanced Sections with reduced padding */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: 1.125rem;
    line-height: 1.7;
}

.section-dark {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
}

.section-glass {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Modern Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Enhanced Stats */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Modern Workflow */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: start;
}

.workflow-copy {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.workflow-copy > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-accent);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.workflow-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glass-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(20px);
}

.glass-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.glass-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
    font-size: 1rem;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* UPDATED: Modern Filters Grid - Square images and compact text area */
#filters .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.filter-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 420px; /* Уменьшена высота карточки */
}

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

.filter-card img {
    width: 100%;
    height: 380px; /* Квадратное изображение */
    object-fit: cover;
    aspect-ratio: 1/1; /* Гарантирует квадратную форму */
}

.filter-content {
    padding: 24px 20px; /* Уменьшены отступы */
    display: flex;
    flex-direction: column;
    gap: 16px; /* Уменьшен промежуток между элементами */
    flex-grow: 1;
}

.filter-content h3 {
    font-size: 1.25rem; /* Уменьшен размер шрифта */
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.filter-content p {
    color: var(--text-muted);
    font-size: 0.95rem; /* Уменьшен размер шрифта */
    line-height: 1.5;
    flex-grow: 1;
}

/* Enhanced Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.review-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.3s ease;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-header img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-main);
    box-shadow: var(--shadow-card);
}

.review-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stars {
    color: #fbbf24;
    font-size: 1.125rem;
    letter-spacing: 2px;
}

.review-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

/* Modern Upload Section */
.section-upload {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
}

.upload-header {
    text-align: center;
    margin-bottom: 64px;
}

.upload-header h2 {
    font-size: 3rem;
}

.upload-header p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 1.125rem;
}

.upload-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
    align-items: stretch;
}

.upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.upload-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-box:hover {
    border-color: var(--accent);
    background: var(--bg-panel);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.upload-box:hover::before {
    opacity: 0.02;
}

.upload-box.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.upload-icon {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.upload-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.upload-box p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.upload-controls {
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.control-group select {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.control-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.radio-group label:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.radio-group input[type="radio"] {
    accent-color: var(--accent);
    cursor: pointer;
}

.full-width {
    width: 100%;
}

.upload-footer {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Enhanced FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--accent-soft);
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 32px 32px;
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* UPDATED: Compact CTA Section */
.cta-section {
    padding: 60px 0;
    background: var(--gradient-secondary);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    align-items: center;
}

.cta-grid h2 {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cta-grid p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.5;
    max-width: 500px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Enhanced Footer */
.footer {
    padding: 64px 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    align-items: start;
}

.footer-text {
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-warning {
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-sm);
    border-left: 4px solid #f59e0b;
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 40px 16px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-dark {
    background: rgba(15, 23, 42, 0.8);
}

.modal-content-dark {
    background: var(--bg-panel);
    margin: 0 auto;
    padding: 48px;
    border-radius: var(--radius-lg);
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-result {
    text-align: center;
    gap: 24px;
}

.modal-result h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.modal-result p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.processing-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.progress-section {
    display: flex;
    gap: 24px;
    align-items: center;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 6;
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-percent {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.queue-info-dark {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    flex: 1;
}

.progress-bar-dark {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

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

.timer-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.125rem;
}

.image-preview-container {
    display: flex;
    justify-content: center;
}

.image-preview-box {
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.image-preview-box img {
    max-width: 280px;
    border-radius: var(--radius-md);
}

.leaks-check-section {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
}

.leaks-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.leaks-subtitle-bold {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.leaks-free {
    color: var(--success);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.btn-leaks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-leaks:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.result-image {
    margin: 32px 0;
}

.result-blur-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.result-blur {
    width: 100%;
    filter: blur(20px);
    opacity: 0.7;
    transform: scale(1.05);
}

.result-blur-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.125rem;
    backdrop-filter: blur(4px);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 32px;
    }
    
    /* Updated responsive styles for 3-column grid */
    #filters .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 32px;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .hero {
        padding-top: 120px;
        min-height: 80vh;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* UPDATED: Reduced section padding for tablet */
    .section {
        padding: 64px 0;
    }

    .features-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    /* Updated responsive styles for filters grid */
    #filters .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }
    
    .filter-card {
        min-height: 380px;
    }
    
    .filter-card img {
        height: 240px;
    }
    
    .filter-content {
        padding: 20px 16px;
    }
    
    .filter-content h3 {
        font-size: 1.125rem;
    }
    
    .filter-content p {
        font-size: 0.9rem;
    }
    
    /* Updated CTA section for tablet */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-grid h2 {
        font-size: 2.25rem;
    }
    
    .cta-grid p {
        font-size: 1.0625rem;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    .site-header .container {
        padding: 12px 20px;
        height: 64px;
    }

    .hero {
        padding: 120px 0 80px;
        min-height: 70vh;
    }

    .hero .container {
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .cta-row {
        flex-direction: column;
        align-items: center;
    }

    .cta-row .btn {
        width: 100%;
        max-width: 300px;
    }

    /* UPDATED: Reduced section padding for mobile */
    .section {
        padding: 48px 0;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    .stats-bar {
        padding: 32px 24px;
        gap: 24px;
    }

    .workflow-grid {
        gap: 32px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-grid {
        gap: 32px;
        text-align: center;
    }

    .cta-grid h2 {
        text-align: center;
        font-size: 2rem;
    }

    .upload-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .upload-box {
        padding: 48px 32px;
    }

    .upload-controls {
        padding: 32px 24px;
    }

    .modal {
        padding: 20px 12px;
    }

    .modal-content-dark {
        padding: 32px 24px;
    }
    
    /* Updated responsive styles for filters grid on mobile */
    #filters .filters-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .filter-card {
        min-height: 360px;
    }
    
    .filter-card img {
        height: 220px;
    }
    
    .filter-content {
        padding: 18px 14px;
    }
    
    .filter-content h3 {
        font-size: 1.125rem;
    }
    
    .filter-content p {
        font-size: 0.875rem;
    }
    
    /* Updated CTA section for mobile */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-grid {
        gap: 24px;
    }
    
    .cta-grid h2 {
        font-size: 1.75rem;
    }
    
    .cta-grid p {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 520px) {
    .btn {
        width: 100%;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .feature-card,
    .review-card,
    .glass-card {
        padding: 24px 20px;
    }

    .upload-controls {
        padding: 24px 20px;
    }

    .upload-box {
        padding: 40px 24px;
    }

    .modal {
        padding: 16px 8px;
    }

    .modal-content-dark {
        padding: 24px 20px;
    }

    .queue-info-dark {
        display: none !important;
    }

    .progress-section {
        flex-direction: column;
        text-align: center;
    }
    
    /* Final mobile adjustments for filters grid */
    .filter-card {
        min-height: 340px;
    }
    
    .filter-card img {
        height: 200px;
    }
    
    .filter-content {
        padding: 16px 12px;
    }
    
    .filter-content h3 {
        font-size: 1.1rem;
    }
    
    .filter-content p {
        font-size: 0.85rem;
    }
    
    /* Final CTA adjustments for mobile */
    .cta-section {
        padding: 32px 0;
    }
    
    .cta-grid h2 {
        font-size: 1.5rem;
    }
    
    .cta-grid p {
        font-size: 0.9375rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Mobile Menu Enhancement */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--accent-soft);
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 20px;
        display: none;
        flex-direction: column;
        gap: 8px;
        box-shadow: var(--shadow-xl);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-muted: var(--text-primary);
        --border-glow: var(--accent);
    }
    
    .hero::before,
    .hero::after {
        opacity: 0.1;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .footer,
    .hero-actions,
    .cta-buttons {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Focus Management */
button:focus-visible,
a:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none;
    }
}

/* SVG Gradient for Progress Ring */
svg.defs-only {
    position: absolute;
    width: 0;
    height: 0;
}

/* Loading States Enhancement */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Добавьте в конец вашего CSS */
.hero {
    position: relative;
    min-height: 600px; /* Или другое значение */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Если это фон */
    /* Уберите transition/transform если они есть */
}
.modal-open {
    overflow: hidden;
}

.result-blur-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.result-blur {
    width: 100%;
    height: auto;
    filter: blur(20px);
    border-radius: 12px;
}

.result-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 12px;
}
/* Добавьте эти стили в ваш CSS файл */
.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Оптимизация анимаций */
.faq-item .faq-answer {
    will-change: height, opacity;
    transform: translateZ(0);
}

/* Оптимизация для статистики */
.stat span {
    display: inline-block;
    will-change: contents;
}

/* Предотвращение layout thrashing */
.result-blur-wrapper {
    contain: layout style paint;
}