* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'StratosSkyeng', sans-serif;
    background-color: #0F0804;
}

/* Если нет шрифта, используйте запасной */
@font-face {
    font-family: 'StratosSkyeng';
    src: local('Arial');
    font-display: swap;
}

.header {
    height: 100vh;
    background-image: url(images/13.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.header__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 80.49%, #0F0804 100%);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.header__title {
    margin: auto;
    font-size: 96px;
    text-align: center;
    color: white;
    max-width: 658px;
    font-weight: 400;
}

.header__link {
    height: 90px;
    width: 100%;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(11.5px);
}

.header__link:hover {
    opacity: .8;
}

.header__anchor {
    text-decoration: none;
    color: white;
    font-size: 24px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery {
    list-style-type: none;
    margin: 173px auto;
    display: flex;
    max-width: 1060px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
}

.gallery__item {
    max-width: 330px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image__title {
    max-width: 260px;
    font-size: 24px;
    text-align: center;
    color: white;
    position: absolute;
    z-index: 1;
    display: none;
}

.gallery__item::after {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.65);
    width: 100%;
    height: 100%;
    display: none;
}

.gallery__item:hover::after {
    display: block;
}

.gallery__item:hover .image__title {
    display: block;
}

.image {
    width: 100%;
    display: block; /* Убирает лишний отступ снизу */
}

.image__buttons {
    position: absolute;
    right: 27px;
    bottom: 24px;
    display: flex;
    gap: 21px;
    z-index: 5;
}

.image__button {
    border: none;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 32px;
    cursor: pointer;
}

.image__like {
    width: 39px;
    background-image: url(./images/Like.svg);
}

.image__like:hover {
    background-image: url(./images/Like_active.svg);
}

.image__choosen {
    width: 30px;
    background-image: url(./images/Choosen.svg);
}

.image__choosen:hover {
    background-image: url(./images/Choosen_active.svg);
}

.footer {
    height: 100vh;
    background-image: url(./images/7.png);
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer__overlay {
    display: flex;
    height: 100%;
    background: linear-gradient(180deg, #0F0804 0%, rgba(0, 0, 0, 0.6) 100%);
}

.footer__text {
    margin: auto;
    font-size: 40px;
    color: white;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .header__title {
        font-size: 48px;
        padding: 0 20px;
    }
    
    .gallery {
        margin: 50px auto;
        gap: 20px;
    }
    
    .footer__text {
        font-size: 24px;
        text-align: center;
        padding: 0 20px;
    }
}