/* --- Сброс стилей --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Topbar --- */
.topbar {
    background-color: #f8f3f0;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #5a3b21;
}

/* --- Header --- */
.header {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
}

/* --- Hero Section --- */
.hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 5%;
}

.hero-content {
    background: rgba(248, 243, 240, 0.8);
    padding: 30px;
    max-width: 400px;
}

.hero-content h2 {
    color: #5a3b21;
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-content p {
    color: #5a3b21;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #5a3b21;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --- Welcome Text --- */
.welcome-text {
    text-align: center;
    padding: 60px 20px;
    background: #f8f3f0;
    margin: 40px auto;
}

.welcome-text h2 {
    margin-bottom: 20px;
}

/* --- Categories --- */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.category-info h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-small {
    background: #b1b1b1;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
}

/* --- Parallax --- */
.parallax {
    height: 400px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    margin: 60px 0;
}

/* --- Products --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    letter-spacing: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    text-align: center;
    position: relative;
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    transition: opacity 0.3s;
}

.product-card img:hover {
    opacity: 0.8;
}

.product-card h4 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 5px;
}

.product-card p {
    color: #5a3b21;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
}

/* --- Info Columns --- */
.info-columns {
    background: #f8f3f0;
    padding: 60px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.info-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.info-card h4 {
    color: #8d6544;
    margin-bottom: 10px;
}

.info-card p {
    color: #8d6544;
    font-size: 14px;
    margin-bottom: 15px;
}

.info-card a {
    text-decoration: underline;
    color: #8d6544;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

.grid-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.newsletter {
    display: flex;
    margin-bottom: 20px;
}

.newsletter input {
    padding: 10px;
    border: 1px solid #ccc;
    flex-grow: 1;
}

.newsletter button {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.social-icons a {
    font-size: 20px;
    margin-right: 15px;
    color: #000;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

/* --- Адаптивность (Mobile) --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none; /* Скрываем по умолчанию на мобильных */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .categories, .products-grid, .grid-3, .grid-footer {
        grid-template-columns: 1fr;
    }

    .parallax {
        background-attachment: scroll; /* Убираем баги iOS с parallax */
    }
}