/* Основные стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 20px;
    flex-direction: column;
}

.content {
    padding: 20px;
    flex: 1;
}

h1 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #444;
    font-weight: 500;
}

.subtitle {
    font-size: 1em;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
    font-weight: 300;
}

.projects-title {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #444;
    font-weight: 500;
}

.projects ul {
    list-style-type: none;
    padding: 0;
}

.projects ul li {
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: 400;
}

.projects ul li a {
    text-decoration: none;
    color: #1e90ff;
    transition: color 0.3s ease;
    font-weight: 500;
}

.projects ul li a:hover {
    color: #004080;
}

.photo {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    margin: 0 auto;
    background: none;
}

.photo img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    width: calc(100% - 60px);
    height: auto;
    margin: 0 30px 0 30px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-content p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

.modal-images {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.modal-images img {
    max-width: 40%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: auto;
    object-fit: cover;
}

.modal-images img.full-width {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

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

/* Адаптация для широкоэкранного режима */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .content {
        padding: 40px;
        flex: 1;
    }

    .photo {
        width: 30%;
        margin: 0;
        background: #e0f7ff;
        border-radius: 15px;
    }

    .photo img {
        width: 100%;
        margin: 0;
    }
}