/* set */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* old top menu (desk) */
/* .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.6); 
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
nowe */
/* container width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

}
/* tob bar contact */
.top-bar {
    background-color: rgba(96, 181, 255, 0.7);
    color: #fff;
    padding: 5px 0;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

/* for contact ico */
.contact-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/*inne*/
/* .email, .phone { display: flex; align-items: center; } */
.phone::before, .email::before { display: block; width: 1.6rem; height: 1.6rem; opacity: 0.6; }
.email::before { content:url("../images/envelope-solid-full.svg"); padding-right: 0.2rem; filter: invert(100%);}
.phone::before { content:url("../images/mobile-screen-solid-full.svg"); filter: invert(100%);}

/* navi (Logo + Menu) */
.navbar {
    background-color: rgba(0, 42, 95, 0.7);
    padding: 15px 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}
/* nowe 
.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}
*/
.navigation ul {
    display: flex;
    list-style: none;
}

.navigation ul li {
    margin-left: 25px;
}

.navigation ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation ul li a:hover {
    color: #00a8ff;
}

/* hidden menu on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* slideshow */
.hero-slideshow {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.45); 
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 22px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* main content */
.content-section {
    padding: 90px 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.bg-light {
    background-color: #f4f7f9;
    max-width: 100%;
    padding-left: calc((100% - 1200px) / 2 + 50px);
    padding-right: calc((100% - 1200px) / 2 + 50px);
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #0a192f;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #00a8ff;
    margin: 15px auto 0 auto;
}

.section-lead {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}
.section-foot {
    font-size: 18px;
    color: #666;
    margin-top: 50px;
}
/* (grid) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    text-align: left;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #0a192f;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top-color: #00a8ff;
}

.card h3 {
    margin-bottom: 15px;
    color: #0a192f;
    font-size: 22px;
}

/* TERMINARZ */
.schedule-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.schedule-header {
    display: flex;
    background-color: #0f2c59; /* darkblue */
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.schedule-row {
    display: flex;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: background-color 0.2s ease;
}

/* efect row */
.schedule-row:hover {
    background-color: #f9fbfd;
}

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

.schedule-cell {
    flex: 1;
    padding: 16px 20px;
}
.schedule-row .schedule-cell { color: #333; }
/* button style */

.btn-table {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-table:hover {
    background-color: #fa5252;
}
/*
.btn-table.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}
*/
/* status color */
.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}
.status-open {
    background-color: #e6fcf5;
    color: #0ca678;
}
.status-urgent {
    background-color: #fff0f6;
    color: #d6336c;
}
.status-full {
    background-color: #f1f3f5;
    color: #868e96;
}
/* terminarz */
/* GALERIA  */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 2px solid #00a8ff;
    padding-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* foot */
.main-footer {
    background: #0a192f;
    color: #a8b2d1;
    padding: 70px 50px 25px 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    border-bottom: 1px solid #233554;
    padding-bottom: 40px;
}

.footer-info h3, .footer-links h3 {
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 16px;
}

.footer-info p {
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #00a8ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 14px;
    color: #64ffda;
}

/* mobile */
@media (max-width: 768px) {
   /* .main-header {
        padding: 15px 25px;
    }
  */
  
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(15px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .navigation.active {
        max-height: 400px;
    }

    .navigation ul {
        flex-direction: column;
        width: 100%;
        /* padding: 20px 0; */
    }

    .navigation ul li {
        margin: 0;
        text-align: center;
    }

    .navigation ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navigation ul li:last-child a {
        border-bottom: none;
    }

    .slide-content h1 {
        font-size: 34px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .content-section {
        padding: 60px 20px;
    }
    
    .grid-2, .grid-3, .gallery-grid, .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bg-light {
        padding-left: 20px;
        padding-right: 20px;
    }
    /*nowe*/
    .top-bar .container {
        justify-content: flex-end;
        font-size: 1rem;
        gap: 20px;
        padding: 0 20px;
    }
        /* hiden text */
    .hide-mobile {
        /* display: none; */
	position: absolute;
	top: -100px;
	left: -100px;
    }

    .contact-link-email .contact-icon {
        height: 18px; 
    }
    .logo {
	font-size: 20px;
    }
    /* terminarz */
      .schedule-container {
        border: none;
    }

    /* hidden header */
    .schedule-header {
        display: none;
    }

    /* Zamiana wiersza w pionową kartę */
    .schedule-row {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    }
    
    .schedule-row:hover {
        background-color: #fff; /* do not touch */
    }

    /* one column */
    .schedule-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 4px;
        border-bottom: 1px dashed #f0f0f0;
    }

    .schedule-cell:last-child {
        border-bottom: none;
    }

    /* show text label from attr data-label */
    .schedule-cell::before {
        content: attr(data-label);
        font-weight: bold;
        color: #888;
        font-size: 14px;
    }
    
    /* center button action */
    .schedule-cell[data-label="Akcja"] {
        justify-content: center;
        padding-top: 14px;
    }
    
    .schedule-cell[data-label="Akcja"]::before {
        display: none; /* hidden "Akcja" */
    }

    .btn-table {
        width: 100%; /* button max width */
    }
    /* terminarz */
}
