:root {
    --primary-blue: #326CE5; /* Kubernetes modrá */
    --light-blue: #EBF2FA;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #add2fe;
    --white: #fff;
    --border-radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Aby navigační lišta byla nahoře a zbytek pod ní */
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 960px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.ribbon {
    width: 300px;
    background: crimson;
    color: white;
    text-align: center;
    line-height: 32px;
    font-family: sans-serif;
    font-weight: bold;
    position: fixed;
    top: 60px;
    right: -80px;
    transform: rotate(45deg);
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    padding: 10px;
}


/* Navbar */
.navbar {
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 960px; /* přidej explicitně, ať to není 100% */
    margin: 0 auto;    /* vystředění v rámci navbaru */
    padding: 0 20px;   /* pro zarovnání obsahu stejně jako jinde */
    box-sizing: border-box;
}

.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2em;
}

.navbar .logo img {
    height: 30px; /* Velikost loga */
    margin-right: 10px;
}

.navbar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Pro případ, že by se odkazy nevešly na jeden řádek na menších obrazovkách */
    justify-content: flex-end;
}

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

.navbar nav ul li a {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap; /* Zabrání zalomení odkazu */
}

.navbar nav ul li a:hover {
    color: var(--primary-blue);
}

/* Sekce */
section {
    padding: 80px 0;
}

section:nth-child(odd) { /* Změněno, aby hero section a faq nebyly stejné barvy */
    background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

section:first-of-type { /* Hero sekce */
    background: linear-gradient(180deg, var(--light-blue), var(--white));
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Odsazení od navigační lišty */
}

/* Header/Hero Section - odstraněno logo, je v navbaru */
.hero-section {
    padding: 100px 0 60px; /* Upraveno, dříve bylo header */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--light-gray);
}

.hero-section h1 {
    font-size: 3.2em;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3em;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.hero-logo {
    padding: 25px 15px;
}
/* Logo - odstraněno z hero-section, je v navbaru */
/* .kubernetes-logo {} */

/* Balíčky */
.packages-section {
    padding-top: 80px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Upraveno min-width pro lepší zobrazení dvou karet */
    gap: 30px;
    margin-top: 50px;
    justify-content: center; /* Pro centrování, pokud je méně než 3 karty */
}

.package-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.package-card h3 {
    font-size: 1.8em;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    flex-grow: 1;
}

.package-card ul li {
    margin-bottom: 10px;
    color: var(--medium-gray);
    display: flex;
    align-items: flex-start;
}

.package-card ul li::before {
    content: '✓';
    color: var(--primary-blue);
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

.package-card .select-package-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
    margin-top: auto;
}

.package-card .select-package-btn:hover {
    background-color: #2a5bb0;
}

/* FAQ */
.faq-section h2, .contact-section h2 {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-weight: 700;
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
    padding: 20px;
    margin: 5px;
    text-align: left;
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    color: var(--medium-gray);
    padding-top: 0;
    margin-top: 10px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Zvýšeno pro delší odpovědi */
    padding-top: 10px;
}

/* Kontaktní formulář */
.contact-form {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
}

.form-group {
    margin-bottom: 20px;
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.form-options > div {
    flex: 1;
    min-width: 150px;
}

/* Slider styling */
.slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
}

.slider-group input[type="range"] {
    width: 80%;
    -webkit-appearance: none; /* Remove default slider styling for Chrome/Safari */
    appearance: none;
    height: 8px;
    background: var(--light-gray);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 4px;
    margin-top: 5px;
}

.slider-group input[type="range"]:hover {
    opacity: 1;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.form-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    margin-bottom: 0;
}

.form-total-price {
    font-size: 1.2em;
    _font-weight: 700;
    color: var(--primary-blue);
    text-align: left;
    margin-top: 30px;
    margin-bottom: 30px;
}

.contact-form button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background-color: #2a5bb0;
}

.hidden {
    display: none;
}

/* Responsivní design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    .navbar nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-direction: column; /* Stack nav links vertically */
        align-items: center;
    }
    .navbar nav ul li {
        margin: 5px 0;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .packages-grid {
        grid-template-columns: 1fr;
    }
    .package-card {
        padding: 30px 20px;
    }
    .faq-section h2, .contact-section h2 {
        font-size: 2em;
    }
    .contact-form {
        padding: 25px;
    }
}
