/* ===== ОБНУЛЕНИЕ И БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #f7fafc;
}

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

/* ===== ШАПКА ===== */
header {
    background: #1a365d;
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.logo img {
    max-height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #d69e2e;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero p strong {
    color: #d69e2e;
}

.hero::after {
    content: '🍯';
    position: absolute;
    right: 5%;
    bottom: 10%;
    font-size: 120px;
    opacity: 0.08;
    transform: rotate(-15deg);
}

.btn-primary {
    display: inline-block;
    background: #d69e2e;
    color: #1a202c;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(214, 158, 46, 0.4);
}

.btn-primary:hover {
    background: #ecc94b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 158, 46, 0.5);
}

/* ===== КАТАЛОГ С ФОНОМ ===== */
.catalog {
    padding: 60px 0;
    background: #fcf9f0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(214, 158, 46, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(214, 158, 46, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(45deg, 
            rgba(214, 158, 46, 0.02) 0px, 
            rgba(214, 158, 46, 0.02) 20px,
            rgba(214, 158, 46, 0.01) 20px, 
            rgba(214, 158, 46, 0.01) 40px);
    position: relative;
}

.catalog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10 L90 28 L90 64 L60 82 L30 64 L30 28 Z' fill='none' stroke='%23d69e2e' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M60 82 L90 100 L90 118 L60 100 L30 118 L30 100 Z' fill='none' stroke='%23d69e2e' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M0 28 L30 10 L60 28 L30 46 Z' fill='none' stroke='%23d69e2e' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M60 28 L90 10 L120 28 L90 46 Z' fill='none' stroke='%23d69e2e' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M0 64 L30 46 L60 64 L30 82 Z' fill='none' stroke='%23d69e2e' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M60 64 L90 46 L120 64 L90 82 Z' fill='none' stroke='%23d69e2e' stroke-width='0.8' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.catalog .container {
    position: relative;
    z-index: 1;
}

.catalog h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 40px;
    position: relative;
}

.catalog h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #d69e2e;
    margin: 10px auto 0;
    border-radius: 4px;
}

/* ===== КАРТОЧКИ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    min-height: 400px;
}

.product-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(214, 158, 46, 0.15);
}

.product-card:hover {
    background: #ffffff;
    border-color: rgba(214, 158, 46, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(26, 54, 93, 0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #edf2f7;
}

.product-card .info {
    padding: 18px 20px 22px;
}

.product-card h3 {
    font-size: 1.05rem;
    color: #1a365d;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-card .price {
    font-weight: 700;
    color: #d69e2e;
    font-size: 1.2rem;
}

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-detail {
    padding: 50px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.product-image {
    position: relative;
}

#product-image {
    width: 100%;
    border-radius: 12px;
    background: #edf2f7;
    cursor: pointer;
    transition: opacity 0.2s;
}

#product-image:hover {
    opacity: 0.9;
}

/* ===== ГАЛЕРЕЯ ФОТО (ПРЕВ'Ю) ===== */
#product-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    background: #edf2f7;
}

.thumb-image:hover {
    transform: scale(1.05);
    border-color: #d69e2e;
}

.thumb-image.active {
    border-color: #d69e2e;
    box-shadow: 0 0 0 2px rgba(214, 158, 46, 0.3);
}

/* ===== КНОПКА ЗАКАЗА РЯДОМ С ЦЕНОЙ ===== */
.product-price-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0 20px;
    padding: 16px 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.product-price-order .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d69e2e;
    margin: 0;
}

.product-price-order .btn-order {
    background: #d69e2e;
    color: #1a202c;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.product-price-order .btn-order:hover {
    background: #ecc94b;
    transform: scale(1.03);
}

.product-info > .btn-order {
    display: none;
}

/* ===== ВИДЕО ===== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    padding: 60px 0;
}

.contacts h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contacts form input,
.contacts form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contacts form input:focus,
.contacts form textarea:focus {
    outline: none;
    border-color: #d69e2e;
}

.contacts form button {
    width: 100%;
    padding: 14px;
    background: #1a365d;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.contacts form button:hover {
    background: #2b6cb0;
}

/* ===== ФУТЕР ===== */
footer {
    background: #1a365d;
    color: #e2e8f0;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer a {
    color: #d69e2e;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 16px;
    }

    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-detail-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
        min-height: 300px;
    }

    .product-card img {
        height: 140px;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .catalog h2 {
        font-size: 1.8rem;
    }

    .product-price-order {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .product-price-order .btn-order {
        width: 100%;
    }

    .thumb-image {
        width: 48px;
        height: 48px;
    }
    #product-thumbs {
        gap: 6px;
        margin-top: 8px;
    }
}
