:root {
    --header-height: 70px;
    --footer-height: 260px;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.header {
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 1000;
    transition: padding .3s ease, box-shadow .3s ease;
}

.header.header--small {
    padding: 4px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header__container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 50px;
    
    position: relative; 
    justify-content: center; 
}

.header__logo {
    position: absolute;
    left: 50px; 
    
    font-size: 32px;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
    color: #000;
    text-decoration: none;
}

.header.header--small .header__logo {
    font-size: 24px;
}

.header__menu {
    display: flex;
    gap: 40px;
    white-space: nowrap;
}

.menu__btn {
    border: none;
    background: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 6px 12px;
    transition: color .2s ease;
}

.header.header--small .menu__btn {
    font-size: 16px;
}

.menu__btn:hover {
    color: #333;
}

.menu__btn.active {
    color: #000;
    font-weight: 500;
}

.pages {
    position: relative;
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
}

.page.active-page {
    display: block;
    animation: pageEnter .45s ease forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.main-page__hero-bg {
    width: 100%;
    height: 757px;
    object-fit: cover;
}

.main-page__features {
    width: 100%;
    height: 120px;
    background: #f9f9f9;
    border-bottom: 1px solid #a1a1a1;
}

.features {
    display: flex;
    justify-content: center;
    gap: 120px;
    padding-top: 25px;
    font-size: 20px;
}

.feature {
    position: relative;
    line-height: 1.6;
}

.feature__icon {
    position: absolute;
    top: 10px;
    left: -55px;
    width: 40px;
}

.feature__desc {
    font-size: 18px;
    color: #656565;
    font-weight: 100;
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.main-page__title {
    margin-top: 70px;
    text-align: center;
    font-size: 32px;
}

.main-page__subtitle {
    margin-top: 35px;
    font-size: 24px;
    color: #656565;
    font-weight: 100;
}

.main-page__catalog {
    margin-top: 80px;
}

.catalog__row {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.catalog__item img {
    width: 400px;
    height: 550px;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .5);
    transition: transform .5s ease;
    object-fit: cover;
}

.catalog__item:hover img {
    transform: scale(1.05);
}

.category {
    padding: 60px 60px 40px;
}

.category__title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.category__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.catalog__caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    pointer-events: none;
}

.product-card {
    width: 400px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, .5);
    background: #fff;
}

.product-card__img {
    display: block;
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}

.product-card__info {
    padding: 12px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__name {
    font-size: 18px;
    margin: 0;
    
    font-weight: 600;
}

.product-card__price {
    font-family: sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #8e806a;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;    
    border-radius: 5px;   
}

.product-card__price small {
    font-size: 18px;
    font-weight: 500;
}

.footer {
    background: #0a0a0a;
    border-top: 1px solid #a1a1a1;
    padding: 60px 0;
}

.footer__container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 150px;
    color: #fff;
    font-size: 24px;
}

.footer__column--brand {
    width: 250px;
}

.footer__desc {
    margin-top: 30px;
    font-size: 20px;
    color: #7c7e89;
}

.footer__links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 20px;
    color: #7c7e89;
    text-decoration: none;
    cursor: pointer;
    transition: color .4s ease;
}

.footer__links span {
    font-size: 20px;
    color: #7c7e89;
}

.footer__links a:hover {
    color: #fff;
}

.page--leaving {
    animation: pageLeave .45s ease forwards;
}

@keyframes pageLeave {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-40px) scale(0.97);
    }
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page.active-page {
    animation: pageEnter .45s ease forwards;
}

.catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 50px;
    max-width: 1600px;
    margin: 50px auto 50px;
}

.catalog__item {
    position: relative; 
    display: block;
    text-decoration: none;
}