
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1 {
    font-size: 2rem;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-width: 100vh;
    margin: 0;
    padding: 0;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.9);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;

}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
}

.object-fit-cover { 
    object-fit: cover; 
}

.object-fit-contain { 
    object-fit: contain; 
}

.object-fit-fill { 
    object-fit: fill; 
}


/* Хедер */
.header {
    background: linear-gradient(90deg, #2d1b33 0%, #4a2c5d 50%, #2d1b33 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #8b5a2b;
    position: relative;
}

.header, .nav {
    padding: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}
.header::before {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.header::after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.header h1 {
    color: #ffd700;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 26px;
    background: rgba(26, 26, 46, 0.9);
    color: #ffd700;
    padding: 8px 12px;
    font-weight: bold;
    border: 2px solid #8b5a2b;
    border-radius: 0 0 5px 5px;
    z-index: 10000;
    transition:all 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.download-btn {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    color: #ffd700;
    border: 2px solid #8b5a2b;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    order: 3;
}

.download-btn:hover {
    background: #ffd700;
    color: #2d1b33;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}



/* Навигация */
.nav {
    background: #2d1b33;
    padding: 1rem 0;
    border-bottom: 2px solid #8b5a2b;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
}

.nav-link:focus-visible,
.download-btn:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}
.nav-link {
    color: #ffd700;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 1px solid #8b5a2b;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-link:hover {
    background: #ffd700;
    color: #2d1b33;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Основной контент */
.content {
    padding: 2rem;
}

/* Профиль */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
    flex-wrap: wrap;
    min-height: 0;
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
}

.profile-title {
    flex: 1;
    color: #ffd700;
    font-size: 1.4rem;
    line-height: 1.8;
    min-width: 100%;
    order: 1;
    padding: 0 1rem;

}

.profile-photo {
    width: 450px;
    height: 500px;
    border-radius: 15px;
    border: 3px solid #ffd700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    flex-shrink: 0;
    max-width: 450px;
    margin: 0 auto;
    max-height: 500px;
    object-position: center;
    order: 2;
    background: linear-gradient(45deg, #2d1b33, #4a2c5d);
}
picture{
    display: block;
    width: 450px;
    height: 500px;
    background: linear-gradient(45deg, #2d1b33, #4a2c5d);
    border-radius: 15px;
}

/* Навыки */
.skills-container {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
}

.skills-container h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.skill-tag {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #ffd700;
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* Работы */
.work-section {
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
}

.section-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.work-card {
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #8b5a2b;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color:#ffd700;
}
.work-text {
    background: rgba(255, 215, 0, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #8b5a2b;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.5rem;
    color: #ffd748;
    text-align: center;
}

.work-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #8b5a2b, #ffd700);
}

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

.work-image {
    width: 50%;
    height: 30px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid #ffd700;
}

.work-card h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.work-card p {
    color: #ffee51;
    font-size: 1rem;
}


.footer {
    background: linear-gradient(90deg, #2d1b33 0%, #4a2c5d 50%, #2d1b33 100%);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid #8b5a2b;
    margin-top: 3rem;
}

.footer p {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Анимации */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px #ffd700; }
    50% { text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

.profile-photo {
    animation: glow 3s ease-in-out infinite;
}
.header h1 {
    animation: glow 3s ease-in-out infinite;
}

@media (max-width: 1200px) {
    .profile-header {
        gap: 2rem;
        padding: 1.5rem;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin: 0.5rem;
        padding: 1rem;
    }
    


    .nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .download-btn {
        align-self: center;
        order: 3;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: repeat(2,1fr);
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    .profile-photo {
        order: 2;
        font-size: 1.8rem;
        max-width: min(100%, 450px); 
        max-height: 400px;


    }
    
    .profile-title {
        font-size: 1.1rem;
        width: 100%;
        order: 1;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
    }
    
    .profile-header,
    .skills-container,
    .work-section {
        padding: 1rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    .profile-photo{
        padding: 1.5rem 1rem;
    }
    .work-grid {
        grid-template-columns: 1fr;
    }
    .profile-title {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

.retina-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

picture {
    display: block;
    width: 100%;
}

@supports (container-type: inline-size) {
    .projects-container {
        container-type: inline-size;
    }
    
    @container (max-width: 400px) {
        .project-card {
            flex-direction: column;
        }
    }
}

/* Стили для страницы проектов */
.projects-container {
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
    margin: 2rem 0;
    overflow: visible;
}

.projects-container h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: glow 3s ease-in-out infinite;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projects-tag {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #ffd700;
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
}

.projects-tag::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.projects-tag::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.projects-text {
    background: rgba(255, 215, 0, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #8b5a2b;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.5rem;
    color: #ffd748;
    text-align: center;
}

.projects-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #ffd700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.projects-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

/* Альтернативный вариант с карточками проектов */
.project-item {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    border: 2px solid #8b5a2b;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #8b5a2b, #ffd700);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.project-title {
    color: #ffd700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

.project-description {
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Специфические стили для разных типов проектов */
.project-magical {
    border-left: 5px solid #ff6b6b;
}

.project-potion {
    border-left: 5px solid #4ecdc4;
}

.project-artifact {
    border-left: 5px solid #45b7d1;
}

.project-wand {
    border-left: 5px solid #96ceb4;
}

/* Анимация появления проектов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid > * {
    animation: fadeInUp 0.6s ease-out;
}

.projects-grid > *:nth-child(1) { animation-delay: 0.1s; }
.projects-grid > *:nth-child(2) { animation-delay: 0.2s; }
.projects-grid > *:nth-child(3) { animation-delay: 0.3s; }
.projects-grid > *:nth-child(4) { animation-delay: 0.4s; }

/* Стили для улучшенной структуры (рекомендуется использовать эту версию HTML) */
.projects-grid-improved {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #8b5a2b;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #8b5a2b, #ffd700);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.project-card-header {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ffd700;
    margin-bottom: 1rem;
}

.project-card-description {
    color: #e0e0e0;
    line-height: 1.6;
    text-align: center;
    font-size: 1rem;
}

/* Адаптивность для проектов */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .projects-container h2 {
        font-size: 2rem;
    }
    
    .projects-tag {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    
    .projects-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .projects-container h2 {
        font-size: 1.8rem;
    }
}
@media (max-width: 320px) {
    .projects-container {
        padding: 0.5rem;
    }

    .projects-tag {
        font-size: 0.9rem;
    }
    .projects-text {
        font-size: 1rem;
    }
    
    .projects-image {
        height: 150px;
    }
}
/* Стили для дневника Северуса */
.diary-section {
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
    margin-bottom: 2rem;
}

.diary-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.progress-container {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #8b5a2b;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.progress-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

.progress-item.completed {
    border-left: 4px solid #27ae60;
}

.progress-item.in-progress {
    border-left: 4px solid #f39c12;
}

.progress-date {
    color: #ffd700;
    font-weight: bold;
    min-width: 80px;
}

.progress-text {
    color: #e0e0e0;
    flex-grow: 1;
    margin: 0 1rem;
}

.progress-status {
    font-size: 1.2rem;
}

/* Секция курсов */
.courses-section {
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
    margin-bottom: 2rem;
}

.courses-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.courses-container {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #8b5a2b;
}

.course-item {
    margin-bottom: 1.5rem;
}

.course-item:last-child {
    margin-bottom: 0;
}

.course-name {
    color: #ffd700;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex-grow: 1;
    height: 20px;
    background: #2d1b33;
    border-radius: 10px;
    border: 1px solid #8b5a2b;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #f39c12);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.progress-percent {
    color: #ffd700;
    font-weight: bold;
    min-width: 40px;
}

/* Кнопка добавления */
.add-entry-container {
    text-align: center;
    margin-top: 2rem;
}

.add-entry-btn {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    color: #ffd700;
    border: 2px solid #8b5a2b;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-entry-btn:hover {
    background: #ffd700;
    color: #2d1b33;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .diary-section,
    .courses-section {
        padding: 1rem;
        margin: 1rem;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .course-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .progress-percent {
        align-self: flex-end;
    }
}
/* Стили для валидации формы */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
    min-height: 1.2rem;
}

.form-input.invalid,
.form-textarea.invalid {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.form-input.valid,
.form-textarea.valid {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    color: #ffd700;
    transform: none;
}

.success-message {
    color: #27ae60;
    text-align: center;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid #27ae60;
    border-radius: 5px;
    margin-top: 1rem;
}
/* Стили для страницы контактов */
.contact-section {
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
    margin-bottom: 2rem;
}

.contact-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-form-container {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #8b5a2b;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    color: #ffd700;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #8b5a2b;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Стили для валидации */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
    min-height: 1.2rem;
}

.form-input.invalid,
.form-textarea.invalid {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.form-input.valid,
.form-textarea.valid {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    color: #ffd700;
    border: 2px solid #8b5a2b;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    font-weight: bold;
}

.submit-btn:hover {
    background: #ffd700;
    color: #2d1b33;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    background: linear-gradient(135deg, #4a2c5d, #2d1b33);
    color: #ffd700;
    transform: none;
    box-shadow: none;
}

.success-message {
    color: #27ae60;
    text-align: center;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid #27ae60;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: bold;
}

/* Контактная информация */
.contact-info {
    padding: 2rem;
    background: rgba(45, 27, 51, 0.7);
    border-radius: 15px;
    border: 2px solid #8b5a2b;
}

.contact-info-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-details {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #8b5a2b;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid #ffd700;
}

.contact-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 40px;
    text-align: center;
}

.contact-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-section,
    .contact-info {
        padding: 1rem;
        margin: 1rem;
    }
    
    .contact-form-container,
    .contact-details {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1.5rem;
    }
    
    .contact-icon {
        margin-right: 0;
        font-size: 2rem;
    }
    
    .contact-text {
        font-size: 1rem;
    }
    
    .contact-title,
    .contact-info-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container,
    .contact-details {
        padding: 1rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.7rem;
    }
    
    .submit-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

.modal-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.7);
                justify-content: center;
                align-items: center;
                z-index: 1000;
            }

            .modal-content {
                background: linear-gradient(135deg, #4a2c5d, #2d1b33);
                padding: 2rem;
                border-radius: 15px;
                border: 2px solid #8b5a2b;
                width: 90%;
                max-width: 500px;
                color: #e0e0e0;
            }

            .modal-content h3 {
                color: #ffd700;
                text-align: center;
                margin-bottom: 1.5rem;
                font-size: 1.5rem;
            }

            .modal-content .form-group {
                margin-bottom: 1rem;
            }

            .modal-content label {
                color: #ffd700;
                display: block;
                margin-bottom: 0.5rem;
                font-weight: bold;
            }

            .modal-content input,
            .modal-content textarea,
            .modal-content select {
                width: 100%;
                padding: 0.8rem;
                background: rgba(255, 255, 255, 0.1);
                border: 1px solid #8b5a2b;
                border-radius: 5px;
                color: #e0e0e0;
                font-size: 1rem;
            }

            .modal-content textarea {
                resize: vertical;
                min-height: 100px;
            }

            .modal-buttons {
                display: flex;
                gap: 1rem;
                justify-content: center;
                margin-top: 1.5rem;
            }

            .cancel-btn {
                background: transparent;
                color: #ffd700;
                border: 2px solid #8b5a2b;
                padding: 10px 20px;
                border-radius: 25px;
                cursor: pointer;
                transition: all 0.3s ease;
            }

            .cancel-btn:hover {
                background: #e74c3c;
                color: white;
            }

            /* Анимация для уведомления */
            @keyframes slideIn {
                from {
                    transform: translateX(100%);
                    opacity: 0;
                }
                to {
                    transform: translateX(0);
                    opacity: 1;
                }
            }