/* ========================================
   PODSTAWOWE RESETY I STYLE GLOBALNE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Ubuntu', 'Noto Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAWIGACJA
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    border-bottom: 1px solid rgba(226,232,240,0.8);
}

.navbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.logo-area {
    flex-shrink: 0;
}

.logo-area img {
    height: 55px;
    width: auto;
    display: block;
}

.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.navbar-toggle:hover {
    background: #f1f5f9;
}

.icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #2c3e66;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.2s;
}

.navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav li a {
    display: block;
    padding: 10px 18px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav li a:hover {
    background: #eef2ff;
    color: #2563eb;
}

/* ========================================
   HERO BANNER - POJEDYNCZE ZDJĘCIE BEZ TEKSTU
   ======================================== */

.hero-banner {
    margin-top: 100px;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    background: #1e5a8a;
}

.hero-banner-image {
    width: 100%;
    padding-bottom: 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.hero-banner:hover .hero-banner-image {
    transform: scale(1.02);
}

/* ========================================
   SEKCJE
   ======================================== */

.section {
    padding: 80px 0;
}

.section-light {
    background: #f8fafc;
}

.section-white {
    background: white;
}

.section-gradient {
    background: linear-gradient(120deg, #f0f9ff 0%, #e6f0fa 100%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 48px auto;
    font-size: 1.1rem;
}

/* ========================================
   FEATURE KARTY (O FIRMIE)
   ======================================== */

.feature-card {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eef2ff;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.12);
}

.grid-2 {
    display: grid;
    gap: 32px;
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ========================================
   OFERTA - NOWA SIATKA Z OBRAZKAMI
   ======================================== */

.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.offer-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid #eef2ff;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.12);
    border-color: #2563eb;
}

.offer-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.05);
}

.offer-content {
    padding: 20px 20px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-content h3 {
    font-size: 1.1rem;
    color: #1e5a8a;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.offer-content p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Linki w ofertach - cała karta klikalna */
.offer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.offer-card-link:hover .offer-card {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.12);
    border-color: #2563eb;
}

.offer-card-link:hover .offer-image img {
    transform: scale(1.05);
}

.offer-card-link .offer-card {
    transition: all 0.3s ease;
}

.offer-card-link .offer-image img {
    transition: transform 0.5s ease;
}

/* ========================================
   DEFINICJE (SŁOWNIK)
   ======================================== */

.grid-4 {
    display: grid;
    gap: 32px;
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.def-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.def-term {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f3b5c;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================================
   FAQ
   ======================================== */

.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fafcff;
}

.indicator {
    font-size: 1.5rem;
    font-weight: 400;
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fefefe;
    border-top: 1px solid #eef2ff;
}

.faq-answer.show {
    max-height: 300px;
}

.faq-answer p {
    padding: 20px 28px;
    margin: 0;
    color: #334155;
}

/* ========================================
   KONTAKT
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.map-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-mapa {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #1e5a8a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(30,90,138,.25);
}

.btn-mapa:hover {
    background: #16466b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,90,138,.35);
}

/* ========================================
   STOPKA
   ======================================== */

footer {
    border-top: 1px solid #eef2ff;
    background: #f8fafc;
}

.main-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px 24px;
    background: transparent;
    border-top: none;
}

.main-footer a,
.main-footer a:visited,
.main-footer a:active,
.main-footer a:focus {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.main-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.main-footer strong {
    color: #1e293b;
    font-size: 1rem;
}

.main-footer p {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.8;
    margin-top: 0.5rem;
}

/* ========================================
   LANGUAGE BAR - PASEK JĘZYKOWY - POPRAWIONY
   ======================================== */

.lang-bar {
    background: #1e293b;
    padding: 10px 0;
    border-bottom: 2px solid #2563eb;
}

.lang-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.lang-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.lang-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 8px 14px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
}

.lang-links a:hover {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
}

.lang-links a.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.lang-links img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

/* ========================================
   SITE FOOTER - NOWA STOPKA
   ======================================== */

.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 48px 0 0 0;
    margin-top: 40px;
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 32px 24px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.footer-col strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-col a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #93bbfc;
    text-decoration: underline;
}

.footer-copyright {
    padding-top: 32px;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.8rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 8px;
}

.footer-copyright .copyright-main {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.footer-copyright .copyright-main span {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-copyright .ai-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #1e293b;
}

.footer-copyright a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #93bbfc;
    text-decoration: underline;
}

/* ========================================
   RESPONSYWNOŚĆ
   ======================================== */

@media (max-width: 1024px) {
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .offer-image {
        height: 180px;
    }
    
    .hero-banner-image {
        padding-bottom: 45%;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        margin-top: 80px;
        border-radius: 20px;
    }
    
    .hero-banner-image {
        padding-bottom: 56.25%;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .offer-image {
        height: 160px;
    }
    
    .offer-content {
        padding: 16px 16px 20px 16px;
    }
    
    .offer-content h3 {
        font-size: 1rem;
    }
    
    .offer-content p {
        font-size: 0.85rem;
    }
    
    .main-footer {
        padding: 32px 16px 24px 16px;
    }
    
    .main-footer p {
        font-size: 0.75rem;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 79px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 79px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .navbar-collapse.open {
        left: 0;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 0;
    }
    
    .nav li {
        border-bottom: 1px solid #eef2ff;
    }
    
    .nav li a {
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: 0;
    }
    
    .nav li a:hover {
        background: #f8fafc;
    }
    
    .navbar-toggle.active .icon-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active .icon-bar:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active .icon-bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Stopka responsywna */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 30px;
    }
    
    /* PASEK JĘZYKOWY - MOBILE */
    .lang-bar {
        padding: 8px 0;
    }
    
    .lang-links {
        gap: 4px;
    }
    
    .lang-links a {
        font-size: 0.7rem;
        padding: 6px 10px;
        min-width: 44px;
        min-height: 44px;
        gap: 4px;
    }
    
    .lang-links img {
        width: 16px;
        height: 11px;
    }
    
    .footer-col p {
        font-size: 0.8rem;
    }
    
    .footer-copyright p {
        font-size: 0.7rem;
    }
    
    .footer-copyright .copyright-main {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-banner-image {
        padding-bottom: 66.67%;
    }
    
    .offer-image {
        height: 140px;
    }
    
    .offer-content {
        padding: 14px 14px 18px 14px;
    }
    
    /* PASEK JĘZYKOWY - MAŁY MOBILE */
    .lang-bar {
        padding: 6px 0;
    }
    
    .lang-links {
        gap: 3px;
    }
    
    .lang-links a {
        font-size: 0.6rem;
        padding: 4px 8px;
        min-width: 40px;
        min-height: 40px;
        gap: 3px;
    }
    
    .lang-links img {
        width: 14px;
        height: 9px;
    }
    
    .footer-main {
        padding: 0 16px 24px 16px;
    }
}

@media (min-width: 769px) {
    .navbar-collapse {
        display: flex !important;
    }
}

/* ========================================
   DODATKOWE KLASY POMOCNICZE
   ======================================== */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
/* ========================================
   POPRAWKI DLA ELEMENTÓW DOTYKOWYCH - TYLKO NA MOBILE
   WCAG 2.1 - min. 44x44px DLA PALCÓW
   ======================================== */

/* WSZYSTKIE LINKI W STOPCE - większe na telefonie */
@media (max-width: 768px) {
    .footer-col a {
        display: inline-block;
        padding: 14px 20px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        line-height: 1.4;
        font-size: 1rem !important;
        border-radius: 8px;
        margin: 4px 0;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer-col a:hover,
    .footer-col a:focus {
        background: rgba(255, 255, 255, 0.12);
        outline: 2px solid rgba(96, 165, 250, 0.4);
        outline-offset: 2px;
    }
    
    /* LINKI "Privacy policy" i "KRS" - jeszcze większe */
    .footer-col a[rel="nofollow"],
    .footer-col a[rel="noopener"] {
        padding: 16px 24px !important;
        min-height: 56px !important;
        font-size: 1.05rem !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        background: rgba(96, 165, 250, 0.08);
        border-color: rgba(96, 165, 250, 0.2);
    }
    
    /* LINKI Z FLAGAMI - większe na mobile */
    .lang-links a {
        padding: 12px 16px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        font-size: 0.85rem !important;
        gap: 6px;
    }
    
    /* PRZYCISK "View on map" */
    .btn-mapa,
    .footer-col a[href*="maps.google"] {
        padding: 16px 32px !important;
        min-height: 56px !important;
        font-size: 1.05rem !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* LINKI W MENU MOBILNYM */
    .nav li a {
        padding: 16px 24px !important;
        min-height: 52px !important;
        font-size: 1.1rem !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* PRZYCISK HAMBURGER */
    .navbar-toggle {
        padding: 12px 16px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }
    
    /* FAQ - przyciski */
    .faq-question {
        padding: 20px 24px !important;
        min-height: 56px !important;
        font-size: 1.05rem !important;
    }
}

/* DLA BARDZO MAŁYCH EKRANÓW (poniżej 400px) */
@media (max-width: 480px) {
    .footer-col a {
        padding: 16px 24px !important;
        min-height: 56px !important;
        font-size: 1.05rem !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    
    .lang-links {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    
    .lang-links a {
        flex: 1 1 calc(50% - 6px) !important;
        justify-content: center !important;
        min-height: 52px !important;
        padding: 12px 14px !important;
        font-size: 0.85rem !important;
    }
    
    .btn-mapa,
    .footer-col a[href*="maps.google"] {
        padding: 18px 32px !important;
        min-height: 60px !important;
        font-size: 1.1rem !important;
    }
}

