/* =========================================
   GLOBALNE USTAWIENIA I TYPOGRAFIA
========================================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: auto !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #13343b;
    
}

body { 
    padding-top:80px !important; /* Fix dla przyklejonego headera */
}


h1, h2, h3, h4, h5, h6 { 
    margin: 0; 
    font-weight: 550; 
    line-height: 1.2; 
    color: #13343b; 
    letter-spacing: -0.01em; 
}

h1 { font-size: 30px !important; }
h2 { font-size: 24px !important; }
h3 { font-size: 20px !important; }
h4 { font-size: 18px !important; }
h5 { font-size: 16px !important; }
h6 { font-size: 14px !important; }
p { margin: 0 0 16px 0; }

a { 
    color: #15acc0; 
    text-decoration: none !important; 
    transition: color 150ms ease; 
}

a:hover { 
    color: #1d7480; 
}


/* ======================================
   KALKULAT.ORG - GÓRNA NAWIGACJA
====================================== */

.header-container {
    position: relative;
    z-index: 1000;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: 80px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;

    padding: 0 48px !important;
    background: #232124;
    box-shadow: 0 4px 18px rgba(0,0,0,.14);
}

/* LOGO - LEWA STRONA */

.header > div:not(.hamburger):not(.header-account) {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.header .kalkulatorg {
    margin: 0;
    cursor: pointer;
}

.header .logo {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.header .dot,
.header .domain-g {
    color: #ffcb5e;
}

.header .domain-g {
    font-size: .67em;
}

/* MENU - ŚRODEK */

.header .menu {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;

    position: static;
    transform: none;

    list-style: none;
    margin: 0;
    padding: 0;
}

.header .menu li {
    display: flex;
}

.header .menu a {
    color: #d6d6dc;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s;
}

.header .menu a:hover {
    color: #ffcb5e;
}

/* MOJE KONTO - PRAWA STRONA */

.header .header-account {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
}

.header .account-placeholder {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 15px;
    border-radius: 30px;

    background: #39383d;
    border: 1px solid #525159;

    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.header .account-placeholder i {
    font-size: 21px;
}

/* HAMBURGER - DOMYŚLNIE UKRYTY */

.header .hamburger {
    display: none;
}

/* ======================================
   TABLETY I TELEFONY
====================================== */

@media (max-width: 1280px) {

    .header {
        grid-template-columns: minmax(0,1fr) auto auto;
        gap: 10px;
        padding: 0 20px !important;
    }

    .header .header-account {
        grid-column: 2;
    }

    .header .hamburger {
        grid-column: 3;
        grid-row: 1;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        position: static;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 9px;

        background: #39383d;
        border: 1px solid #525159;
        border-radius: 10px;
        cursor: pointer;
    }

    .header .hamburger span {
        display: block;
        width: 23px;
        height: 2px;
        margin: 0;
        background: white;
        border-radius: 3px;
    }

    .header .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .header .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Menu rozwijane */

    .header .menu {
        display: none;
        position: absolute;

        top: 80px;
        left: 0;
        right: 0;

        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: #232124;
        box-shadow: 0 12px 22px rgba(0,0,0,.18);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
    }

    .header .menu.active {
        display: flex;
    }

    .header .menu li {
        width: 100%;
        border-bottom: 1px solid #39383d;
    }

    .header .menu a {
        display: block;
        width: 100%;
        padding: 16px 20px;
        text-align: center;
    }
}

/* MAŁE TELEFONY */

@media (max-width: 600px) {

    .header {
        padding: 0 12px !important;
        gap: 8px;
    }

    .header .logo {
        font-size: 20px;
    }

    .header .account-placeholder {
        padding: 10px;
    }

    .header .account-placeholder span {
        display: none;
    }
}



/* ========================================
   NOWA STOPKA KALKULAT.ORG
======================================== */

.site-footer {
    background: #232124;
    color: #c9c9d0;
    padding: 65px 0 25px;
    font-size: 14px;
    line-height: 1.65;
}

.site-footer .footer-inner {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.site-footer .footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
    gap: 55px;
    padding-bottom: 45px;
}

/* Logo i opis */

.site-footer .footer-logo {
    display: inline-block;
    color: white;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.site-footer .footer-logo span {
    color: #ffcb5e;
}

.site-footer .footer-description {
    max-width: 300px;
    color: #bcbac3;
    margin-bottom: 22px;
}

.site-footer .footer-note {
    color: #ffcb5e;
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
}

/* Social media */

.site-footer .footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer .footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    background: #39383d;
    border: 1px solid #525159;
    border-radius: 11px;

    color: #fff;
    font-size: 19px;

    transition: all 0.2s ease;
}

.site-footer .footer-socials a:hover {
    background: #ffcb5e;
    color: #232124;
    border-color: #ffcb5e;
    transform: translateY(-3px);
}

/* Kolumny z linkami */

.site-footer .footer-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.site-footer .footer-column h3 {
    color: #ffffff;
    font-size: 15px !important;
    font-weight: 700;
    margin: 4px 0 22px;
    line-height: 1.4;
}

.site-footer .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-column li {
    margin-bottom: 12px;
}

.site-footer .footer-column a {
    color: #c9c9d0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-column a:hover {
    color: #ffcb5e;
}

.site-footer .footer-column .footer-highlight {
    color: #ffcb5e;
    font-weight: 700;
}

/* Informacja prawna */

.site-footer .footer-disclaimer {
    border-top: 1px solid #49474d;
    padding: 20px 0;
    font-size: 12px;
    color: #a8a7af;
}

/* Dolny pasek */

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;

    border-top: 1px solid #49474d;
    padding-top: 22px;

    color: #a8a7af;
    font-size: 12px;
}

.site-footer .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.site-footer .footer-bottom-links a {
    color: #c9c9d0;
}

.site-footer .footer-bottom-links a:hover {
    color: #ffcb5e;
}

.site-footer a:focus-visible {
    outline: 2px solid #ffcb5e;
    outline-offset: 4px;
}

/* Tablet */

@media (max-width: 1100px) {
    .site-footer .footer-main {
        grid-template-columns: 1fr 2fr;
        gap: 35px;
    }

    .site-footer .footer-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

/* Telefon */

@media (max-width: 700px) {
    .site-footer {
        padding: 45px 0 22px;
    }

    .site-footer .footer-inner {
        width: calc(100% - 32px);
    }

    .site-footer .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 30px;
    }

    .site-footer .footer-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Małe telefony */

@media (max-width: 420px) {
    .site-footer .footer-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer .footer-column h3 {
        margin-bottom: 12px;
    }

    .site-footer .footer-column li {
        margin-bottom: 9px;
    }
}


/* =========================================
   INNE ELEMENTY (Używane w podstronach)
========================================= */
.affiliate-disclaimer {
    font-size: 0.85rem;
    color: #6c757d !important;
    line-height: 1.3;
}


/* Główne okienko dymka */
.tooltip-inner {
    background-color: #1e293b; /* Głęboki, nowoczesny granat (Tailwind slate-800) */
    color: #ffffff;
    border-radius: 12px; /* Wyraźne zaokrąglenie krawędzi */
    padding: 10px 16px; /* Więcej "oddechu" wokół tekstu */
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Delikatny cień */
}

/* Zmiana koloru strzałki (trójkącika) kierującej w dół, by pasowała do tła */
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before, 
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #1e293b;
}




/* Zapobiega rozlewaniu się stylów widgetu na resztę strony */
.pricing-card .widget-body {
    all: initial; /* Resetuje dziedziczenie stylów z zewnątrz, przywracając domyślne przeglądarki dla widgetu */
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.leadstar-banner {
    background: #232124;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.leadstar-banner img {
    display: block;
    max-width: 100%;
    height: auto;
}

.leadstar-banner a {
    display: block;
    max-width: 100%;
}