/* ===== КАТАЛОГ СВАЙ — СТИЛИ ===== */

.svai-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.svai-card {
    display: flex;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(10, 35, 66, 0.07);
    transition: box-shadow 0.2s ease;
}

.svai-card:hover {
    box-shadow: 0 4px 16px rgba(10, 35, 66, 0.13);
}

.svai-card__img-col {
    flex-shrink: 0;
    width: 270px;
    background-color: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.svai-card__img-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
    -webkit-user-drag: none;
    user-select: none;
    max-height: 390px;
}

.svai-card__body {
    padding: 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.svai-card__badge {
    display: inline-block;
    background-color: #0a2342;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.svai-card__title {
    font-family: 'Roboto Slab Local', serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #0a2342;
    margin: 0 0 12px 0;
    border-bottom: none;
    padding-bottom: 0;
    line-height: 1.3;
}

.svai-card__body p {
    font-size: 0.93em;
    color: #444;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.svai-card__body p:last-child {
    margin-bottom: 0;
}

.svai-card__rec {
    color: #555;
    font-size: 0.88em !important;
}

/* --- Таблица (desktop) --- */
.catalog-table-wrap {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.08);
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background: #fff;
}

.catalog-table thead tr {
    background-color: #0a2342;
    color: #fff;
}

.catalog-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.catalog-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
    vertical-align: top;
}

.catalog-table tbody tr:last-child td {
    border-bottom: none;
}

.catalog-table tbody tr:nth-child(even) {
    background-color: #f9fafc;
}

.catalog-table tbody tr:hover {
    background-color: #f0f4fa;
}

/* --- Особенности --- */
.catalog-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.catalog-feature {
    display: flex;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.catalog-feature:last-child {
    border-bottom: none;
}

.catalog-feature__num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: #0a2342;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Slab Local', serif;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 4px;
}

.catalog-feature__content {
    flex-grow: 1;
}

.catalog-feature__content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.15em;
}

.catalog-feature__content p {
    margin-bottom: 12px;
}

.catalog-feature__note {
    font-size: 0.85em !important;
    color: #888;
    font-style: italic;
}

.catalog-feature__stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.catalog-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f7fb;
    border: 1px solid #d8e4f0;
    border-radius: 6px;
    padding: 10px 20px;
    min-width: 88px;
}

.catalog-stat__val {
    font-size: 1.6em;
    font-weight: 700;
    color: #0a2342;
    font-family: 'Roboto Slab Local', serif;
    line-height: 1.1;
}

.catalog-stat__label {
    font-size: 0.75em;
    color: #666;
    text-align: center;
    margin-top: 4px;
    line-height: 1.3;
}

/* --- FAQ --- */
.catalog-faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.catalog-faq__item {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.catalog-faq__item:last-child {
    border-bottom: none;
}

.catalog-faq__q {
    display: block;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #0a2342;
    font-size: 0.97em;
    line-height: 1.4;
    list-style: none;
    position: relative;
    padding-right: 44px;
    user-select: none;
    transition: background 0.2s ease;
}

.catalog-faq__q::-webkit-details-marker {
    display: none;
}

.catalog-faq__q::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: 300;
    color: #0a2342;
    line-height: 1;
}

.catalog-faq__item[open] .catalog-faq__q {
    background-color: #f4f7fb;
}

.catalog-faq__item[open] .catalog-faq__q::after {
    content: '×';
}

.catalog-faq__a {
    padding: 0 20px 16px 20px;
    background-color: #f4f7fb;
}

.catalog-faq__a p {
    margin: 0;
    font-size: 0.93em;
    line-height: 1.6;
    color: #444;
}

/* --- CTA --- */
.catalog-cta {
    background-color: #0a2342;
    border-radius: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}

.catalog-cta__inner {
    padding: 20px 32px 28px;
    text-align: center;
}

.catalog-cta__title {
    font-family: 'Roboto Slab Local', serif;
    color: #fff !important;
    font-size: 1.6em;
    margin: 0 0 12px 0;
    text-align: center;
    line-height: 1.2;
    border-bottom: none !important;
}

.catalog-cta__desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.97em;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.btn--cta {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: #f7b267;
    color: #0a2342;
    border: none;
}

.btn--cta:link,
.btn--cta:visited {
    color: #0a2342;
}

.btn--cta:hover {
    background-color: #fff;
    color: #0a2342;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 768px) {
    /* --- карточки свай --- */
    .svai-card {
        flex-direction: column;
    }
    .svai-card__img-col {
        width: 100%;
        max-height: 260px;
    }
    .svai-card__img-col img {
        max-height: 240px;
        width: auto;
        margin: 0 auto;
    }
    .svai-card__body {
        padding: 16px;
    }

    /* --- Таблица сравнения — карточный вид --- */
    .catalog-table--responsive thead {
        display: none;
    }
    .catalog-table--responsive,
    .catalog-table--responsive tbody,
    .catalog-table--responsive tr,
    .catalog-table--responsive td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .catalog-table--responsive tr {
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        margin-bottom: 10px;
        overflow: hidden;
        background: #fff;
    }
    .catalog-table--responsive tr:last-child {
        margin-bottom: 0;
    }
    .catalog-table--responsive tbody tr:nth-child(even) {
        background-color: #fff;
    }
    /* grid: лейбл фиксированная ширина, значение — остаток */
    .catalog-table--responsive td {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 8px;
        align-items: baseline;
        padding: 10px 14px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.9em;
    }
    .catalog-table--responsive td:last-child {
        border-bottom: none;
    }
    .catalog-table--responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #0a2342;
    }

    /* --- особенности --- */
    .catalog-feature {
        flex-direction: column;
        gap: 12px;
    }
    .catalog-feature__num {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }

    /* --- CTA --- */
    .catalog-cta__title {
        font-size: 1.3em;
    }
    .catalog-cta__inner {
        padding: 16px 20px 22px;
    }
}

@media (max-width: 480px) {
    .catalog-feature__stats {
        gap: 10px;
    }
    .catalog-stat {
        padding: 8px 14px;
        min-width: 80px;
    }
    .catalog-stat__val {
        font-size: 1.3em;
    }
    .catalog-table--responsive td {
        grid-template-columns: 110px 1fr;
    }
}
