/* ------------------------------
   GLOBAL
------------------------------ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #F5F7FA;
    color: #0A1F44;
}

/* GŁÓWNY KONTENER STRONY */

.page-wrapper,
.top-wrapper,
.bottom-wrapper,
.promo-section,
.oskp-fullwidth {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* ------------------------------
   TOP: FORMULARZ + SUMA KOŃCOWA
------------------------------ */

.top-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* LEWA KOLUMNA – FORMULARZ */

.left-column {
    flex: 1;
}

.calculator-container {
    background: #FFFFFF;
    padding: 24px 24px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border-top: 4px solid #C8102E;
}

.calculator-container h1 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.calculator-container h1 span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
}

/* FORMULARZ */

.form-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type="number"],
select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #FFFFFF;
}

input[type="number"]:focus,
select:focus {
    border-color: #1D4ED8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* PRZYCISK */

button {
    margin-top: 6px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

button:hover {
    background: #111827;
    transform: translateY(-1px);
}

/* BŁĘDY */

.error-box {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 13px;
}

/* ------------------------------
   PRAWA KOLUMNA – SUMA KOŃCOWA
------------------------------ */

.right-column {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.final-total-box {
    background: #FFFFFF;
    padding: 22px 20px 24px;
    border-radius: 12px;
    border: 2px solid #C8102E;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.final-total-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.final-total-value {
    font-size: 30px;
    font-weight: 900;
    color: #C8102E;
    margin-bottom: 4px;
}

.final-total-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
}

/* ------------------------------
   DÓŁ: 3 KOLUMNY KOSZTÓW
------------------------------ */

.bottom-wrapper {
    margin-top: 10px;
    padding-top: 0;
}

.bottom-title {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #E5E7EB;
}

.result-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.result-column {
    background: #FFFFFF;
    padding: 16px 16px 18px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    border: 1px solid #E5E7EB;
}

.result-column h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* TABELKI */

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.result-table td {
    padding: 6px 2px;
    border-bottom: 1px solid #F3F4F6;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-value {
    text-align: right;
    font-weight: 600;
    color: #111827;
}

/* ------------------------------
   OSKP – FULL WIDTH CARD
------------------------------ */

.oskp-fullwidth {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 28px;
    margin: 20px auto 40px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid #E5E7EB;
}

.oskp-inner {
    display: flex;
    gap: 28px;
    align-items: center;
}

.oskp-image img {
    width: 260px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.oskp-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
}

.oskp-content p {
    margin: 6px 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.oskp-btn {
    display: inline-block;
    background: #C8102E;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.oskp-btn:hover {
    background: #A50D26;
    transform: translateY(-1px);
}

/* ------------------------------
   PROMO SECTION
------------------------------ */

.promo-section {
    text-align: center;
    margin-top: 40px;
}

.promo-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.promo-intro {
    max-width: 800px;
    margin: 0 auto 28px;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* KARTY */

.promo-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 18px 18px 22px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
    text-align: left;
    transition: transform 0.15s, box-shadow 0.15s;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.promo-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 14px;
}

.promo-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.promo-card p {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.55;
    margin-bottom: 14px;
}

.promo-btn {
    display: inline-block;
    background: #0F172A;
    color: #FFFFFF;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.promo-btn:hover {
    background: #111827;
    transform: translateY(-1px);
}

/* ------------------------------
   RESPONSYWNOŚĆ
------------------------------ */

@media (max-width: 960px) {
    .top-wrapper {
        flex-direction: column;
    }
    .right-column {
        width: 100%;
        position: static;
    }
}

@media (max-width: 900px) {
    .oskp-inner {
        flex-direction: column;
        text-align: center;
    }
    .oskp-image img {
        width: 100%;
        max-width: 320px;
    }
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .result-columns {
        grid-template-columns: 1fr;
    }
}

.btn-calc.link-import {
    display: block;
    text-align: center;
    margin: 12px 0;
    padding: 8px 14px; /* MNIEJSZY PRZYCISK */

    font-size: 12px; /* MNIEJSZA CZCIONKA */
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    border-radius: 10px; /* MNIEJSZE ZAOKRĄGLENIE */
    color: #0b1120;

    background: linear-gradient(135deg, var(--accent-strong), #3b82f6);
    box-shadow: 0 8px 18px rgba(56,189,248,0.28),
                0 0 0 1px rgba(15,23,42,0.8) inset;

    transition: transform .15s ease,
                box-shadow .15s ease,
                filter .15s ease;
}

.btn-calc.link-import:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(56,189,248,0.38),
                0 0 0 1px rgba(15,23,42,0.8) inset;
}

.btn-calc.link-import:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(56,189,248,0.28),
                0 0 0 1px rgba(15,23,42,0.8) inset;
}
