* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fef9f2; /* тёплый молочный */
    color: #4e3e3a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

header {
    background-color: #fae4d1;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6b4f3f;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #6b4f3f;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a5725c;
}

.account-dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #e7cfba;
    color: #4e3e3a;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
}

.dropdown-content a {
    color: #4e3e3a;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0e0d0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #fae4d1;
}

.account-dropdown:hover .dropdown-content {
    display: block;
}

.account-dropdown:hover .dropbtn {
    background-color: #dbbca5;
}

.slider {
    position: relative;
    max-width: 1000px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    display: none;
    width: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(250, 228, 209, 0.8);
    color: #4e3e3a;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(250, 228, 209, 0.7);
    color: #4e3e3a;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background-color: #fae4d1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff2e5;
    border-radius: 15px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #6b4f3f;
}

.features {
    margin-top: 40px;
}

.features h2 {
    text-align: center;
    margin-bottom: 30px;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    font-size: 1.2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    margin: 15px 0 5px;
    color: #6b4f3f;
}

.product-card p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #a5725c;
    margin-bottom: 15px;
}

.product-card button {
    background-color: #e7cfba;
    border: none;
    color: #4e3e3a;
    padding: 10px 25px;
    margin-bottom: 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.product-card button:hover {
    background-color: #dbbca5;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin: 20px 0;
    line-height: 1.6;
}

.auth-form {
    max-width: 400px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e7cfba;
    border-radius: 25px;
    font-size: 16px;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background-color: #e7cfba;
    color: #4e3e3a;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: #dbbca5;
}

.auth-form p {
    margin-top: 15px;
    text-align: center;
}

.error {
    background-color: #ffe0e0;
    color: #a33;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success {
    background-color: #e0ffe0;
    color: #3a6b3a;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    background-color: #fae4d1;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    color: #6b4f3f;
}
@media screen and (max-width: 1024px) {
    main {
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .feature-item {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .slider {
        max-width: 90%;
    }
    
    .slide img {
        height: 350px;
    }
}

@media screen and (max-width: 420px) {
    header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links li {
        width: auto;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .account-dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        width: 100%;
        right: auto;
    }
    
    .hero {
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .feature-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .feature-item {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    
    .slider {
        max-width: 100%;
        border-radius: 10px;
        margin: 20px auto;
    }
    
    .slide img {
        height: 200px;
    }
    
    .caption {
        bottom: 10px;
        left: 10px;
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .prev, .next {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card p {
        font-size: 1rem;
    }
    
    .product-card button {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .about-content {
        padding: 0 10px;
    }
    
    .about-content p {
        font-size: 0.9rem;
    }
    
    .about-content img {
        max-width: 100%;
        height: auto;
    }
    
    .auth-form {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .auth-form input {
        padding: 10px;
        font-size: 14px;
    }
    
    .auth-form button {
        padding: 10px;
        font-size: 16px;
    }
    
    .auth-form label {
        font-size: 14px;
    }
    
    .error, .success {
        font-size: 14px;
        padding: 8px;
        margin: 10px auto;
    }
    
    footer {
        padding: 15px;
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .slide img {
        height: 150px;
    }
    
    .caption {
        font-size: 10px;
        padding: 4px 8px;
    }
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cart-icon {
    font-size: 1.5rem;
    text-decoration: none;
    color: #6b4f3f;
    position: relative;
}
.bonus-badge {
    background: gold;
    color: #4e3e3a;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 5px;
}
.catalog-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}
.catalog-filters a {
    padding: 8px 20px;
    background: #e7cfba;
    border-radius: 30px;
    text-decoration: none;
    color: #4e3e3a;
}
.cart-items {
    background: white;
    border-radius: 15px;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.checkout-btn {
    display: inline-block;
    margin-top: 20px;
    background: #6b4f3f;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
}
.review-item {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.order-card {
    background: #fff2e5;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #6b4f3f;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #fae4d1 0%, #fff2e5 100%);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding: 80px 25px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        flex-direction: column;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 10px 0;
        border-bottom: 1px solid #dbbca5;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #dbbca5;
    }
    
    .cart-icon {
        font-size: 1.4rem;
    }
    
    .account-dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        background: rgba(255,255,255,0.9);
    }
    
    .dropdown-content a {
        padding: 10px 15px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .dropbtn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}
