:root {
    --primary-color: #0e7c66;
    --primary-dark: #0a5c4c;
    --secondary-color: #14967c;
    --mc-bg: #f5f8f7;
    --mc-ink: #10201c;
    --mc-muted: #5c6f69;
    --mc-line: #e3ebe8;
    --mc-soft: #e7f5f1;
    --mc-warn-bg: #fff6e8;
    --mc-warn-line: #f3ddb0;
    --mc-warn-ink: #8a5a12;
    --mc-card: 0 1px 2px rgba(16, 32, 28, 0.04), 0 8px 24px -12px rgba(16, 32, 28, 0.12);
    --mc-lift: 0 12px 32px -16px rgba(14, 124, 102, 0.35);
    --text-dark: #10201c;
    --text-gray: #5c6f69;
    --bg-light: #f5f8f7;
    --border-color: #e3ebe8;
}

[hidden] {
    display: none !important;
}

body {
    background: var(--mc-bg);
    color: var(--mc-ink);
    font-family: "Golos Text", sans-serif;
}

.site-main {
    padding: 0 0 24px;
}

.mc-wrap {
    width: min(1152px, calc(100% - 32px));
    margin: 0 auto;
}

.mc-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
}

.mc-header.is-stuck {
    background: rgba(245, 248, 247, 0.88);
    border-bottom-color: var(--mc-line);
    backdrop-filter: blur(12px);
}

.mc-header-row,
.mc-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.mc-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mc-ink);
    font-family: Manrope, "Golos Text", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.mc-logo > span:not(.mc-logo-mark) {
    color: var(--primary-color);
}

.mc-logo-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--mc-card);
    transition: transform 0.3s;
}

.mc-logo .mc-logo-mark {
    color: #fff;
}

.mc-logo:hover .mc-logo-mark {
    transform: rotate(-6deg);
}

.mc-logo .mc-logo-mark-soft {
    width: 32px;
    height: 32px;
    background: var(--mc-soft);
    color: var(--primary-color);
    box-shadow: none;
}

.mc-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.mc-nav-link,
.mc-icon-btn,
.mc-tg {
    text-decoration: none;
}

.mc-nav-link {
    display: none;
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--mc-muted);
    font-size: 14px;
    font-weight: 500;
}

.mc-nav-link.is-on {
    background: var(--mc-soft);
    color: var(--primary-dark);
}

.mc-icon-btn {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 10px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    color: var(--mc-muted);
    cursor: pointer;
}

.mc-header-search {
    position: relative;
    display: flex;
    flex: 1 1 220px;
    max-width: 320px;
    min-width: 0;
}

.mc-header-search input {
    width: 100%;
    border: 1px solid var(--mc-line);
    background: white;
    border-radius: 999px;
    padding: 8px 36px 8px 14px;
    font: inherit;
    font-size: 16px;
    color: var(--mc-ink);
}

.mc-header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

@media (max-width: 639px) {
    .mc-header.is-searching .mc-logo {
        display: none;
    }

    .mc-header.is-searching .mc-header-row {
        gap: 4px;
    }

    .mc-header.is-searching .mc-nav {
        flex: 1 1 auto;
        width: 100%;
    }

    .mc-header.is-searching .mc-header-search {
        flex: 1 1 auto;
        max-width: none;
    }
}

.mc-icon-btn:hover,
.mc-nav-link:hover {
    background: white;
    color: var(--mc-ink);
}

.mc-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--mc-ink);
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}

.mc-tg span {
    display: none;
}

.mc-tg:hover {
    background: var(--primary-color);
}

.mc-hero {
    position: relative;
    padding: 40px 0 28px;
    overflow: hidden;
}

.mc-glow {
    position: absolute;
    top: -80px;
    right: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--mc-soft);
    filter: blur(48px);
    opacity: 0.7;
    pointer-events: none;
}

.mc-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--mc-line);
    background: white;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-dark);
    box-shadow: var(--mc-card);
}

.mc-hero h1,
.mc-cta h2,
.calc-header h1 {
    font-family: Manrope, "Golos Text", sans-serif;
    letter-spacing: -0.03em;
}

.mc-hero h1 {
    position: relative;
    max-width: 640px;
    margin: 20px 0 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 700;
}

.mc-hero p {
    position: relative;
    max-width: 560px;
    margin: 16px 0 0;
    color: var(--mc-muted);
    font-size: 18px;
    line-height: 1.55;
}

.mc-search {
    position: relative;
    max-width: 512px;
    margin-top: 28px;
}

.mc-search > svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--mc-muted);
}

.mc-search input {
    width: 100%;
    border: 1px solid var(--mc-line);
    background: white;
    border-radius: 16px;
    padding: 16px 50px 16px 48px;
    font: inherit;
    font-size: 16px;
    color: var(--mc-ink);
    box-shadow: var(--mc-card);
}

.mc-search .mc-search-clear {
    right: 14px;
}

.mc-search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--mc-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.mc-search-clear:hover {
    background: var(--mc-bg);
    color: var(--mc-ink);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.mc-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.mc-warn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--mc-warn-line);
    background: var(--mc-warn-bg);
    color: var(--mc-warn-ink);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 13.5px;
    line-height: 1.55;
}

.mc-warn p {
    margin: 0;
}

.mc-pill svg,
.mc-cta-kicker svg {
    width: 13px;
    height: 13px;
}

.mc-warn svg,
.mc-cta a svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.mc-go svg {
    width: 14px;
    height: 14px;
}

.mc-sections {
    margin-top: 48px;
    scroll-margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.mc-section {
    margin-bottom: 56px;
}

.mc-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mc-section-head h2 {
    margin: 0;
    font-family: Manrope, "Golos Text", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mc-count {
    border-radius: 999px;
    background: white;
    box-shadow: var(--mc-card);
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mc-muted);
}

.mc-grid {
    display: grid;
    gap: 16px;
}

.mc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--mc-line);
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--mc-card);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.mc-card:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 124, 102, 0.4);
    box-shadow: var(--mc-lift);
}

.mc-card h3 {
    margin: 16px 0 0;
    font-size: 15.5px;
    font-weight: 600;
}

.mc-card p {
    margin: 6px 0 0;
    flex: 1;
    color: var(--mc-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.mc-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.mc-go svg {
    transition: transform 0.3s;
}

.mc-card:hover .mc-badge {
    transform: scale(1.1);
}

.mc-card:hover .mc-go svg {
    transform: translateX(4px);
}

.mc-badge {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex: none;
    transition: transform 0.3s;
}

.mc-badge svg {
    width: 20px;
    height: 20px;
}

.mc-card .mc-badge {
    width: 44px;
    height: 44px;
}

.mc-badge-teal { background: #f0fdfa; color: #0f766e; }
.mc-badge-sky { background: #f0f9ff; color: #0369a1; }
.mc-badge-indigo { background: #eef2ff; color: #4338ca; }
.mc-badge-amber { background: #fffbeb; color: #b45309; }
.mc-badge-cyan { background: #ecfeff; color: #0e7490; }
.mc-badge-rose { background: #fff1f2; color: #be123c; }
.mc-badge-orange { background: #fff7ed; color: #c2410c; }

.mc-empty {
    text-align: center;
    color: var(--mc-muted);
}

.mc-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 8px 0 24px;
    padding: 40px 24px;
    border-radius: 24px;
    background: var(--mc-ink);
    color: white;
}

.mc-cta::before {
    content: "";
    position: absolute;
    right: -64px;
    top: -96px;
    width: 288px;
    height: 288px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.4;
    filter: blur(48px);
    pointer-events: none;
}

.mc-cta > * {
    position: relative;
}

.mc-cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b7e4d8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mc-cta h2 {
    max-width: 520px;
    margin: 12px 0 0;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.25;
}

.mc-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    border-radius: 999px;
    background: white;
    color: var(--mc-ink);
    text-decoration: none;
    font-weight: 600;
    padding: 14px 24px;
    transition: background 0.3s, color 0.3s;
}

.mc-cta a:hover {
    background: var(--primary-color);
    color: white;
}

.mc-footer {
    margin-top: 48px;
    border-top: 1px solid var(--mc-line);
}

.mc-footer-row {
    align-items: flex-start;
    padding: 28px 0 36px;
}

.mc-footer p {
    margin: 0;
    max-width: 420px;
    color: var(--mc-muted);
    font-size: 12px;
    line-height: 1.55;
}

::selection {
    background: rgba(14, 124, 102, 0.18);
}

.site-main > .container {
    width: min(1152px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.calc-header {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 32px;
    margin: 0;
}

.mc-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
    font-size: 13px;
    color: var(--mc-muted);
}

.mc-crumb .back-link,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--mc-muted);
    font-size: 13px;
    font-weight: 500;
}

.back-link:hover {
    background: transparent;
    border-color: transparent;
    color: var(--primary-color);
    transform: none;
}

.mc-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
}

.mc-title-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    box-shadow: var(--mc-card);
}

.mc-title-icon svg {
    width: 26px;
    height: 26px;
}

.calc-header h1 {
    font-family: Manrope, "Golos Text", sans-serif;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}

.calc-header p {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mc-muted);
}

.disclaimer-box {
    background: var(--mc-warn-bg);
    border: 1px solid var(--mc-warn-line);
    border-left: 1px solid var(--mc-warn-line);
    color: var(--mc-warn-ink);
    border-radius: 16px;
    box-shadow: none;
    padding: 14px 18px;
    margin: 0 0 24px;
    font-size: 13.5px;
    line-height: 1.55;
}

.disclaimer-box strong {
    color: var(--mc-warn-ink);
    font-size: inherit;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.mc-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-form-section {
    background: white;
    border: 1px solid var(--mc-line);
    border-radius: 24px;
    box-shadow: var(--mc-card);
    padding: 20px;
}

.calc-form::before {
    content: "Данные для расчета";
    display: block;
    margin-bottom: 18px;
    font-family: Manrope, "Golos Text", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mc-ink);
}

.calc-form.mc-form-ready::before {
    content: none;
}

.calc-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.calc-form .btn-calculate,
.calc-form .mc-progress,
.calc-form .mc-form-head {
    width: 100%;
}

.mc-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    font-family: Manrope, "Golos Text", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mc-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--mc-muted);
    font-family: "Golos Text", sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.mc-reset:hover {
    color: var(--mc-ink);
}

.mc-reset:disabled {
    opacity: 0.4;
    cursor: default;
}

.mc-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 8px;
}

.mc-progress-track {
    flex: 1;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eeeb;
}

.mc-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.mc-progress-count {
    flex: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--mc-muted);
}

.calc-form h3,
.group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mc-ink);
    margin: 8px 0 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--mc-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--mc-line);
    border-radius: 12px;
    background: white;
    padding: 12px 16px;
    font-size: 16px;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

.form-group input.mc-invalid,
.form-group select.mc-invalid,
.form-group textarea.mc-invalid {
    border-color: #e11d48;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.mc-field-error {
    margin: 6px 0 0;
    color: #be123c;
    font-size: 12.5px;
    line-height: 1.4;
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group select {
    max-width: none;
    width: 100%;
}

.form-row {
    grid-template-columns: 1fr;
    max-width: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

#resultsContent {
    display: flex;
    flex-direction: column;
}

.result-main {
    order: -1;
}

.btn-calculate,
.btn-primary {
    background: var(--primary-color);
    box-shadow: none;
    border-radius: 12px;
    font-size: 15px;
    padding: 14px 16px;
}

.btn-calculate:hover,
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: none;
    transform: none;
}

.calc-results-section {
    display: block;
    margin: 0;
    padding: 0;
    min-height: 0;
    overflow: hidden;
    background: white;
    border: 1px solid var(--mc-line);
    border-radius: 24px;
    box-shadow: var(--mc-card);
}

.calc-results-section > h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 16px 20px;
    background: rgba(231, 245, 241, 0.6);
    border-bottom: 1px solid var(--mc-line);
    color: var(--primary-dark);
    font-family: Manrope, "Golos Text", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calc-results-section > h3 svg {
    width: 15px;
    height: 15px;
}

.calc-results-section > :not(h3) {
    margin: 20px 20px 0;
}

.calc-results-section > :not(h3):last-child {
    margin-bottom: 24px;
}

.calc-results-section:not(.show):not(:has(#resultsContent:not(:empty)))::after {
    content: "Введите данные. Результат появится здесь после расчета.";
    display: block;
    padding: 8px 24px 28px;
    text-align: center;
    color: var(--mc-muted);
    font-size: 13px;
    line-height: 1.5;
}

.result-item,
.result-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 6px 0;
    margin: 0 0 2px;
}

.result-item .result-label,
.result-main .result-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--mc-muted);
}

.result-item .result-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--mc-ink);
}

.result-main {
    display: block;
    padding: 0 0 4px;
}

.result-main .result-label {
    display: block;
    font-weight: 500;
}

.result-main .result-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    font-family: Manrope, "Golos Text", sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--mc-ink);
}

.mc-unit {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--mc-muted);
}

.result-item .mc-unit {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 400;
}

.result-info {
    margin-top: 8px;
    color: var(--mc-muted);
    font-size: 13px;
    line-height: 1.5;
}

.result-status {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.status-normal,
.status-info {
    background: var(--mc-soft);
    color: var(--primary-dark);
    border-color: rgba(14, 124, 102, 0.25);
}

.status-warning {
    background: var(--mc-warn-bg);
    color: var(--mc-warn-ink);
    border-color: var(--mc-warn-line);
}

.status-danger {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.side-note {
    background: var(--mc-bg);
    border-radius: 12px;
    box-shadow: none;
}

.info-block {
    margin: 0;
    padding: 20px;
    background: white;
    border: 1px solid var(--mc-line);
    border-left: 1px solid var(--mc-line);
    border-radius: 24px;
    box-shadow: var(--mc-card);
}

.info-block h4 {
    margin: 18px 0 8px;
    color: var(--mc-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-block h4:first-child {
    margin-top: 0;
}

.info-block p,
.info-block li {
    color: var(--mc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.mc-formula {
    background: var(--mc-bg);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    font-family: Manrope, "Golos Text", sans-serif;
}

.mc-formula strong {
    color: var(--mc-ink);
    font-size: 15px;
    font-weight: 700;
}

label:has(> input[type="radio"]) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-right: 0;
    white-space: normal;
    line-height: 1.4;
}

label:has(> input[type="radio"]) input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0;
    padding: 0;
    flex: 0 0 22px;
    border: 2px solid #c5d5d0;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-content: center;
    box-shadow: none;
}

label:has(> input[type="radio"]) input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
}

label:has(> input[type="radio"]) input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

label:has(> input[type="radio"]) input[type="radio"]:checked::before {
    transform: scale(1);
}

label:has(> input[type="radio"]:focus-visible) {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

label:has(> input[type="radio"]:checked) {
    background: var(--mc-soft);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.mode-pick {
    display: flex;
    width: min(100%, 480px);
    gap: 4px;
    margin: 0 0 24px;
    padding: 4px;
    border: 1px solid var(--mc-line);
    border-radius: 14px;
    background: #fff;
}

.mode-pick label:has(> input[type="radio"]) {
    position: relative;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--mc-muted);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}

.mode-pick label:has(> input[type="radio"]) input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.mode-pick label:has(> input[type="radio"]:checked) {
    background: var(--mc-soft);
    color: var(--primary-dark);
    border: 0;
    box-shadow: none;
}

.question label:has(> input[type="radio"]) {
    display: flex;
    align-items: flex-start;
    white-space: normal;
    width: 100%;
    margin-right: 0;
}

thead {
    background: var(--primary-color);
}

@media (min-width: 640px) {
    .mc-nav-link,
    .mc-tg span {
        display: inline;
    }
    .mc-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mc-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 48px 40px;
    }
    .mc-footer-row {
        align-items: center;
    }
}

@media (min-width: 640px) {
    .calc-form-section {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-results-section.show {
        position: static;
        top: auto;
    }
}

@media (min-width: 1024px) {
    .mc-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .calc-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }

    .mc-aside {
        position: static;
    }
}
