/* =================================================================
   pages.css — СТИЛИ ИНФОБЛОКОВ, СТРАНИЦ И СПЕЦИАЛЬНЫХ СЕКЦИЙ
================================================================= */

/* --- 1. ОБЩИЕ ХЕЛПЕРЫ И ЭФФЕКТЫ --- */

/* Эффект поднятия любой карточки (универсальный) */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.hover-lift:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.12) !important;
}

/* Увеличение элементов */
.transform-scale-105 {
    transform: scale(1.02);
    z-index: 2;
}
@media (max-width: 768px) {
    .transform-scale-105 { transform: none; }
}

/* Цвета текста и фонов (из старого кода, адаптированные под vars.css) */
.text-primary { color: var(--color-primary, #0c284d) !important; }
.text-orange { color: var(--color-accent, #e67e22) !important; }

.bg-primary-soft { background-color: rgba(12, 40, 77, 0.08) !important; }
.bg-orange-light { background-color: rgba(230, 126, 34, 0.1) !important; }

/* Кнопки */
.btn-primary {
    background-color: var(--color-primary, #0c284d);
    border-color: var(--color-primary, #0c284d);
    color: #fff;
}
.btn-warning {
    background-color: var(--color-accent, #e67e22) !important;
    border-color: var(--color-accent, #e67e22) !important;
    color: #fff !important;
}
.btn-warning:hover {
    background-color: #d35400 !important;
    transform: translateY(-2px);
}

/* --- 2. ИНФОБЛОКИ (Статистика, Услуги, FAQ) --- */

/* Карточки статистики и направлений */
.stat-card, .service-card {
    background: #fff;
    border: 1px solid var(--color-gray-200, #f4eee1); /* Ушли от #DEE2E6 */
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}
.stat-card:hover, .service-card:hover {
    border-color: var(--color-accent, #e67e22);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Блок с ценами / важная инфа */
.price-box {
    background-color: #fff !important;
    border: 1px solid var(--color-gray-200, #f4eee1);
    border-left: 4px solid var(--color-accent, #e67e22) !important;
    padding: 20px;
    border-radius: 4px;
}

/* --- 3. СЕКЦИЯ ОПЛАТЫ (Стили под скриншот) --- */

.payment-info-wrapper {
    margin-top: 30px;
}

/* Сетка верхних способов */
.payment-methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.payment-method-card {
    flex: 1 1 350px;
}

.payment-method-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/* Круглая иконка как на скрине */
.payment-method-icon {
    width: 52px;
    height: 52px;
    background-color: #f0f5ff !important; /* Нежно-голубой фон */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.payment-method-icon svg {
    color: #3b5998; /* Цвет иконки */
}

.payment-method-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.payment-method-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Логотипы платежных систем */
.payment-systems-section {
    margin-top: 50px;
}

.payment-systems-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-systems-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.payment-logos-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.logo-box {
    width: 180px;
    height: 100px; 
    background: #fff;
    border: 1px solid #f0f0f0; 
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px; 
    transition: all 0.2s ease;
}

@media (max-width: 576px) {
    .logo-box {
        width: calc(50% - 10px);
        height: 90px;
    }
}

.logo-box:hover {
    border-color: var(--color-gray-200);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.logo-box img {
    width: 100%;          /* Растягиваем на всю ширину блока */
    height: 100%;         /* Растягиваем на всю высоту блока */
    object-fit: contain;  /* Сохраняем пропорции, чтобы не исказить лого */
    padding: 5px;         /* Минимальный зазор, чтобы лого не липло к краям */
    display: block;
}

/* Футер */
.payment-footer-note {
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
    line-height: 1.6;
}

/* --- 4. ГЛОБАЛЬНЫЕ КОРРЕКТИРОВКИ И АДАПТИВНОСТЬ --- */

/* Принудительное скрытие элементов хедера на 710px */
@media (max-width: 710px) {
    #main-header .hide-710 {
        display: none !important;
    }
    /* Центрируем логотип при скрытии боковых блоков */
    #main-header .main-logo-bar .container {
        justify-content: center !important;
    }
}

/* Исправление цвета всех рамок (убираем #DEE2E6) */
#main-header, 
#main-header .border-bottom, 
#main-header .sticky-nav {
    border-bottom-color: var(--color-gray-200, #f4eee1) !important;
}

/* --- 4. СЕКЦИЯ ДОСТАВКА (Универсальная) --- */

.delivery-info-wrapper {
    margin-top: 30px;
}

/* Используем те же переменные и сетки, что и в Оплате для единства стиля */
.delivery-methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.delivery-card {
    flex: 1 1 300px;
    background: #fff;
    border: 1px solid var(--color-gray-200, #f4eee1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.delivery-card:hover {
    border-color: var(--color-accent, #e67e22);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.delivery-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(230, 126, 34, 0.1) !important; /* Мягкий оранжевый фон */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.delivery-icon i {
    color: var(--color-accent, #e67e22);
    font-size: 1.5rem;
}

.delivery-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary, #0c284d);
}

.delivery-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- 5. СЕКЦИЯ КОНТАКТЫ --- */
.contact-page-wrapper {
 margin-top: 30px;  
}

.contact-card-item {
    background: #fff;
    border: 1px solid var(--color-gray-200, #f4eee1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    height: 100%;
}

.contact-icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary, #0c284d);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

/* Стили для формы обратной связи */
.contact-form-wrapper {
    background: #fff;
    border: 1px solid var(--color-gray-200, #f4eee1);
    border-radius: 12px;
    padding: 30px;
}

.contact-form-wrapper .form-control {
    border: 1px solid var(--color-gray-200, #f4eee1);
    padding: 12px 15px;
    border-radius: 8px;
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--color-accent, #e67e22);
    box-shadow: none;
}

/* Заглушка для карты */
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f8f9fa;
    border: 1px solid var(--color-gray-200, #f4eee1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* --- 6. СЕКЦИЯ О КОМПАНИИ --- */

.about-header-box {
    padding: 60px 0;
    background-color: #fff;
    border-radius: 15px;
    border: 1px solid var(--color-gray-200, #f4eee1);
    margin-bottom: 50px;
}

.about-feature-card {
    background: #fff;
    border: 1px solid var(--color-gray-200, #f4eee1);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    text-align: center;
}

.about-icon {
    font-size: 2.5rem;
    color: var(--color-accent, #e67e22);
    margin-bottom: 20px;
    display: block;
}

/* Ультра-адаптивный размер для цифр и длинных слов */
.about-stat-number {
    font-size: clamp(1.1rem, 4.5vw, 2rem);
    font-weight: 800;
    color: var(--color-primary, #0c284d);
    display: flex;           /* Меняем на flex */
    align-items: center;     /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
    margin-bottom: 5px;
    min-height: 2.2em;       /* Фиксируем минимальную высоту */
    line-height: 1;
}

/* Фикс для мобильных (от 480px и ниже) */
@media (max-width: 480px) {
    .about-feature-card {
        padding: 15px 10px; /* Высвобождаем еще по 5px с каждой стороны */
    }
    .about-stat-number {
        font-size: 1.2rem !important; 
    }
}

/* Для самых маленьких экранов (до 375px) */
@media (max-width: 375px) {
    .about-stat-number {
        font-size: 1.1rem !important;
    }
}

.about-text-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

/* Обертка для символа бесконечности */
/* Специально для бесконечности */
.about-stat-number:has(.infinity-symbol) {
    /* Можно дополнительно скорректировать, если нужно */
}

.infinity-symbol {
    display: inline-block;
    font-size: 1.65em;
    font-weight: 800;
    line-height: 1;
    
    /* Тонкая доводка внутри flex-контейнера */
    transform: translateY(-0.02em);
}

/* ===================================
    КАТАЛОГ: СТИЛЬ МИКРОЗЕЛЕНЬ (2.php)
    ТОЛЬКО ВЕРТИКАЛЬНЫЕ ФОТО
====================================== */

/* Сетка 4 колонки */
.product-grid-modern { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px 25px; 
}

/* Карточка */
.modern-card { 
    display: flex; 
    flex-direction: column; 
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* БЛОК ФОТО - ВЕРТИКАЛЬНЫЙ */
.modern-card-image {
    background-color: #f8f9fa;
    border-radius: 12px;
    aspect-ratio: 3 / 4 !important;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* САМА КАРТИНКА */
.modern-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center top;
    transition: transform 0.4s ease;
}

.modern-card:hover .modern-card-image img {
    transform: scale(1.05);
}

/* Информационная часть - ВОЗВРАЩАЕМ ОРИГИНАЛЬНЫЕ ОТСТУПЫ */
.modern-card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Артикул */
.product-article {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 8px;
}

.product-article-placeholder {
    height: 22px;
}

/* Заголовок - ОРИГИНАЛЬНЫЙ РАЗМЕР */
.modern-card-title { 
    font-size: 1rem; 
    font-weight: 600; 
    margin-bottom: 12px; 
    text-align: left;
    line-height: 1.4;
}

.modern-card-title a { 
    color: #333; 
    text-decoration: none; 
    transition: 0.2s; 
}

.modern-card-title a:hover { 
    color: var(--color-accent, #D35400); 
}

/* Футер - ВОЗВРАЩАЕМ ГОРИЗОНТАЛЬНОЕ РАСПОЛОЖЕНИЕ */
.modern-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    gap: 10px;
}

/* Цена - ОРИГИНАЛЬНЫЙ РАЗМЕР */
.modern-price-block { 
    display: flex; 
    align-items: baseline; 
    gap: 4px; 
    flex-wrap: wrap;
}

.price-from { 
    font-size: 0.8rem; 
    color: #999; 
    text-transform: uppercase; 
    font-weight: 600; 
}

.price-sum { 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: #1a1a1a; 
}

.price-currency { 
    font-size: 0.9rem; 
    color: #777; 
    font-weight: 600; 
}

.out-of-stock {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.price-request {
    font-size: 0.85rem;
    color: #D35400;
}

/* Блок действий - НЕ МЕНЯЕМ */
.modern-actions { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

/* Бейджи */
.modern-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modern-card-badges .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-new {
    background: #28a745;
    color: #fff;
}

.badge-hit {
    background: #fd7e14;
    color: #fff;
}

.badge-sale {
    background: #dc3545;
    color: #fff;
}

/* Кнопки - ОРИГИНАЛЬНЫЕ РАЗМЕРЫ */
.action-btn {
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 0.9rem;
}

.cart-btn {
    width: 44px;
    background: var(--color-accent, #D35400);
    color: #ffffff !important; 
    font-size: 1.2rem;
}

.cart-btn i {
    color: #ffffff !important;
}

.cart-btn:hover {
    background-color: #A04000;
}

.choose-btn {
    padding: 0 20px;
    background: #3E2723;
    color: #fff !important;
}

.choose-btn:hover {
    background: #2c1a16;
}

.action-btn:hover { 
    transform: translateY(-2px); 
    opacity: 0.9; 
}

/* Селектор количества - ОРИГИНАЛЬНЫЙ */
.modern-qty {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 4px;
    height: 44px;
}

.modern-qty button {
    width: 30px;
    border: none;
    background: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
}

.qty-input {
    width: 40px;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button, 
.qty-input::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* ===================================
    АДАПТИВ
====================================== */

/* Планшеты - 2 колонки */
@media (max-width: 991px) {
    .product-grid-modern { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 25px 20px; 
    }
    
    .modern-card-title { 
        font-size: 0.95rem; 
    }
    
    .price-sum { 
        font-size: 1.2rem; 
    }
    
    .modern-card-image {
        aspect-ratio: 2 / 3 !important;
    }
}

/* Мобильные - 1 колонка */
@media (max-width: 768px) {
    .product-grid-modern { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    
    .modern-card {
        flex-direction: row;
        gap: 15px;
    }
    
    .modern-card-image {
        aspect-ratio: 1 / 1 !important;
        width: 120px;
        flex-shrink: 0;
    }
    
    .modern-card-info {
        padding: 10px 10px 10px 0;
        flex: 1;
    }
    
    .modern-card-title {
        font-size: 0.9rem;
        min-height: auto;
    }
    
    .modern-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .modern-actions {
        min-width: 100px;
    }
    
    /* Уменьшаем кнопки на мобильных */
    .action-btn {
        height: 38px;
    }
    
    .cart-btn {
        width: 38px;
    }
    
    .modern-qty {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .modern-card {
        flex-direction: column;
    }
    
    .modern-card-image {
        width: 100%;
        aspect-ratio: 2 / 3 !important;
    }
    
    .modern-card-info {
        padding: 12px;
    }
    
    .modern-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modern-actions {
        width: 100%;
    }
}

/* Варианты выбора - ВОЗВРАЩАЕМ ОРИГИНАЛЬНЫЙ СТИЛЬ */
.variant-chips { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.v-chip {
    padding: 10px 24px;
    border: 1.5px solid #eee;
    background: #fff;
    border-radius: 50px;
    font-weight: 600;
    color: #5D4037;
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.v-chip:hover {
    border-color: #D35400;
    background: rgba(211, 84, 0, 0.05);
}

.v-chip.active {
    border-color: #D35400;
    color: #D35400;
    background: rgba(211, 84, 0, 0.05);
}