* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'StratosSkyeng', sans-serif;
    background-color: #0F0804;
    color: #fff;
}


.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__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;
}

.header__title {
    margin: auto;
    font-size: 96px;
    text-align: center;
    color: white;
    max-width: 658px;
    font-weight: 400;
}


.gallery {
    list-style-type: none;
    margin: 80px auto;
    display: flex;
    max-width: 1060px;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery__item {
    max-width: 330px;
    width: 100%;
}


.card {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.card__image {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.3s ease;
}


.card__buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card__btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-family: 'StratosSkyeng', sans-serif;
    transition: all 0.2s ease;
}

.card__btn:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: scale(1.05);
}

.card__btn:active {
    transform: scale(0.95);
}


.card__btn-like.active {
    background: #ff4444;
    border-color: #ff8888;
}

.card__btn-favorite.active {
    background: #ffaa00;
    border-color: #ffcc66;
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: white;
}

.btn-count {
    font-weight: 500;
    min-width: 18px;
    text-align: center;
}


.card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card:hover .card__overlay {
    transform: translateY(0);
}

.card:hover .card__image {
    transform: scale(1.05);
}

.card__title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.card__subtitle {
    font-size: 14px;
    opacity: 0.8;
}


.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%;
    width: 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;
    }
    
    .footer__text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header__title {
        font-size: 36px;
    }
}