:root {
    --bg-dark: #0a1128;
    --bg-card: #121d3f;
    --text-primary: #f0f4f8;
    --text-secondary: #a0aec0;
    --accent-blue: #3182ce;
    --accent-cool: #63b3ed;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(rgba(10, 17, 40, 0.7), rgba(10, 17, 40, 0.7)),
        url('images/image-1_hagibor.webp') fixed center/cover no-repeat;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-container {
    margin-bottom: 3rem;
    text-align: center;
}

.page-content-wrapper {
    /* Background handled by body for seamless transition to footer */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    /* Hidden initially, managed by loader reveal */
    transition: opacity 0.8s ease 0.4s;
}

.scroll-indicator--visible {
    opacity: 1;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 6px;
    background-color: #C4884A;
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0;
    }

    51% {
        transform: translateY(-4px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Competence Grid */
.competences {
    padding: 2rem 0 8rem;
    /* Menší nahoře aby byly blíž hero, větší dole pro vyvážení proti footeru/gradientu */
    position: relative;
    z-index: 2;
    /* Keep above footer overlap */
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.competence-card {
    background-color: rgba(18, 29, 63, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    min-height: 80px;
}

.competence-card:hover {
    border-color: #C4884A;
    background-color: rgba(196, 136, 74, 0.1);
}

.competence-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom,
            rgba(12, 35, 64, 0) 0%,
            rgba(12, 35, 64, 0.8) 150px,
            #0C2340 400px,
            #0C2340 100%);
    padding: 12rem 0 3rem;
    letter-spacing: 0.5px;
    margin-top: -8rem;
    /* Overlap the previous section for smoother blend */
    position: relative;
    z-index: 1;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5rem;
}

.footer-info {
    flex: 1;
}

.footer-company {
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-contact p {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.footer-contact a {
    color: #FFFFFF;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5px;
}

.footer-contact a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #FFFFFF;
    transition: width 0.3s ease;
}

.footer-contact a:hover::after {
    width: 100%;
}

.footer-link-accent::after {
    background-color: #C4884A !important;
}

.footer-link-accent {
    color: #C4884A !important;
}

.footer-addresses {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.footer-address {}

.footer-address p {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
    line-height: 1.6;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #C4884A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 1.5px;
}

.footer-map-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #C4884A;
    transition: width 0.3s ease;
}

.footer-map-link:hover::after {
    width: 100%;
}

.map-arrow {
    display: inline-flex;
    align-items: center;
}

.footer-bottom-line {
    max-width: 1100px;
    margin: 3rem auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}

.footer-bottom-left {
    display: flex;
    gap: 2rem;
}

.footer-bottom-left a {
    color: #c8c5bf;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom-left a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #c8c5bf;
    transition: width 0.3s ease;
}

.footer-bottom-left a:hover::after {
    width: 100%;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    color: #c8c5bf;
    font-size: 12px;
}

.footer-mini-logo {
    height: 32px;
    padding-bottom: 2px;
    width: auto;
    opacity: 1;
}

@media (max-width: 900px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer-legal {
    margin-top: 2rem;
}

.footer-legal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 380px;
}

/* Footer Form */
.footer-form {
    width: 360px;
    flex-shrink: 0;
}

.entity-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.entity-option {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    text-align: center;
}

.entity-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.entity-option span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.entity-option:has(input:checked) {
    border-color: #C4884A;
    background-color: rgba(196, 136, 74, 0.1);
}

.entity-option:has(input:checked) span {
    color: #FFFFFF;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #C4884A;
}

.dropdown-container {
    position: relative;
}

.dropdown-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
}

select option {
    background-color: #0C2340;
    color: #FFFFFF;
}

select option:disabled {
    color: rgba(255, 255, 255, 0.4);
}

.form-gdpr {
    margin-bottom: 1.5rem;
}

.gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.gdpr-label input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: all 0.2s ease;
}

.gdpr-label:hover .checkmark {
    border-color: #C4884A;
}

.gdpr-label input:checked+.checkmark {
    background-color: #C4884A;
    border-color: #C4884A;
}

.gdpr-label input:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gdpr-text a {
    color: #C4884A;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.gdpr-text a:hover {
    border-color: #C4884A;
}

.btn-submit {
    width: 100%;
    padding: 0.65rem;
    background-color: #C4884A;
    color: #FFFFFF;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.btn-submit:hover {
    background-color: #a87540;
}

/* Responsive */
@media (max-width: 900px) {
    .competence-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-form {
        width: 100%;
        max-width: 360px;
    }

    .footer-addresses {
        gap: 1.5rem;
    }

    .footer-map-link {
        font-size: 12px;
    }

    .footer-map-link svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 600px) {
    body {
        background:
            radial-gradient(ellipse 80% 50% at 70% 20%, rgba(20, 60, 120, 0.35) 0%, transparent 60%),
            radial-gradient(ellipse 60% 40% at 15% 80%, rgba(12, 45, 90, 0.25) 0%, transparent 50%),
            linear-gradient(180deg,
                #030a16 0%,
                #071428 15%,
                #0a1e3d 35%,
                #0C2340 55%,
                #091c38 75%,
                #050f20 100%);
        background-attachment: scroll;
    }

    .footer {
        background: linear-gradient(to bottom,
                transparent 0%,
                rgba(5, 15, 32, 0.7) 80px,
                #0C2340 200px,
                #0C2340 100%);
    }

    .competence-grid {
        grid-template-columns: 1fr;
    }

    .competences {
        padding: 0 0 4rem;
        /* Menší gap na mobilu */
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .footer {
        padding: 8rem 0 2rem;
        margin-top: -4rem;
    }

    .footer-company {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }

    .footer-contact p {
        font-size: 13px;
    }

    .footer-address p {
        font-size: 13px;
    }

    .footer-map-link {
        font-size: 11px;
        letter-spacing: 0.02em;
    }

    .footer-legal p {
        font-size: 12px;
    }

    .footer-form {
        max-width: 100%;
    }

    .entity-option span {
        font-size: 11px;
    }

    .footer-bottom-line {
        margin: 2rem auto 0;
    }

    .footer-bottom-links {
        margin: 1rem auto 0;
        padding: 0 1.5rem 1.5rem;
    }

    .footer-bottom-left {
        gap: 0.75rem;
    }

    .footer-bottom-left a {
        font-size: 10px;
    }

    .footer-bottom-right {
        font-size: 10px;
    }

    .footer-mini-logo {
        height: 24px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 450px;
    background-color: rgba(12, 35, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    /* Hidden by default, shown by JS */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cookie-content a {
    color: #C4884A;
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-accept {
    background-color: #C4884A;
    color: #FFFFFF;
}

.btn-accept:hover {
    background-color: #a87540;
}

.btn-decline {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}