/* seo-audit.css | v14 system */

/* ======================================================
   БЛОК 2 — Карточки видов аудита
   ====================================================== */

.v14-audits-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.v14-audits-header {
    margin-bottom: 32px;
}

.v14-audits-header h2 {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--v14-dark) !important;
    text-align: left !important;
    margin: 0 0 12px !important;
}

.v14-audits-header p {
    font-size: 16px !important;
    color: #666 !important;
    margin: 0 !important;
}

.v14-audits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.v14-audit-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid transparent;
    position: relative;
    transition: var(--v14-transition);
}

.v14-audit-card:hover {
    border-color: var(--v14-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.v14-audit-card-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--v14-red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.v14-audit-card-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.v14-audit-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--v14-dark);
    line-height: 1.25;
}

.v14-audit-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--v14-red);
}

.v14-audit-card-divider {
    height: 1px;
    background: #edeae4;
}

.v14-audit-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.v14-audit-card-deadline {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v14-audit-card-deadline::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' stroke='%23999' stroke-width='1.2' fill='none'/%3E%3Cpath d='M7 4v3l2 2' stroke='%23999' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ======================================================
   БЛОК 3 — Детальные табы
   ====================================================== */

.v14-tabs-section {
    background: #ffffff !important;
}



.v14-tab-caption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.v14-tab-list--dash li::before {
    background: none !important;
    content: '—' !important;
    width: auto !important;
    height: auto !important;
    color: var(--v14-red);
    font-weight: 700;
    margin-top: 0 !important;
    flex-shrink: 0;
}

.v14-audit-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.v14-audit-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--v14-dark);
    border: 1px solid #edeae4;
}

.v14-audit-meta-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--v14-red);
    flex-shrink: 0;
}

/* ======================================================
   ВЫРАВНИВАНИЕ НИЗА КОЛОНОК В ТАБАХ
   ====================================================== */

#audit-types .v14-tab-panel.active {
    display: grid !important;
    align-items: stretch;
}

#audit-types .v14-tab-panel.active.no-photo {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

#audit-types .v14-tab-panel.active > div:first-child {
    display: flex;
    flex-direction: column;
}

#audit-types .v14-audit-meta {
    margin-top: auto !important;
}

#audit-types .v14-tab-photos {
    display: flex;
    flex-direction: column;
    padding-top: 28px;
}

#audit-types .v14-tab-photos button {
    margin-top: auto !important;
}

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

@media (max-width: 991px) {
    .v14-audits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .v14-audits-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   ОБЩИЙ ФОН ДЛЯ СЕРЫХ БЛОКОВ
   ====================================================== */

.v14-bg-gray {
    background: #E8EBEC !important;
}

/* ======================================================
   ФИХ РАЗМЕРА H2 В БЛОКЕ СРАВНЕНИЯ
   ====================================================== */

.v14-compare-header h2 {
    font-size: 36px !important;
}

/* ФОН ТАБЛИЦЫ НА СЕРОМ ФОНЕ */
.v14-bg-gray .v14-compare-wrap {
    border: 2px solid #ffffff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.v14-bg-gray .v14-compare-table thead tr {
    background: #f0f2f4;
}

.v14-bg-gray .v14-compare-table tbody tr {
    background: #f8f9fa;
}

.v14-bg-gray .v14-compare-table tbody tr:hover {
    background: #f2f4f5;
}

.v14-bg-gray .v14-compare-table tbody td:last-child {
    background: #f0f2f4;
}

/* КНОПКИ В ТАБАХ — не растягивать на всю ширину */
#audit-types .v14-tab-panel > div:first-child .header__button {
    width: auto !important;
    max-width: fit-content !important;
}

/* ======================================================
   МОБИЛЬНЫЕ ФИКСЫ
   ====================================================== */

/* Этапы работы — 4 колонки на десктопе, 2 на мобилке */
.v14-steps-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 768px) {

    /* Этапы работы — 2 колонки */
    .v14-steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Плашки срок/цена — перенос */
    .v14-audit-meta-item {
        flex: 1 1 auto;
        min-width: 130px;
    }

    /* Сравнение — уменьшаем отступы */
    .v14-compare-section {
        padding: 24px 0 !important;
    }

    .v14-compare-table thead th,
    .v14-compare-table tbody td {
        padding: 10px !important;
        font-size: 12px !important;
    }
}
