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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gcd__mt12 {
    margin-top: 12px;
}

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

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

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

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

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

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

.gcd input.gcd__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);
}

.gcd input.gcd__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.gcd select.gcd__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;
}

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

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

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

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

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

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

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

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

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

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

.gcd__ddList[hidden] {
    display: none;
}

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

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

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

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

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

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

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

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

.gcd__block .gcd__rows {
    margin-top: 0;
}

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

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

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

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

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

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

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

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

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

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

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

.gcd__chip.is-active .gcd__ico {
    color: #283b69;
}


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gcd__kpi--main .gcd__kpiV {
    font-size: 26px;
}

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

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

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

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

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

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

.gcd__rows[hidden] {
    display: none;
}

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

.gcd__chips + .gcd__rows {
    margin-top: 12px;
}

.gcd__details .gcd__rows {
    margin-top: 0;
}

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

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

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

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

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

.gcd__tbl td {
    text-align: right;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.gcd__chips {
    margin-bottom: 12px;
}

.gcd__chip {
    padding: 8px 12px;
}

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

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

.gcd__cur .gcd__chip {
    padding: 6px 12px;
}

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

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

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

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

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

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

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

.gcd__sectionTitle .gcd__ddList {
    min-width: 250px;
}

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

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

.gcd__schedule {
    margin-top: 14px;
}

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

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

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

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

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

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

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

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

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

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

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

.gcd__inwrap .gcd__input {
    flex: 1 1 auto;
    min-width: 0;
}

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

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

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

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

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

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

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

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

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

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

.gcd__selList[hidden] {
    display: none;
}

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

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

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

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


.gcd__field[hidden] {
    display: none;
}

.gcd__block .gcd__mt12 {
    margin-top: 12px;
}

.gcd__link {
    margin-right: 14px;
}

.gcd__hint .gcd__link {
    margin-right: 0;
    display: inline;
    font-size: inherit;
}

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

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

.gcd__stages[hidden] {
    display: none;
}

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

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

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

/* результат */
.gcd__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%);
}

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

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

.gcd__per {
    text-align: right;
}

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

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

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

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

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

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

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

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

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

.gcd__kpiV {
    overflow-wrap: anywhere;
}

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

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

    .gcd__kpi .gcd__kpiV--s {
        font-size: 14px;
    }
}

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

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

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

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

.gcd__req {
    white-space: nowrap;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.gcd__mt6 {
    margin-top: 6px;
}

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

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

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

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

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

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

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

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

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

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

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

.gcd__details > .gcd__rows {
    margin-top: 12px;
}


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

.gcd__el[hidden] {
    display: none;
}

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

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

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

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

.gcd__elRm[hidden] {
    display: none;
}

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

.gcd__add:hover {
    background: #eaf1fc;
}

.gcd__add[hidden] {
    display: none;
}

.gcd__mt2 {
    margin-top: 2px;
}

.gcd__rows .gcd__rows {
    margin: 0;
}

.gcd__field[hidden] {
    display: none;
}

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

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

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

.gcd__per {
    flex: none;
}

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

    .gcd__per {
        text-align: left;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

.gcd {
    --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 */
.gcd .gcd__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 0 40px;
}

/* Titlebar */
.gcd .gcd__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;
}

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

.gcd .gcd__p {
    margin: 6px 0 0;
    opacity: .92;
    font-size: 13px;
}

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

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

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

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

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

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


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

    .gcd .gcd__grid>.evc-topline,
    .gcd .gcd__grid>.gcd__card:first-of-type,
    .gcd .gcd__grid>.gcd__card:last-of-type {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Card */
.gcd .gcd__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 */
.gcd .gcd__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);
}

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

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

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

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

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

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

.gcd__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 */
.gcd .gcd__rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

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

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

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

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

.gcd .gcd__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;
}

.gcd .gcd__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

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

/* Radio */
.gcd__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);
}

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

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

/* Actions */
.gcd .gcd__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gcd .gcd__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;
}

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

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

/* "Розрахувати" — та сама синя кнопка, що "=" на науковому калькуляторі */
.gcd .gcd__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);
}

/* .gcd__btn:hover задає свій background (#eaeef8) з такою самою специфічністю —
   без повторення тут градієнт кнопки ставав би білим (і текст невидимим) при наведенні */
.gcd .gcd__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);
}

.gcd .gcd__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 */
.gcd .gcd__mt10 {
    margin-top: 10px;
}

/* Result box */

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

.gcd__details:empty {
    display: none;
}

/* Toast */
.gcd .gcd__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) {
    .gcd .gcd__grid {
        grid-template-rows: auto minmax(0, 1fr);
    }
}

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

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

@media (max-width: 980px) {
    .gcd .gcd__grid>.gcd__card:last-of-type {
        margin-top: 0;
    }
}

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

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

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

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

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

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

.gcd__panel[hidden] {
    display: none;
}

/* випадні списки у стилі полів вводу */
.gcd .gcd__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);
}

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


/* поля коефіцієнтів і попередній перегляд рівняння */
.gcd__rows3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

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

.gcd__eqPrev {
    min-height: 22px;
    margin: 4px 0 10px;
    color: #1f2f55;
    font-size: 17px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.gcd__eqPrev:empty {
    display: none;
}

.gcd__panel[hidden],
.gcd__rowsX[hidden] {
    display: none;
}

.gcd__rowsX {
    margin-top: 10px;
}

/* корені й плитки */
.gcd__rt {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    max-width: 100%;
}

.gcd__rt .gcd__fn {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .gcd .gcd__forms {
        font-size: 20px;
    }

    .gcd .gcd__dec {
        font-size: 16px;
    }
}

.gcd__rt small {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.gcd__nm {
    color: #6b7280;
}

.gcd__line {
    color: #1f2f55;
    font-size: 16px;
    font-weight: 900;
}

.gcd__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

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

.gcd__tile {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .04), 0 3px 8px rgba(40, 59, 105, .08);
}

.gcd__tile small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.gcd__tile b {
    display: block;
    color: #1f2f55;
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.gcd__tile span {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* графік */
.gcd__graph {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #fff;
}

.gcd__svg {
    display: block;
    width: 100%;
    height: auto;
}

.gcd__leg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 8px 6px 2px;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
}

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

.gcd__legD {
    display: inline-block;
    width: 11px;
    height: 11px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #dfe3ec;
}

.gcd__legD--root {
    background: #283b69;
}

.gcd__legD--vert {
    background: #d85a30;
}

.gcd__legD--y {
    background: #6b7280;
}

.gcd__legL {
    display: inline-block;
    width: 20px;
    height: 0;
    border-top: 2px dashed rgba(216, 90, 48, .6);
}

/* результат: м'яка панель «дисплея» і білі картки розв'язання */
.gcd__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;
}

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

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

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

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

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

.gcd__int {
    overflow-wrap: anywhere;
}

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

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

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

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

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

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

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

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

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

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

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

/* панелі режимів і текстове поле для списку чисел */
.gcd__panel {
    margin-top: 12px;
}

.gcd .gcd__panel > .gcd__field + .gcd__field {
    margin-top: 12px;
}

.gcd textarea.gcd__input {
    height: auto;
    min-height: 76px;
    padding: 10px 12px;
    line-height: 1.45;
    resize: vertical;
    font-family: inherit;
}

/* великі значення НСД і НСК у шапці результату */
.gcd__big {
    color: #1f2f55;
    font-size: 30px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.gcd__forms .gcd__rt {
    gap: 2px 10px;
}

.gcd__forms {
    gap: 8px 28px;
}

/* таблиця степенів простих множників */
.gcd__tbl {
    margin-top: 8px;
    overflow-x: auto;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
}

.gcd__tbl table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gcd__tbl th,
.gcd__tbl td {
    padding: 6px 10px;
    border-bottom: 1px solid #eef0f6;
    color: #1f2f55;
    text-align: center;
    white-space: nowrap;
}

.gcd__tbl thead th {
    background: #f6f7fb;
    font-weight: 900;
}

.gcd__tbl tbody th {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 700;
    text-align: left;
}

.gcd__rowG th,
.gcd__rowG td {
    background: #eaf1fc;
    font-weight: 900;
}

.gcd__rowL th,
.gcd__rowL td {
    background: #fbeee6;
    font-weight: 900;
}

.gcd__tbl tbody tr:last-child th,
.gcd__tbl tbody tr:last-child td {
    border-bottom: none;
}

/* список дільників плитками */
.gcd__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.gcd__chip {
    padding: 4px 10px;
    border-radius: 8px;
    background: #f2f4fa;
    color: #1f2f55;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(31, 47, 85, .05);
}

.gcd__chip--dots {
    background: none;
    box-shadow: none;
}

/* >>> плитки й кнопки як у кухні й спорту */
.gcd__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .gcd__tabs { grid-template-columns: minmax(0, 1fr); } }
.gcd__tabs .gcd__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; }
.gcd__tabs .gcd__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; }
.gcd__tabs .gcd__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); }
.gcd__tabs .gcd__tab:hover::before { transform: rotate(-8deg) scale(1.1); }
.gcd__tabs .gcd__tab:active { top: -1px; transform: none; }
.gcd__tabs .gcd__tab:focus-visible { outline: 2px solid #4b7bdc; outline-offset: 3px; }
.gcd__tabs .gcd__tabT { grid-area: t; align-self: end; display: block; font-size: 14px; font-weight: 800; line-height: 1.25; color: inherit; }
.gcd__tabs .gcd__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; }
.gcd__tabs .gcd__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); }
.gcd__tabs .gcd__tab.is-active::before { background-color: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.gcd__tabs .gcd__tab.is-active .gcd__ex { color: rgba(255, 255, 255, .85); }
.gcd__tabs .gcd__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); }
.gcd__tabs .gcd__tab[data-m="gl"]::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"); }
.gcd__tabs .gcd__tab[data-m="gl"].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"); }
.gcd__tabs .gcd__tab[data-m="fx"]::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"); }
.gcd__tabs .gcd__tab[data-m="fx"].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"); }
.gcd__actions { gap: 10px; }
#calcBtn.gcd__btn, #shareBtn.gcd__btn, #exampleBtn.gcd__btn, #resetBtn.gcd__btn, #copyBtn.gcd__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.gcd__btn { width: auto; flex: 0 0 auto; min-width: 190px; padding: 0 28px; }
#copyBtn.gcd__btn { flex: 1 1 100%; }
#shareBtn.gcd__btn, #exampleBtn.gcd__btn, #resetBtn.gcd__btn { flex: 1 1 96px; min-width: 0; padding: 0 8px; gap: 6px; font-size: 13px; }
#calcBtn.gcd__btn::before, #shareBtn.gcd__btn::before, #exampleBtn.gcd__btn::before, #resetBtn.gcd__btn::before, #copyBtn.gcd__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.gcd__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.gcd__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.gcd__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.gcd__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.gcd__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.gcd__btn::after, #shareBtn.gcd__btn::after, #exampleBtn.gcd__btn::after, #resetBtn.gcd__btn::after, #copyBtn.gcd__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.gcd__btn:hover, #shareBtn.gcd__btn:hover, #exampleBtn.gcd__btn:hover, #resetBtn.gcd__btn:hover, #copyBtn.gcd__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.gcd__btn:hover::before, #shareBtn.gcd__btn:hover::before, #exampleBtn.gcd__btn:hover::before, #resetBtn.gcd__btn:hover::before, #copyBtn.gcd__btn:hover::before { transform: rotate(-10deg) scale(1.15); }
#calcBtn.gcd__btn:hover::after, #shareBtn.gcd__btn:hover::after, #exampleBtn.gcd__btn:hover::after, #resetBtn.gcd__btn:hover::after, #copyBtn.gcd__btn:hover::after { transform: translateX(120%); }
#calcBtn.gcd__btn:active, #shareBtn.gcd__btn:active, #exampleBtn.gcd__btn:active, #resetBtn.gcd__btn:active, #copyBtn.gcd__btn:active { top: 0; transform: none; box-shadow: 0 1px 2px rgba(40, 59, 105, .25); }
#calcBtn.gcd__btn:focus-visible, #shareBtn.gcd__btn:focus-visible, #exampleBtn.gcd__btn:focus-visible, #resetBtn.gcd__btn:focus-visible, #copyBtn.gcd__btn:focus-visible { outline: 2px solid #4b7bdc; outline-offset: 3px; }
#exampleBtn.gcd__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.gcd__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.gcd__btn { background: #fff; color: #1f2f55; box-shadow: inset 0 0 0 1.5px #cfd9ee, 0 4px 10px rgba(40, 59, 105, .1); }
#resetBtn.gcd__btn:hover { color: #b3261e; background: #fff6f5; box-shadow: inset 0 0 0 1.5px #e7a6a1, 0 10px 22px rgba(179, 38, 30, .16); }
#resetBtn.gcd__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) { .gcd__tabs .gcd__tab, .gcd__tabs .gcd__tab::before, #calcBtn.gcd__btn, #shareBtn.gcd__btn, #exampleBtn.gcd__btn, #resetBtn.gcd__btn, #copyBtn.gcd__btn, #calcBtn.gcd__btn::before, #shareBtn.gcd__btn::before, #exampleBtn.gcd__btn::before, #resetBtn.gcd__btn::before, #copyBtn.gcd__btn::before, #calcBtn.gcd__btn::after, #shareBtn.gcd__btn::after, #exampleBtn.gcd__btn::after, #resetBtn.gcd__btn::after, #copyBtn.gcd__btn::after { transition: none; } }
/* <<< плитки й кнопки як у кухні й спорту */

/* >>> анімація плиток режимів */
.gcd__tabs .gcd__tab { position: relative; overflow: hidden; }
.gcd__tabs .gcd__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; }
.gcd__tabs .gcd__tab:hover::after { transform: translateX(120%); }
.gcd__tabs .gcd__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; }
.gcd__tabs .gcd__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) { .gcd__tabs .gcd__tab::after { transition: none; } }
/* <<< анімація плиток режимів */
