/* Калькулятор темпа и скорости — в стиле Булка-team */

.calc-pace__card {
    background: #fff;
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    padding: 1.35rem 1.35rem 1.25rem;
    box-shadow: 0 2px 12px rgba(62, 39, 35, .08);
}

.calc-pace .section-title {
    margin: 0 0 10px;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d6e63;
    font-weight: 700;
}

.calc-pace .section-title--compact {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #efe4d0;
}

.calc-pace .form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    margin-bottom: 14px;
}

.calc-pace .form--single {
    grid-template-columns: 1fr;
}

.calc-pace .form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-pace .form__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8d6e63;
    font-weight: 600;
}

.calc-pace .form__input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d9c9b0;
    background: #fff;
    color: #3E2723;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
}

.calc-pace .form__input:focus {
    border-color: #D4A76A;
    box-shadow: 0 0 0 2px rgba(212, 167, 106, .35);
}

.calc-pace .form__footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.calc-pace .button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .1s;
}

.calc-pace .button--primary {
    background: #D4A76A;
    color: #3E2723;
}

.calc-pace .button--primary:hover {
    background: #c4955a;
}

.calc-pace .button--ghost {
    background: transparent;
    color: #8d6e63;
    border: 1px solid #d9c9b0;
}

.calc-pace .button--ghost:hover {
    background: #faf6ee;
    color: #3E2723;
}

.calc-pace .result {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #faf6ee;
    border: 1px dashed #d9c9b0;
}

.calc-pace .result__placeholder,
.calc-pace .result__details {
    margin: 0;
    font-size: .9rem;
    color: #6b5044;
}

.calc-pace .result__value {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #3E2723;
}

.calc-pace .result__value span {
    color: #b8894f;
}

.calc-pace .result--error {
    border-color: #e8b4b4;
    background: #fff5f5;
}

.calc-pace .result--error .result__value span {
    color: #b71c1c;
}

.calc-pace .table {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e8dcc8;
    background: #fff;
    overflow-x: auto;
}

.calc-pace .table__title {
    margin: 0 0 8px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8d6e63;
    font-weight: 700;
}

.calc-pace .table__placeholder {
    margin: 0;
    font-size: .9rem;
    color: #6b5044;
}

.calc-pace .table__grid {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.calc-pace .table__grid th,
.calc-pace .table__grid td {
    padding: 7px 8px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #efe4d0;
}

.calc-pace .table__grid th {
    color: #3E2723;
    font-weight: 600;
}

.calc-pace .table__grid tr:last-child td {
    border-bottom: none;
}

.calc-pace .table__distance {
    color: #b8894f;
    font-weight: 600;
}

.calc-pace .table__time {
    font-variant-numeric: tabular-nums;
    color: #4a3330;
}

.calc-pace .hint {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e8dcc8;
    background: #faf6ee;
    border-left: 4px solid #D4A76A;
}

.calc-pace .hint__title {
    margin: 0 0 6px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #b8894f;
    font-weight: 700;
}

.calc-pace .hint__text {
    margin: 0 0 4px;
    font-size: .88rem;
    color: #4a3330;
    line-height: 1.55;
}

@media (max-width: 480px) {
    .calc-pace .form {
        grid-template-columns: 1fr;
    }

    .calc-pace .form__footer {
        justify-content: stretch;
    }

    .calc-pace .button {
        flex: 1;
        justify-content: center;
    }
}
