* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-bottom: 0;
}

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

.navigation {
    background-color: #34495e;
    padding: 0;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navigation li {
    margin: 0;
}

.navigation a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
}

.navigation a:hover {
    background-color: #2c3e50;
}


.main-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
    text-align: center;
}


.author-info {
    padding: 2rem;
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: block;
    margin: 1rem auto;
    object-fit: cover;
    border: 3px solid #3498db;
}

.author-name {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
    margin: 1rem 0;
}

.study-group {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.about-me {
    margin-bottom: 2rem;
}

.about-me h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}


.skills {
    margin-bottom: 2rem;
}

.skills h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

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

.skill-item {
    background-color: #3498db;
    color: white;
    padding: 0.8rem;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}

.experience h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.experience ul {
    padding-left: 1.5rem;
}

.experience li {
    margin-bottom: 0.5rem;
}

.news-item {
    border-bottom: 1px solid #ecf0f1;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.news-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.goods-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.goods-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.goods-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 1rem;
    background-color: #bdc3c7;
}

.goods-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.call-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.call-button:hover {
    background-color: #229954;
}

.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.button {
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.button--primary {
    background-color: #3498db;
    color: white;
}

.button--primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.button--secondary {
    background-color: #95a5a6;
    color: white;
}

.button--secondary:hover {
    background-color: #7f8c8d;
}

.dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: white;
}

.dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.dialog__title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    margin: 0;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    font-size: 1.3rem;
    text-align: center;
}

.form {
    padding: 2rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.form__help {
    display: block;
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.form__error {
    color: #e74c3c;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
}

.form__input--error,
.form__select--error,
.form__textarea--error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form__input--error:focus,
.form__select--error:focus,
.form__textarea--error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

@media (max-width: 768px) {
    .navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .goods-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        margin: 1rem;
    }
    
    .dialog {
        width: 95vw;
        max-height: 85vh;
    }
    
    .dialog__title {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .form {
        padding: 1.5rem;
    }
    
    .form__actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .button {
        width: 100%;
    }
}