.calculator-page {
    --calculator-accent: #ed8d6a;
    --calculator-surface: #fff9f6;
    background: #fff;
}

.calculator-page .site-header {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(105deg, #ffad70, #f1a1bf);
    color: #3e2938;
}

.calculator-page .language-switcher summary {
    border-color: rgba(62, 41, 56, 0.25);
}

.calculator-page .brand span {
    display: inline;
    white-space: nowrap;
}

.calculator-hero {
    padding: 82px 0 72px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 3px) 12px 14px / 48px 48px,
        linear-gradient(112deg, #ffad64 0%, #ffaaa0 55%, #ed9bc4 100%);
    color: #3e2938;
}

.calculator-hero .eyebrow {
    color: #684858;
}

.calculator-hero h1 {
    max-width: 980px;
    margin-bottom: 22px;
    font-size: clamp(2.8rem, 6.2vw, 6.2rem);
}

.calculator-hero > .shell > p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: #503845;
    font-size: 1.12rem;
}

.calculator-workspace {
    padding: 72px 0 110px;
}

.calculator-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 28px;
}

.calculator-controls,
.calculator-results {
    border: 1px solid rgba(36, 34, 41, 0.09);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(38, 34, 47, 0.08);
}

.calculator-controls {
    position: sticky;
    top: 104px;
    padding: 28px;
}

.calculator-fields {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    border: 0;
}

.calculator-field {
    display: grid;
    gap: 8px;
}

.calculator-field label {
    font-size: 0.92rem;
    font-weight: 760;
}

.calculator-field input {
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(36, 34, 41, 0.2);
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.calculator-field input:focus {
    border-color: var(--calculator-accent);
    outline: 3px solid rgba(237, 141, 106, 0.2);
}

.calculator-note,
.calculator-current {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.calculator-current span {
    display: block;
    color: var(--ink);
    font-weight: 740;
}

.calculator-results {
    overflow: hidden;
}

.calculator-results-header {
    padding: 28px 30px 24px;
    border-bottom: 1px solid var(--line);
}

.calculator-results-header h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.calculator-results-header p {
    margin-bottom: 0;
    color: var(--muted);
}

.calculator-status {
    padding: 17px 30px;
    background: var(--calculator-surface);
    color: #654236;
    font-weight: 760;
}

.calculator-result-list {
    margin: 0;
}

.calculator-result-row {
    display: grid;
    gap: 5px;
    padding: 20px 30px;
    border-top: 1px solid var(--line);
}

.calculator-result-row:first-child {
    border-top: 0;
}

.calculator-result-row dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 740;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calculator-result-row dd {
    margin: 0;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 760;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.calculator-about {
    padding: 92px 0;
    background: #fff9f6;
}

.calculator-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
    gap: 72px;
}

.calculator-about h2,
.calculator-app h2 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.calculator-about p {
    max-width: 680px;
    color: var(--muted);
}

.calculator-other {
    align-self: center;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(38, 34, 47, 0.07);
}

.calculator-other p {
    margin-bottom: 14px;
    color: var(--ink);
    font-weight: 760;
}

.calculator-other a {
    color: #c75f46;
    font-weight: 760;
    text-underline-offset: 5px;
}

.calculator-app {
    overflow: hidden;
    padding: 94px 0 82px;
}

.calculator-app-grid {
    display: grid;
    min-height: 480px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 70px;
}

.calculator-app-copy > p:not(.eyebrow, .calculator-app-note) {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.08rem;
}

.calculator-app-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.calculator-app img {
    width: min(260px, 74%);
    justify-self: center;
    border: 6px solid #fff;
    border-radius: 40px;
    box-shadow: 0 28px 70px rgba(47, 37, 50, 0.19);
    transform: rotate(5deg);
}

.calculator-page .site-footer {
    border-top: 1px solid rgba(36, 34, 41, 0.08);
    background: #fff;
    color: #36323a;
}

@media (max-width: 820px) {
    .calculator-layout,
    .calculator-about-grid,
    .calculator-app-grid {
        grid-template-columns: 1fr;
    }

    .calculator-controls {
        position: static;
    }

    .calculator-app-grid {
        gap: 48px;
    }
}

@media (max-width: 560px) {
    .calculator-page .header-inner {
        gap: 10px;
    }

    .calculator-page .brand {
        gap: 8px;
        font-size: 0.8rem;
    }

    .calculator-hero {
        padding: 56px 0 50px;
    }

    .calculator-workspace {
        padding: 42px 0 72px;
    }

    .calculator-controls,
    .calculator-results-header,
    .calculator-result-row {
        padding-right: 20px;
        padding-left: 20px;
    }

    .calculator-status {
        padding-right: 20px;
        padding-left: 20px;
    }

    .calculator-about,
    .calculator-app {
        padding: 70px 0;
    }
}
