.kc-calculators {
    --kc-calc-ink: #3b2a21;
    --kc-calc-muted: #6f625c;
    --kc-calc-line: rgba(59, 42, 33, 0.12);
    --kc-calc-shell: 1180px;
    color: var(--kc-calc-ink);
    background: #fffaf5;
}

.kc-calculators__shell {
    width: min(var(--kc-calc-shell), calc(100% - 40px));
    margin: 0 auto;
}

.kc-calculators__hero {
    padding: clamp(56px, 8vw, 104px) 0 clamp(46px, 6vw, 82px);
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 225, 189, 0.8), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(232, 221, 242, 0.76), transparent 32%),
        linear-gradient(180deg, #fff9f2 0%, #fffdf9 100%);
}

.kc-calculators__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
}

.kc-calculators__eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kc-calculators h1,
.kc-calculators h2 {
    color: var(--kc-calc-ink);
    text-wrap: balance;
}

.kc-calculators h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
}

.kc-calculators__lead {
    max-width: 760px;
    margin: 24px 0 0;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;
    color: var(--kc-calc-muted);
}

.kc-calculators__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.kc-calculators__trust span {
    padding: 9px 13px;
    border: 1px solid var(--kc-calc-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 800;
}

.kc-calculators__hero-note {
    padding: 30px;
    border: 1px solid rgba(59, 42, 33, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 60px rgba(59, 42, 33, 0.08);
}

.kc-calculators__hero-note > span {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #dcebdd;
    font-size: 25px;
}

.kc-calculators__hero-note h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

.kc-calculators__hero-note p {
    margin: 0;
    line-height: 1.7;
    color: var(--kc-calc-muted);
}

.kc-calculators__section {
    padding: clamp(58px, 7vw, 92px) 0;
}

.kc-calculators__section--soft {
    background: #f8f4fb;
}

.kc-calculators__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 28px;
}

.kc-calculators__heading h2,
.kc-calculators__source-panel h2 {
    margin: 0;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.08;
}

.kc-calculators__heading > p {
    max-width: 500px;
    margin: 0;
    color: var(--kc-calc-muted);
    line-height: 1.65;
}

.kc-calculator-card {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--kc-calc-line);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(59, 42, 33, 0.07);
}

.kc-calculator-card--peach {
    background: linear-gradient(135deg, #fff3e4 0%, #fffaf3 58%, #ffffff 100%);
}

.kc-calculator-card--lavender {
    background: linear-gradient(135deg, #f0e9f6 0%, #fbf8fd 58%, #ffffff 100%);
}

.kc-calculator-card__fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kc-calculator-card__fields--age {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kc-calculator-card label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.kc-calculator-card label > span {
    font-size: 14px;
    font-weight: 900;
}

.kc-calculator-card label small {
    font-weight: 700;
    color: var(--kc-calc-muted);
}

.kc-calculator-card input,
.kc-calculator-card select {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(59, 42, 33, 0.17);
    border-radius: 14px;
    background: #ffffff;
    color: var(--kc-calc-ink);
    font: inherit;
    font-size: 16px;
}

.kc-calculator-card input:focus,
.kc-calculator-card select:focus,
.kc-calculators__button:focus-visible,
.kc-calculators a:focus-visible {
    outline: 3px solid rgba(255, 115, 92, 0.36);
    outline-offset: 3px;
}

.kc-calculator-card__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.kc-calculator-card__actions p {
    max-width: 680px;
    margin: 0;
    color: var(--kc-calc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.kc-calculators__button {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #ff735c;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 115, 92, 0.2);
}

.kc-calculators__button:hover {
    transform: translateY(-1px);
}

.kc-calculator-result {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid rgba(59, 42, 33, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
}

.kc-calculator-result[hidden] {
    display: none;
}

.kc-calculator-result__label {
    margin: 0 0 7px;
    color: var(--kc-calc-muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kc-calculator-result strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.kc-calculator-result p:last-child {
    margin-bottom: 0;
}

.kc-calculator-result [data-kc-energy-food] {
    margin: 8px 0;
    font-weight: 800;
}

.kc-calculators__explain {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.kc-calculators__explain > div {
    padding: 20px 22px;
    border: 1px solid var(--kc-calc-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.kc-calculators__explain strong {
    font-size: 17px;
}

.kc-calculators__explain p {
    margin: 8px 0 0;
    color: var(--kc-calc-muted);
    line-height: 1.65;
}

.kc-calculators__explain code {
    padding: 2px 6px;
    border-radius: 7px;
    background: rgba(59, 42, 33, 0.07);
    color: var(--kc-calc-ink);
}

.kc-calculators__source-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 42px;
    padding: clamp(26px, 4vw, 42px);
    border-radius: 30px;
    background: #dcebdd;
}

.kc-calculators__source-panel p {
    color: #536456;
    line-height: 1.65;
}

.kc-calculators__source-panel ul {
    display: grid;
    gap: 12px;
    align-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kc-calculators__source-panel a {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: #27462d;
    font-weight: 800;
    text-decoration: none;
}

.kc-calculators__source-panel a:hover {
    background: #fff;
}

.kc-calculators__privacy {
    margin: 18px 0 0;
    padding: 17px 20px;
    border: 1px solid var(--kc-calc-line);
    border-radius: 18px;
    background: #fff;
    color: var(--kc-calc-muted);
    line-height: 1.6;
}

@media (max-width: 960px) {
    .kc-calculators__hero-grid,
    .kc-calculators__heading,
    .kc-calculators__source-panel {
        grid-template-columns: 1fr;
    }

    .kc-calculator-card__fields,
    .kc-calculator-card__fields--age {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .kc-calculators__shell {
        width: min(100% - 24px, var(--kc-calc-shell));
    }

    .kc-calculators h1 {
        font-size: clamp(38px, 13vw, 54px);
    }

    .kc-calculator-card__fields,
    .kc-calculator-card__fields--age,
    .kc-calculators__explain {
        grid-template-columns: 1fr;
    }

    .kc-calculator-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kc-calculators__button {
        width: 100%;
    }

    .kc-calculators__trust {
        display: grid;
    }

    .kc-calculators__source-panel {
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kc-calculators__button {
        transition: none;
    }

    .kc-calculators__button:hover {
        transform: none;
    }
}
