/* RESET & BASE */
.container {
    padding: 100px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
}
 
.page-header {
    text-align: center;
    margin-bottom: 50px;
}
 
.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Responzivní nadpis */
    font-weight: 900;
    margin-bottom: 20px;
}
 
/* Sjednocení navigace pro Služby */
.top-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 40px;
}
 
.nav-link {
    color: var(--nav-inactive);
    text-decoration: none;
    font-family: "Funnel Sans", sans-serif;
    font-size: 1.5vmin;
    letter-spacing: 2px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    /* Tato animace vytvoří ten plynulý přechod */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}
 
/* Efekt podtržení při najetí a aktivním stavu */
.nav-link:hover, .nav-link.active {
    color: var(--nav-active);
    border-bottom: 2px solid var(--nav-active);
}
 
:root {
    --nav-inactive: rgba(87, 87, 87, 0.6);
    --nav-active: rgb(0, 0, 0);
    --transition-speed: 0.6s;
}
 
body.dark-mode {
    --nav-inactive: rgba(200, 200, 200, 0.6);
    --nav-active: rgb(255, 255, 255);
}
 
/* FILTRY - Scrollovací na mobilu */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto; /* Na malém mobilu se dá v filtrech swipovat */
    padding: 10px 0;
    scrollbar-width: none;
}
 
.filter-bar::-webkit-scrollbar { display: none; }
 
/* GRID SYSTÉM - TADY JE TA MAGIE */
/* Kontejner pro karty */
.services-grid {
    display: grid;
    /* Na mobilu 1 sloupec, na tabletu 2, na PC 3 */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
 
/* Karta služby */
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #fff); /* Pokud máš proměnné */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
 
/* Obrázek v kartě - moderní "full-bleed" styl */
.s-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
 
.s-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Důležité: ořízne obrázek tak, aby vyplnil prostor */
    transition: transform 0.5s ease;
}
 
.service-card:hover .s-img img {
    transform: scale(1.1);
}
 
/* Responzivita pro nadpis stránky */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    .filter-bar {
        gap: 10px;
        flex-wrap: wrap; /* Tlačítka se na mobilu dají pod sebe, pokud se nevejdou */
        justify-content: center;
    }
}
 
 
.s-img {
    height: 250px; /* Trochu jsme ho zvětšili */
    padding: 0;    /* Odstraníme padding, aby šel obrázek do krajů */
    overflow: hidden;
    position: relative;
}
 
.s-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* DŮLEŽITÉ: Obrázek vyplní celý prostor bez deformace */
    transition: transform 0.5s ease; /* Příprava pro efekt při najetí */
}
 
 
.s-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
 
.s-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 900;
    opacity: 0.5;
    letter-spacing: 1px;
}
 
.s-content h3 {
    margin: 10px 0;
    font-size: 1.4rem;
}
 
.s-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 20px;
}
 
.s-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
 
.s-price {
    font-weight: 700;
    font-size: 1rem;
}
 
.s-link {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}
 
/* Kontejner pro switch - fixní vlevo dole */
.theme-switch-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(128, 128, 128, 0.1);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}
 
/* Základní rozměr switche */
.theme-switch {
    display: inline-block;
    height: 20px;
    position: relative;
    width: 44px;
}
 
.theme-switch input { display: none; }
 
/* Vzhled slideru (vnitřek) */
.slider {
    background-color: #ccc; /* Barva v Light Mode */
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}
 
/* Kolečko uvnitř slideru */
.slider:before {
    background-color: white;
    bottom: 3px;
    content: "";
    height: 14px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 14px;
    border-radius: 50%;
}
 
/* ZMĚNA PŘI DARK MODU (Když je checkbox zaškrtnutý) */
input:checked + .slider {
    background-color: #444; /* Tmavší pozadí slideru */
}
 
input:checked + .slider:before {
    transform: translateX(22px); /* Kolečko odjede doprava */
}
 
/* MOBILNÍ ÚPRAVY */
@media (max-width: 600px) {
    .container {
        padding: 80px 20px 30px;
    }
   
    .filter-bar {
        justify-content: flex-start;
    }
   
    .service-card {
        border-radius: 20px;
    }
}