
body {
    font-family: 'Times New Roman', serif;
    background-color: #8b8b8b;
    color: #333333;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 20px;
}
header {
    background-image: url('header-background.jpg');
    background-size: 100% 100%;
    background-position: center;
    padding: 100px 20px;
    color: white;
}
header h1 {
    color: #333333;
    font-size: 50px;
}
nav ul {
    list-style: none;
    padding: 0;
}
nav ul li {
    display: inline;
    margin: 0 15px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    color: #333333;
}

nav ul li a.active {
    text-decoration: underline;
    color: black;
}

/* Основной контент */
.container h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.container .img-part {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 10px;
}

.container .img-part .img {
    width: 400px;
    height: 300px;
    border: 10px solid rgb(85, 85, 85);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .img-part .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-item p {
    margin-top: 10px;
    font-size: 25px;
    color: black;
}

.img-item a {
    text-decoration: none;
    color: inherit;
}

/* Подвал */
footer {
    background-color: #8b8b8b;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    color: #333;
}

/* Переключение языка */
.language-switch {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 9999;
    padding: 5px 10px;
    border-radius: 5px;
}

.language-switch a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.language-switch a:hover {
    transform: scale(1.4) translateY(-6px);
    color: red;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }

    nav ul li a {
        font-size: 18px;
    }

    .img-item p {
        font-size: 18px;
    }

    .container h2 {
        font-size: 28px;
    }

    .container .img-part {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    header {
        padding: 60px 10px;
    }

    .container .img-part {
        grid-template-columns: 1fr;
    }

    .container .img-part .img {
        height: 200px;
        width: 90%;
    }

    .language-switch {
        font-size: 16px;
        top: 15px;
        right: 15px;
    }
}
