/* styles.css - Основные стили для сайта */

/* 1. CSS Variables - Новый, актуальный блок */
:root {
    --header-height: 80px;
    --primary: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary: #7C3AED;
    --dark: #1F2937;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset/Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* 3. Layout (Container, Grid) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero with animated background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto 30px;
    display: block;
}

/* Services section */
.services {
    background-color: #f8fafc;
}

/* Features section */
.features {
    background: white;
}

.feature-card {
    text-align: left;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

/* Stats section */
.stats {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* CTA section */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.btn-white:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation-delay: calc(var(--index) * 0.1s);
}

/* Tech stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.tech-stack-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    -webkit-text-fill-color: white;
}

.hero .tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

.obfuscated-link:not([href^="mailto:"]):not([href^="tel:"]):not([href^="https://t.me/"]) {
    opacity: 0.6;
    pointer-events: none;
    /* Чтобы нельзя было кликнуть до заполнения */
    text-decoration: none;
    color: inherit;
    /* или специфический цвет для "загрузки" */
}


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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 5px;
}

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

/* Print styles */
@media print {
    header,
    footer,
    .no-print,
    .back-link, 
    .toc,
    .print-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

.print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    float: right;
}

.print-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.print-button:active {
    transform: translateY(-1px);
}

@media print {
    .print-button {
        display: none;
    }
}

/* --- Технологии --- */

.tech-items .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    font-weight: 600;
}

.tech-items .special {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    font-weight: 600;
}

.soft-skills {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.skill-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.skill-item h4 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Современные стили для формы */
.modern-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    color: var(--dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    background: #ffffff;
}

.modern-form input::placeholder,
.modern-form textarea::placeholder {
    color: #94a3b8;
    font-size: 15px;
}

.modern-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
}

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

.btn-submit:hover svg {
    transform: translateX(3px);
}

/* Анимация для полей ввода */
.modern-form .form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.modern-form input:focus+.form-group::before,
.modern-form textarea:focus+.form-group::before {
    transform: scaleX(1);
}

/* Сетка для контактной секции */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    padding-right: 20px;
}

/* Стили для методов связи */
.contact-methods {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left; /* Обеспечивает выравнивание текста влево, даже если родительский блок центрирован */
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-method .icon {
    font-size: 1.5rem; 
    min-width: 44px; 
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--primary); 
    border-radius: 50%; 
}

.contact-method div {
    flex-grow: 1;
}

.contact-method div strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-method div p {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
    word-break: break-word; /* Для корректного переноса длинных строк (например, email) */
}

.contact-form {
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), #7c3aed, var(--primary));
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-form:hover::before {
    opacity: 0.1;
}

/* Современный дизайн технологического стека */
.technologies {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.15"/><circle cx="20" cy="60" r="0.5" fill="%23ffffff" opacity="0.15"/><circle cx="80" cy="40" r="0.5" fill="%23ffffff" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.technologies .container {
    position: relative;
    z-index: 2;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-category {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7c3aed, #059669);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tech-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-header h3 {
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    white-space: nowrap;
}

.tech-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tech-badge.primary {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.tech-badge.primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.tech-badge.special {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.tech-badge.special:hover {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* Стили для карточек услуг */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

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

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .modern-form {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .modern-form input,
    .modern-form textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .btn-submit {
        padding: 16px 25px;
        font-size: 15px;
    }

    .contact-grid {
        gap: 25px;
    }

    .tech-categories {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tech-category {
        padding: 25px 20px;
    }

    .category-header {
        gap: 12px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .category-header h3 {
        font-size: 1.2rem;
    }

    .tech-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    /* Основные заголовки */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero .tagline {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }
    
    /* Карточки услуг */
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .service-card ul {
        font-size: 0.9rem;
    }
    
    /* Технологии */
    .tech-categories {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .category-header h3 {
        font-size: 1.4rem;
    }

    .tech-items {
        justify-content: center;
    }
    
    .tech-badge {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    /* Контейнеры и отступы */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    /* Кнопки */
    .btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    
    /* Грид адаптация */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Общие улучшения типографики */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    /* Формы */
    input, textarea, select {
        font-size: 16px !important; /* Предотвращает зум на iOS */
    }
    
    /* Кнопки */
    button {
        font-size: 0.9rem;
    }
    
    /* Навигация */
    .nav-text {
        font-size: 0.9rem;
    }
    
    /* Карточки */
    .card {
        padding: 20px 15px;
    }
    
    .card h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Новый Header и связанные стили */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Логотип */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивность для нового хедера */
@media (max-width: 968px) {
    /* .nav-menu,
    .header-actions .theme-toggle {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-payment .btn-text {
        display: none;
    }

    .btn-payment {
        padding: 12px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        justify-content: center;
    } */
}

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

    .logo-text {
        display: none;
    }

    .btn-payment {
        padding: 10px;
        width: 40px;
        height: 40px;
    } */
}

/* === COOKIE NOTICE STYLES === */
/* Компактная полоска внизу */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 16px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUpCookie 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.cookie-text {
    font-size: 14px;
    flex: 1;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-accept-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-details {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.btn-details:hover {
    color: white;
}

/* Большое модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}

.modal {
    background: white;
    border-radius: var(--border-radius);
    max-width: 580px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideInModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    background: var(--light-gray);
    color: var(--dark);
    padding: 24px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #e2e8f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #cbd5e0;
    color: var(--dark);
    transform: scale(1.1);
}

.modal-content {
    padding: 24px;
}

.modal-text {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.policy-link {
    background: var(--light-gray);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
}

.policy-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.policy-link a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-large {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    border: none;
}

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

.btn-decline-large {
    background: var(--light-gray);
    color: var(--gray);
    border: 1px solid #e2e8f0;
}

.btn-accept-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-decline-large:hover {
    background: #edf2f7;
    color: var(--dark);
    transform: translateY(-1px);
}

.cookie-status {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    z-index: 1002;
    max-width: 350px;
    animation: slideInStatus 0.3s ease;
}

.cookie-status.ok {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cookie-status.no {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Анимации */
@keyframes slideUpCookie {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInStatus {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Адаптивность для cookie notice */
@media (max-width: 768px) {
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .cookie-buttons {
        justify-content: space-between;
        margin-top: 8px;
    }

    .modal {
        margin: 10px;
        max-height: 90vh;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .cookie-status {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Стили для чекбокса согласия */
.consent-group {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.consent-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-checkbox input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.consent-text {
    color: var(--gray);
    cursor: default;
}

.consent-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

.btn-submit:disabled,
.btn-submit.disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-submit:disabled:hover,
.btn-submit.disabled:hover {
    background: #e2e8f0 !important;
    transform: none !important;
    box-shadow: none !important;
}