/* ============================================================
   СИЛА КОМПОЗИТА — Основные стили
   ============================================================ */

/* ===== БАЗОВЫЕ ПРАВИЛА ===== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 0 !important;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================================
   КАСТОМНЫЕ СТИЛИ САЙТА
   ============================================================ */
:root {
    --primary-color: #1a472a;
    --secondary-color: #c8a951;
    --dark-color: #0d2818;
    --phone-color: #25d366;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

main {
    padding-bottom: 0;
}

/* ===== ВЕРХНИЙ БАННЕР ===== */
.top-banner {
    background: linear-gradient(90deg, #c8a951, #b8943a);
    color: #0d2818;
    font-size: 0.9rem;
    padding: 6px 0;
    font-weight: 500;
}

    .top-banner i {
        margin-right: 6px;
    }

.top-banner-phone {
    color: #0d2818;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

    .top-banner-phone:hover {
        color: #1a472a;
        text-decoration: underline;
    }

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    margin-right: 12px;
}

    .navbar-brand img {
        margin-right: 8px;
    }

.nav-link {
    color: white !important;
    transition: all 0.3s;
    padding: 8px 7px !important;
    font-size: 0.85rem;
    white-space: nowrap;
}

    .nav-link:hover {
        color: var(--secondary-color) !important;
        transform: translateY(-2px);
    }

    .nav-link i {
        margin-right: 3px;
    }

/* ===== КНОПКА ТЕЛЕФОНА В ХЕДЕРЕ ===== */
.header-phone-btn {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: white !important;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 8px;
}

    .header-phone-btn:hover {
        transform: scale(1.05);
        color: white;
        box-shadow: 0 5px 18px rgba(37, 211, 102, 0.6);
    }

    .header-phone-btn i {
        font-size: 0.85rem;
    }

/* ===== КНОПКИ ===== */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

    .btn-primary:hover {
        background-color: #b8943a;
        border-color: #b8943a;
    }

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 40px 20px;
    margin-bottom: 30px;
}

    .hero-section h1 {
        font-size: 1.8rem;
    }

/* ===== КАРТОЧКИ ТОВАРОВ ===== */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .product-card .card-body {
        display: flex;
        flex-direction: column;
    }

    .product-card .card-title {
        font-size: 0.95rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }

.price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    margin-bottom: 0 !important;
}

    .footer .footer-contacts {
        color: #e9ecef;
    }

        .footer .footer-contacts a {
            color: #ffffff;
            text-decoration: none;
        }

            .footer .footer-contacts a:hover {
                color: var(--secondary-color);
            }

    .footer .footer-hours {
        color: #e9ecef;
        font-size: 0.9rem;
    }

    .footer .footer-legal {
        color: #e9ecef;
        font-size: 0.85rem;
        line-height: 1.5;
    }

/* ===== КОРЗИНА ===== */
.cart-badge {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
}

.cart-item-total {
    font-weight: bold;
    color: var(--primary-color);
}

.modal-cart {
    max-width: 800px;
}

.delivery-option {
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .delivery-option:hover {
        transform: translateY(-3px);
    }

    .delivery-option.selected {
        border-color: var(--secondary-color);
        background-color: #f8f9ea;
    }

/* ===== FLOAT-CART (плавающая корзина слева) ===== */
.float-cart {
    position: fixed;
    bottom: 100px;
    left: 30px;
    right: auto;
    z-index: 9998;
    background: linear-gradient(135deg, #1a472a, #0d2818);
    color: white;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 28px;
    box-shadow: 0 4px 25px rgba(26, 71, 42, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: floatCartIn 0.5s ease;
}

    .float-cart:hover {
        transform: scale(1.1) rotate(-5deg);
        box-shadow: 0 6px 35px rgba(26, 71, 42, 0.7);
        color: #c8a951;
    }

    .float-cart .float-cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        font-size: 14px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: badgePop 0.5s ease;
    }

    .float-cart .float-cart-label {
        position: absolute;
        bottom: -30px;
        font-size: 12px;
        font-weight: normal;
        color: #1a472a;
        background: white;
        padding: 2px 12px;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        white-space: nowrap;
    }

@keyframes floatCartIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== ПЛАВАЮЩИЕ КНОПКИ СВЯЗИ (справа) ===== */
.float-contact-stack {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: none;
}

    .float-btn:hover {
        transform: scale(1.12);
        color: white;
        box-shadow: 0 6px 25px rgba(0,0,0,0.35);
        z-index: 1;
    }

.float-btn-label {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.float-btn:hover .float-btn-label {
    opacity: 1;
}

.float-btn-phone {
    background: linear-gradient(135deg, #25d366, #1da851);
    animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 4px 40px rgba(37, 211, 102, 0.9);
    }

    100% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
    }
}

.float-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

    .float-btn-whatsapp:hover {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
    }

.float-btn-viber {
    background: linear-gradient(135deg, #7360f2, #5a47c9);
}

    .float-btn-viber:hover {
        box-shadow: 0 6px 30px rgba(115, 96, 242, 0.7);
    }

.float-btn-telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

    .float-btn-telegram:hover {
        box-shadow: 0 6px 30px rgba(0, 136, 204, 0.7);
    }

/* ===== БАННЕР С ВОПРОСОМ ===== */
.question-banner {
    background: linear-gradient(135deg, #1a472a, #0d2818);
    border-radius: 16px;
    padding: 25px 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

    .question-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 300px;
        height: 300px;
        background: rgba(200, 169, 81, 0.1);
        border-radius: 50%;
    }

    .question-banner .btn-phone-banner {
        background: #25d366;
        color: white;
        border: none;
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: bold;
        transition: all 0.3s;
        text-decoration: none;
        display: inline-block;
    }

        .question-banner .btn-phone-banner:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
            color: white;
        }

    .question-banner .btn-support-banner {
        background: #c8a951;
        color: #0d2818;
        border: none;
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: bold;
        transition: all 0.3s;
        text-decoration: none;
        display: inline-block;
    }

        .question-banner .btn-support-banner:hover {
            transform: scale(1.05);
            color: #0d2818;
        }

/* ===== КОРЗИНА / БЕЙДЖИ ===== */
#addressSelect {
    cursor: pointer;
}

.cart-item-type-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.cart-item-details {
    font-size: 0.8rem;
    color: #495057;
}

.cart-pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== HOVER-КАРТОЧКИ ===== */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .hover-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }

.hover-card-small {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .hover-card-small:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        background: #f8f9fa;
    }

/* ===== СОЦ-ИКОНКИ В ФУТЕРЕ ===== */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    margin-right: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

    .footer-social a:hover {
        transform: scale(1.1);
        color: white;
    }

.footer-social .s-viber {
    background: linear-gradient(135deg, #7360f2, #5a47c9);
}

.footer-social .s-telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.footer-social .s-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.footer-social .s-phone {
    background: linear-gradient(135deg, #25d366, #1da851);
}

/* ============================================================
   КАРТИНКИ — жёсткие пропорции, БЕЗ flex (иначе белые полосы)
   ============================================================ */
.square-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    background: #e9ecef !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 12px 12px 0 0;
}

    .square-img-wrap img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        background: transparent !important;
    }

.article-card-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: #e9ecef !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 16px 16px 0 0;
}

    .article-card-img-wrap img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        background: transparent !important;
    }

.article-hero-img {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: #e9ecef !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 12px;
    margin-bottom: 20px;
}

    .article-hero-img img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }

.related-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: #e9ecef !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 8px;
    margin-bottom: 8px;
}

    .related-img-wrap img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }

.application-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: #e9ecef !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 8px;
    margin-bottom: 8px;
}

    .application-img-wrap img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

/* ============================================================
   ФИЛЬТРЫ КАТАЛОГА
   ============================================================ */
.type-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 25px;
    border: 2px solid #dee2e6;
    background: white;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

    .type-filter-btn:hover {
        border-color: #1a472a;
        color: #1a472a;
    }

    .type-filter-btn.active {
        background: linear-gradient(135deg, #1a472a, #0d2818);
        color: white;
        border-color: #1a472a;
    }

.diameter-chip, .lt-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid #dee2e6;
    background: white;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

    .diameter-chip:hover, .lt-chip:hover {
        border-color: #1a472a;
        color: #1a472a;
    }

    .diameter-chip.active, .lt-chip.active {
        background: #1a472a;
        color: white;
        border-color: #1a472a;
    }

/* ============================================================
   СЕКЦИИ КАТАЛОГА
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-title {
    color: #1a472a;
    font-weight: 700;
    font-size: 1.5rem;
}

.section-subtitle {
    color: #495057;
    font-size: 0.9rem;
}

.section-count {
    margin-left: auto;
    background: #e9ecef;
    color: #495057;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* ============================================================
   ГЛАВНАЯ — блоки
   ============================================================ */
.hero-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

    .hero-quick-link:hover {
        background: white;
        color: #1a472a;
        border-color: white;
    }

.btn-phone-hero {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s;
}

    .btn-phone-hero:hover {
        background: linear-gradient(135deg, #1da851, #128c7e);
        color: white;
        transform: scale(1.05);
    }

.callback-card {
    border-left: 5px solid #25d366;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #c8a951, #b8943a);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #1a472a, #0d2818);
}

.replacement-link {
    display: inline-block;
    color: #1a472a;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f5e9, #d4edda);
    border: 1px solid #c3e6cb;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

    .replacement-link:hover {
        background: linear-gradient(135deg, #1a472a, #0d2818);
        color: white;
        transform: translateY(-2px);
    }

.text-decoration-line-through {
    text-decoration: line-through;
}

.partner-block {
    border-left: 5px solid #c8a951;
}

.garden-block {
    border-left: 5px solid #1a472a;
}

.accordion-button {
    color: #1a472a;
    background: white;
}

    .accordion-button:not(.collapsed) {
        color: #1a472a;
        background: #e8f5e9;
        box-shadow: none;
    }

    .accordion-button:focus {
        box-shadow: none;
    }

.accordion-item {
    border: 1px solid #dee2e6 !important;
    overflow: hidden;
}

/* ============================================================
   ДЕТАЛИ ТОВАРА
   ============================================================ */
.option-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: #333;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .option-btn:hover {
        border-color: #1a472a;
        color: #1a472a;
    }

    .option-btn.active {
        background: linear-gradient(135deg, #1a472a, #0d2818);
        color: white;
        border-color: #1a472a;
        box-shadow: 0 4px 12px rgba(26, 71, 42, 0.3);
    }

.color-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

.color-natural {
    background: linear-gradient(135deg, #f5e6a8, #e8d47a);
}

.color-green {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.qty-control-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qty-step-btn {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #1a472a;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 52px;
}

    .qty-step-btn:hover {
        background: #1a472a;
        color: white;
        border-color: #1a472a;
    }

.qty-input-custom {
    flex: 1 1 200px;
    min-width: 180px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    border: 2px solid #1a472a;
    background: white;
    color: #1a472a;
    border-radius: 10px;
    padding: 10px 14px;
}

    .qty-input-custom::placeholder {
        font-size: 0.95rem;
        color: #999;
        font-weight: normal;
    }

    .qty-input-custom:focus {
        outline: none;
        border-color: #25d366;
        box-shadow: 0 0 0 0.25rem rgba(37, 211, 102, 0.25);
    }

.total-price-box {
    background: linear-gradient(135deg, #1a472a, #0d2818);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 71, 42, 0.3);
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #c8a951, #b8943a);
    color: #0d2818;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(200, 169, 81, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .btn-add-to-cart:hover {
        background: linear-gradient(135deg, #d4b95e, #c8a951);
        color: #0d2818;
        transform: translateY(-2px);
    }

.btn-added-pulse {
    animation: btnPulse 0.8s ease;
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #25d366, #1da851);
        color: white;
    }

    60% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

.add-to-cart-static {
    position: relative;
}

.description-content {
    font-size: 1rem;
    line-height: 1.6;
    padding: 15px;
}

    .description-content h4 {
        color: #1a472a;
        margin-top: 1rem;
    }

    .description-content h5 {
        color: #1a472a;
        margin-top: 1.2rem;
        font-weight: 600;
    }

    .description-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }

        .description-content table td,
        .description-content table th {
            border: 1px solid #ddd;
            padding: 8px;
        }

        .description-content table th {
            background-color: #1a472a;
            color: white;
        }

        .description-content table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

/* ============================================================
   СТАТЬИ
   ============================================================ */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

    .article-content h2 {
        color: #1a472a;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
        font-size: 1.8rem;
        padding-bottom: 0.5rem;
        border-bottom: 3px solid #1a472a;
    }

    .article-content h3 {
        color: #1a472a;
        margin-top: 1.8rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
        font-size: 1.4rem;
    }

    .article-content h4 {
        color: #1a472a;
        margin-top: 1.2rem;
        margin-bottom: 0.6rem;
        font-weight: 600;
    }

    .article-content ul, .article-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .article-content li {
        margin-bottom: 0.4rem;
    }

    .article-content p {
        margin-bottom: 1.2rem;
    }

    .article-content img {
        max-width: 100%;
        border-radius: 8px;
        margin: 1.5rem 0;
    }

    .article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        border-radius: 8px;
        overflow: hidden;
    }

        .article-content table th,
        .article-content table td {
            border: 1px solid #dee2e6;
            padding: 10px 14px;
        }

        .article-content table th {
            background-color: #1a472a;
            color: white;
            font-weight: 600;
        }

        .article-content table tr:nth-child(even) {
            background-color: #f8f9fa;
        }

.hover-bg-light:hover {
    background-color: #f8f9fa;
}

.rounded-4 {
    border-radius: 16px !important;
}

.rounded-top-4 {
    border-radius: 16px 16px 0 0 !important;
}

/* ============================================================
   БЕЙДЖ КАТЕГОРИИ (яркий зелёный)
   ============================================================ */
.badge-category {
    background: #198754 !important;
    color: white !important;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

/* ============================================================
   ПАРТНЁРЫ, ПРИВАТНОСТЬ, КОНТАКТЫ
   ============================================================ */
.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .partner-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }

.privacy-content {
    line-height: 1.7;
    color: #333;
}

    .privacy-content h2 {
        color: #1a472a;
        font-size: 1.3rem;
        font-weight: 700;
        margin-top: 2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.4rem;
        border-bottom: 2px solid #e8f5e9;
    }

        .privacy-content h2:first-of-type {
            margin-top: 0;
        }

    .privacy-content p {
        margin-bottom: 1rem;
    }

    .privacy-content ul {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .privacy-content li {
        margin-bottom: 0.4rem;
    }

    .privacy-content a {
        color: #1a472a;
        text-decoration: none;
    }

        .privacy-content a:hover {
            text-decoration: underline;
        }

/* ============================================================
   МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   ============================================================ */

/* Планшет */
@media (max-width: 991px) {
    .float-cart {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 85px;
        left: 20px;
        right: auto;
        background: linear-gradient(135deg, #25d366, #1a472a) !important;
        color: white !important;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
        border: 2px solid white !important;
    }

        .float-cart .float-cart-badge {
            width: 24px;
            height: 24px;
            font-size: 13px;
            font-weight: bold;
            top: -4px;
            right: -4px;
            background: #dc3545 !important;
            border: 2px solid white !important;
        }

        .float-cart .float-cart-label {
            font-size: 10px;
            bottom: -25px;
            padding: 1px 10px;
        }
}

/* Мобильный */
@media (max-width: 576px) {
    .container, .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .row {
        --bs-gutter-x: 0.75rem;
    }

    /* ===== ШАПКА ===== */
    .header-phone-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin-left: 5px;
    }

        .header-phone-btn .phone-text {
            display: none;
        }

    .navbar-brand {
        font-size: 1rem;
    }

    .top-banner {
        font-size: 0.75rem;
        padding: 4px 0;
    }

    .top-banner-phone {
        display: none;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px !important;
    }

    /* ===== КОРЗИНА В ШАПКЕ — виднее на мобиле ===== */
    .cart-badge {
        background: rgba(255,255,255,0.15) !important;
        border-radius: 20px !important;
        padding: 6px 14px !important;
        margin: 0 4px !important;
    }

    .cart-count {
        background-color: #dc3545 !important;
        color: white !important;
        font-weight: bold !important;
        font-size: 11px !important;
        padding: 3px 7px !important;
        top: -10px !important;
        right: -14px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
        border: 2px solid white !important;
    }

    /* ===== ПЛАВАЮЩАЯ КОРЗИНА — виднее на мобиле ===== */
    .float-cart {
        width: 56px !important;
        height: 56px !important;
        font-size: 24px !important;
        bottom: 16px !important;
        left: 16px !important;
        background: linear-gradient(135deg, #25d366, #1a472a) !important;
        color: white !important;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
        border: 2px solid white !important;
        z-index: 10000 !important;
    }

        .float-cart .float-cart-badge {
            width: 24px !important;
            height: 24px !important;
            font-size: 13px !important;
            font-weight: bold !important;
            top: -4px !important;
            right: -4px !important;
            background: #dc3545 !important;
            border: 2px solid white !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
        }

        .float-cart .float-cart-label {
            display: none !important;
        }

    /* ===== ПЛАВАЮЩИЕ КНОПКИ СВЯЗИ — компактные ===== */
    .float-contact-stack {
        bottom: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }

    .float-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 17px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    }

    .float-btn-label {
        display: none !important;
    }

    /* ===== ГЛАВНАЯ ===== */
    .hero-section h1 {
        font-size: 1.4rem;
    }

    .hero-section .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem !important;
    }

    .hero-section {
        padding: 20px 12px;
    }

    .hero-quick-link {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* ===== КАРТОЧКИ ТОВАРОВ ===== */
    .product-card .card-body {
        padding: 0.5rem !important;
    }

    .product-card .card-title {
        font-size: 0.78rem !important;
        line-height: 1.2;
    }

    .product-card .price {
        font-size: 0.9rem !important;
    }

    .product-card .btn {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.25rem !important;
    }

    .product-card .badge {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
    }

    .product-card .small {
        font-size: 0.68rem !important;
    }

    /* ===== HOVER-КАРТОЧКИ ===== */
    .hover-card {
        padding: 0.5rem !important;
    }

        .hover-card i {
            font-size: 1.5rem !important;
        }

        .hover-card h6 {
            font-size: 0.7rem !important;
        }

        .hover-card small {
            font-size: 0.6rem !important;
        }

    /* ===== СЕКЦИИ КАТАЛОГА ===== */
    .section-header {
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.05rem;
    }

    .section-subtitle {
        font-size: 0.68rem;
    }

    .section-count {
        padding: 2px 10px;
        font-size: 0.75rem;
    }

    /* ===== ФИЛЬТРЫ ===== */
    .type-filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .diameter-chip, .lt-chip {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* ===== ОПЦИИ ТОВАРА ===== */
    .option-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .qty-step-btn {
        font-size: 0.75rem;
        padding: 6px 8px;
        min-width: 40px;
    }

    .qty-input-custom {
        min-width: 120px !important;
        font-size: 1rem !important;
        padding: 8px 10px;
    }

    .quick-qty {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.6rem !important;
    }

    .btn-add-to-cart {
        font-size: 1rem !important;
        padding: 14px !important;
    }

    .total-price-box {
        padding: 10px;
    }

        .total-price-box .fs-3 {
            font-size: 1.4rem !important;
        }

    /* ===== КАРТИНКИ НА МОБИЛЕ — жёстко 16:9 и 1:1 ===== */
    .article-card-img-wrap,
    .article-hero-img,
    .application-img-wrap,
    .related-img-wrap {
        aspect-ratio: 16 / 9 !important;
        min-height: 160px !important;
        max-height: 260px !important;
        height: auto !important;
    }

    .square-img-wrap {
        aspect-ratio: 1 / 1 !important;
        min-height: 140px !important;
        max-height: 220px !important;
        height: auto !important;
    }

    /* ===== СТАТЬИ ===== */
    .article-content {
        font-size: 0.95rem;
        padding: 10px;
    }

        .article-content h2 {
            font-size: 1.4rem;
        }

        .article-content h3 {
            font-size: 1.1rem;
        }

        .article-content table th,
        .article-content table td {
            padding: 5px 8px;
            font-size: 0.8rem;
        }

    .article-card .card-body {
        padding: 1rem !important;
    }

    .article-card .card-title {
        font-size: 0.95rem !important;
    }

    /* ===== ЗАГОЛОВКИ ===== */
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    h4 {
        font-size: 1rem;
    }

    /* ===== PRIVACY ===== */
    .privacy-content {
        padding: 0;
    }

        .privacy-content h2 {
            font-size: 1.1rem;
        }

    .card-body {
        padding: 1rem !important;
    }

    /* ===== DESCRIPTION ===== */
    .description-content {
        padding: 10px;
    }

        .description-content table td,
        .description-content table th {
            padding: 5px;
            font-size: 0.8rem;
        }

    /* ===== ФУТЕР — отступ снизу, чтобы кнопки не перекрывали ===== */
    .footer {
        padding-bottom: 90px !important;
    }
}
