@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');


html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

*, *::before, *::after{
    box-sizing: inherit;
}

body::selection {
    background-color: black;
    color: white;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    color: #FFFFFF;
    position: relative;
    margin: 0;
    background-color: #FFFFFF;
}

.body__container {
    margin: 0 4.2%;
}


.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 50px 0;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative;
}

.logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    z-index: 1002;
    max-width: 200px;
}

.logo-link:focus {
    outline: none;
}

.logo {
    height: clamp(24px, 3vw, 36px);
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0);
}

.nav__ul__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ul__item {
    margin-right: 24px;
}

.li__a__itemlink {
    text-decoration: none;
    color: #000000;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.li__a__itemlink:focus {
    outline: none;
}

.header__socials {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-link {
    text-decoration: none;
}

.social-link:focus {
    outline: none;
}



.header__socials .social-link img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    display: block;
    filter: brightness(0); 
}


.footer__socials .social-link img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    display: block;
}


.menu_small_icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
}

.stick {
    width: 30px;
    height: 2px;
    background: #000000;
    margin: 5px 0;
}

.nav__mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 900;  
}

.nav__links__mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0;
    list-style: none;
}

.ul__item__m {
    padding: 10px 0;
}

.a__itemlink__m {
    all: unset;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 24px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}


.main {
    min-height: calc(100vh - 120px);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: calc(100vh - 130px);
    width: calc((100vh - 130px) * 1.5); 
    max-width: 100%;
    margin: 0 auto; 
    border-top: 4px solid #000000;
    border-left: 4px solid #000000;
    box-sizing: border-box;
}

.catalog-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    border-bottom: 4px solid #000000;
    border-right: 4px solid #000000;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    color:#000000;
    font-size: 1.5rem ;
    display: flex;
    align-content:center;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
}



.item-img {
    object-fit: contain;
    width: clamp(256px, 25vw, 512px);

}

.item-price {
    text-align: center;
    font-size: 1.5rem;
    
}

.catalog-item--soldout {
    position: relative;
}

.catalog-item--soldout::before,
.catalog-item--soldout::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.catalog-item--soldout::before {
    background: linear-gradient(
        to bottom right,
        transparent calc(50% - 2px),
        #000000,
        transparent calc(50% + 2px)
    );
}

.catalog-item--soldout::after {
    background: linear-gradient(
        to bottom left,
        transparent calc(50% - 2px),
        #000000,
        transparent calc(50% + 2px)
    );
}

/* ====== FOOTER ====== */
.footer {
    background-color: #000000;
    min-height: 20dvh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center; 
    flex-direction: column;
}

.footer__socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer__contactinfo{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    margin: 5px 0;
}

.footer__email {
    all: unset;
    text-decoration: none;
    cursor: pointer;
    margin-right: 5px;
    font-family: Arial, Helvetica, sans-serif;
    color: #FFFFFF;
}

/* === АДАПТАЦИЯ (Медиа-запросы) === */
@media (max-width: 1280px) {
   .logo-link {
    display: none;
   } 
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll; 
        background-image: url('../img/bg-mobile.jpg');
    }

    .nav__ul__links, .header__socials {
        display: none;
    }

    .menu_small_icon {
        display: block;
    }

    .logo-link {
        display: block;
    } 

    .catalog-grid {
        height: auto;
        width: 100%;
        grid-template-columns: repeat(1, 1fr); /* 2 колонки вместо 3 */
        border-top: 2px solid #000000;
        border-left: 2px solid #000000;
    }
}