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

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

.frc {
    --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);
}

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

.frc__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;
}

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

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

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

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

.frc__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;
}

.frc__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);
}

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

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

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

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

.frc__mt12 {
    margin-top: 12px;
}

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

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

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

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

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

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

.frc input.frc__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);
}

.frc input.frc__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.frc select.frc__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;
}

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

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

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

.frc__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;
}

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

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

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

.frc__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;
}

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

.frc__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);
}

.frc__ddList[hidden] {
    display: none;
}

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

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

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

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

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

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

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

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

.frc__block .frc__rows {
    margin-top: 0;
}

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

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

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

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

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

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

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

.frc__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;
}

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

.frc__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);
}

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

.frc__chip.is-active .frc__ico {
    color: #283b69;
}


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

.frc__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;
}

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

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

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

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

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

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

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

.frc__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;
}

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

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

.frc__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;
}

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

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

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

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

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

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

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

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

.frc__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;
}

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

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

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

@media (max-width: 420px) {
    .frc__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;
}

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

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

.frc__kpi--main .frc__kpiV {
    font-size: 26px;
}

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

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

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

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

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

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

.frc__rows[hidden] {
    display: none;
}

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

.frc__chips + .frc__rows {
    margin-top: 12px;
}

.frc__details .frc__rows {
    margin-top: 0;
}

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

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

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

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

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

.frc__tbl td {
    text-align: right;
}

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

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

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

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

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

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

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

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

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

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

.frc__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;
}

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

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

.frc__chips {
    margin-bottom: 12px;
}

.frc__chip {
    padding: 8px 12px;
}

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

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

.frc__cur .frc__chip {
    padding: 6px 12px;
}

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

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

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

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

.frc__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;
}

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

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

.frc__sectionTitle .frc__ddList {
    min-width: 250px;
}

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

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

.frc__schedule {
    margin-top: 14px;
}

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

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

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

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

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

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

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

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

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

.frc__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;
    }
}

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

.frc__inwrap .frc__input {
    flex: 1 1 auto;
    min-width: 0;
}

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

.frc__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;
}

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

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

/* сценарій: власний випадний список */
.frc__sel {
    position: relative;
}

.frc__selBtn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 36px;
    padding: 0 12px 0 10px;
    border: .8px solid #b9cdee;
    border-radius: 10px;
    background: #eaf1fc;
    color: #1f2f55;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

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

.frc__selBtn:focus-visible,
.frc__selBtn[aria-expanded="true"] {
    outline: none;
    border-color: #283b69;
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .14);
}

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

.frc__selList {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 30;
    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);
}

.frc__selList[hidden] {
    display: none;
}

.frc__selList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

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

.frc__selList li[aria-selected="true"] {
    background: #dfeafb;
    color: #1f2f55;
    font-weight: 800;
}

.frc__selList li[aria-selected="true"]::after {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 11px;
    margin: 0 4px 3px 0;
    border-right: 2px solid #283b69;
    border-bottom: 2px solid #283b69;
    transform: rotate(45deg);
}


.frc__field[hidden] {
    display: none;
}

.frc__block .frc__mt12 {
    margin-top: 12px;
}

.frc__link {
    margin-right: 14px;
}

.frc__hint .frc__link {
    margin-right: 0;
    display: inline;
    font-size: inherit;
}

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

.frc__stages {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #8fa8d6;
    border-radius: 14px;
    background: #f6f9ff;
}

.frc__stages[hidden] {
    display: none;
}

.frc__wsum {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 800;
}

.frc__wsum.is-ok {
    color: #0f7a3a;
}

.frc__wsum.is-bad {
    color: #b45309;
}

/* результат */
.frc__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #c5d6f1;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef4fd 0%, #dfe9fa 100%);
}

.frc__big {
    margin-top: 2px;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    color: #1f2f55;
    overflow-wrap: anywhere;
}

.frc__eq {
    margin-top: 4px;
    font-size: 12px;
    color: #5b6b8c;
}

.frc__per {
    text-align: right;
}

.frc__perV {
    margin-top: 2px;
    font-size: 20px;
    font-weight: 900;
    color: #1f2f55;
}

.frc__bar {
    display: flex;
    height: 22px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6e8ef;
}

.frc__bar > div {
    min-width: 2px;
}

.frc__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
    font-size: 12px;
    color: #5b6b8c;
}

.frc__legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 3px;
    vertical-align: -1px;
}

.frc__kpis--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.frc__result {
    container-type: inline-size;
}

.frc__kpis--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

@container (min-width: 500px) {
    .frc__kpis--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.frc__kpiV {
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .frc__block .frc__rows {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .frc__kpi .frc__kpiV--s {
        font-size: 14px;
    }
}

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

.frc__tbl--sch th,
.frc__tbl--sch td {
    text-align: right;
}

.frc__tbl--sch th:first-child,
.frc__tbl--sch td:first-child {
    text-align: left;
}

/* підписи полів, що переносяться на 2 рядки: притиснуті до поля, зірочка не відривається */
@supports (grid-template-rows: subgrid) {
    .frc__rows > .frc__field > .frc__label {
        align-self: end;
    }
}

.frc__req {
    white-space: nowrap;
}

/* вибір режиму: картки з підписом */
.frc__mcards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

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

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

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

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

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

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

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

/* ціни етапів: акцентний блок */
.frc__rates {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #8fa8d6;
    border-radius: 14px;
    background: #f6f9ff;
}

.frc__rates[hidden],
[data-panel][hidden] {
    display: none;
}

.frc__hint--mb {
    margin-bottom: 8px;
}

.frc__lists {
    margin-top: 10px;
    color: #3d4d73;
    font-size: 12.5px;
    line-height: 1.5;
}

.frc__perV--s {
    font-size: 15px;
}

.frc__mt6 {
    margin-top: 6px;
}

/* підказка з орієнтиром ціни: на всю ширину, без підсітки */
.frc__rows > .frc__field--hintrow {
    display: block;
    grid-row: auto;
    grid-column: 1 / -1;
    margin-top: -4px;
}

.frc__hint--tip {
    padding: 8px 10px;
    border-radius: 10px;
    background: #eef4ff;
    color: #3d4d73;
}

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

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

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

.frc__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;
}

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

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

.frc__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;
}

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

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

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

.frc__details > .frc__rows {
    margin-top: 12px;
}


/* елементи конструкції */
.frc__el {
    margin-bottom: 8px;
    padding: 10px 12px 12px;
    border: 1px solid #c5d6f1;
    border-radius: 14px;
    background: #f6f9ff;
}

.frc__el[hidden] {
    display: none;
}

.frc__elHead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #1f2f55;
    font-size: 13px;
    font-weight: 800;
}

.frc__elVol {
    margin-left: auto;
    color: #0f7a3a;
    font-size: 12.5px;
    font-weight: 800;
}

.frc__elRm {
    width: 26px;
    height: 26px;
    border: 1px solid #c5d6f1;
    border-radius: 8px;
    background: #fff;
    color: #5b6b8c;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.frc__elRm:hover {
    border-color: #8fa8d6;
    color: #283b69;
}

.frc__elRm[hidden] {
    display: none;
}

.frc__add {
    margin: 0 0 4px;
    padding: 9px 14px;
    border: 1px dashed #8fa8d6;
    border-radius: 12px;
    background: transparent;
    color: #283b69;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.frc__add:hover {
    background: #eaf1fc;
}

.frc__add[hidden] {
    display: none;
}

.frc__mt2 {
    margin-top: 2px;
}

.frc__rows .frc__rows {
    margin: 0;
}

.frc__field[hidden] {
    display: none;
}

/* цегла на 1 м²: позначка біля головного числа */
.frc__chipWrap {
    margin-top: 6px;
}

.frc__chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f7ee;
    color: #0f7a3a;
    font-size: 12px;
    font-weight: 800;
}

/* шапка результату: вартість справа, зліва текст переноситься; на вузьких екранах вартість під текстом */
.frc__head > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}

.frc__per {
    flex: none;
}

@media (max-width: 480px) {
    .frc__head > div:first-child {
        flex: 1 1 100%;
    }

    .frc__per {
        text-align: left;
    }
}

/* схема розкрою рулону */
.frc__diag {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #dbe3f2;
    border-radius: 12px;
    background: #fff;
}

/* вага по позиціях: таблиця в результаті, кольорові точки */
.frc__dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
}

.frc__prof {
    display: flex;
    justify-content: center;
    margin: 2px 0 8px;
}

.frc__profSvg {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
}

.frc__tbl--res {
    margin-top: 0;
}

.frc__tbl--res th,
.frc__tbl--res td {
    text-align: right;
}

.frc__tbl--res th:first-child,
.frc__tbl--res td:first-child,
.frc__tbl--sch th:first-child,
.frc__tbl--sch td:first-child {
    text-align: left;
}

.frc__tbl--res td:first-child {
    line-height: 1.25;
}

.frc__sz {
    display: block;
    margin-left: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #5b6b8c;
}

.frc__tbl--res td:nth-child(2) {
    white-space: nowrap;
}

/* ===== стиль калькулятора відсотків ===== */
/* =========================
   Percent Calculator (scoped)
   only inside .frc / .ccalc
========================= */

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

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

    font-family: var(--font-sans);
    color: var(--cc-text);
}

/* Wrap */
.frc .frc__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 0 40px;
}

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

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

.frc .frc__p {
    margin: 6px 0 0;
    opacity: .92;
    font-size: 13px;
}

/* ===== Layout fix: Введи дані зліва, Результат справа ===== */

/* grid layout */
.frc .frc__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

/* Topline (checkbox) - зліва зверху */
.frc .frc__grid>.evc-topline {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    /* прибираємо зайві відступи */
    padding: 0 2px 6px;
}

/* Card "Введи дані" - зліва під чекбоксом */
.frc .frc__grid>.frc__card:first-of-type {
    grid-column: 1;
    grid-row: 2;
}

/* Card "Результат" - справа, по висоті займає 2 рядки */
.frc .frc__grid>.frc__card:last-of-type {
    grid-column: 2;
    grid-row: 1 / span 2;
}

/* Трошки “симетрії” по висоті і відчуття балансу */
.frc .frc__grid>.frc__card {
    display: flex;
    flex-direction: column;
}


/* Mobile: все в одну колонку */
@media (max-width: 980px) {
    .frc .frc__grid {
        grid-template-columns: 1fr;
    }

    .frc .frc__grid>.evc-topline,
    .frc .frc__grid>.frc__card:first-of-type,
    .frc .frc__grid>.frc__card:last-of-type {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Card */
.frc .frc__card {
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    padding: 14px;
    min-width: 0;
}

/* Section title */
.frc .frc__sectionTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--cc-border);
}

.frc .frc__h2 {
    font-size: 15px;
    margin: 0;
    font-weight: 800;
    color: var(--cc-brand2);
}

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

/* Tabs */
.frc__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

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

.frc__tab {
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f2f4fa;
    font-weight: 900;
    font-size: 12px;
    color: #2b3a55;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.frc__tab:hover {
    transform: translateY(-1px);
    background: #eaeef8;
    box-shadow: 0 2px 5px rgba(31, 47, 85, .06), 0 6px 14px rgba(40, 59, 105, .12);
}

.frc__tab.is-active {
    background: rgba(40, 59, 105, .12);
    color: var(--cc-brand2);
    box-shadow: 0 1px 2px rgba(31, 47, 85, .05), 0 4px 12px rgba(40, 59, 105, .2);
}

/* Panels */


/* Fields */
.frc .frc__rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

@media (max-width: 680px) {
    .frc .frc__rows {
        grid-template-columns: 1fr;
    }
}

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

.frc__field--full {
    grid-column: 1 / -1;
}

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

.frc .frc__input {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 12px;
    padding: 0 12px;
    outline: none;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
    transition: box-shadow .15s ease;
}

.frc .frc__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.frc .frc__input:focus {
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .18), 0 3px 8px rgba(40, 59, 105, .08);
    color: #111827;
}

/* Radio */
.frc__radio {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
}

.frc__radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: #1f2f55;
    font-size: 13px;
    user-select: none;
}

.frc__radio input {
    accent-color: #283b69;
}

/* Actions */
.frc .frc__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.frc .frc__btn {
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: #f2f4fa;
    cursor: pointer;
    font-weight: 900;
    color: #1f2f55;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease, filter .15s ease;
}

.frc .frc__btn:hover {
    background: #eaeef8;
    box-shadow: 0 2px 5px rgba(31, 47, 85, .06), 0 6px 14px rgba(40, 59, 105, .12);
    transform: translateY(-1px);
}

.frc .frc__btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 2px 6px rgba(40, 59, 105, .1);
}

/* "Розрахувати" — та сама синя кнопка, що "=" на науковому калькуляторі */
.frc .frc__btn--primary {
    background: var(--brand-grad, linear-gradient(180deg, #1f2f55, #3c538f));
    color: #fff;
    box-shadow: var(--btn-inset, inset 0 1px 0 rgba(255, 255, 255, .14)), 0 4px 14px rgba(40, 59, 105, .35);
}

/* .frc__btn:hover задає свій background (#eaeef8) з такою самою специфічністю —
   без повторення тут градієнт кнопки ставав би білим (і текст невидимим) при наведенні */
.frc .frc__btn--primary:hover {
    background: var(--brand-grad, linear-gradient(180deg, #1f2f55, #3c538f));
    filter: brightness(1.08);
    box-shadow: var(--btn-inset, inset 0 1px 0 rgba(255, 255, 255, .14)), 0 6px 18px rgba(40, 59, 105, .42);
}

.frc .frc__btn--primary:active {
    background: var(--brand-grad, linear-gradient(180deg, #1f2f55, #3c538f));
    filter: none;
    box-shadow: var(--btn-inset, inset 0 1px 0 rgba(255, 255, 255, .14)), 0 2px 8px rgba(40, 59, 105, .3);
}

/* Utilities */
.frc .frc__mt10 {
    margin-top: 10px;
}

/* Result box */

.frc__details {
    margin-top: 12px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    color: #374151;
    font-size: 13px;
}

.frc__details:empty {
    display: none;
}

/* Toast */
.frc .frc__toast {
    margin-top: 10px;
    font-size: 12px;
    color: var(--cc-muted);
    min-height: 16px;
}
/* ===== Auto-calc checkbox (як на скріні) ===== */
.evc-topline {
    margin: 10px 0 10px;
}

.evc-autocalc {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #111827;
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
}

.evc-autocalc input {
    width: 16px;
    height: 16px;
    accent-color: #283b69;
    /* твій brand */
}
/* Вирівнюємо "Результат" по горизонталі з блоком "Введи дані" */

/* Блок результату — той самий нейтральний стиль дисплея, що й на науковому калькуляторі */

/* Коли результат з'являється — легкий "живий" ефект */

@keyframes resultGlow {
    0% {
        transform: scale(0.98);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* рядки сітки: чекбокс завжди по контенту, весь запас висоти іде під картку «Введи дані» */
@media (min-width: 981px) {
    .frc .frc__grid {
        grid-template-rows: auto minmax(0, 1fr);
    }
}

/* підписи полів завжди ліворуч */
.frc .frc__field > .frc__label {
    align-self: flex-start;
}

/* вирівнюємо «Результат» по горизонталі з карткою «Введи дані» (висота чекбокса) */
.frc .frc__grid>.frc__card:last-of-type {
    margin-top: 46px;
}

@media (max-width: 980px) {
    .frc .frc__grid>.frc__card:last-of-type {
        margin-top: 0;
    }
}

/* блок із полями без окремої підкладки, як у калькуляторі відсотків */
.frc__block {
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

/* режими: сітка м'яких кнопок із прикладом (вигляд як у калькуляторі відсотків) */
.frc__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.frc__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    height: auto;
    min-height: 58px;
    padding: 9px 10px;
    text-align: left;
}

.frc__tabT {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.frc__ex {
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 6px;
    background: #fff;
    color: #4a64a5;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .06);
    overflow-wrap: anywhere;
}

.frc__panel[hidden] {
    display: none;
}

/* випадні списки у стилі полів вводу */
.frc .frc__selBtn {
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
}

.frc .frc__selList {
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(40, 59, 105, .16);
}

/* дроби: ціле, чисельник / знаменник */
.frc__slots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 8px;
    margin-top: 10px;
}

.frc__fr {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #f6f7fb;
}

.frc__fr[hidden],
.frc__op[hidden] {
    display: none;
}

.frc__lab {
    margin-right: 2px;
    color: #1f2f55;
    font-weight: 900;
}

.frc__w,
.frc__n,
.frc__d,
.frc__op {
    min-width: 0;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-family: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
    outline: none;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
    transition: box-shadow .15s ease;
}

.frc__w::placeholder,
.frc__n::placeholder,
.frc__d::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.frc__w:focus,
.frc__n:focus,
.frc__d:focus,
.frc__op:focus {
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .18), 0 3px 8px rgba(40, 59, 105, .08);
    color: #111827;
}

.frc__w {
    width: 56px;
    height: 44px;
    font-size: 16px;
}

.frc__frac {
    display: flex;
    flex-direction: column;
    width: 78px;
}

.frc__n,
.frc__d {
    width: 100%;
    height: 36px;
}

.frc__bar {
    height: 2px;
    margin: 4px 0;
    border-radius: 1px;
    background: #283b69;
}

.frc__op {
    width: 56px;
    height: 44px;
    color: #283b69;
    font-size: 20px;
    font-weight: 900;
    text-align-last: center;
    cursor: pointer;
}

.frc__counter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.frc__cnt {
    margin-left: 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

/* кнопки «Додати / Прибрати» як малі м'які кнопки */
.frc .frc__qchip {
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: #f2f4fa;
    color: #1f2f55;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.frc .frc__qchip:hover:not(:disabled) {
    background: #eaeef8;
    box-shadow: 0 2px 5px rgba(31, 47, 85, .06), 0 6px 14px rgba(40, 59, 105, .12);
    transform: translateY(-1px);
}

.frc .frc__qchip:disabled {
    opacity: 0.45;
    cursor: default;
}

/* «Додати дріб» і «Прибрати» мають вигляд кнопки «Приклад», але без мінімальної ширини */
.frc .frc__btn--chip {
    min-width: 0;
    padding: 0 16px;
    background: #eaf1fc;
    color: #1f2f55;
    box-shadow: inset 0 0 0 1px #b9cdee;
}

.frc .frc__btn--chip:hover:not(:disabled) {
    background: #dfe9fa;
    box-shadow: inset 0 0 0 1px #b9cdee;
}

.frc .frc__btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.frc .frc__btn--chip:disabled {
    background: #eaf1fc;
    box-shadow: inset 0 0 0 1px #b9cdee;
}

/* результат: м'яка панель «дисплея» і білі картки розв'язання */
.frc__rhead {
    padding: 14px 16px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(180deg, #f6f7fb, #eef0f7);
    box-shadow: 0 1px 2px rgba(31, 47, 85, .05), 0 4px 12px rgba(40, 59, 105, .1);
    animation: resultGlow .35s ease;
}

.frc__expr {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.frc__forms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: #1f2f55;
    font-size: 24px;
    font-weight: 900;
}

.frc__f {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    line-height: 1.1;
}

.frc__fn {
    padding: 0 4px 3px;
    border-bottom: 2px solid currentColor;
    overflow-wrap: anywhere;
    text-align: center;
}

.frc__fd {
    padding: 3px 4px 0;
    overflow-wrap: anywhere;
    text-align: center;
}

.frc__int {
    overflow-wrap: anywhere;
}

.frc__mx {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.frc__eq {
    color: #8a96b0;
    font-weight: 700;
}

.frc__dec {
    font-size: 22px;
    overflow-wrap: anywhere;
}

.frc__forms--chain {
    font-size: 20px;
}

.frc__ci {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
}

.frc__ci b {
    color: #6b7280;
    font-size: 13px;
}

.frc__step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #fff;
}

.frc__stepN {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: #283b69;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.frc__stepT {
    display: block;
    color: #1f2f55;
    font-size: 13px;
}

.frc__math {
    margin: 3px 0 0;
    color: #374151;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.frc__stepNote {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

/* >>> плитки й кнопки як у кухні й спорту */
.frc__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .frc__tabs { grid-template-columns: minmax(0, 1fr); } }
.frc__tabs .frc__tab { position: relative; top: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-areas: "ic t" "ic d"; column-gap: 12px; row-gap: 3px; align-items: center; height: auto; min-height: 70px; padding: 12px 14px; overflow: hidden; border: 1px solid #dfe5f2; border-radius: 16px; background: linear-gradient(180deg, #fff, #f6f7fb); box-shadow: 0 1px 2px rgba(31, 47, 85, .06), 0 6px 16px rgba(40, 59, 105, .1); color: #1f2f55; text-align: left; transform: none; transition: top .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .6s ease, background .65s ease, color .65s ease; }
.frc__tabs .frc__tab::before { content: ""; grid-area: ic; width: 42px; height: 42px; border-radius: 13px; background-color: #dfe5f1; background-position: center; background-repeat: no-repeat; background-size: 20px 20px; box-shadow: inset 0 0 0 1px rgba(44, 59, 95, .12); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1), background-color .65s ease; }
.frc__tabs .frc__tab:hover { top: -3px; transform: none; border-color: #a9b6d3; background: linear-gradient(180deg, #fff, #eceff7); box-shadow: 0 2px 4px rgba(31, 47, 85, .08), 0 14px 28px rgba(40, 59, 105, .18); }
.frc__tabs .frc__tab:hover::before { transform: rotate(-8deg) scale(1.1); }
.frc__tabs .frc__tab:active { top: -1px; transform: none; }
.frc__tabs .frc__tab:focus-visible { outline: 2px solid #4b7bdc; outline-offset: 3px; }
.frc__tabs .frc__tabT { grid-area: t; align-self: end; display: block; font-size: 14px; font-weight: 800; line-height: 1.25; color: inherit; }
.frc__tabs .frc__ex { grid-area: d; align-self: start; display: block; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.35; color: #5b6b8c; transition: color .65s ease; }
.frc__tabs .frc__tab.is-active { border-color: #283b69; 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; 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, .25), 0 14px 30px rgba(44, 59, 95, .38); }
.frc__tabs .frc__tab.is-active::before { background-color: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.frc__tabs .frc__tab.is-active .frc__ex { color: rgba(255, 255, 255, .85); }
.frc__tabs .frc__tab.is-active::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
.frc__tabs .frc__tab[data-m="ops"]::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%2340527e%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"); }
.frc__tabs .frc__tab[data-m="ops"].is-active::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"); }
.frc__tabs .frc__tab[data-m="sim"]::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%2340527e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%206h6M18%206h2M4%2012h2M14%2012h6M4%2018h9M21%2018h-1%27%2F%3E%3Ccircle%20cx%3D%2714%27%20cy%3D%276%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2712%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2718%27%20r%3D%272%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="sim"].is-active::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%3Cpath%20d%3D%27M4%206h6M18%206h2M4%2012h2M14%2012h6M4%2018h9M21%2018h-1%27%2F%3E%3Ccircle%20cx%3D%2714%27%20cy%3D%276%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2712%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2718%27%20r%3D%272%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="mix"]::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%2340527e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M3%2010h18M9%204v16%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="mix"].is-active::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%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M3%2010h18M9%204v16%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="cmp"]::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%2340527e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2020V10M12%2020V4M19%2020v-7%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="cmp"].is-active::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%3Cpath%20d%3D%27M5%2020V10M12%2020V4M19%2020v-7%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="dec"]::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%2340527e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m17%202%204%204-4%204%27%2F%3E%3Cpath%20d%3D%27M3%2011v-1a4%204%200%200%201%204-4h14%27%2F%3E%3Cpath%20d%3D%27m7%2022-4-4%204-4%27%2F%3E%3Cpath%20d%3D%27M21%2013v1a4%204%200%200%201-4%204H3%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="dec"].is-active::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%3Cpath%20d%3D%27m17%202%204%204-4%204%27%2F%3E%3Cpath%20d%3D%27M3%2011v-1a4%204%200%200%201%204-4h14%27%2F%3E%3Cpath%20d%3D%27m7%2022-4-4%204-4%27%2F%3E%3Cpath%20d%3D%27M21%2013v1a4%204%200%200%201-4%204H3%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="lcd"]::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%2340527e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%271%27%2F%3E%3C%2Fsvg%3E"); }
.frc__tabs .frc__tab[data-m="lcd"].is-active::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%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%271%27%2F%3E%3C%2Fsvg%3E"); }
.frc__actions { gap: 10px; }
#calcBtn.frc__btn, #shareBtn.frc__btn, #exampleBtn.frc__btn, #resetBtn.frc__btn, #copyBtn.frc__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.frc__btn { width: auto; flex: 0 0 auto; min-width: 190px; padding: 0 28px; }
#copyBtn.frc__btn { flex: 1 1 100%; }
#shareBtn.frc__btn, #exampleBtn.frc__btn, #resetBtn.frc__btn { flex: 1 1 96px; min-width: 0; padding: 0 8px; gap: 6px; font-size: 13px; }
#calcBtn.frc__btn::before, #shareBtn.frc__btn::before, #exampleBtn.frc__btn::before, #resetBtn.frc__btn::before, #copyBtn.frc__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.frc__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.frc__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.frc__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.frc__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.frc__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.frc__btn::after, #shareBtn.frc__btn::after, #exampleBtn.frc__btn::after, #resetBtn.frc__btn::after, #copyBtn.frc__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.frc__btn:hover, #shareBtn.frc__btn:hover, #exampleBtn.frc__btn:hover, #resetBtn.frc__btn:hover, #copyBtn.frc__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.frc__btn:hover::before, #shareBtn.frc__btn:hover::before, #exampleBtn.frc__btn:hover::before, #resetBtn.frc__btn:hover::before, #copyBtn.frc__btn:hover::before { transform: rotate(-10deg) scale(1.15); }
#calcBtn.frc__btn:hover::after, #shareBtn.frc__btn:hover::after, #exampleBtn.frc__btn:hover::after, #resetBtn.frc__btn:hover::after, #copyBtn.frc__btn:hover::after { transform: translateX(120%); }
#calcBtn.frc__btn:active, #shareBtn.frc__btn:active, #exampleBtn.frc__btn:active, #resetBtn.frc__btn:active, #copyBtn.frc__btn:active { top: 0; transform: none; box-shadow: 0 1px 2px rgba(40, 59, 105, .25); }
#calcBtn.frc__btn:focus-visible, #shareBtn.frc__btn:focus-visible, #exampleBtn.frc__btn:focus-visible, #resetBtn.frc__btn:focus-visible, #copyBtn.frc__btn:focus-visible { outline: 2px solid #4b7bdc; outline-offset: 3px; }
#exampleBtn.frc__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.frc__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.frc__btn { background: #fff; color: #1f2f55; box-shadow: inset 0 0 0 1.5px #cfd9ee, 0 4px 10px rgba(40, 59, 105, .1); }
#resetBtn.frc__btn:hover { color: #b3261e; background: #fff6f5; box-shadow: inset 0 0 0 1.5px #e7a6a1, 0 10px 22px rgba(179, 38, 30, .16); }
#resetBtn.frc__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) { .frc__tabs .frc__tab, .frc__tabs .frc__tab::before, #calcBtn.frc__btn, #shareBtn.frc__btn, #exampleBtn.frc__btn, #resetBtn.frc__btn, #copyBtn.frc__btn, #calcBtn.frc__btn::before, #shareBtn.frc__btn::before, #exampleBtn.frc__btn::before, #resetBtn.frc__btn::before, #copyBtn.frc__btn::before, #calcBtn.frc__btn::after, #shareBtn.frc__btn::after, #exampleBtn.frc__btn::after, #resetBtn.frc__btn::after, #copyBtn.frc__btn::after { transition: none; } }
/* <<< плитки й кнопки як у кухні й спорту */

/* >>> анімація плиток режимів */
.frc__tabs .frc__tab { position: relative; overflow: hidden; }
.frc__tabs .frc__tab::after { content: ""; position: absolute; inset: 0; top: 0; right: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); box-shadow: none; transform: translateX(-120%); transition: transform 1.5s ease; pointer-events: none; }
.frc__tabs .frc__tab:hover::after { transform: translateX(120%); }
.frc__tabs .frc__tab.is-active::after { content: ""; position: absolute; inset: 0; top: 0; right: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); box-shadow: none; }
.frc__tabs .frc__tab.is-active { background: radial-gradient(circle at calc(100% - 14px) 14px, #fff 0 4px, rgba(255, 255, 255, .22) 4px 8px, rgba(255, 255, 255, 0) 8.6px), 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%); }
@media (prefers-reduced-motion: reduce) { .frc__tabs .frc__tab::after { transition: none; } }
/* <<< анімація плиток режимів */
