.tp-calc {
    --tp-bg: #f7f3ec;
    --tp-card: #ffffff;
    --tp-text: #1f211c;
    --tp-muted: #6f6a60;
    --tp-line: rgba(31,33,28,.12);
    --tp-accent: #9b6a3f;
    --tp-accent-dark: #684326;
    max-width: 1120px;
    margin: 48px auto;
    padding: 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fbf8f2, var(--tp-bg));
    color: var(--tp-text);
    font-family: inherit;
    box-shadow: 0 24px 70px rgba(31, 33, 28, .08);
}

.tp-calc * { box-sizing: border-box; }

.tp-calc__intro { max-width: 680px; margin-bottom: 28px; }
.tp-calc__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--tp-accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tp-calc h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.tp-calc p { margin: 0; color: var(--tp-muted); font-size: 17px; }

.tp-calc__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 22px;
    align-items: stretch;
}

.tp-calc__form, .tp-calc__result {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--tp-line);
    border-radius: 24px;
    padding: 24px;
}

.tp-field { display: block; margin-bottom: 22px; }
.tp-field > span { display: block; font-weight: 750; margin-bottom: 10px; }

.tp-input-row {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 16px;
    background: #fff;
}
.tp-input-row input {
    width: 100%;
    border: 0;
    padding: 17px 18px;
    font-size: 22px;
    font-weight: 750;
    outline: 0;
    background: transparent;
}
.tp-input-row em { padding-right: 18px; color: var(--tp-muted); font-style: normal; }

.tp-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tp-options button {
    min-height: 76px;
    border: 1px solid var(--tp-line);
    border-radius: 16px;
    padding: 13px;
    background: #fff;
    color: var(--tp-text);
    text-align: left;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tp-options button small { color: var(--tp-muted); font-weight: 500; }
.tp-options button:hover { transform: translateY(-1px); }
.tp-options button.is-active {
    border-color: rgba(155,106,63,.7);
    box-shadow: 0 10px 24px rgba(155,106,63,.13);
    background: #fffaf3;
}

.tp-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-checks label {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--tp-line);
    border-radius: 14px;
    padding: 13px;
    background: #fff;
    color: var(--tp-text);
}
.tp-checks input { width: 18px; height: 18px; accent-color: var(--tp-accent); }

.tp-calc__result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 24px;
    min-height: 310px;
    background: #211b15;
    color: #fff;
}
.tp-result-label { color: rgba(255,255,255,.68); font-weight: 700; margin-bottom: 10px; }
.tp-calc__result strong { display: block; font-size: clamp(34px, 5vw, 52px); line-height: 1; margin-bottom: 16px; }
.tp-calc__result p { color: rgba(255,255,255,.72); margin-bottom: 26px; }
.tp-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border-radius: 999px;
    background: #fff;
    color: #211b15;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 860px) {
    .tp-calc { padding: 22px; margin: 28px auto; border-radius: 22px; }
    .tp-calc__panel { grid-template-columns: 1fr; }
    .tp-options, .tp-checks { grid-template-columns: 1fr; }
    .tp-calc__result { position: static; }
}
