/* ==== БАЗОВЫЕ СТИЛИ ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* ==== КОНТЕЙНЕР СТРАНИЦЫ ==== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
}

/* ==== ШАПКА ==== */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    grid-area: header;
}

.header h1 {
    margin: 0;
    font-weight: 400;
}

/* ==== НАВИГАЦИЯ ==== */
.nav {
    background: #2c3e50;
    padding: 20px 0;
    grid-area: nav;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

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

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

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

.profile-photo {
    width: 220px;
    height: 280px;
    border-radius: 15px;
    object-fit: cover;
    margin: 20px auto;
    border: 4px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

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

.contact-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.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;
}

.about-me h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ==== НАВЫКИ ==== */
.skills-container {
    margin: 40px 0;
}

.skills-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

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

.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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.experience-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.experience-card:hover {
    transform: translateX(5px);
}

.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 0 15px 0;
    flex-grow: 1;
}

.details-button {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.details-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ==== ТОВАРЫ С ИКОНКАМИ ==== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-icon.html {
    background: linear-gradient(135deg, #e34c26 0%, #f06529 100%);
}

.product-icon.css {
    background: linear-gradient(135deg, #264de4 0%, #2965f1 100%);
}

.product-icon.js {
    background: linear-gradient(135deg, #f0db4f 0%, #323330 100%);
}

.product-icon.react {
    background: linear-gradient(135deg, #61dafb 0%, #282c34 100%);
}

.product-icon.node {
    background: linear-gradient(135deg, #68a063 0%, #333 100%);
}

.product-icon.design {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.product-icon.template {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-icon.ui-kit {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-icon.icons {
    background: linear-gradient(135deg, #a8e6cf 0%, #3edbf0 100%);
}

.product-icon.plugin {
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
}

.product-icon.course {
    background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%);
}

.product-icon.book {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.product-name {
    font-size: 18px;
    color: #2c3e50;
    margin: 10px 0;
    font-weight: 600;
}

.product-desc {
    color: #7f8c8d;
    margin: 10px 0;
    flex-grow: 1;
}

.product-price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: 700;
    margin: 10px 0;
}

.buy-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

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

.product-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    width: 100%;
}

.product-features li {
    padding: 5px 0;
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.product-features li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 8px;
}

/* ==== МОДАЛЬНЫЕ ОКНА ==== */
.modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal {
    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;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.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);
    }
}

/* ==== КОНТАКТЫ ==== */
.contacts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info p {
    color: #34495e;
    margin: 0;
}

.contact-actions {
    text-align: center;
    margin-top: 40px;
}

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

/* ==== АДАПТИВНОСТЬ ==== */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    main.content {
        padding: 20px;
    }
    
    .profile-photo {
        width: 180px;
        height: 240px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .modal {
        margin: 1rem;
        width: calc(100vw - 2rem);
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 20px;
        font-size: 24px;
    }
    
    .nav-link {
        padding: 10px 20px;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}