:root {
    --brand-blue: #23225c;
    --brand-blue-dark: #1a1a45;
    --brand-blue-mid: #3a3990;
    --brand-blue-light: #3b3a7a;
    --brand-grey: #929292;

    --text-dark: #1a173d;
    --text-body: #444b59;

    --bg-page: #eef0f8;
    --bg-card: #ffffff;

    --border-light: #d9dce3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.75;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ===========================
   HEADER – HORIZONTÁLNÍ GRADIENT
============================ */
header {
    background: linear-gradient(
            to right,
            #ffffff 0%,
            #eef0f8 40%,
            #23225c 100%
    );
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--brand-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    cursor: pointer;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)) saturate(0.85);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    transition: 0.2s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

nav a:hover {
    background: var(--brand-blue-light);
}

nav a.active {
    background: var(--brand-blue);
}

/* ===========================
   VIEW SECTIONS
============================ */
.view {
    display: none;
    padding: 60px 0 80px;
}

.view.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================
   HERO
============================ */
.hero {
    text-align: center;
    padding: 80px 20px 120px;
    background: white;
    border-bottom: 4px solid var(--brand-blue-dark);
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--brand-blue-dark);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 15px;
    color: var(--text-body);
}

/* ===========================
   SERVICE CARDS
============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: -60px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--bg-card);
    padding: 35px 30px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    border-top: 6px solid var(--brand-blue-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* ===========================
   STATS BAR
============================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: white;
    color: var(--brand-blue-dark);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-light);
    margin-top: 40px;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* ===========================
   CONTENT BOXES
============================ */
.content-box {
    background: white;
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
}

h2 {
    color: var(--brand-blue-dark);
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.item-detail {
    margin-bottom: 30px;
}

.item-detail h3 {
    color: var(--brand-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-detail h3::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--brand-blue);
    border-radius: 2px;
    flex-shrink: 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
}

/* ===========================
   CONTACT
============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 45px;
}

.info-card {
    background: var(--brand-blue-dark);
    color: white;
    padding: 45px;
    border-radius: 15px;
}

.info-card a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--brand-blue-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    outline: none;
}

.btn-submit {
    background: var(--brand-blue-dark);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-submit:hover {
    background: var(--brand-blue-light);
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--brand-grey);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-light);
    background: white;
}

@media (max-width: 900px) {
    .grid-2-col,
    .contact-grid,
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding-bottom: 80px;
    }
}

/* ===========================
   COOKIE BAR
============================ */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--brand-blue-dark);
    color: white;
    padding: 20px 25px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.cookie-text {
    max-width: 70%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.cookie-btn:hover {
    background: var(--brand-blue-light);
}

.cookie-btn.primary {
    background: var(--brand-blue-mid);
    border: none;
}

.cookie-btn.primary:hover {
    background: var(--brand-blue);
}