/* ================================
   GLOBAL RESET & BASE
================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050915;
    color: #e6e9ef;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================
   LAYOUT HELPERS
================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section--light {
    background: #0b1220;
}

.section--dark {
    background: #050915;
}

.section__header {
    text-align: center;
    margin-bottom: 40px;
}

.section__title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #1ec8a6, #37b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section__subtitle {
    font-size: 1.1rem;
    color: #a9b2c7;
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   TYPOGRAPHY
================================== */

h1, h2, h3, h4 {
    color: #f7f8fc;
}

p {
    color: #c7cfdd;
}

/* ================================
   HEADER & NAVIGATION
================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 9, 21, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 1rem;
    color: #f7f8fc;
}

.logo span {
    color: #1ec8a6;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    position: relative;
    font-size: 0.98rem;
    text-decoration: none;
    color: #c7cfdd;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1ec8a6, #37b9ff);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nav__link:hover {
    color: #ffffff;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--active {
    color: #ffffff;
}

.nav__link--active::after {
    width: 100%;
}

/* Mobilne menu */
.nav-toggle {
    display: none;
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: rgba(5, 9, 21, 0.98);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: block;
        width: 36px;
        height: 28px;
        position: relative;
        cursor: pointer;
    }

    .nav-toggle__line,
    .nav-toggle__line::before,
    .nav-toggle__line::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #f7f8fc;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle__line {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle__line::before {
        top: -8px;
    }

    .nav-toggle__line::after {
        top: 8px;
    }

    .nav-toggle--open .nav-toggle__line {
        transform: translateY(-50%) rotate(45deg);
    }

    .nav-toggle--open .nav-toggle__line::before {
        transform: rotate(-90deg) translate(-8px, 0);
    }

    .nav-toggle--open .nav-toggle__line::after {
        opacity: 0;
    }
}

/* ================================
   HERO SECTION
================================== */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px 100px;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero__eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #59d3b9;
    margin-bottom: 12px;
}

.hero__title {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: #b0bdd6;
    max-width: 640px;
    margin: 0 auto 30px;
}

.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 30% 0%, #14355b 0%, #0a1324 40%, #050915 90%);
    opacity: 0.9;
    filter: blur(3px);
    animation: heroPulse 14s ease-in-out infinite;
}

.hero-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.04) 0px,
        rgba(255,255,255,0.04) 1px,
        transparent 1px,
        transparent 7px
    );
    opacity: 0.25;
    animation: heroDrift 22s linear infinite;
}

@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes heroDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-260px); }
}

/* ================================
   CTA BUTTONS
================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
                box-shadow 0.15s ease, border-color 0.2s ease;
}

.btn--primary {
    background: linear-gradient(135deg, #1ec8a6, #37b9ff);
    color: white;
    box-shadow: 0 10px 26px rgba(30, 200, 166, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(30, 200, 166, 0.5);
}

.btn--ghost {
    background: transparent;
    color: #d4d9e6;
    border-color: rgba(212, 217, 230, 0.35);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(212, 217, 230, 0.6);
}

/* ================================
   CARDS / BOXES
================================== */

.card {
    background: #0b1220;
    border-radius: 16px;
    padding: 26px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}

.card__title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card__text {
    font-size: 0.98rem;
    color: #b8c2d8;
}

/* ================================
   GRID SYSTEM
================================== */

.grid {
    display: grid;
    gap: 26px;
}

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

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

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

@media (max-width: 900px) {
    .grid--4,
    .grid--3,
    .grid--2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ================================
   KSEF INTRO SECTION
================================== */

.ksef-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.ksef-intro__highlight {
    padding: 20px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
    color: #c7cfdd;
}

.ksef-risks-list {
    list-style: none;
    margin-top: 16px;
}

.ksef-risks-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.ksef-risks-list li::before {
    content: "⚠";
    margin-top: 2px;
    font-size: 1.1rem;
    color: #ffcf52;
}

/* ================================
   PREMIUM FILE LIST (PDF / XLSX)
================================== */

.premium-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

.premium-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.premium-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.premium-icon.pdf {
    background: #d9534f;
}

.premium-icon.xlsx {
    background: #2ecc71;
}

.premium-content {
    flex: 1;
}

.premium-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.premium-desc {
    font-size: 0.98rem;
    opacity: 0.85;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .premium-item {
        flex-direction: column;
        gap: 10px;
    }
    .premium-icon {
        align-self: flex-start;
    }
}

/* ================================
   PRICING TABLES (STARTER / PRO / PARTNER)
================================== */

.pricing {
    display: grid;
    gap: 28px;
}

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

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

.pricing-card {
    background: #0b1220;
    border-radius: 18px;
    padding: 32px 28px 38px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.58);
}

.pricing-card--featured {
    border-color: rgba(30, 200, 166, 0.8);
    box-shadow: 0 24px 60px rgba(30, 200, 166, 0.4);
    transform: translateY(-6px);
}

.pricing-card__badge {
    display: inline-flex;
    padding: 5px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(30, 200, 166, 0.18);
    color: #d8fff7;
    margin-bottom: 12px;
}

.pricing-card__title {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.pricing-card__subtitle {
    font-size: 0.92rem;
    color: #a9b2c7;
    margin-bottom: 18px;
}

.pricing-card__price {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pricing-card__note {
    font-size: 0.9rem;
    color: #a9b2c7;
    margin-bottom: 20px;
}

.pricing-card__list {
    list-style: none;
    margin-bottom: 26px;
}

.pricing-card__list li {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #c7cfdd;
}

.pricing-card__list li::before {
    content: "•";
    font-size: 1.2rem;
    color: #1ec8a6;
    line-height: 1.1;
}

/* ================================
   PORÓWNANIE PAKIETÓW – TABELA
================================== */

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0b1220;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    font-size: 0.94rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: center;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: rgba(255,255,255,0.04);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: #d4d9e6;
}

.comparison-row > div:first-child {
    text-align: left;
    color: #c7cfdd;
}

.comparison-row > div:not(:first-child) {
    text-align: center;
}

@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .comparison-header {
        font-size: 0.75rem;
    }
}

/* ================================
   FORMULARZE / IKONY / INPUTY
================================== */

input, textarea, select {
    background: #0d1525;
    border: 1px solid rgba(255,255,255,0.09);
    padding: 12px 14px;
    border-radius: 10px;
    color: #e6e9ef;
    width: 100%;
    font-size: 0.95rem;
}

input:focus, textarea:focus, select:focus {
    border-color: #1ec8a6;
    outline: none;
}

/* ================================
   FOOTER
================================== */

.site-footer {
    padding: 32px 20px 36px;
    background: #03050b;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.86rem;
    color: #7c8497;
}

/* ================================
   ANIMACJE SCROLLOWE
================================== */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   HOVER – UNIWERSALNE PODNOSZENIE
================================== */

.lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.45);
}

/* ================================
   NAWIGACJA – RESPONSYWNOŚĆ
================================== */

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }
}

/* ================================
   HERO – RESPONSYWNOŚĆ
================================== */

@media (max-width: 768px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 80px;
    }

    .hero__title {
        font-size: 2.3rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        max-width: 90%;
    }
}

/* ================================
   OGÓLNA RESPONSYWNOŚĆ STRONY
================================== */

@media (max-width: 768px) {

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }

    .pricing-card {
        padding: 26px 22px;
    }

    .pricing-card__price {
        font-size: 1.8rem;
    }

    .ksef-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ================================
   FIX: BRAK DOMKNIĘĆ MEDIA QUERY
================================== */

/* Ten blok kończy wszystkie otwarte sekcje,
   gwarantuje, że CSS jest poprawnie zamknięty. */

/* =========================================================
   PACKAGE FILES – VARIANT A (PREMIUM GRID)
   ====================================================== */

.package-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.package-file {
    position: relative;
    padding: 20px 20px 18px;
    border-radius: 18px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(0,122,255,0.18), transparent 55%),
        radial-gradient(130% 160% at 100% 100%, rgba(52,199,89,0.10), transparent 55%),
        #0b1220;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.package-file::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(120deg, rgba(0,122,255,0.7), rgba(52,199,89,0.7));
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: opacity 0.25s ease;
}

.package-file:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.18);
}

.package-file:hover::after {
    opacity: 0.35;
}

.package-file-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.package-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.55);
}

/* warianty ikon */
.package-file-icon--pdf {
    background: linear-gradient(135deg, #ff4b4b, #ff8a66);
}

.package-file-icon--xlsx {
    background: linear-gradient(135deg, #15b46a, #51d88b);
}

.package-file-icon--doc {
    background: linear-gradient(135deg, #3478f6, #7fa9ff);
}

.package-file-icon--other {
    background: linear-gradient(135deg, #8e5bff, #b786ff);
}

.package-file-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.package-file-title {
    font-size: 1.02rem;
    font-weight: 700;
}

.package-file-format {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #8ea6ff;
}

.package-file-desc {
    font-size: 0.92rem;
    color: #b8c2d8;
    margin-top: 6px;
}

/* mały „tag” w rogu – opcjonalne wyróżnienie */
.package-file-tag {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.16);
    color: #d4d9e6;
}

/* responsywność */
@media (max-width: 768px) {
    .package-files-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .package-file {
        padding: 18px 16px 16px;
    }
}

/* LOGO jako link – bez podkreślenia i bez efektu hover */
.logo {
    text-decoration: none !important;
    color: #f7f8fc !important;
}

.logo:hover {
    color: #f7f8fc !important;
}

.logo::after {
    content: none !important;
}

/* =============================
   FIX IKON KONTAKTU – stały rozmiar + białe
============================= */

.contact-icons img,
.contact-social-icon img {
    width: 34px !important;
    height: 34px !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-icons img:hover,
.contact-social-icon img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 16px;
}

/* Naprawa sekcji kontaktowej */
.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-label,
.contact-email {
    text-align: center;
}

/* Ikony kontaktowe — ograniczamy rozmiar I NADPISUJEMY WSZYSTKO */
.contact-icons img {
    width: 36px !important;
    height: 36px !important;
    filter: invert(1);
    opacity: 0.9;
    transition: 0.3s;
}

.contact-icons img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Przywrócenie stylu boxów FAQ */
.faq-item {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 22px 28px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
}


/* ============================
   HERO tylko dla strony Kontakt
   ============================ */

.page-kontakt .hero {
    min-height: 50vh !important;   /* było ~45–60vh */
}

.page-kontakt .hero--small {
    padding: 50px 0 70px !important;  /* zmniejsza górę i dół */
}

.page-kontakt .hero__title {
    font-size: 50px !important;
}

.page-kontakt .hero__subtitle {
    font-size: 17px !important;
    opacity: 0.8;
}
