/* Стили статейных блоков (перенесены из шаблона гайдов, 31.08.2026).
   Нужны, чтобы посты блога выглядели так же: .section, .info-card,
   .comparison-table, .faq-item. Подключаются на записи через functions.php. */
body {
            font-family: 'Montserrat', sans-serif;
            color: #333;
            line-height: 1.6;
            background-color: #f9f9f9;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .header-bg {
            /* В шаблоне гайдов фон приходил из ACF через PHP; в статическом файле
               PHP не выполняется, поэтому здесь фон по умолчанию — градиент.
               Своя картинка задаётся инлайном: style="background-image:...". */
            background: linear-gradient(135deg, #1a365d 0%, #2c5282 55%, #2b6cb0 100%);
            background-size: cover;
            background-position: center;
            color: white;
            padding: 120px 0 80px;
            text-align: center;
        }
        
        .section {
            margin: 40px 0;
            padding: 30px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .section-title {
            color: #1a365d;
            margin-bottom: 20px;
            font-weight: 700;
            font-size: 1.8rem;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 10px;
        }
        
        .sub-title {
            color: #2d3748;
            font-weight: 600;
            margin: 25px 0 15px;
            font-size: 1.4rem;
        }
        
        .highlight-box {
            background: #f8fafc;
            border-left: 4px solid #4299e1;
            padding: 15px 20px;
            margin: 20px 0;
            border-radius: 0 5px 5px 0;
        }
        
        .cta-button {
            display: inline-block;
            background: #3182ce;
            color: white;
            padding: 12px 24px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            margin: 15px 0;
        }
        
        .cta-button:hover {
            background: #2b6cb0;
            transform: translateY(-2px);
            color: white;
            text-decoration: none;
        }
        
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
        }
        
        .comparison-table th, .comparison-table td {
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
        }
        
        .comparison-table thead th {
            background-color: #edf2f7;
            font-weight: 600;
            text-align: left;
        }
        
        .comparison-table tbody tr:nth-of-type(even) {
            background-color: #f8fafc;
        }
        
        .testimonial {
            background: #ebf8ff;
            padding: 20px;
            border-radius: 10px;
            margin: 15px 0;
            position: relative;
        }
        
        .testimonial::before {
            content: '\201C';
            font-size: 4rem;
            position: absolute;
            left: 10px;
            top: -10px;
            color: #63b3ed;
            opacity: 0.3;
        }
        
        .faq-item {
            margin-bottom: 15px;
            border-bottom: 1px solid #edf2f7;
            padding-bottom: 15px;
        }
        
        .faq-question {
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 8px;
            cursor: pointer;
        }

        .faq-item h4 {
            cursor: pointer;
        }
        
        .rating-stars {
            color: #f6ad55;
            font-size: 1.2rem;
        }
        
        .info-card {
            padding: 20px;
            margin: 10px 0;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s;
        }
        
        .info-card:hover {
            box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        }
        
        .tag {
            display: inline-block;
            background: #e2e8f0;
            color: #4a5568;
            padding: 3px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            margin-right: 5px;
            margin-bottom: 5px;
        }
        
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #3182ce;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 0.7;
            transition: opacity 0.3s;
        }
        
        .back-to-top:hover {
            opacity: 1;
            color: white;
            text-decoration: none;
        }
        
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 20px 0;
        }
        
        .updated-info {
            color: #4a5568;
            font-style: italic;
            font-size: 0.9rem;
            margin-top: 10px;
        }

        .transfer-option {
            background-color: #f8fafc;
            border-radius: 8px;
            margin-bottom: 12px;
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #e2e8f0;
            transition: all 0.2s;
        }
        
        .transfer-option:hover {
            border-color: #4299e1;
            background-color: #ebf8ff;
        }
        
        .transfer-option .price {
            background: #48bb78;
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: 600;
            position: relative;
        }
        
        .transfer-option .price.loading {
            background: #cbd5e0;
            color: #4a5568;
        }
        
        .transfer-option .price.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 16px;
            margin: -8px 0 0 -8px;
            border: 2px solid #4a5568;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .map-container {
            width: 100%;
            height: 450px;
            margin: 20px 0;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }
        
        @media (max-width: 768px) {
            .header-bg {
                padding: 80px 0 40px;
            }
            
            .section {
                padding: 15px;
                margin: 20px 0;
            }
            
            .comparison-table th, .comparison-table td {
                padding: 8px;
                font-size: 0.9rem;
            }
            
            .map-container {
                height: 350px;
            }
        }

/* --- Правки для записей блога (31.08.2026) ------------------------------
   Герой у гайда рисует шаблон ВНЕ колонки контента, поэтому он во всю ширину.
   В записи блога тот же блок лежит внутри контейнера статьи и зажимается в
   колонку: шапка получается узкой, а таблетки и кнопки встают столбиком.
   Растягиваем на всю ширину окна (full-bleed) и раскладываем меню в ряд. */
.header-bg {
    /* ⚠️ Не 100vw: единица vw включает ширину полосы прокрутки, из-за чего страница
       уезжает по горизонтали и справа остаётся белый незакрытый кусок (видно на
       широких экранах). Ширину скроллбара кладёт в --ubx-sb маленький скрипт из
       functions.php; пока он не отработал, действует запасной 0px. */
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50vw + var(--ubx-sb, 0px) / 2);
    margin-right: calc(50% - 50vw + var(--ubx-sb, 0px) / 2);
    margin-bottom: 32px;
    /* Обёртка контента даёт отступ сверху (у темы 24px) — из-за него над шапкой
       белая полоса, тогда как у гайда шапка начинается вплотную к шапке сайта.
       Точное значение подставляет тот же скрипт в --ubx-top-pad. */
    margin-top: calc(-1 * var(--ubx-top-pad, 24px));
    /* Отступы 1:1 с гайдом (замерено на живой странице Внуково: padding
       120px 0 80px, шапка сайта 55px, до H1 остаётся 65px). Боковые 16px нужны
       записи блога, чтобы на узком экране текст не прилипал к краям. */
    padding: 120px 16px 80px;
    overflow-x: hidden;
}

.header-bg .container {
    max-width: 1180px;
    margin: 0 auto;
}

/* Таблетки меню — в строку с переносом, как в шапке гайда */
.header-bg .mb-8 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.header-bg .tag {
    margin: 0;                 /* отступы задаёт gap, иначе ряд рвётся */
    white-space: nowrap;
}

/* Кнопки рядом, а не одна под другой */
.header-bg .cta-button {
    margin: 6px 8px 0;
}

@media (max-width: 640px) {
    /* На мобильном шапка сайта ниже, поэтому и верхний отступ меньше —
       иначе экран занимает пустота вместо заголовка. */
    .header-bg { padding: 84px 12px 52px; }
    .header-bg h1 { font-size: 1.9rem; }
}

/* Кнопки героя — в один ряд. Держим их в общем контейнере: wpautop оборачивает
   каждую ссылку на отдельной строке в свой <p>, и кнопки встают столбиком. */
.header-bg .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
