/* ==========================================================================
   1. RESET PODSTAWOWY I TYPOGRAFIA
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.page-loaded {
    opacity: 1;
}

body.page-leaving {
    opacity: 0;
}

/* ==========================================================================
   2. GŁÓWNY NAGŁÓWEK, LOGO I NAWIGACJA
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 48px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.logo-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.3px;
}

.logo-subtitle {
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    max-width: 360px;
    white-space: normal;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active-nav {
    color: #0284c7;
}

.btn-nav {
    background-color: #0284c7;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color 0.2s, transform 0.2s !important;
}

.btn-nav:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
}

.fb-icon i {
    font-size: 1.25rem;
    color: #0284c7;
    transition: transform 0.2s;
}

.fb-icon:hover i {
    transform: scale(1.18);
}

/* ==========================================================================
   3. ELEMENTY WSPÓLNE I PRZYCISKI
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin: 6px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #0284c7;
    border: 2px solid #0284c7;
}

.btn-secondary:hover {
    background-color: #0284c7;
    color: #ffffff;
}

.section-tag {
    display: inline-block;
    color: #0284c7;
    background-color: #e0f2fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.page-header {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #bae6fd;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.3rem;
    color: #0f172a;
    margin: 10px 0 12px 0;
}

.page-header p {
    font-size: 1.1rem;
    color: #475569;
}

/* ==========================================================================
   4. STRONA GŁÓWNA: HERO, ZALETY, O NAS (SLIDER)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #bae6fd;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.6rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 30px;
}

.features {
    max-width: 1100px;
    margin: 70px auto;
    padding: 0 20px;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 40px;
}

.cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    border-top: 5px solid #0284c7;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.12);
}

.card h3 {
    margin-bottom: 12px;
    color: #0369a1;
}

/* Sekcja O nas ze sliderem */
.about-section {
    padding: 60px 20px;
    background-color: #ffffff;
    overflow: hidden;
}

.about-slider-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    min-height: 240px;
}

/* Mechanizm przełączania slajdów */
.about-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.about-slide.active {
    display: block;
    opacity: 1;
    animation: fadeInSlide 0.6s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.15);
    border: 4px solid #f0f9ff;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.1rem;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 16px;
}

.about-content p {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* Wskaźniki kropek pod sliderem */
.about-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.about-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.about-slider-dots .dot.active {
    background-color: #0284c7;
    width: 32px;
    border-radius: 6px;
}
/* ==========================================================================
   5. FORMULARZ KONTAKTOWY I INFORMACJE
   ========================================================================== */
.contact-section {
    background-color: #f1f5f9;
    padding: 80px 20px;
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-col {
    flex: 1.1;
}

.contact-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.contact-form h2 {
    color: #0f172a;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    display: block;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.contact-form textarea {
    resize: vertical;
}

.phone-group .iti {
    width: 100%;
}

.phone-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

#form-status {
    display: none;
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

#form-status.status-success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#form-status.status-error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-info-col {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.info-card h3 {
    color: #0369a1;
    font-size: 1.25rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: #0284c7;
}

.info-highlight {
    font-size: 1.05rem;
    color: #1e293b;
    margin-bottom: 6px;
}

.info-card .subtext {
    font-size: 0.88rem;
    color: #64748b;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.steps-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #334155;
    white-space: nowrap;
}

.step-num {
    background-color: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* ==========================================================================
   6. LOKALIZACJA I MAPA GOOGLE
   ========================================================================== */
.locations-section {
    width: 100%;
    background-color: #ffffff;
}

.locations-container {
    display: flex;
    width: 100%;
}

.map-wrapper {
    flex: 1.1;
    min-height: 420px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    display: block;
}

.locations-info {
    flex: 0.9;
    background-color: #0284c7;
    color: #ffffff;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branch-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    width: fit-content;
}

.branch-item h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #ffffff;
}

.branch-address {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #ffffff;
}

.branch-address i {
    font-size: 1.2rem;
    margin-top: 3px;
    color: #bae6fd;
}

.branch-contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #0369a1 !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
    transition: transform 0.2s, background-color 0.2s;
}

.contact-pill:hover {
    transform: translateX(4px);
    background-color: #f0f9ff;
}

.contact-pill.fb-pill {
    background-color: #1877f2;
    color: #ffffff !important;
}

.contact-pill.fb-pill:hover {
    background-color: #166fe5;
}

/* ==========================================================================
   7. PODSTRONA: CENNIK
   ========================================================================== */
.pricing-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

.pricing-container {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.pricing-card-header {
    background-color: #f0f9ff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0f2fe;
}

.pricing-card-header i {
    color: #0284c7;
    font-size: 1.3rem;
}

.pricing-card-header h2 {
    font-size: 1.25rem;
    color: #0369a1;
    margin: 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table th,
.pricing-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.pricing-table th {
    background-color: #ffffff;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background-color: #f8fafc;
}

.pricing-table td.price {
    font-weight: 700;
    color: #0284c7;
    white-space: nowrap;
    text-align: right;
    font-size: 1.05rem;
}

.pricing-table th:last-child {
    text-align: right;
}

.pricing-notice {
    background-color: #ffffff;
    border-left: 4px solid #0284c7;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    display: flex;
    gap: 16px;
    align-items: center;
}

.pricing-notice i {
    font-size: 1.5rem;
    color: #0284c7;
}

.pricing-notice strong {
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

.pricing-notice p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

/* ==========================================================================
   8. PODSTRONA: KADRA / ZESPÓŁ (FLIP CARDS 3D + PODZIAŁ NA SEKTORY)
   ========================================================================== */
.team-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

/* Kontener grupujący sektory (Właściciel, Lekarze, Terapeuci, Rejestracja) */
.team-group-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.team-category-block {
    display: flex;
    flex-direction: column;
}

.team-category-header {
    text-align: left;
    margin-bottom: 28px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 14px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.team-category-header h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.team-category-header p {
    color: #64748b;
    font-size: 1rem;
    max-width: 750px;
}

/* Kontener kafelków 3D w ramach grupy */
.team-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    perspective: 1200px;
}

.flip-card {
    background-color: transparent;
    width: 340px;
    height: 480px;
    border-radius: 16px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

/* Awers */
.flip-card-front {
    background-color: #ffffff;
}

.flip-card-front .team-image-box {
    width: 100%;
    height: 280px;
    background-color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flip-card-front .team-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-front-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.team-front-body .team-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.team-front-body h3 {
    font-size: 1.35rem;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.flip-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Rewers */
.flip-card-back {
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    transform: rotateY(180deg);
    padding: 30px 24px;
    justify-content: flex-start;
    border-top: 5px solid #0284c7;
}

.team-role-back {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0284c7;
    margin-bottom: 4px;
}

.flip-card-back h4 {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.flip-card-back .team-bio {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-specs-box {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.team-specs-box strong {
    font-size: 0.88rem;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}

.flip-card-back .team-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flip-card-back .team-specs li {
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flip-card-back .team-specs li i {
    color: #0284c7;
    font-size: 0.8rem;
}

/* Standardy i CTA */
.team-standards {
    max-width: 1100px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.standard-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.standard-item i {
    font-size: 2rem;
    color: #0284c7;
    margin-bottom: 14px;
}

.standard-item h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.standard-item p {
    font-size: 0.9rem;
    color: #64748b;
}

.team-cta {
    max-width: 800px;
    margin: 50px auto 0;
    background: #e0f2fe;
    padding: 35px 24px;
    border-radius: 16px;
    text-align: center;
}

.team-cta h3 {
    font-size: 1.35rem;
    color: #0369a1;
    margin-bottom: 18px;
}
/* ==========================================================================
   9. PODSTRONA: OFERTA (DIAGNOZA I TERAPIE)
   ========================================================================= */
.services-section {
    padding: 60px 20px 80px;
    background-color: #f8fafc;
}

.services-container {
    max-width: 1150px;
    margin: 0 auto;
}

.services-group {
    margin-bottom: 60px;
}

.services-group-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 18px;
}

.group-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.services-group-header h2 {
    font-size: 1.85rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.services-group-header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 750px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0284c7;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.1);
    border-color: #bae6fd;
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f0f9ff;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.service-tags {
    display: flex;
    gap: 6px;
}

.tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-nfz {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.tag-private {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.35;
}

.service-desc {
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.88rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i {
    color: #0284c7;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ==========================================================================
   10. PODSTRONA: GALERIA
   ========================================================================== */
.gallery-page-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

.gallery-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e8f0;
}

.gallery-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-visual .gallery-icon {
    font-size: 3.5rem;
    color: #0284c7;
    opacity: 0.85;
}

.gallery-visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-visual img {
    transform: scale(1.04);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
    color: #ffffff;
    padding: 26px 18px 14px 18px;
    z-index: 2;
}

.gallery-caption h4 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 3px;
    font-weight: 700;
}

.gallery-caption p {
    font-size: 0.85rem;
    color: #bae6fd;
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   11. SEKCJA FAQ (ROZWIJANE PYTANIA)
   ========================================================================== */
.faq-section {
    padding: 60px 20px 80px;
    background-color: #ffffff;
}

.faq-container {
    max-width: 950px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: #bae6fd;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.06);
}

.faq-item[open] {
    background-color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
}

.faq-question {
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: #0284c7;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 20px 22px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.faq-answer strong {
    color: #0f172a;
}

/* ==========================================================================
   12. BANER COOKIES
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 40px);
    max-width: 900px;
    background-color: #0f172a;
    color: #f8fafc;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 99999;
    transition: transform 0.4s ease-out;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-icon {
    font-size: 1.6rem;
    color: #38bdf8;
    flex-shrink: 0;
}

.cookie-content p {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #cbd5e1;
    margin: 0;
}

.btn-cookie {
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.btn-cookie:hover {
    background-color: #0369a1;
}

/* ==========================================================================
   13. STOPKA
   ========================================================================== */
footer {
    background-color: #0f172a;
    color: #e2e8f0;
    text-align: center;
    padding: 24px;
    font-size: 0.9rem;
}

/* ==========================================================================
   14. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    .main-header {
        flex-direction: column;
        gap: 14px;
        padding: 14px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-image img {
        height: 280px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .steps-list li {
        white-space: normal;
    }

    .locations-container {
        flex-direction: column-reverse;
    }

    .map-wrapper {
        min-height: 320px;
    }

    .locations-info {
        padding: 35px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .flip-card {
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 650px) {
    .pricing-table th, 
    .pricing-table td {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 12px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 8px;
    }

    .btn-cookie {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* Responsywność tabeli cennika */
.pricing-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.pricing-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 600px) {
    .pricing-card {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .pricing-table {
        width: 100% !important;
        min-width: unset !important; /* usuwa blokadę szerokości */
        table-layout: auto !important;
    }

    .pricing-table th, 
    .pricing-table td {
        padding: 8px 4px !important;
        font-size: 0.8rem !important;
    }

    .pricing-table td.price {
        white-space: nowrap !important;
        font-weight: bold !important;
        text-align: right !important;
        padding-right: 6px !important;
    }
}
/* Lista kroków w karcie informacyjnej */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

/* Kółko z numerem */
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Kolumna tekstowa obok numeru */
.step-text {
    display: flex;
    flex-direction: column;
}

.step-text strong {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
}

.step-text span {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
    margin-top: 2px;
}
/* --- PEŁNOEKRANOWA GALERIA LIGHTBOX --- */
.lightbox-modal {
    display: none !important; /* Domyślnie całkowicie ukryty */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.95) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(5px) !important;
}

/* Stan otwarty po kliknięciu w kafelek */
.lightbox-modal.is-open {
    display: flex !important;
}

.gallery-item {
    cursor: pointer !important;
}

.lightbox-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 85% !important;
    max-height: 85vh !important;
}

#lightboxActiveImg {
    max-width: 100% !important;
    max-height: 75vh !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.lightbox-info {
    margin-top: 14px !important;
    color: #ffffff !important;
    text-align: center !important;
    font-size: 1.05rem !important;
    display: flex !important;
    gap: 12px !important;
}

#lightboxCounter {
    color: #38bdf8 !important;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 22px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.lightbox-close {
    position: absolute !important;
    top: 20px !important;
    right: 30px !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 42px !important;
    cursor: pointer !important;
    z-index: 1000000 !important;
}