/* ============================================================
   ФАЙЛ: antey66-static.css
   НАЗНАЧЕНИЕ: Стили для статических страниц (about, contacts, politika, prodat-ooo-firmu, kupit_ooo)
   ОБЩИЙ КЛАСС-ОБЁРТКА: .static-page
   ============================================================ */

/* ============================================================
   БЛОК 1: ОБЩИЕ СТИЛИ ДЛЯ СТАТИЧЕСКИХ СТРАНИЦ
   ============================================================ */
.static-page {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #1e2f3e;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* ============================================================
   БЛОК 2: ЗАГОЛОВКИ (h1-h4)
   ============================================================ */
.static-page h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 20px;
    border-bottom: 3px solid #8abee5;
    padding-bottom: 10px;
}

.static-page h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #1e3c72;
    margin-top: 30px;
    margin-bottom: 15px;
}

.static-page h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #2a4a7a;
    margin-top: 25px;
    margin-bottom: 12px;
}

.static-page h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #3a5a8a;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ============================================================
   БЛОК 3: ПАРАГРАФЫ И ТЕКСТ
   ============================================================ */
.static-page p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #1e2f3e;
}

.static-page ul,
.static-page ol {
    margin: 15px 0;
    padding-left: 25px;
}

.static-page li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #1e2f3e;
}

.static-page a {
    color: #1e3c72;
    text-decoration: underline;
    transition: color 0.3s;
}

.static-page a:hover {
    color: #8abee5;
}

/* ============================================================
   БЛОК 4: ТАБЛИЦЫ (резиновые, без min-width)
   ============================================================ */

.static-page .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    background: #f9f9f9;
}

.static-page .table-responsive table {
    width: 100%;
    min-width: auto; /* Убираем фиксированную ширину */
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin: 0;
    table-layout: fixed; /* Принудительное сжатие */
}

/* Заголовки */
.static-page .table-responsive table thead th {
    background-color: #1e3c72;
    color: #ffffff;
    padding: 6px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #1e3c72;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ячейки */
.static-page .table-responsive table tbody td {
    padding: 5px 6px;
    border: 1px solid #8abee5;
    color: #1a1a1a;
    background-color: #ffffff;
    text-align: center;
    font-size: 0.85em;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Чётные строки */
.static-page .table-responsive table tbody tr:nth-child(even) td {
    background-color: #f5f8fc;
}

/* Ховер */
.static-page .table-responsive table tbody tr:hover td {
    background-color: #e2ebf3;
}

/* ============================================================
   МОБИЛЬНЫЕ (ширина <= 768px)
   ============================================================ */
@media (max-width: 768px) {
    .static-page .table-responsive {
        padding: 2px 0;
        border-radius: 4px;
    }

    .static-page .table-responsive table {
        font-size: 0.6em;
        min-width: auto; /* Убираем min-width */
        table-layout: fixed;
    }

    .static-page .table-responsive table thead th {
        padding: 3px 4px;
        font-size: 0.6em;
        white-space: normal;
        word-break: break-word;
    }

    .static-page .table-responsive table tbody td {
        padding: 2px 4px;
        font-size: 0.55em;
        word-break: break-word;
    }
}

/* ============================================================
   ТЕЛЕФОНЫ (ширина <= 480px) — максимальное сжатие
   ============================================================ */
@media (max-width: 480px) {
    .static-page .table-responsive table {
        font-size: 0.5em;
        min-width: auto; /* Убираем min-width */
    }

    .static-page .table-responsive table thead th {
        padding: 2px 3px;
        font-size: 0.5em;
    }

    .static-page .table-responsive table tbody td {
        padding: 2px 3px;
        font-size: 0.45em;
    }
}

/* ============================================================
   ДЕСКТОП (ширина >= 769px)
   ============================================================ */
@media (min-width: 769px) {
    .static-page .table-responsive {
        overflow-x: visible;
        border: none;
        background: transparent;
        padding: 0;
    }

    .static-page .table-responsive table {
        font-size: 1em;
        min-width: auto;
        max-width: 100%;
        table-layout: auto;
    }

    .static-page .table-responsive table thead th {
        padding: 10px 15px;
        font-size: 1em;
        white-space: nowrap;
    }

    .static-page .table-responsive table tbody td {
        padding: 8px 12px;
        font-size: 1em;
        word-break: normal;
    }
}
/* ============================================================
   БЛОК 5: БЛОК С ПАРТНЁРОМ (.perehod)
   ============================================================ */
.static-page .perehod {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1e3c72, #2a5a8a);
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 20px 0;
    cursor: pointer;
}

.static-page .perehod:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.static-page .perehod .ctaText {
    font-weight: 600;
    font-size: 1.1em;
    color: #ffffff;
}

.static-page .perehod .ctaButton {
    background-color: #ffffff;
    color: #1e3c72;
    padding: 8px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.static-page .perehod .ctaButton:hover {
    background-color: #e8ecf0;
}

/* ============================================================
   БЛОК 6: КНОПКИ "ЗАКАЗАТЬ ЗВОНОК" (.antey-callback)
   ============================================================ */

.static-page .antey-callback {
    margin: 25px 0;
    text-align: center; /* Центрируем содержимое */
}

.static-page .antey-callback .tplbutton {
    display: inline-block;
    padding: 14px 40px; /* Увеличили вертикальный padding для высоты */
    background-color: #8B0000;
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    min-height: 50px; /* Минимальная высота для удобства на мобильных */
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.static-page .antey-callback .tplbutton:hover {
    background-color: #a00000;
    transform: scale(1.02);
}

.static-page .antey-callback .tplbutton:active {
    transform: scale(0.98);
}

/* ============================================================
   БЛОК 7: ЦЕННИКИ (.price-tag)
   ============================================================ */
.static-page .price-tag {
    display: inline-block;
    padding: 4px 14px;
    background-color: #e8f0fe;
    border-radius: 4px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95em;
}

.static-page .price-tag.free {
    background-color: #d4edda;
    color: #155724;
}

/* ============================================================
   БЛОК 8: КАРТОЧКИ (.card)
   ============================================================ */
.static-page .card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #8abee5;
}

.static-page .card h3 {
    margin-top: 0;
}

/* ============================================================
   БЛОК 9: СЕТКИ (grid-2, grid-3)
   ============================================================ */
.static-page .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.static-page .grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* ============================================================
   БЛОК 10: РАЗДЕЛИТЕЛЬ (hr)
   ============================================================ */
.static-page hr {
    border: none;
    border-top: 2px solid #8abee5;
    margin: 30px 0;
}

/* ============================================================
   БЛОК 11: ВЫРАВНИВАНИЕ
   ============================================================ */
.static-page .center {
    text-align: center;
}

.static-page .text-left {
    text-align: left;
}

.static-page .text-right {
    text-align: right;
}

/* ============================================================
   БЛОК 12: МЕДИА-ЗАПРОСЫ — ДЕСКТОП (ширина > 768px)
   ============================================================ */
@media (min-width: 769px) {
    .static-page {
        padding: 30px 40px;
    }

    .static-page h1 {
        font-size: 2.6em;
    }

    .static-page h2 {
        font-size: 2em;
    }

    .static-page h3 {
        font-size: 1.6em;
    }

    .static-page .table-responsive {
        overflow-x: visible;
        border: none;
        background: transparent;
    }

    .static-page .table-responsive table {
        min-width: auto;
        font-size: 1em;
    }

    .static-page .table-responsive table thead th {
        padding: 12px 20px;
    }

    .static-page .table-responsive table tbody td {
        padding: 10px 20px;
    }
}

/* ============================================================
   БЛОК 13: МЕДИА-ЗАПРОСЫ — ПЛАНШЕТЫ (ширина 481-768px)
   ============================================================ */
@media (max-width: 768px) {
    .static-page {
        padding: 15px 15px;
    }

    .static-page h1 {
        font-size: 1.8em;
    }

    .static-page h2 {
        font-size: 1.5em;
    }

    .static-page h3 {
        font-size: 1.2em;
    }

    .static-page h4 {
        font-size: 1.1em;
    }

    .static-page .table-responsive table {
        min-width: 480px;
        font-size: 0.8em;
    }

    .static-page .table-responsive table thead th,
    .static-page .table-responsive table tbody td {
        padding: 6px 10px;
    }

    /* Блок с партнёром */
    .static-page .perehod {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .static-page .perehod .ctaText {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .static-page .perehod .ctaButton {
        padding: 6px 20px;
        font-size: 0.9em;
        width: 100%;
        text-align: center;
    }

    /* Кнопки на всю ширину */
    .static-page .antey-callback .tplbutton {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.1em;
    }

    /* Сетки — в одну колонку */
    .static-page .grid-2,
    .static-page .grid-3 {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .static-page .price-tag {
        font-size: 0.85em;
        padding: 3px 10px;
    }
}

/* ============================================================
   БЛОК 14: МЕДИА-ЗАПРОСЫ — ТЕЛЕФОНЫ (ширина <= 480px)
   ============================================================ */
@media (max-width: 480px) {
    .static-page {
        padding: 10px 8px;
    }

    .static-page h1 {
        font-size: 1.5em;
    }

    .static-page h2 {
        font-size: 1.3em;
    }

    .static-page h3 {
        font-size: 1.1em;
    }

    .static-page .table-responsive table {
        min-width: 320px;
        font-size: 0.7em;
    }

    .static-page .table-responsive table thead th,
    .static-page .table-responsive table tbody td {
        padding: 4px 6px;
        font-size: 0.65em;
    }

    /* ===== КНОПКА "ЗАКАЗАТЬ ЗВОНОК" ===== */
    .static-page .antey-callback {
        text-align: center;
        margin: 25px 0;
    }

    .static-page .antey-callback .tplbutton {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 16px 20px;
        font-size: 1.1em;
        font-weight: 700;
        min-height: 56px;
        border-radius: 8px;
        background-color: #8B0000;
        color: #ffffff !important;
        border: none;
        box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
        text-decoration: none;
        text-align: center;
        line-height: 1.4;
        transition: background-color 0.3s, transform 0.2s;
        cursor: pointer;
    }

    .static-page .antey-callback .tplbutton:active {
        transform: scale(0.97);
    }

    /* ===== ЦЕННИКИ ===== */
    .static-page .price-tag {
        font-size: 0.75em;
        padding: 2px 8px;
    }

    /* ===== БЛОК С ПАРТНЁРОМ ===== */
    .static-page .perehod .ctaText {
        font-size: 0.85em;
    }

    .static-page .perehod .ctaButton {
        font-size: 0.8em;
        padding: 5px 15px;
    }
}
/* ============================================================
   БЛОК 15: ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ (отступы, цвета, фоны)
   ============================================================ */
.static-page .mt-10 { margin-top: 10px; }
.static-page .mt-20 { margin-top: 20px; }
.static-page .mt-30 { margin-top: 30px; }
.static-page .mb-10 { margin-bottom: 10px; }
.static-page .mb-20 { margin-bottom: 20px; }
.static-page .mb-30 { margin-bottom: 30px; }

.static-page .text-red { color: #8B0000; }
.static-page .text-blue { color: #1e3c72; }
.static-page .text-muted { color: #6c757d; }

.static-page .bg-light { background-color: #f9f9f9; }
.static-page .bg-blue { background-color: #1e3c72; color: #ffffff; }
.static-page .bg-red { background-color: #8B0000; color: #ffffff; }

.static-page .clearfix::after {
    content: "";
    display: table;
    clear: both;
}
/* ============================================================
   БЛОК 16: ГРАФИК НА ЧИСТОМ HTML/CSS (без SVG)
   ============================================================ */
.static-page .chart-block {
    background: #fafbfc;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 24px 20px;
    margin: 24px 0;
    overflow: hidden;
}

.static-page .chart-block .chart-source {
    font-size: 13px;
    color: #888;
    margin: 0 0 4px 0;
    text-align: center;
}

.static-page .chart-block .chart-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.4;
}

/* Область графика: ось Y + столбики */
.static-page .chart-area {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 300px;
    margin: 0 0 0 55px;
    padding-top: 40px;
    box-sizing: content-box;
    border-bottom: 2px solid #ccd6e0;
}

.static-page .chart-area::before {
    content: '';
    position: absolute;
    left: -55px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #ccd6e0;
}

/* Сетка */
.static-page .chart-grid {
    position: absolute;
    left: 0;
    right: 0;
    top: 40px;
    bottom: 0;
    pointer-events: none;
}

.static-page .chart-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #e8edf4;
}

.static-page .chart-grid-line .chart-grid-label {
    position: absolute;
    left: -55px;
    top: -8px;
    font-size: 11px;
    color: #999;
    width: 48px;
    text-align: right;
}

/* Столбики */
.static-page .chart-col {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.static-page .chart-col-inner {
    width: 100%;
    max-width: 90px;
    position: relative;
    border-radius: 6px 6px 0 0;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.static-page .chart-col-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.2);
    filter: brightness(1.05);
}

.static-page .chart-col-value {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    color: #0b2a4a;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.static-page .chart-col-fill {
    width: 100%;
    height: 100%;
    min-height: 6px;
    border-radius: 6px 6px 0 0;
}

.static-page .chart-col-fill.osno   { background: linear-gradient(180deg, #c0392b 0%, #e74c3c 100%); }
.static-page .chart-col-fill.usn-dr { background: linear-gradient(180deg, #2980b9 0%, #3498db 100%); }
.static-page .chart-col-fill.usn-d  { background: linear-gradient(180deg, #16a085 0%, #1abc9c 100%); }
.static-page .chart-col-fill.ausn   { background: linear-gradient(180deg, #d68910 0%, #f39c12 100%); }

/* Подписи под столбиками */
.static-page .chart-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 0 55px;
}

.static-page .chart-label {
    flex: 1;
    max-width: 90px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    color: #555;
    line-height: 1.35;
}

.static-page .chart-label strong {
    display: block;
    color: #1a1a1a;
    font-size: 13px;
    margin-bottom: 2px;
}

.static-page .chart-label small {
    display: block;
    font-size: 11px;
    color: #888;
}

/* Легенда */
.static-page .chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8edf4;
}

.static-page .chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.static-page .chart-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* --- Планшеты --- */
@media (max-width: 768px) {
    .static-page .chart-block { padding: 18px 12px; }
    .static-page .chart-area {
        height: 220px;
        margin-left: 40px;
        padding-top: 34px;
    }
    .static-page .chart-area::before { left: -40px; top: 34px; }
    .static-page .chart-grid { top: 34px; }
    .static-page .chart-grid-line .chart-grid-label {
        left: -40px;
        font-size: 9px;
        width: 36px;
    }
    .static-page .chart-labels { margin-left: 40px; }
    .static-page .chart-col-value { font-size: 11px; padding: 1px 4px; }
    .static-page .chart-label { font-size: 10px; }
    .static-page .chart-label strong { font-size: 11px; }
    .static-page .chart-label small { font-size: 9px; }
}

/* --- Телефоны --- */
@media (max-width: 480px) {
    .static-page .chart-area {
        height: 180px;
        margin-left: 34px;
        padding-top: 30px;
        gap: 4px;
    }
    .static-page .chart-area::before { left: -34px; top: 30px; }
    .static-page .chart-grid { top: 30px; }
    .static-page .chart-grid-line .chart-grid-label {
        left: -34px;
        font-size: 8px;
        width: 30px;
    }
    .static-page .chart-labels { margin-left: 34px; gap: 4px; }
    .static-page .chart-col-value { font-size: 10px; }
    .static-page .chart-label { font-size: 9px; }
    .static-page .chart-label strong { font-size: 10px; }
    .static-page .chart-legend-item { font-size: 11px; }
}