*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}
form{
    display: flex;
    flex-direction: column;
    padding: 30px;
    margin: 240px auto;
    background: #6779649c;
    border-radius: 10px;
    max-width: 300px;

}
h2{
    color: #2e2a21;
    text-align: center;
}
input{
    
    margin: 7px;
    padding:7px;
    border: none;
    border-radius: 5px;
    background-color: rgb(247, 244, 240);
    outline: none;
}

textarea{
    margin-block: 5px;
    padding: 5px;
    border-radius: 5px;
    max-width: 326px;
    margin-left: 8px;
    outline: none;
    border: none;
    
}

label{
    color: #2e2a21;
    margin-block: 8px;
    padding-left: 10px;
}

button{
    margin: 5px;
    padding-block: 5px;
    max-width: 326px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    background-color: rgb(247, 244, 240);
    margin-left: 8px;
}
button a{
    color: #2e2a21;
}

form a{
    text-decoration: none;
    color: rgb(255, 255, 255);
    transition: 0.15s ease-in-out;
}
form a:hover{
    color: rgb(238, 234, 227);

}

form p{
    color: #2e2a21;
    margin-top: 5px;
    text-align: center;
}


header {
    flex-wrap: wrap;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background: #677964;
}

header a{
    text-decoration: none;
    color: rgb(255, 255, 255);
    margin-inline: 30px;
    font-size: 20px;
    transition: 0.15s ease-in-out;
}

header a:hover{
    color: rgb(238, 234, 227);
}

.logo{
    color: rgb(255, 255, 255);
    font-size: 20px;
    display: block;
}

.footer {
    background: #677964;
    color: rgb(255, 255, 255);
    margin-top: auto;
    padding: 40px 0 20px;
    flex-shrink: 0;
    width: 100%;
}

.footer .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin: 0 0 15px 0;
    color: rgb(255, 255, 255);
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    margin: 8px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.footer-section a {
    display: block;
    color: rgb(255, 255, 255);
    text-decoration: none;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: rgb(238, 234, 227);
}

.footer-bottom {
    border-top: 1px solid #2e2a21;
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 15px;
    }
}

/* Адаптивность шапки */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 10px;
        gap: 15px;
    }

    header a {
        margin-inline: 15px;
        font-size: 18px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 5px;
    }

    header a {
        margin-inline: 8px;
        font-size: 16px;
    }

    nav {
        gap: 8px;
    }

   
    header > a:first-child {
        font-size: 22px;
        font-weight: bold;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    header a {
        margin: 5px 0;
    }
}


/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #677964;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #dc3545;
}

/* Счетчик корзины */
.cart-counter {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
        text-align: center;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}