:root {
    --primary: #009cff;
    --primary-hover: #0073e6;
    --bg-dark: #f0f8ff;
    --bg-card: #ffffff;
    --text-main: #2d3748;
    --text-muted: #4a5568;
    --border-color: #cce0ff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: linear-gradient(to bottom, rgba(0, 212, 255, 0.95) 0%, rgba(0, 115, 230, 0.95) 100%);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: #e6f7ff; }

.logo-container .logo { 
    height: 90px; 
    object-fit: contain; 
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1551698618-1dfe5d97d256?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center 35%/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(240, 248, 255, 1));
}

.hero-content { position: relative; z-index: 10; max-width: 800px; padding: 0 20px; }

.hero-content .subtitle { 
    color: #ffffff; 
    font-size: 28px; 
    font-weight: 800; 
    font-style: italic;
    letter-spacing: 4px; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    text-shadow: 
        -1px -1px 0 #00d4ff,  
         1px -1px 0 #00d4ff,
        -1px  1px 0 #00d4ff,
         1px  1px 0 #00d4ff,
         0px  2px 0 #00d4ff,
         2px  0px 0 #00d4ff,
         0px -2px 0 #00d4ff,
        -2px  0px 0 #00d4ff,
         2px  2px 0 #00c5f7,
         3px  3px 0 #00b5ef,
         4px  4px 0 #00a5e7,
         5px  5px 0 #0096df,
         6px  6px 0 #0086d7,
         7px  7px 0 #0073e6,
         8px  8px 0 #0066cc,
         9px  9px 0 #0059b3,
         14px 14px 15px rgba(0, 0, 0, 0.4);
}

.hero-content .title { 
    color: #ffffff;
    font-size: 68px; 
    font-weight: 800; 
    font-style: italic;
    line-height: 1.1; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    text-shadow:
        -2px -2px 0 #00d4ff,
         2px -2px 0 #00d4ff,
        -2px  2px 0 #00d4ff,
         2px  2px 0 #00d4ff,
         0px  3px 0 #00d4ff,
         3px  0px 0 #00d4ff,
         0px -3px 0 #00d4ff,
        -3px  0px 0 #00d4ff,
         3px  3px 0 #00c5f7,
         4px  4px 0 #00c5f7,
         5px  5px 0 #00b5ef,
         6px  6px 0 #00b5ef,
         7px  7px 0 #00a5e7,
         8px  8px 0 #00a5e7,
         9px  9px 0 #0096df,
         10px 10px 0 #0086d7,
         11px 11px 0 #0073e6,
         12px 12px 0 #0066cc,
         13px 13px 0 #0059b3,
         14px 14px 0 #004d99,
         15px 15px 0 #004080,
         22px 22px 20px rgba(0, 0, 0, 0.4);
}

.hero-content .desc { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(to bottom, #00d4ff 0%, #0073e6 100%);
    color: #fff;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-primary:hover { 
    background: linear-gradient(to bottom, #00bfff 0%, #005bb5 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(0, 156, 255, 0.4);
}

/* Services */
.services { padding: 80px 20px; background-color: var(--bg-dark); }

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 20;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    margin-bottom: 25px;
    background: rgba(0, 156, 255, 0.1);
    width: 80px; height: 80px;
    margin: 0 auto 25px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.card h3 { font-size: 22px; margin-bottom: 15px; font-weight: 600; }

.card p { color: var(--text-muted); font-size: 15px; }

/* Nowe sekcje contentowe (zakładki) */
.content-section {
    padding: 40px 20px;
    background-color: var(--bg-dark);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
}

.section-container h2 {
    color: var(--text-main);
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
}

.section-container p {
    color: var(--text-muted);
    font-size: 16px;
    text-align: center;
    max-width: 950px;
    margin: 0 auto 30px;
}

.section-container p:last-child {
    margin-bottom: 0;
}

.section-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    color: #ffffff;
    background: linear-gradient(to bottom, #00d4ff 0%, #0073e6 100%);
    font-size: 14px;
}

/* --- Tabela godzin otwarcia (Desktop) --- */
.responsive-hours {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    border-collapse: collapse;
    background-color: var(--bg-card) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.responsive-hours tbody {
    background-color: transparent !important;
}

.responsive-hours th {
    background: linear-gradient(to bottom, #00d4ff 0%, #0073e6 100%) !important;
    color: #ffffff !important;
    padding: 16px;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--border-color) !important;
    text-transform: uppercase;
}

.responsive-hours tr {
    background-color: var(--bg-card) !important;
}

.responsive-hours td {
    padding: 16px;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    background-color: var(--bg-card) !important;
    text-align: center;
}

/* Wymuszenie czyszczenia stylów inline pochodzących z edytora dla elementów zagnieżdżonych */
.responsive-hours td *,
.responsive-hours th * {
    color: inherit !important;
    background-color: transparent !important;
}

.responsive-hours tr:hover,
.responsive-hours tr:hover td {
    background-color: var(--bg-dark) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        background-position: 68% 120px;
        height: auto;
        min-height: 100vh;
        padding-top: 230px;
        padding-bottom: 60px;
    }
    .hero-content {
        margin-top: 90px;
    }
    .hero-content .title { 
        font-size: 42px; 
        word-spacing: 100vw; 
    }
    .nav-container { flex-direction: column; gap: 8px; width: 100%; padding: 8px 10px 12px; box-sizing: border-box; }
    .nav-links { order: 2; margin-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 520px; gap: 8px; }
    .nav-links a { margin: 0; padding: 8px 4px; font-size: 11px; text-align: center; white-space: normal; line-height: 1.2; }
    .logo-container { order: 1; width: 100%; display: flex; justify-content: center; align-items: center; text-align: center; }
    .logo-container a { display: flex; justify-content: center; align-items: center; width: 100%; }
    .logo-container .logo { width: 90%; max-width: 420px; height: auto; margin: 0 auto; display: block; }
    .cards-container { margin-top: 40px; }
}

/* --- Tabela godzin otwarcia (Kafelki na Mobile) --- */
@media (max-width: 768px) {
    .responsive-hours {
        min-width: 0 !important;
        display: block !important;
        box-shadow: none;
    }
    .responsive-hours thead {
        display: none !important;
    }
    .responsive-hours tbody,
    .responsive-hours tr,
    .responsive-hours td,
    .responsive-hours th {
        display: block !important;
        width: 100% !important;
    }
    .responsive-hours tr {
        margin-bottom: 20px !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background-color: var(--bg-card) !important;
    }
    .responsive-hours tr:hover {
        background-color: var(--bg-card) !important;
    }
    .responsive-hours td {
        text-align: right !important;
        padding-left: 50% !important;
        position: relative !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        background-color: var(--bg-card) !important;
        color: var(--text-main) !important;
    }
    .responsive-hours td:last-child {
        border-bottom: none !important;
    }
    
    .responsive-hours td::before {
        position: absolute;
        left: 15px;
        top: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--text-main);
    }
    
    .responsive-hours td:nth-child(1) {
        background-color: var(--primary) !important;
        text-align: center !important;
        padding-left: 15px !important;
        color: #ffffff !important;
        font-size: 16px !important;
    }
    .responsive-hours td:nth-child(1)::before { content: ""; display: none !important; }
    
    .responsive-hours td:nth-child(2)::before { content: "27 paź - 31 sty:"; }
    .responsive-hours td:nth-child(3)::before { content: "1 lut - 31 mar:"; }
    .responsive-hours td:nth-child(4)::before { content: "kwi - paź:"; }
}

/* --- Poradniki (Rozwijane akordeony) --- */
.guide-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-box summary {
    padding: 20px 25px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    outline: none;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.guide-box summary::-webkit-details-marker {
    display: none;
}

.guide-box summary::after {
    content: "▼";
    color: var(--primary);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.guide-box[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.guide-box[open] summary::after {
    transform: rotate(180deg);
}

.guide-content {
    padding: 25px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

.guide-content p {
    margin-bottom: 15px;
    text-align: left;
    max-width: 100%;
}

.guide-content p:last-child {
    margin-bottom: 0;
}

.guide-content strong, 
.guide-content b {
    font-weight: 700;
    color: var(--text-main);
}

.guide-content ul, 
.guide-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
    text-align: left;
}

.guide-content li {
    margin-bottom: 8px;
}

.guide-content h1, 
.guide-content h2, 
.guide-content h3, 
.guide-content h4 {
    color: var(--text-main);
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: left;
    text-transform: none;
}

/* OSTATECZNE Poprawki dla urządzeń o małej wysokości ekranu (np. telefony w orientacji poziomej) */
@media (max-height: 600px) and (orientation: landscape) {
    .navbar {
        position: relative !important; /* Całkowite odczepienie nawigacji. Przestaje zasłaniać obszar pod spodem. */
    }
    .logo-container .logo {
        max-width: 140px !important;
    }
    .hero {
        display: flex !important; /* Przywracamy Flexbox, bo przy position: relative menu nie kradnie już miejsca */
        padding-top: 30px; /* Minimalny padding od góry, tekst startuje zaraz pod menu */
        padding-bottom: 30px;
        height: auto;
        min-height: 100vh;
        background-position: center 25%; /* Perfekcyjne celowanie w narciarza */
    }
    .hero-content {
        margin: 0 auto;
        margin-top: 0 !important;
    }
    .hero-content .title {
        word-spacing: normal;
        font-size: 36px;
        margin-bottom: 15px;
        text-shadow:
            -1px -1px 0 #00d4ff, 1px -1px 0 #00d4ff, -1px 1px 0 #00d4ff, 1px 1px 0 #00d4ff,
            0 2px 0 #00c5f7, 0 3px 0 #00b5ef, 0 4px 0 #00a5e7, 0 5px 0 #0096df, 0 6px 0 #0086d7,
            0 7px 0 #0073e6, 0 10px 15px rgba(0, 0, 0, 0.4);
    }
    .hero-content .subtitle {
        font-size: 18px;
        margin-bottom: 15px;
        letter-spacing: 2px;
        text-shadow:
            -1px -1px 0 #00d4ff, 1px -1px 0 #00d4ff, -1px 1px 0 #00d4ff, 1px 1px 0 #00d4ff,
            0 2px 0 #00c5f7, 0 3px 0 #00b5ef, 0 4px 0 #00a5e7,
            0 6px 10px rgba(0, 0, 0, 0.4);
    }
    .hero-content .desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
}