:root {
    --orange-primary: #003366;
    --orange-light: #004488;
    --orange-accent: #F59C00;
    --white: #FFFFFF;
    --grey-light: #F9F9F9;
    --grey-dark: #333333;
    --dark-bg: #1a1a1a;
    --transition: all 0.3s ease;
    --box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    --hover-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--grey-dark);
    line-height: 1.6;
    background: var(--white);
}

/* Hero sekce */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: floatCircle 30s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: 5%;
    right: 15%;
    animation: floatCircle 28s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Systems Overview */
.systems-overview {
    padding: 80px 0;
    background: var(--white);
}

.systems-overview h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--grey-dark);
    position: relative;
}

.systems-overview h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--orange-accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.system-card {
    background: var(--grey-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.system-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--orange-accent);
    box-shadow: var(--hover-shadow);
}

.system-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange-primary);
    margin-bottom: 15px;
}

.system-card p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.system-card .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    align-self: center;
}

.system-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .systems-overview {
        padding: 60px 0;
    }

    .systems-overview h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .systems-grid {
        gap: 20px;
    }

    .system-card {
        padding: 30px 20px;
    }

    .system-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .systems-overview h2 {
        font-size: 1.5rem;
    }

    .system-card h3 {
        font-size: 1.3rem;
    }

    .system-card {
        padding: 25px 15px;
    }
}

/* Page-specific hero override to prevent global split layout */
body.page-bezramovy-system .hero {
    margin-top: 118px;
    min-height: clamp(420px, 62vh, 640px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(72px, 8vw, 110px) 20px;
    background:
        radial-gradient(900px 420px at 20% 15%, rgba(245, 156, 0, 0.18), transparent 62%),
        radial-gradient(850px 380px at 80% 80%, rgba(255, 255, 255, 0.1), transparent 64%),
        linear-gradient(135deg, #002f63 0%, #004c94 100%);
}

body.page-bezramovy-system .hero h1 {
    max-width: 980px;
    margin: 0 auto;
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    line-height: 1.14;
    letter-spacing: -0.015em;
    color: var(--white);
}

body.page-bezramovy-system .hero h1 .subtitle {
    display: block;
    margin-top: 14px;
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1024px) {
    body.page-bezramovy-system .hero {
        margin-top: 108px;
        min-height: 460px;
        padding: 70px 18px;
    }
}

@media (max-width: 768px) {
    body.page-bezramovy-system .hero {
        margin-top: 96px;
        min-height: 390px;
        padding: 58px 16px;
    }

    body.page-bezramovy-system .hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.3rem);
        line-height: 1.2;
    }
}
