@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
* {
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
}
html{
    background: rgb(240, 240, 240);
    background-attachment: fixed;
    height: 100%;
}
body{
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header"
        "main"
        "footer";
    min-height: 100%;
}
header {
    grid-area: header;
}
main {
    grid-area: main;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}
footer {
    grid-area: footer;
}

/* Навигация */

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #64805A;
    border-radius: 20px;
    padding: 10px; /* Увеличение внутреннего отступа */
    width: calc(100% - 30px);
    max-width: 1220px;
    box-shadow: 0 4px 16px rgba(100, 128, 90, 0.28), 0 1px 5px rgba(0, 0, 0, 0.10);
    margin: 0 auto;
    position: fixed;
    z-index: 2000;
    top: 10px; /* Отступ от верхнего края */
    left: 50%; /* Сдвигаем блок на середину */
    transform: translateX(-50%); /* Центрируем блок относительно его ширины */
}
.navigation-menu{
    display: flex;
    align-items: center;
}
.navigation-btn{
    display: flex;
    align-items: center;
    font-size: 25px;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    color: white;
    background-color: #64805A;
    cursor: pointer;

    position: relative;
}
.navigation-btn:hover {
    color: #FF6347; 
}
.navigation-menu a, .navigation-login a {
    text-decoration: none;
}
.navigation-logo{
    align-items: center;
    filter: brightness(0) invert(1);
    margin-right: 8px;
    width: 35px;
}
.total-items-cart {
    font-size: 20px;
    background-color: #FF6347;
    color: white;
    border-radius: 50%;
    border: 2px solid black;
    padding: 5px;
    position: absolute;
    top: -5px; 
    left: 5px; 
    width: 20px; 
    height: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Реквизиты и контакты */

.footer-content{
    display: flex;
    flex-direction: column;
    background-color: #404540;
    color: #f0f0ee;
    line-height: 1.5;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.footer-content-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 15px 28px;
    box-sizing: border-box;
}
.footer-left-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* Разделитель и блок бренда */
.footer-divider {
    width: 1px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    align-self: center;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.footer-brand-logo {
    width: 54px;
}
.footer-brand-name {
    font-size: 22px;
    font-weight: 600;
    color: #f0f0ee;
    letter-spacing: 0.5px;
}
.footer-brand-tagline {
    font-size: 13px;
    color: #a0a89e;
    letter-spacing: 0.3px;
}

/* Нижняя строка */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom-inner {
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 15px;
    font-size: 13px;
    color: #7a8478;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
}
.footer-contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
}
.footer-contacts-label {
    font-size: 13px;
    color: #7a8478;
    margin-right: 4px;
}
.footer-contacts .contact-item-message {
    width: 26px;
    padding: 0 4px;
}
.footer-logo{
    align-items: center;
    filter: brightness(0) invert(1);
    margin-right: 8px;
    width: 25px;
}
.product-add-button{
    align-items: center;
}
.contact-item-info{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
}
.requisites-item h1{
    font-size: 20px;
}
.contact-item-info:hover {
    color: #FF6347;
}
.contact-item-message {
    filter: brightness(0) invert(1);
    padding-right: 10px;
    padding-top: 10px;
    width: 40px;
    transition: filter 0.15s;
}
.contact-item-message:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(10) hue-rotate(330deg) brightness(1.2);
}

.requisites-item{
    font-size: 20px;
}
.footer-logo-close{
    display: none;
}
.footer-logo-open{
    display: none;
}
.footer-menu {
    display: none;
}
.footer-menu-logo{
    display: none;
}

.nav-brand-link {
    text-decoration: none;
}
.nav-home-link {
    display: none;
}

.nav-brand-link .navigation-logo {
    filter: none;
}

/* Адаптив под мобильную версию */

@media (max-width: 880px) {
    body{
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "footer"
            "main"
            "header";
    }
    main {
        max-width: none;
        margin: 0;
    }
    .nav-brand-link {
        display: none;
    }
    .nav-home-link {
        display: contents;
    }

    .navigation {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        border-radius: 20px;
        padding: 0px;
        box-shadow: 0 -4px 16px rgba(100, 128, 90, 0.28), 0 -1px 5px rgba(0, 0, 0, 0.10);
        position: fixed;
        z-index: 1000;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: auto;
        margin: 5px;
    }
    .navigation-menu{
        display: contents;
    }
    .navigation-login {
        display: contents;
    }
    .navigation-btn{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 16px;
        border-radius: 10px;
        border: none;
        padding: 10px 0px;
        color: white;
        cursor: pointer;
        width: 60px;
    }
    .navigation-btn:hover {
        color: #FF6347;
    }
    .navigation-menu a, .navigation-login a {
        text-decoration: none;
    }
    .navigation-logo{
        filter: brightness(0) invert(1);
        margin-right: 0px;
        width: 35px;
        margin-bottom: 3px;
    }
    /* Реквизиты и контакты */
    .footer-content{
        background-color: #64805A;
        color: white;
        margin: 5px;
        line-height: 1.5;
        border-radius: 10px 10px;
        border-top: none;
        box-shadow: 0 4px 16px rgba(100, 128, 90, 0.28), 0 1px 5px rgba(0, 0, 0, 0.10);
        position: fixed;
        z-index: 3000;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        padding: 10px;
    }
    .footer-brand,
    .footer-divider {
        display: none;
    }

    .footer-bottom {
        display: none;
    }

    .footer-content-item.active ~ .footer-bottom {
        display: flex;
        justify-content: center;
        border-top: none;
        padding: 8px 0 4px;
    }

    .footer-bottom-inner {
        justify-content: center;
        padding: 4px 10px;
    }

    .footer-bottom-inner > span {
        display: none;
    }

    .footer-contacts-label {
        display: none;
    }

    .footer-contacts .contact-item-message {
        width: 40px;
        padding: 0 8px;
    }

    .footer-left-group {
        flex: none;
        width: 100%;
    }
    .footer-content-item-adaptiv{
        position: absolute;
        z-index: 1000;
        top: 13px;
        right: 20px;
    }
    .footer-logo-open{
        display: flex;
        width: 30px;
        filter: brightness(0) invert(1);
        cursor: pointer;
    }
    .footer-menu {
        display: flex;
        align-items: center;
        font-size: 20px;
        gap: 10px;
        border-radius: 10px 10px 0 0;
    }
    .footer-menu.active {
        display: none;
    }

    .footer-menu-logo{
        display: flex;
        align-items: center;
        width: 35px;
        cursor: pointer;
    }
    
    .footer-menu-logo.active{
        display: none;
    }
    
    
    /* Реквизиты и контакты меню открыть */

    .footer-content-item{
        display: none;
        flex-direction: column;
    }
    .footer-logo-close{
        display: none;
        justify-content: space-between;
        width: 30px;
        filter: brightness(0) invert(1);
        cursor: pointer;
    }
    .footer-logo{
        width: 30px;
    }
    .contact-item-info{
        display: flex;
        align-items: center;
        text-decoration: none;
        color: white;
        font-size: 20px;
        margin-bottom: 20px;
    }
    .contact-item-info:hover{
        color: #FF6347;
    }
    .contact-item-message{
        filter: brightness(0) invert(1);
        padding-right: 10px;
        padding-top: 10px;
        width: 40px;
    }
    .contact-item-message:hover{
        filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(60deg);
    }
    .requisites-item{
        font-size: 15px;
        margin-top: 20px;
    }
    .requisites-item h1{
        font-size: 20px;
    }

    .footer-content-item.active{
        display: flex;
    }
    .footer-logo-close.active{
        display: flex;
    }
    .footer-logo-open.active{
        display: none;
    }
    .total-items-cart {
        font-size: 15px;
        padding: 5px;
        top: 3px;
        left: 0px;
        width: 15px;
        height: 15px;
    }
}
@media (max-width: 370px) {
    .navigation-btn{
        width: 65px;
        font-size: 18px;
    }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1220px;
    z-index: 9999;
    background-color: #2e2e2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    flex-wrap: wrap;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    box-sizing: border-box;
}
.cookie-banner__text {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.cookie-banner__link {
    color: #a8c99c;
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner__btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: 'Oswald', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cookie-banner__btn--accept {
    background-color: #64805A;
    color: #fff;
}
.cookie-banner__btn--accept:hover {
    background-color: #4f6647;
}
.cookie-banner__btn--details {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #ccc;
}
.cookie-banner__btn--details:hover {
    color: #fff;
    border-color: #fff;
}
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        bottom: 10px;
        border-radius: 16px;
    }
}
