/* ===== ОБНОВЛЕННЫЕ БАЗОВЫЕ СТИЛИ ===== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* ===== ОБНОВЛЕННЫЙ КОНТЕЙНЕР ===== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

/* ===== УЛУЧШЕННЫЙ HEADER ===== */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 3.2rem;
    font-weight: 300;
    margin: 0 0 15px 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

.header-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
}

.header-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.decoration-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: pulse 2s infinite ease-in-out;
}

.decoration-item:nth-child(2) {
    animation-delay: 0.3s;
    background: rgba(102, 126, 234, 0.8);
}

.decoration-item:nth-child(3) {
    animation-delay: 0.6s;
    background: rgba(118, 75, 162, 0.8);
}

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

/* ===== УЛУЧШЕННОЕ МЕНЮ ===== */
.nav {
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    max-width: 900px;
    margin: 0 auto;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    border-radius: 0;
    transition: all 0.4s ease;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    display: block;
    text-transform: uppercase;
    background: transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(0);
    color: #e0e0e0;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #fff;
}

.nav-link.active::before {
    width: 80%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.nav-link.active::after {
    opacity: 1;
    background: #4facfe;
}

.nav-item:first-child .nav-link {
    border-radius: 0 0 0 8px;
}

.nav-item:last-child .nav-link {
    border-radius: 0 0 8px 0;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.content {
    padding: 40px 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
}

.profile-photo {
    width: 200px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    margin: 20px auto;
    border: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 24px;
    color: #2c3e50;
    margin: 10px 0;
    font-weight: 500;
}

.profile-group {
    font-size: 18px;
    color: #7f8c8d;
    margin: 5px 0;
}

.about-me {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #667eea;
    font-size: 16px;
    line-height: 1.8;
}

/* ===== НАВЫКИ ===== */
.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

.skill-tag {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* ===== ОПЫТ РАБОТЫ ===== */
.experience-section {
    margin-top: 50px;
}

.section-title {
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
}

.experience-card {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.experience-title {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.experience-desc {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* ===== ФУТЕР ===== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    font-size: 14px;
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.experience-card {
    animation: fadeIn 0.6s ease forwards;
}

.nav-item {
    animation: slideDown 0.5s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }
    
    .header-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .header-decoration {
        gap: 15px;
        margin-top: 25px;
    }
    
    .decoration-item {
        width: 10px;
        height: 10px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 16px 20px;
        text-align: center;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link::after {
        left: 20px;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.08);
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .profile-photo {
        width: 150px;
        height: 190px;
    }
    
    .skills-container {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }
    
    .header-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
}
/* Стили для страницы товаров */
.price {
    font-size: 24px;
    color: #2c3e50;
    font-weight: bold;
    margin: 10px 0;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}






/* Стили для Модалки */

dialog::backdrop {
                background: rgba(0, 0, 0, 0.6);
                animation: fadeIn 0.3s ease;
            }

            dialog {
                border: none;
                border-radius: 12px;
                padding: 0;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
                animation: slideIn 0.3s ease;
                max-width: 500px;
                width: 90vw;
                max-height: 90vh;
                overflow-y: auto;
            }

            .modal-header {
                background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
                color: white;
                padding: 1.5rem;
                border-radius: 12px 12px 0 0;
                margin: 0;
            }

            .modal-header h2 {
                margin: 0;
                color: white;
                font-size: 1.5rem;
            }

            .modal-content {
                padding: 2rem;
            }

            .form-group {
                margin-bottom: 1.5rem;
            }

            .form-group label {
                display: block;
                margin-bottom: 0.5rem;
                font-weight: 600;
                color: #2c3e50;
            }

            .form-group input,
            .form-group select,
            .form-group textarea {
                width: 100%;
                padding: 0.75rem;
                border: 2px solid #e9ecef;
                border-radius: 6px;
                font-size: 1rem;
                transition: border-color 0.3s ease;
                box-sizing: border-box;
            }

            .form-group input:focus,
            .form-group select:focus,
            .form-group textarea:focus {
                outline: none;
                border-color: #667eea;
            }

            .form-group textarea {
                min-height: 100px;
                resize: vertical;
            }

            .modal-actions {
                display: flex;
                gap: 1rem;
                justify-content: flex-end;
                margin-top: 2rem;
            }

            .btn {
                padding: 0.75rem 1.5rem;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-size: 1rem;
                transition: all 0.3s ease;
                font-weight: 600;
            }

            .btn-primary {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
            }

            .btn-primary:hover {
                transform: translateY(-2px);
                box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
            }

            .btn-secondary {
                background: #f8f9fa;
                color: #2c3e50;
                border: 2px solid #e9ecef;
            }

            .btn-secondary:hover {
                background: #e9ecef;
            }

            .required {
                color: #e74c3c;
            }

            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            @keyframes slideIn {
                from { 
                    opacity: 0;
                    transform: translateY(-50px) scale(0.9);
                }
                to { 
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }

            /* Адаптивность */
            @media (max-width: 600px) {
                dialog {
                    margin: 1rem;
                    width: calc(100vw - 2rem);
                }
                
                .modal-actions {
                    flex-direction: column;
                }
                
                .btn {
                    width: 100%;
                }
            }