/* =========================
   Калькулятор тижня вагітності
   у єдиному стилі з калькуляторами пального, TCO, розмитнення, EV та шин
   (все всередині .wk)
========================= */

.wk,
.wk * {
    box-sizing: border-box;
}

.wk {
    --e-card: #fff;
    --e-text: #222;
    --e-muted: #6b7280;
    --e-brand: #283b69;
    --e-brand2: #1f2f55;
    --e-border: #e6e8ef;
    --e-shadow: 0 1px 3px rgba(31, 47, 85, .06), 0 10px 30px rgba(40, 59, 105, .14);
    --e-radius: 20px;
    font-family: var(--font-sans);
    color: var(--e-text);
}

.wk__wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 0 20px;
}

.wk__titlebar {
    background: var(--header-grad-solid, linear-gradient(180deg, #2c3b5f 0%, #40527e 55%, #566a9e 100%));
    color: #fff;
    border-radius: var(--e-radius);
    padding: 16px;
    box-shadow: var(--e-shadow);
    margin-bottom: 14px;
}

.wk__h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.wk__p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    line-height: 1.55;
}

.wk__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 980px) {
    .wk__grid {
        grid-template-columns: 1fr;
    }
}

.wk__card {
    background: var(--e-card);
    border: 1px solid var(--e-border);
    border-radius: var(--e-radius);
    box-shadow: var(--e-shadow);
    padding: 14px;
    min-width: 0;
    scroll-margin-top: 90px;
}

.wk__sectionTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--e-border);
}

.wk__h2 {
    font-size: 15px;
    margin: 0;
    font-weight: 800;
    color: var(--e-brand2);
}

.wk__badge {
    font-size: 12px;
    color: #fff;
    background: rgba(40, 59, 105, .9);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.wk__auto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #2b3a55;
    cursor: pointer;
}

.wk__auto input {
    width: 16px;
    height: 16px;
    accent-color: #283b69;
}

.wk__mt12 {
    margin-top: 12px;
}

/* ===== Поля ===== */
.wk__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 520px) {
    .wk__rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wk__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.wk__label {
    font-weight: 900;
    font-size: 13px;
    color: #2b3a55;
}

.wk__hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--e-muted);
    line-height: 1.4;
}

.wk__req {
    margin-left: 2px;
    font-weight: 900;
    color: #d64545;
    cursor: help;
}

.wk input.wk__input {
    height: 36px;
    width: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    outline: none;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
}

.wk input.wk__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.wk select.wk__input {
    height: 36px;
    width: 100%;
    padding: 0 10px;
    border: .8px solid #b9cdee;
    border-radius: 10px;
    background-color: #eaf1fc;
    color: #1f2f55;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.wk input.wk__input:focus {
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .14), 0 3px 8px rgba(40, 59, 105, .08);
}

.wk select.wk__input:focus {
    border-color: #8fa8d6;
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .14);
}

/* вибір валюти: кнопка з прапорцем і випадний список (як у калькуляторах пального та TCO) */
.wk__dd {
    position: relative;
    align-self: flex-start;
}

.wk__ddBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #b9cdee;
    border-radius: 10px;
    background: #eaf1fc;
    color: #1f2f55;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.wk__ddBtn:hover {
    background: #e0eafa;
    border-color: #8fa8d6;
}

.wk__ddBtn:focus-visible {
    outline: none;
    border-color: #283b69;
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .14);
}

.wk__ddFlag {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(31, 47, 85, .15);
}

.wk__caret {
    width: 7px;
    height: 7px;
    margin: 0 2px 3px 2px;
    border-right: 2px solid #1f2f55;
    border-bottom: 2px solid #1f2f55;
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.wk__ddBtn[aria-expanded="true"] .wk__caret {
    transform: rotate(-135deg);
    margin-bottom: 0;
}

.wk__ddList {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 250px;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(31, 47, 85, .08), 0 14px 32px rgba(40, 59, 105, .20);
}

.wk__ddList[hidden] {
    display: none;
}

.wk__ddList li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    cursor: pointer;
}

.wk__ddList li:hover,
.wk__ddList li:focus {
    background: #eaf1fc;
    outline: none;
}

.wk__ddList li[aria-selected="true"] {
    background: #dfeafb;
    font-weight: 700;
}

.wk__ddCode {
    flex: 0 0 38px;
    font-weight: 700;
    color: #1f2f55;
}

.wk__ddName {
    color: #5b6b8c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 520px) {
    .wk__ddList {
        min-width: 230px;
    }
}

/* блоки всередині картки */
.wk__block {
    background: #f6f7fb;
    border: 1px solid var(--e-border);
    border-radius: 14px;
    padding: 12px;
}

.wk__miniTitle {
    font-weight: 800;
    color: var(--e-brand2);
    font-size: 13px;
    margin-bottom: 10px;
}

.wk__block .wk__rows {
    margin-top: 0;
}

/* згорнутий блок */
.wk__details {
    border: 1px solid var(--e-border);
    border-radius: 14px;
    background: #f6f7fb;
    padding: 0 14px;
}

.wk__details[open] {
    padding-bottom: 14px;
}

.wk__details > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 900;
    font-size: 13px;
    color: #1f2f55;
    padding: 12px 0;
}

.wk__details > summary::-webkit-details-marker {
    display: none;
}

.wk__details > summary::after {
    content: "▾";
    float: right;
    transition: transform .15s ease;
}

.wk__details[open] > summary::after {
    transform: rotate(180deg);
}

/* ===== Режим: чіпи зі значками ===== */
.wk__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wk__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #dfe5f2;
    border-radius: 12px;
    background: #fff;
    color: #1f2f55;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .06), 0 4px 10px rgba(40, 59, 105, .08);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.wk__chip .wk__ico {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #5b78b8;
}

.wk__chip:hover {
    transform: translateY(-1px);
    border-color: #b9cdee;
    background: #f6f9ff;
    box-shadow: 0 2px 4px rgba(31, 47, 85, .08), 0 8px 16px rgba(40, 59, 105, .14);
}

.wk__chip.is-active {
    border-color: #8fa8d6;
    background: #eaf1fc;
    transform: none;
    box-shadow: 0 6px 14px rgba(60, 99, 196, .22);
}

.wk__chip.is-active .wk__ico {
    color: #283b69;
}


/* ===== Кнопки ===== */
.wk__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wk__btn {
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #1f2f55 0%, #2c4070 55%, #3c538f 100%);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 14px rgba(40, 59, 105, .35);
    transition: filter .15s ease, transform .15s ease;
}

.wk__btn:hover {
    filter: brightness(1.12);
}

.wk__btn:active {
    transform: translateY(1px);
}

#exampleBtn {
    background: #eaf1fc;
    color: #1f2f55;
    box-shadow: inset 0 0 0 1px #b9cdee;
}

#exampleBtn:hover {
    background: #dfe9fa;
    filter: none;
}

.wk__btn--wide {
    min-width: 150px;
    padding: 0 22px;
}

.wk__toast {
    margin-top: 10px;
    font-size: 12px;
    color: var(--e-muted);
    min-height: 16px;
}

/* ===== Результат ===== */
.wk__result {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.wk__hintbox {
    background: #fff4d6;
    border: 1px solid #f0d48a;
    color: #8a5a00;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.wk__head {
    font-size: 12px;
    font-weight: 700;
    color: #5b6b8c;
    margin-bottom: 10px;
}

.wk__kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wk__kpi {
    background: #fff;
    border: 1px solid #dfe5f2;
    border-radius: 14px;
    padding: 11px 12px;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .05), 0 6px 14px rgba(40, 59, 105, .09);
    min-width: 0;
}

.wk__kpi--main {
    background: linear-gradient(135deg, #eef4fd 0%, #dfe9fa 100%);
    border-color: #c5d6f1;
}

.wk__kpiT {
    font-size: 12px;
    font-weight: 700;
    color: #5b6b8c;
}

.wk__kpiV {
    margin-top: 3px;
    font-size: 20px;
    font-weight: 900;
    color: #1f2f55;
    line-height: 1.2;
}

.wk__kpiM {
    margin-top: 3px;
    font-size: 12px;
    color: var(--e-muted);
    line-height: 1.35;
}

.wk__sub {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #1f2f55;
}

.wk__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--e-muted);
    line-height: 1.45;
}

/* порівняння: дешевший — м'яко-зелений, дорожчий — м'яко-червоний */
.wk__kpi.is-win {
    background: #eaf6ee;
    border-color: #bfe3cb;
}

.wk__kpi.is-lose {
    background: #fdeeee;
    border-color: #f1c4c4;
}

.wk__verdict {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #1f2f55;
    background: #eaf1fc;
    border: 1px solid #c5d6f1;
}

.wk__verdict.is-home,
.wk__verdict.is-station {
    background: #eaf6ee;
    border-color: #bfe3cb;
}

.wk__colHead {
    grid-column: 1 / -1;
    margin: 6px 0 -2px;
    font-size: 12px;
    font-weight: 900;
    color: #283b69;
}

.wk-mini {
    font-size: 12px;
    color: var(--e-muted);
}

@media (max-width: 420px) {
    .wk__kpiV {
        font-size: 18px;
    }
}

/* ===== Споріднені калькулятори ===== */
.cc-related {
    max-width: 900px;
    margin: 28px auto 0;
    padding: 0 16px;
}

.cc-related h2 {
    color: #283b69;
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
}

.cc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cc-related-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: #444;
    box-shadow: 0 6px 20px rgba(40, 59, 105, .12);
    transition: transform .15s ease, box-shadow .15s ease;
}

.cc-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(40, 59, 105, .2);
}

.cc-related-card b {
    color: #283b69;
    font-size: 15px;
}

.cc-related-card span {
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .cc-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SEO / FAQ ===== */
.cc-divider {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-top: 2px dashed rgba(40, 59, 105, .35);
}

.cc-seo,
.cc-faq {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.cc-seo h2,
.cc-faq h2 {
    font-size: 22px;
    color: #283b69;
    margin-bottom: 14px;
}

.cc-seo p {
    margin-bottom: 14px;
    line-height: 1.6;
    font-size: 15px;
}

.cc-seo a {
    color: #283b69;
    font-weight: 700;
}

.cc-faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(40, 59, 105, .09);
}

.cc-faq-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #283b69;
}

.cc-faq-item p {
    font-size: 14px;
    color: #444;
    line-height: 1.55;
}

/* довгі списки (розетка, потужність станції) — на всю ширину рядка */
.wk__field--full {
    grid-column: 1 / -1;
}

/* ===== запас ходу: додаткові елементи ===== */
.wk__kpi--wide {
    grid-column: 1 / -1;
}

.wk__kpi--main .wk__kpiV {
    font-size: 26px;
}

.wk__link {
    color: #283b69;
    font-weight: 700;
    text-decoration: underline;
}

.wk__verdict.is-ok {
    background: #eaf6ee;
    border-color: #bfe3cb;
}

.wk__verdict.is-bad {
    background: #fdeeee;
    border-color: #f1c4c4;
}

/* кнопки результату — однакової ширини на всю ширину блоку */
#shareBtn,
#exampleBtn,
#resetBtn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
}

/* ===== власне авто чи таксі: додаткові елементи ===== */
.wk__mt10 {
    margin-top: 10px;
}

.wk__block + .wk__block {
    margin-top: 12px;
}

.wk__rows[hidden] {
    display: none;
}

.wk__rows--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wk__chips + .wk__rows {
    margin-top: 12px;
}

.wk__details .wk__rows {
    margin-top: 0;
}

.wk__verdict.is-ok {
    background: #eaf6ee;
    border-color: #bfe3cb;
}

.wk__verdict.is-warn {
    background: #eaf6f6;
    border-color: #b9dfe0;
}

.wk__tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.wk__tbl th,
.wk__tbl td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--e-border);
    color: #1f2f55;
}

.wk__tbl th {
    text-align: left;
    font-weight: 700;
    color: #5b6b8c;
}

.wk__tbl td {
    text-align: right;
}

.wk__tbl thead th {
    font-size: 12px;
    font-weight: 800;
}

.wk__tbl thead th:last-child {
    text-align: right;
}

.wk__tbl tr.wk__total th,
.wk__tbl tr.wk__total td {
    border-bottom: 0;
    font-weight: 900;
    color: #1f2f55;
}

.wk__chart {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 6px;
}

.wk__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--e-muted);
}

.wk__legend i {
    display: inline-block;
    width: 18px;
    height: 4px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: middle;
}

/* вирівнювання полів: підписи різної довжини не зсувають поля, рядки підсітки спільні для обох колонок */
@supports (grid-template-rows: subgrid) {
    .wk__rows > .wk__field {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
        align-content: start;
    }

    .wk__rows > .wk__field > :nth-child(2),
    .wk__rows > .wk__field > :nth-child(3) {
        margin-top: 6px;
    }
}

.wk__tbl--cmp thead th:not(:first-child) {
    text-align: right;
}

.wk__qrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wk__qchip {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #b9cdee;
    border-radius: 999px;
    background: #eaf1fc;
    color: #1f2f55;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.wk__qchip:hover {
    background: #dfe9fa;
    border-color: #8fa8d6;
}

.wk__qchip.is-on {
    background: #283b69;
    border-color: #283b69;
    color: #fff;
}

.wk__chips {
    margin-bottom: 12px;
}

.wk__chip {
    padding: 8px 12px;
}

@media (max-width: 520px) {
    .wk__chips .wk__chip {
        flex: 1 1 100%;
    }
}

.wk__cur {
    display: flex;
    gap: 6px;
}

.wk__cur .wk__chip {
    padding: 6px 12px;
}

.wk__titleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wk__donut {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.wk__donutSvg {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
}

.wk__dl {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk__dl li {
    display: grid;
    grid-template-columns: 10px 1fr;
    column-gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--e-muted);
    line-height: 1.3;
}

.wk__dl li i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.wk__dl li b {
    grid-column: 2;
    font-size: 13px;
    color: #1f2f55;
}

.wk__sectionTitle .wk__ddList {
    min-width: 250px;
}

.wk__link {
    display: inline-block;
    margin-top: 8px;
    color: #283b69;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
}

.wk__chipsRow {
    grid-column: 1 / -1;
}

.wk__schedule {
    margin-top: 14px;
}

.wk__schedHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.wk__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wk__tableWrap {
    max-height: 460px;
    overflow: auto;
    border: 1px solid var(--e-border);
    border-radius: 12px;
}

.wk__tbl--sch {
    margin-top: 0;
    min-width: 440px;
}

.wk__tbl--sch th,
.wk__tbl--sch td {
    text-align: right;
    white-space: nowrap;
}

.wk__tbl--sch thead th {
    position: sticky;
    top: 0;
    background: #eaf1fc;
    z-index: 1;
}

.wk__tbl--sch th:first-child,
.wk__tbl--sch td:first-child {
    text-align: left;
    font-weight: 700;
    color: #5b6b8c;
}

.wk__tbl--sch tbody tr:nth-child(even) td {
    background: #f6f7fb;
}

.wk__tbl--sch tr.wk__total td {
    position: sticky;
    bottom: 0;
    background: #eaf1fc;
    font-weight: 900;
    color: #1f2f55;
    border-bottom: 0;
}

.wk__qchip--tool {
    height: 32px;
}

/* таблиця в SEO-тексті */
.cc-seo table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(40, 59, 105, .09);
}

.cc-seo th,
.cc-seo td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #e6e8ef;
}

.cc-seo th {
    background: #eaf1fc;
    color: #1f2f55;
}

.cc-seo tr:last-child td {
    border-bottom: 0;
}

.cc-seo .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
    .cc-seo th,
    .cc-seo td {
        padding: 8px 6px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .cc-seo table {
        display: block;
        overflow-x: auto;
    }
}

.wk__inwrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk__inwrap .wk__input {
    flex: 1 1 auto;
    min-width: 0;
}

.wk__seg {
    flex: 0 0 auto;
    display: inline-flex;
    border: 1px solid #b9cdee;
    border-radius: 10px;
    overflow: hidden;
    background: #eaf1fc;
}

.wk__seg button {
    height: 34px;
    min-width: 44px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #1f2f55;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.wk__seg button.is-on {
    background: #283b69;
    color: #fff;
}

.wk .wk__input[type="date"] {
    min-height: 36px;
    font-family: inherit;
}

.wk__field[hidden] {
    display: none;
}

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

.wk__mode {
    display: block;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #c5d6f1;
    border-radius: 12px;
    background: #fff;
    color: #1f2f55;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.wk__mode:hover {
    border-color: #8fa8d6;
}

.wk__mode.is-active {
    border-color: #283b69;
    background: #eaf1fc;
    box-shadow: 0 0 0 1px #283b69;
}

.wk__mode b {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.wk__mode span {
    display: block;
    margin-top: 4px;
    color: #5b6b8c;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 560px) {
    .wk__modes {
        grid-template-columns: 1fr;
    }
}

.wk__miniTitle.wk__mt12 {
    margin-top: 14px;
}

#lmpWrap[hidden],
#concWrap[hidden],
#ivfWrap[hidden],
#usWrap[hidden],
#eddWrap[hidden] {
    display: none;
}

.wk__tbl--sch {
    min-width: 520px;
}

.wk__link {
    margin-right: 14px;
}

.wk__block .wk__mt12 {
    margin-top: 12px;
}

@media (max-width: 480px) {
    .wk__details .wk__rows {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wk__kpiV {
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .wk__kpi:not(.wk__kpi--wide) .wk__kpiV--s {
        font-size: 14px;
    }
}

.wk__chartScroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wk__chart {
    display: block;
    width: 100%;
    min-width: 410px;
    height: auto;
    margin-top: 6px;
}

.wk__bar {
    height: 10px;
    margin-top: 14px;
    border-radius: 999px;
    background: #dfe7f6;
    overflow: hidden;
}

.wk__bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f8b8d, #283b69);
}

.wk__warn {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #f1d9a6;
    border-radius: 12px;
    background: #fff7e3;
    color: #7a5400;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}

.wk__warn.is-ok {
    border-color: #b9e0cc;
    background: #eaf7f0;
    color: #1f6f4a;
}

.due input.wk__input[type="date"] {
    min-height: 36px;
    font-family: inherit;
}

/* чотири кнопки під результатом: не стискаємо, а переносимо на новий рядок */
#shareBtn,
#exampleBtn,
#resetBtn,
#copyBtn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.wk__mode:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.wk__mile {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe5f6;
    border-radius: 14px;
    background: #f6f9ff;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.45;
}

.wk__mileT {
    margin-bottom: 3px;
    color: #1f2f55;
    font-size: 12.5px;
    font-weight: 800;
}

.wk__mileT--next {
    margin-top: 10px;
}

/* лише два поля: одне під одним, щоб довгі підписи не тіснились */
.wk__block .wk__rows {
    grid-template-columns: minmax(0, 1fr);
}

/* акцентний блок «додаткові параметри» */
.wk__details {
    padding: 0;
    border: 1px solid #8fa8d6;
    background: #f6f9ff;
}

.wk__details[open] {
    padding-bottom: 14px;
}

.wk__details > summary {
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #eef4ff, #dbe8fb);
    color: #1f2f55;
    font-size: 13.5px;
    transition: background .15s ease;
}

.wk__details[open] > summary {
    border-radius: 13px 13px 0 0;
}

.wk__details > summary:hover {
    background: linear-gradient(180deg, #e6efff, #d0e0fa);
}

.wk__details > summary::before {
    content: "+";
    display: grid;
    flex: 0 0 22px;
    place-items: center;
    height: 22px;
    border-radius: 50%;
    background: #283b69;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.wk__details[open] > summary::before {
    content: "−";
}

.wk__details > summary::after {
    float: none;
    margin-left: auto;
}

.wk__details > :not(summary) {
    margin-right: 14px;
    margin-left: 14px;
}

.wk__details > .wk__rows {
    margin-top: 12px;
}

.wk__paren {
    color: #5b6b8c;
    font-size: .62em;
    font-weight: 800;
    white-space: nowrap;
}

/* плитка «Розмір малюка» */
.wk__size {
    display: flex;
    align-items: center;
    gap: 16px;
    border-color: #f0d3ae;
    background: linear-gradient(135deg, #fffaf0 0%, #ffeedb 100%);
}

.wk__sizeEmoji {
    display: grid;
    flex: 0 0 68px;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(240, 190, 120, .35), 0 6px 14px rgba(120, 70, 10, .15);
    font-size: 38px;
    line-height: 1;
}

.wk__sizeBody {
    min-width: 0;
}

.wk__sizeName {
    margin-top: 2px;
    color: #1f2f55;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .wk__sizeEmoji {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        font-size: 30px;
    }

    .wk__sizeName {
        font-size: 20px;
    }
}

/* >>> кнопки як у кухні й спорту */
.wk__actions { gap: 10px; }
#calcBtn.wk__btn, #shareBtn.wk__btn, #exampleBtn.wk__btn, #resetBtn.wk__btn, #copyBtn.wk__btn { position: relative; top: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 14px; overflow: hidden; border: 0; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.07) 49%, rgba(255, 255, 255, 0) 50%), linear-gradient(135deg, #38497a 0%, #4f649a 55%, #6a80b8 100%); color: #fff; font-size: 14px; font-weight: 800; filter: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(15, 25, 50, .25), 0 2px 4px rgba(40, 59, 105, .22), 0 8px 18px rgba(44, 59, 95, .32); transition: top .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, background .65s ease, color .65s ease; }
#calcBtn.wk__btn { width: auto; flex: 0 0 auto; min-width: 190px; padding: 0 28px; }
#copyBtn.wk__btn { flex: 1 1 100%; }
#shareBtn.wk__btn, #exampleBtn.wk__btn, #resetBtn.wk__btn { flex: 1 1 96px; min-width: 0; padding: 0 8px; gap: 6px; font-size: 13px; }
#calcBtn.wk__btn::before, #shareBtn.wk__btn::before, #exampleBtn.wk__btn::before, #resetBtn.wk__btn::before, #copyBtn.wk__btn::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; background-position: center; background-repeat: no-repeat; background-size: 18px 18px; transition: transform .75s cubic-bezier(.3, 1.6, .5, 1); }
#calcBtn.wk__btn::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%2714%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%276%27%20width%3D%278%27%20height%3D%273%27%2F%3E%3Cpath%20d%3D%27M8%2013h.01M12%2013h.01M16%2013h.01M8%2017h.01M12%2017h.01M16%2017h.01%27%2F%3E%3C%2Fsvg%3E"); }
#shareBtn.wk__btn::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2718%27%20cy%3D%275%27%20r%3D%273%27%2F%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2712%27%20r%3D%273%27%2F%3E%3Ccircle%20cx%3D%2718%27%20cy%3D%2719%27%20r%3D%273%27%2F%3E%3Cpath%20d%3D%27m8.6%2013.5%206.8%204M15.4%206.5l-6.8%204%27%2F%3E%3C%2Fsvg%3E"); }
#copyBtn.wk__btn::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%279%27%20y%3D%279%27%20width%3D%2712%27%20height%3D%2712%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1%27%2F%3E%3C%2Fsvg%3E"); }
#exampleBtn.wk__btn::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23283b69%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m12%203%201.9%205.1L19%2010l-5.1%201.9L12%2017l-1.9-5.1L5%2010l5.1-1.9z%27%2F%3E%3Cpath%20d%3D%27M19%203v4M17%205h4%27%2F%3E%3C%2Fsvg%3E"); }
#resetBtn.wk__btn::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%231f2f55%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2012a9%209%200%201%200%203-6.7L3%208%27%2F%3E%3Cpath%20d%3D%27M3%203v5h5%27%2F%3E%3C%2Fsvg%3E"); }
#calcBtn.wk__btn::after, #shareBtn.wk__btn::after, #exampleBtn.wk__btn::after, #resetBtn.wk__btn::after, #copyBtn.wk__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1.5s ease; pointer-events: none; }
#calcBtn.wk__btn:hover, #shareBtn.wk__btn:hover, #exampleBtn.wk__btn:hover, #resetBtn.wk__btn:hover, #copyBtn.wk__btn:hover { top: -2px; filter: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(15, 25, 50, .25), 0 3px 6px rgba(40, 59, 105, .25), 0 14px 28px rgba(44, 59, 95, .42); }
#calcBtn.wk__btn:hover::before, #shareBtn.wk__btn:hover::before, #exampleBtn.wk__btn:hover::before, #resetBtn.wk__btn:hover::before, #copyBtn.wk__btn:hover::before { transform: rotate(-10deg) scale(1.15); }
#calcBtn.wk__btn:hover::after, #shareBtn.wk__btn:hover::after, #exampleBtn.wk__btn:hover::after, #resetBtn.wk__btn:hover::after, #copyBtn.wk__btn:hover::after { transform: translateX(120%); }
#calcBtn.wk__btn:active, #shareBtn.wk__btn:active, #exampleBtn.wk__btn:active, #resetBtn.wk__btn:active, #copyBtn.wk__btn:active { top: 0; transform: none; box-shadow: 0 1px 2px rgba(40, 59, 105, .25); }
#calcBtn.wk__btn:focus-visible, #shareBtn.wk__btn:focus-visible, #exampleBtn.wk__btn:focus-visible, #resetBtn.wk__btn:focus-visible, #copyBtn.wk__btn:focus-visible { outline: 2px solid #4b7bdc; outline-offset: 3px; }
#exampleBtn.wk__btn { background: linear-gradient(180deg, #fff, #eceff7); color: #283b69; box-shadow: inset 0 0 0 1.5px #c5cee3, 0 6px 14px rgba(40, 59, 105, .12); }
#exampleBtn.wk__btn:hover { background: linear-gradient(180deg, #fff, #dfe4f0); box-shadow: inset 0 0 0 1.5px #566a9e, 0 12px 24px rgba(44, 59, 95, .22); }
#resetBtn.wk__btn { background: #fff; color: #1f2f55; box-shadow: inset 0 0 0 1.5px #cfd9ee, 0 4px 10px rgba(40, 59, 105, .1); }
#resetBtn.wk__btn:hover { color: #b3261e; background: #fff6f5; box-shadow: inset 0 0 0 1.5px #e7a6a1, 0 10px 22px rgba(179, 38, 30, .16); }
#resetBtn.wk__btn:hover::before { transform: rotate(-200deg); background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23b3261e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2012a9%209%200%201%200%203-6.7L3%208%27%2F%3E%3Cpath%20d%3D%27M3%203v5h5%27%2F%3E%3C%2Fsvg%3E"); }
@media (prefers-reduced-motion: reduce) { .wk__mode, .wk__mode::before, #calcBtn.wk__btn, #shareBtn.wk__btn, #exampleBtn.wk__btn, #resetBtn.wk__btn, #copyBtn.wk__btn, #calcBtn.wk__btn::before, #shareBtn.wk__btn::before, #exampleBtn.wk__btn::before, #resetBtn.wk__btn::before, #copyBtn.wk__btn::before, #calcBtn.wk__btn::after, #shareBtn.wk__btn::after, #exampleBtn.wk__btn::after, #resetBtn.wk__btn::after, #copyBtn.wk__btn::after { transition: none; } }
/* <<< кнопки як у кухні й спорту */
