/* ==========================================================================
   Фирменный стиль Riki Home Systems & Portal (Expanded Version 2026)
   ========================================================================== */

:root {
    --primary: #157FFB;
    --primary-hover: #0c69d6;
    --dark: #2F2F33;
    --dark-muted: #475569;
    --bg-white: #FFFFFF;
    --bg-card: #F5F7FA;
    --bg-light-blue: #F0F7FF;
    --accent-light: #EAF4FF;
    --green: #2DBE60;
    --green-dark: #16a34a;
    --orange: #FF9500;
    --purple: #7c3aed;
    --red: #dc2626;
    
    --shadow-sm: 0 4px 12px rgba(47, 47, 51, 0.04);
    --shadow-md: 0 10px 30px rgba(47, 47, 51, 0.08);
    --shadow-lg: 0 20px 40px rgba(21, 127, 251, 0.12);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #FAFBFD;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

/* ==========================================================================
   Шапка (Header) и КРУПНЫЙ ЛОГОТИП
   ========================================================================== */
.main-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1240px;
    z-index: 1000;
    padding: 8px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(21, 127, 251, 0.18);
    box-shadow: 0 8px 24px rgba(47, 47, 51, 0.08);
    display: flex;
    align-items: center;
}

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

.logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ВЫРАЗИТЕЛЬНЫЙ И КРУПНЫЙ ЛОГОТИП */
.site-logo {
    height: 75px;
    max-height: 75px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

.logo-text-fallback {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-badge-warranty {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--accent-light);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid rgba(21, 127, 251, 0.2);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.btn-top-wa {
    background: var(--green);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(45, 190, 96, 0.25);
}

.btn-top-wa:hover {
    background: var(--green-dark);
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ==========================================================================
   Главный Баннер / Hero Feature
   ========================================================================== */
.blog-hero {
    padding: 145px 0 40px;
}

.featured-post-card {
    background: var(--bg-white);
    border-radius: 28px;
    border: 1px solid rgba(21, 127, 251, 0.12);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.featured-img-box {
    position: relative;
    min-height: 380px;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.featured-content {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--dark-muted);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 15px;
    font-weight: 800;
}

.featured-excerpt {
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.featured-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(21, 127, 251, 0.25);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-wa-hero {
    background: var(--bg-white);
    color: var(--green);
    border: 1px solid rgba(45, 190, 96, 0.4);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-wa-hero:hover {
    background: #f0fdf4;
}

/* ==========================================================================
   Каталог и Карточки Товаров
   ========================================================================== */
.catalog-section {
    padding: 50px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 90px;
}

.catalog-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.catalog-header-box h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.catalog-header-box p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.warranty-pill {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bbf7d0;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 30px;
    align-items: start;
}

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

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    position: relative;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.07);
    border-color: #cbd5e1;
}

/* Контейнер для всех бейджей на товаре */
.badges-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    z-index: 5;
    pointer-events: none;
}

/* Оптимальный чёткий размер для картинок Kaspi */
.badge-img-kaspi {
    height: 32px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.badge-pill {
    font-size: 10.5px;
    font-weight: 800;
    color: #fff;
    padding: 4px 9px;
    border-radius: 5px;
    text-transform: uppercase;
    line-height: 1.2;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.badge-pill.novinka { background: #e11d48; }
.badge-pill.lider { background: #d97706; }
.badge-pill.spec { background: #dc2626; }
.badge-pill.kaspi-red-text { background: #f82836; }
.badge-pill.kaspi-orange-text { background: #f59e0b; }

.product-img-box {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.05);
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 36px;
}

.product-price-box {
    margin-bottom: 12px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

.btn-buy {
    width: 100%;
    padding: 9px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-buy:hover {
    background: var(--primary-hover);
}

/* Фильтр справа */
.filter-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-subtitle {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 15px;
}

.price-inputs input {
    width: 50%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.price-inputs input:focus {
    border-color: var(--primary);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-filter-apply {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-fast);
}

.btn-filter-apply:hover { background: #1d4ed8; }

.btn-filter-reset {
    background: transparent;
    color: #64748b;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

/* Дерево категорий */
.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-item {
    margin-bottom: 4px;
}

.category-link {
    display: block;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.category-link:hover, .category-link.active {
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 600;
}

.cat-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 6px;
}

.cat-parent-row:hover {
    background: #f1f5f9;
}

.cat-parent-row .category-link {
    flex: 1;
}

.sub-toggle-icon {
    padding: 8px 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.has-sub.open .sub-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.sub-cat-list {
    list-style: none;
    padding-left: 18px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: var(--transition-normal);
}

.has-sub.open .sub-cat-list {
    max-height: 200px;
    opacity: 1;
    margin-top: 4px;
    margin-bottom: 4px;
}

.sub-cat-item .category-link {
    font-size: 12.5px;
    padding: 6px 10px;
    color: #475569;
}

/* ==========================================================================
   Секция Портфолио
   ========================================================================== */
.portfolio-section {
    padding: 60px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 90px;
}

.section-title-box {
    margin-bottom: 35px;
    text-align: center;
}

.section-title-box h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-title-box p {
    color: #64748b;
    font-size: 15px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-img-box {
    position: relative;
    height: 220px;
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-badge-city {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.portfolio-content {
    padding: 22px;
}

.portfolio-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.portfolio-content h3 {
    font-size: 17px;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
    font-weight: 700;
}

.portfolio-content p {
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 15px;
}

.portfolio-meta-list {
    font-size: 12.5px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ==========================================================================
   Навигация Блога и Карточки Статей
   ========================================================================== */
.category-nav-bar {
    padding: 10px 0 30px;
    scroll-margin-top: 90px;
}

.category-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.chip {
    background: var(--bg-white);
    border: 1px solid rgba(21, 127, 251, 0.15);
    color: var(--dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.chip.active, .chip:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

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

.articles-feed {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid rgba(21, 127, 251, 0.1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    position: relative;
    height: 100%;
    min-height: 220px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--bg-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.card-badge.orange { background: var(--orange); }
.card-badge.green { background: var(--green); }

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.blog-card-content h2 {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card-content h2 a {
    color: var(--primary);
    text-decoration: none;
}

.blog-card-content p {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.55;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(47, 47, 51, 0.06);
}

.read-more-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #0c61c9 100%);
    border-radius: 24px;
    padding: 40px;
    color: var(--bg-white);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-icon {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.blog-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 10px;
}

.blog-cta-box p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px;
}

/* ==========================================================================
   Sidebar Виджеты & Консультация
   ========================================================================== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(21, 127, 251, 0.1);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
}

.widget-sub {
    font-size: 12.5px;
    color: var(--dark);
    opacity: 0.7;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(21, 127, 251, 0.2);
    font-size: 13px;
    outline: none;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.wa-direct-widget {
    background: #EAFCEB;
    border-color: rgba(45, 190, 96, 0.3);
    text-align: center;
}

.wa-icon-large {
    font-size: 42px;
    color: var(--green);
    margin-bottom: 10px;
}

.success-alert {
    display: none;
    text-align: center;
    background: #EAFCEB;
    padding: 20px;
    border-radius: 12px;
    color: var(--green);
}

/* ==========================================================================
   Модальное Окно Просмотра Товара
   ========================================================================== */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    border-radius: 24px;
    position: relative;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

.modal-gallery .main-img-box {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.modal-gallery .main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbs-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.thumbs-list img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}

.thumbs-list img.active {
    border-color: var(--primary);
}

.modal-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.modal-badges .badge-img-kaspi {
    height: 36px;
}

.modal-product-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.modal-price-row {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.modal-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.modal-old-price {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
}

.modal-description {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-specs-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 8px;
}

.modal-specs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #334155;
}

.btn-wa-modal {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    background: #22c55e;
}

.btn-wa-modal:hover {
    background: #16a34a;
}

/* ==========================================================================
   Подвал и Чат
   ========================================================================== */
.site-footer {
    background: var(--dark);
    color: var(--bg-white);
    padding: 60px 0 25px;
}

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

.footer-logo { height: 60px; margin-bottom: 12px; }
.footer-brand p { font-size: 12.5px; opacity: 0.7; }
.footer-col h4 { font-family: var(--font-heading); font-size: 15px; margin-bottom: 15px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: white; opacity: 0.7; text-decoration: none; font-size: 13px; }
.footer-info { font-size: 13px; opacity: 0.7; margin-bottom: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; opacity: 0.5; }

.floating-chat-container { position: fixed; bottom: 25px; right: 25px; z-index: 9999; }
.floating-whatsapp-trigger { width: 56px; height: 56px; background: var(--green); border-radius: 50%; border: none; color: white; font-size: 28px; cursor: pointer; box-shadow: 0 8px 20px rgba(45, 190, 96, 0.4); display: flex; align-items: center; justify-content: center; }
.chat-window { position: absolute; bottom: 70px; right: 0; width: 300px; background: white; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid rgba(21, 127, 251, 0.1); opacity: 0; visibility: hidden; transition: all 0.3s; }
.chat-window.active { opacity: 1; visibility: visible; }
.chat-header { background: var(--primary); color: white; padding: 12px 15px; border-radius: 17px 17px 0 0; display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 30px; height: 30px; background: white; border-radius: 50%; padding: 2px; }
.chat-status-info h5 { font-size: 13px; margin: 0; }
.status-online { font-size: 10px; }
.close-chat-btn { position: absolute; right: 12px; background: none; border: none; color: white; font-size: 18px; cursor: pointer; }
.chat-body { padding: 15px; background: var(--bg-card); font-size: 12.5px; }
.chat-footer { padding: 12px; }
.chat-send-btn { background: var(--green); color: white; padding: 8px; border-radius: 15px; display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: 12px; }

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 992px) {
    .site-logo { height: 55px; max-height: 55px; }
    .blog-hero { padding-top: 125px; }
    .featured-post-card, .blog-card, .blog-grid, .catalog-layout { grid-template-columns: 1fr; }
    .featured-img-box { min-height: 240px; }
    .featured-content, .blog-card-content { padding: 25px; }
    .footer-top { grid-template-columns: 1fr; gap: 25px; }
    .nav-menu { position: absolute; top: 70px; left: 0; width: 100%; background: white; padding: 20px; border-radius: 16px; box-shadow: var(--shadow-md); display: none; }
    .nav-menu.mobile-active { display: block; }
    .nav-menu ul { flex-direction: column; gap: 12px; }
    .mobile-toggle-btn { display: block; }
    .header-phone span { display: none; }
    .header-badge-warranty { display: none; }
}

@media (max-width: 768px) {
    .modal-body-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .featured-title { font-size: 22px; }
    .btn-primary, .btn-wa-hero { width: 100%; justify-content: center; }
}