/* ============================================================
   kalkulatory.css — współdzielone style dla wszystkich
   kalkulatorów. Bazuje na zmiennych z main.css.
   ============================================================ */

/* ---------- HUB: lista kalkulatorów ---------- */

.calc-list {
    padding: 50px 60px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.calc-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid var(--cream-mid);
    text-decoration: none;
    color: inherit;
}

.calc-item:first-child { padding-top: 0; }
.calc-item:last-child  { border-bottom: none; }

a.calc-item:hover .calc-item-title { color: var(--accent); }
a.calc-item:hover .calc-item-more  { color: var(--brown); }

.calc-item--soon {
    opacity: .45;
    cursor: default;
}

.calc-item-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 36px;
    padding-top: 2px;
    line-height: 1;
}

.calc-item-body { flex: 1; }

.calc-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.calc-item-lead {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 10px;
}

.calc-item-more {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    transition: color .2s;
}

.badge-soon {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--taupe);
    border: 1px solid var(--sand);
    padding: 2px 7px;
    border-radius: 2px;
    vertical-align: middle;
}

.calc-note {
    padding: 24px 60px 40px;
    background: var(--white);
    border-top: 1px solid var(--cream-mid);
}

.calc-note p {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 620px;
}

.calc-note a {
    color: var(--accent);
    text-decoration: none;
}

.calc-note a:hover { color: var(--brown); }


/* ---------- WSPÓLNE: nagłówek kalkulatora ---------- */

.kalk-intro {
    padding: 30px 60px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-intro p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 620px;
}


/* ---------- WSPÓLNE: blok formularza ---------- */

.kalk-block {
    padding: 36px 60px;
    background: var(--white);
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-block-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.kalk-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.kalk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kalk-field label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--taupe);
}

.kalk-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--sand);
    background: var(--cream);
    transition: border-color .15s;
}

.kalk-input-wrap:focus-within {
    border-color: var(--accent);
    background: var(--white);
}

.kalk-input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    padding: 9px 12px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--dark);
    width: 100%;
    -moz-appearance: textfield;
}

.kalk-input-wrap input::-webkit-outer-spin-button,
.kalk-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }

.kalk-input-wrap .unit {
    padding: 9px 11px;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--taupe);
    border-left: 1px solid var(--sand);
    white-space: nowrap;
    background: var(--cream-mid);
}

.kalk-field select {
    border: 1px solid var(--sand);
    background: var(--cream);
    padding: 9px 32px 9px 12px;
    font-family: 'Jost', sans-serif;
    font-size: 13.5px;
    color: var(--dark);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23998877' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    transition: border-color .15s;
    cursor: pointer;
    width: 100%;
}

.kalk-field select:focus { border-color: var(--accent); }

.kalk-hint {
    font-size: 11px;
    color: var(--taupe);
    line-height: 1.5;
}

.kalk-btn {
    display: block;
    width: 100%;
    margin-top: 28px;
    padding: 13px;
    background: var(--dark);
    color: var(--white);
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.kalk-btn:hover { background: var(--accent); }


/* ---------- WSPÓLNE: wyniki ---------- */

.kalk-results { display: none; }
.kalk-results.visible { display: block; }

.kalk-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    border: 1px solid var(--cream-mid);
    margin-bottom: 0;
}

.kalk-metric {
    padding: 24px 22px;
    border-right: 1px solid var(--cream-mid);
    border-bottom: 1px solid var(--cream-mid);
    background: var(--white);
}

.kalk-metric:last-child { border-right: none; }

.kalk-metric--accent {
    background: linear-gradient(135deg, #e8e0d0 0%, #f0e8d8 50%, #ede4d2 100%);
}

.kalk-metric-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 8px;
}

.kalk-metric-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 4px;
}

.kalk-metric--accent .kalk-metric-val { color: var(--accent); }

.kalk-metric-sub {
    font-size: 11px;
    color: var(--taupe);
}

/* Tabela porównawcza */
.kalk-table-wrap {
    padding: 0 60px 36px;
    background: var(--white);
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-top: 0;
}

.kalk-compare thead tr {
    border-bottom: 2px solid var(--cream-mid);
}

.kalk-compare th {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--taupe);
    padding: 0 0 12px;
    text-align: left;
}

.kalk-compare th:not(:first-child) { text-align: right; }

.kalk-compare td {
    padding: 11px 0;
    border-bottom: 1px solid var(--cream-mid);
    color: var(--dark);
    vertical-align: middle;
}

.kalk-compare tr:last-child td { border-bottom: none; }

.kalk-compare td:first-child {
    color: var(--text-light);
    font-size: 13px;
}

.kalk-compare td:not(:first-child) { text-align: right; }

.kalk-compare td.better {
    color: var(--accent);
    font-weight: 500;
}

/* Rekomendacja */
.kalk-rec {
    padding: 28px 60px;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-mid);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.kalk-rec-rule {
    width: 2px;
    min-height: 100%;
    background: var(--accent);
    flex-shrink: 0;
    align-self: stretch;
}

.kalk-rec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.kalk-rec-text {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
}

/* Winner box (lokata vs nadpłata) */
.kalk-winner {
    padding: 28px 60px;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-mid);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.kalk-winner-rule {
    width: 2px;
    background: var(--accent);
    flex-shrink: 0;
    align-self: stretch;
    min-height: 40px;
}

.kalk-winner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.kalk-winner-desc {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
}

/* Dwie karty porównawcze (lokata vs nadpłata) */
.kalk-two-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-left: 1px solid var(--cream-mid);
    border-right: 1px solid var(--cream-mid);
}

.kalk-opt-card {
    padding: 28px 36px;
    border-bottom: 1px solid var(--cream-mid);
    background: var(--white);
    position: relative;
}

.kalk-opt-card:first-child {
    border-right: 1px solid var(--cream-mid);
}

.kalk-opt-card.winner {
    background: linear-gradient(135deg, #f8f4ed 0%, #f5efe4 100%);
}

.kalk-opt-winner-badge {
    position: absolute;
    top: -1px;
    left: 28px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--accent);
    padding: 3px 10px;
}

.kalk-opt-name {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 12px;
    margin-top: 8px;
}

.kalk-opt-big {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 4px;
}

.kalk-opt-sub {
    font-size: 11.5px;
    color: var(--taupe);
    margin-bottom: 18px;
}

.kalk-opt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    border-top: 1px solid var(--cream-mid);
}

.kalk-opt-table tr { border-bottom: 1px solid var(--cream-mid); }
.kalk-opt-table tr:last-child { border-bottom: none; }
.kalk-opt-table td { padding: 7px 0; color: var(--text-light); }
.kalk-opt-table td:last-child { text-align: right; color: var(--dark); font-weight: 500; }

.kalk-info-row {
    padding: 16px 60px;
    background: var(--cream-mid);
    border-bottom: 1px solid var(--cream-mid);
    font-size: 12px;
    color: var(--taupe);
    line-height: 1.6;
}


/* ---------- WSPÓLNE: disclaimer ---------- */

.kalk-disclaimer {
    padding: 20px 60px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-disclaimer p {
    font-size: 11.5px;
    color: var(--taupe);
    line-height: 1.7;
    max-width: 640px;
}

.kalk-disclaimer strong { color: var(--text-light); font-weight: 500; }


/* ---------- WSPÓLNE: artykuł ekspercki ---------- */

.kalk-article {
    padding: 40px 60px;
    background: var(--white);
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-article h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 12px;
    margin-top: 28px;
}

.kalk-article h2:first-child { margin-top: 0; }

.kalk-article p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 14px;
}

.kalk-article ul {
    margin: 4px 0 14px 18px;
}

.kalk-article li {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 6px;
}

.kalk-article strong { color: var(--dark); font-weight: 500; }


/* ---------- WSPÓLNE: CTA ---------- */

.kalk-cta {
    padding: 40px 60px;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 8px;
}

.kalk-cta-text {
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 22px;
    max-width: 480px;
    line-height: 1.7;
}

.kalk-cta-btn {
    display: inline-block;
    background: var(--dark);
    color: var(--white);
    padding: 12px 28px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s;
}

.kalk-cta-btn:hover { background: var(--accent); }


/* ---------- FORMULARZ: dwie kolumny (lokata vs nadpłata) ---------- */

.kalk-two-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.kalk-col {
    padding: 0;
}

.kalk-col:first-child {
    padding-right: 36px;
    border-right: 1px solid var(--cream-mid);
}

.kalk-col:last-child {
    padding-left: 36px;
}

.kalk-col-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-mid);
}

.kalk-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.kalk-checkbox-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.kalk-checkbox-row span {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1200px) {
    .calc-list        { padding: 30px 24px; }
    .calc-note        { padding: 20px 24px 32px; }
    .kalk-intro       { padding: 22px 24px; }
    .kalk-block       { padding: 28px 24px; }
    .kalk-table-wrap  { padding: 0 24px 28px; }
    .kalk-rec         { padding: 22px 24px; }
    .kalk-winner      { padding: 22px 24px; }
    .kalk-two-cards   { grid-template-columns: 1fr; }
    .kalk-opt-card:first-child { border-right: none; }
    .kalk-info-row    { padding: 14px 24px; }
    .kalk-disclaimer  { padding: 18px 24px 24px; }
    .kalk-article     { padding: 28px 24px; }
    .kalk-cta         { padding: 28px 24px; }
    .kalk-two-inputs  { grid-template-columns: 1fr; }
    .kalk-col:first-child { padding-right: 0; border-right: none; padding-bottom: 24px; border-bottom: 1px solid var(--cream-mid); }
    .kalk-col:last-child  { padding-left: 0; padding-top: 24px; }
    .kalk-grid-2col   { grid-template-columns: 1fr; }

    .calc-item {
        flex-direction: column;
        gap: 6px;
    }

    .calc-item-num { min-width: auto; }
}

@media (max-width: 640px) {
    .kalk-metrics { grid-template-columns: 1fr 1fr; }
    .kalk-two-cards { grid-template-columns: 1fr; }
}


.sidebar-brand {
    text-decoration: none;
    display: block;
}

.page-header {
    background: linear-gradient(135deg, #e8e0d0 0%, #f0e8d8 50%, #ede4d2 100%);
    padding: 60px 60px 50px;
}

.page-back {
    display: block;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--taupe);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color .2s;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sand);
}

.page-back:hover {
    color: var(--accent);
}

.page-back::before {
    content: '←';
    font-size: 14px;
    margin-right: 6px;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.page-lead {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 640px;
}

.rule {
    width: 44px;
    height: 2px;
    background: var(--accent);
    margin: 20px 0 0;
}

.comments-list {
    padding: 50px 60px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid var(--cream-mid);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.comment-item:first-child {
    padding-top: 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover .comment-item-title {
    color: var(--accent);
}

.comment-item:hover .comment-item-more {
    color: var(--brown);
}

.comment-item-date {
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 4px;
    min-width: 110px;
}

.comment-item-body {
    flex: 1;
}

.comment-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color .2s;
}

.comment-item-lead {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 10px;
}

.comment-item-more {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    transition: color .2s;
}

@media (max-width: 1200px) {
    .page-header {
        padding: 30px 24px 28px;
    }

    .page-back {
        display: none;
    }

    .comments-list {
        padding: 30px 24px;
    }

    .comment-item {
        flex-direction: column;
        gap: 6px;
    }

    .comment-item-date {
        min-width: auto;
    }
}
