:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --dark: #0f172a;
    --slate: #334155;
    --bg: #f8fafc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #1e293b;
    background: var(--bg);
    line-height: 1.6;
}

header {
    background: var(--dark);
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header a { color: #fff; text-decoration: none; }
.logo { font-size: 22px; font-weight: bold; letter-spacing: 0.5px; }
.container { max-width: 1140px; margin: 25px auto; padding: 0 20px; }

.hero-banner {
    background: #e0f2fe;
    border-left: 5px solid var(--primary);
    padding: 18px 24px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.content-card {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.price-box {
    display: flex;
    gap: 20px;
    background: #f1f5f9;
    padding: 18px 25px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}
.price-box div { flex: 1; }
.price-box strong { display: block; font-size: 13px; color: #64748b; text-transform: uppercase; }
.price-box span { font-size: 22px; font-weight: bold; color: var(--primary); }

.eeat-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}
.eeat-box h3 { margin-top: 0; color: var(--dark); font-size: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 15px; }
.step-item { background: #fff; padding: 15px; border-radius: 6px; border-left: 3px solid var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

.faq-section { margin-top: 30px; }
.faq-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.faq-question { padding: 15px 20px; font-weight: bold; cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 20px 15px; color: #475569; display: block; }

.related-section { margin-top: 35px; border-top: 2px solid #f1f5f9; padding-top: 25px; }
.related-heading { margin: 0; color: var(--slate); font-size: 18px; line-height: 1.35; }
.related-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.related-tags a { background: #f1f5f9; color: var(--slate); padding: 7px 14px; border-radius: 20px; text-decoration: none; font-size: 13px; border: 1px solid #cbd5e1; }
.related-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.scroll-top-btn {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: var(--slate);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    border: none;
    z-index: 99;
    transition: all 0.3s ease;
}
.scroll-top-btn:hover { background: var(--primary); }

.fab-contact-wrap { position: fixed; bottom: 25px; right: 25px; z-index: 100; }
.fab-main-btn {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(2,132,199,0.4);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}
.fab-main-btn:hover { transform: scale(1.05); }
.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 210px;
    padding: 8px 0;
    display: none;
    flex-direction: column;
}
.fab-menu a { padding: 10px 18px; color: var(--dark); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.fab-menu a:hover { background: #f1f5f9; color: var(--primary); }
.fab-menu.active { display: flex; }

footer { background: var(--dark); color: #94a3b8; text-align: center; padding: 30px 20px; margin-top: 50px; font-size: 14px; }
.page-content img { max-width: 100%; height: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a, .nav-toggle-link { display: block; padding: 10px 9px; text-decoration: none; color: #e2e8f0; font-weight: 700; font-size: 14px; border-radius: 8px; }
.nav-item > a:hover, .nav-toggle-link:hover { background: rgba(255,255,255,.10); color: #ffffff; }
.dropdown {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 7px;
    box-shadow: 0 16px 40px rgba(15,23,42,.14);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 11px; border-radius: 7px; color: #1e293b; text-decoration: none; font-size: 14px; font-weight: 650; }
.dropdown a:hover { background: #f1f5f9; color: #0369a1; }

.header-phone { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 800; line-height: 1.2; color: #ffffff; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.header-phone:hover { background: rgba(255, 255, 255, 0.10); }

.cart-nav-btn { background: #0284c7; color: #ffffff !important; border-radius: 8px; padding: 8px 14px !important; display: inline-flex; align-items: center; gap: 6px; font-weight: bold; }
.cart-nav-btn:hover { background: #0369a1 !important; }
.cart-badge { background: #ef4444; color: #fff; font-size: 11px; font-weight: 900; padding: 2px 6px; border-radius: 999px; line-height: 1; }

.mobile-nav-btn { display: none; border: 0; background: #f1f5f9; padding: 9px 11px; border-radius: 8px; font-size: 20px; cursor: pointer; }
.home-nav-section { margin: 34px 0 8px; }
.home-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.home-link-card { display: block; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; text-decoration: none; color: #0f172a; background: #fff; transition: .18s ease; }
.home-link-card:hover { transform: translateY(-2px); border-color: #94a3b8; box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.home-link-card strong { display: block; font-size: 17px; margin-bottom: 6px; }
.home-link-card span { color: #64748b; font-size: 14px; line-height: 1.45; }
.home-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.home-chip-grid a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 14px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; font-weight: 700; text-decoration: none; }
.home-chip-grid a:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.home-contact-strip { margin-top: 32px; padding: 20px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.home-contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-contact-actions a { text-decoration: none; font-weight: 800; padding: 10px 14px; border-radius: 9px; background: #fff; border: 1px solid #cbd5e1; color: #0f172a; }

/* Каталог и карточки товаров */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; padding: 15px; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.product-thumb { aspect-ratio: 4/3; background: #f8fafc; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; text-decoration: none; }
.product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; color: #0f172a; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.product-title:hover { color: var(--primary); }
.product-price { font-size: 20px; font-weight: 900; color: var(--primary); }
.btn-buy { background: #0284c7; color: #fff; border: 0; padding: 8px 16px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: background .15s; }
.btn-buy:hover { background: #0369a1; }

/* Одиночный товар */
.single-product-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 35px; margin-bottom: 30px; }
.single-product-gallery { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-height: 480px; }
.single-product-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.single-product-side { display: flex; flex-direction: column; }
.single-price-tag { font-size: 32px; font-weight: 900; color: #0f172a; margin: 15px 0 20px; }
.badge-stock { display: inline-block; padding: 4px 10px; background: #dcfce7; color: #166534; font-size: 13px; font-weight: bold; border-radius: 6px; width: fit-content; }

/* Хлебные крошки */
.breadcrumbs { margin: 18px 0 12px; font-size: 14px; color: #64748b; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: #94a3b8; font-weight: 700; }
.breadcrumbs a { color: #475569; text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #0f172a; font-weight: 650; }

/* Google Reviews */
.google-reviews-block { margin: 36px 0 10px; padding: 24px; border: 1px solid #e2e8f0; border-radius: 18px; background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%); }
.google-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.google-reviews-title { margin: 0 0 6px; font-size: 24px; }
.google-rating-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.google-rating-number { font-size: 36px; line-height: 1; font-weight: 900; color: #0f172a; }
.google-stars { font-size: 22px; letter-spacing: 2px; color: #f59e0b; line-height: 1; }
.google-reviews-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.google-reviews-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; border-radius: 10px; border: 1px solid #cbd5e1; text-decoration: none; font-weight: 800; color: #0f172a; background: #fff; }
.google-reviews-actions .primary-review-btn { background: #0f172a; color: #fff; border-color: #0f172a; }

@media (max-width: 1050px) {
    .mobile-nav-btn { display: block; }
    .site-nav { display: none; position: fixed; top: 68px; left: 12px; right: 12px; bottom: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; box-shadow: 0 16px 40px rgba(15,23,42,.14); z-index: 1000; overflow-y: auto; }
    .site-nav.open { display: block; }
    body.mobile-menu-open { overflow: hidden; }
    .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 14px; }
    .header-phone { display: none; }
    .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .single-product-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .home-card-grid { grid-template-columns: 1fr; }
    .home-contact-strip { flex-direction: column; align-items: flex-start; }
}