/* ===== Размер/центрирование ===== */
.calc-wrap {
    max-width: 980px; /* БЫЛО уже меньше — теперь шире */
    margin: 0 auto; /* центр */
    display: block; /* одна колонка; вкладки сами скрываются/показываются */
    padding: 4px;
}

.calc-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08),
        0 2px 10px rgba(15, 23, 42, 0.06);
    margin: 0 auto 24px;
}

.calc-card .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(90deg, #e53935, #c62828);
    color: #fff;
    font-weight: 800;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.calc-card .body {
    padding: 20px 22px 22px;
}

/* сетки */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
@media (max-width: 576px) {
    .row-2,
    .row-3 {
        grid-template-columns: 1fr;
    }
}

/* интерактивы — чуть крупнее */
.calc-label {
    font-weight: 700;
    margin-bottom: 6px;
}
.calc-input,
.calc-select {
    width: 100%;
    border: 1px solid #e6ecf4;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.2;
    outline: none;
    background: #fff;
}
.calc-input:focus,
.calc-select:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.calc-btn {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.25rem;
    font-weight: 800;
    cursor: pointer;
}
.calc-btn:hover {
    background: #c62828;
}

/* блок результата */
.res-card {
    border: 1px dashed #e6ecf4;
    border-radius: 12px;
    padding: 12px;
}
.res-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 576px) {
    .res-grid {
        grid-template-columns: 1fr;
    }
}
.res-item {
    background: #fafbfe;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px;
}
.res-item b {
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

/* таблица графика */
table.paytbl {
    width: 100%;
    border-collapse: collapse;
}
table.paytbl th,
table.paytbl td {
    padding: 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}
table.paytbl th {
    text-align: left;
    color: #6b7280;
    font-weight: 700;
}

/* табы */
.tabbar {
    display: flex;
    gap: 10px;
    margin: 0 auto 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.tabbtn {
    border: 1px solid #f3c2c2;
    background: #fde8e8;
    color: #8b0e0e;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}
.tabbtn.active {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}
.hidden {
    display: none;
}
