:root {
    --sat-blue: #021373;
    --sat-blue-2: #1028a9;
    --sat-blue-soft: #dbe3ff;
    --sat-red: #f20505;
    --sat-red-soft: #ffb8b8;
    --bg: #07103d;
    --bg-2: #0b1857;
    --bg-3: #0f1f67;
    --surface: rgba(10, 20, 70, 0.72);
    --surface-strong: rgba(14, 26, 88, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f7ff;
    --muted: rgba(244, 247, 255, 0.72);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    --radius-xl: 42px;
    --radius-lg: 30px;
    --radius-md: 22px;
}

html[data-theme="light"] {
    --bg: #eef3ff;
    --bg-2: #ffffff;
    --bg-3: #dce5ff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(2, 19, 115, 0.06);
    --card: rgba(255, 255, 255, 0.82);
    --line: rgba(2, 19, 115, 0.12);
    --text: #09133e;
    --muted: rgba(9, 19, 62, 0.68);
    --shadow: 0 30px 80px rgba(2, 19, 115, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 12%, rgba(242, 5, 5, 0.18), transparent 20%),
        radial-gradient(circle at 86% 20%, rgba(16, 40, 169, 0.26), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(80, 119, 255, 0.16), transparent 36%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 42%, var(--bg-3) 100%);
    min-height: 100vh;
    transition: background 0.35s ease, color 0.35s ease;
}

h1,
h2,
h3,
h4,
.section-kicker,
.nav-link,
.hero-badge {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    position: relative;
    overflow: clip;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: fixed;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.site-shell::before {
    top: 8rem;
    left: -10rem;
    background: rgba(16, 40, 169, 0.25);
}

.site-shell::after {
    right: -12rem;
    bottom: 8rem;
    background: rgba(242, 5, 5, 0.18);
}

.navbar {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    background: rgba(5, 12, 50, 0.44);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.68);
}

.brand-logo {
    position: relative;
    width: 11.5rem;
    height: 2.6rem;
    display: block;
}

.brand-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.28s ease;
}

.brand-logo .logo-light {
    opacity: 1;
}

.brand-logo .logo-dark {
    opacity: 0;
}

html[data-theme="light"] .brand-logo .logo-light {
    opacity: 0;
}

html[data-theme="light"] .brand-logo .logo-dark {
    opacity: 1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #ffffff;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link:focus,
html[data-theme="light"] .nav-link.active {
    color: var(--sat-blue);
}

.nav-link.active {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .nav-link.active {
    border-color: rgba(2, 19, 115, 0.18);
    background: rgba(2, 19, 115, 0.08);
    box-shadow: inset 0 0 0 1px rgba(2, 19, 115, 0.06);
}

html[data-theme="light"] .navbar-nav .nav-link.active,
html[data-theme="light"] .navbar-nav .nav-link.show {
    color: var(--sat-blue);
    border-color: rgba(2, 19, 115, 0.18);
    background: rgba(2, 19, 115, 0.08);
    box-shadow: inset 0 0 0 1px rgba(2, 19, 115, 0.06);
}

.nav-pill,
.theme-toggle,
.menu-pill {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.nav-pill {
    padding: 0.85rem 1.4rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-pill:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.mobile-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.mobile-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.25rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 800;
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.mobile-contact-pill:hover,
.mobile-contact-pill:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .mobile-contact-pill:hover,
html[data-theme="light"] .mobile-contact-pill:focus-visible {
    background: rgba(2, 19, 115, 0.08);
}

.mobile-contact-pill-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7.5A1.5 1.5 0 0 1 5.5 6h13A1.5 1.5 0 0 1 20 7.5v9A1.5 1.5 0 0 1 18.5 18h-13A1.5 1.5 0 0 1 4 16.5v-9Z' stroke='%23f4f7ff' stroke-width='1.8'/%3E%3Cpath d='m5 7 7 5 7-5' stroke='%23f4f7ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="light"] .mobile-contact-pill-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7.5A1.5 1.5 0 0 1 5.5 6h13A1.5 1.5 0 0 1 20 7.5v9A1.5 1.5 0 0 1 18.5 18h-13A1.5 1.5 0 0 1 4 16.5v-9Z' stroke='%2309133e' stroke-width='1.8'/%3E%3Cpath d='m5 7 7 5 7-5' stroke='%2309133e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.language-toggle:hover,
.language-toggle:focus {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .language-toggle:hover,
html[data-theme="light"] .language-toggle:focus {
    background: rgba(2, 19, 115, 0.08);
}

.lang-flag-image {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: block;
    object-fit: cover;
}

.theme-toggle,
.menu-pill {
    width: 3.25rem;
    min-width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    padding: 0;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
    font-size: 1.3rem;
    line-height: 1;
}

.theme-toggle::before {
    content: "\263E";
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
}

html[data-theme="light"] .theme-toggle::before {
    content: "\2600";
}

.navbar-toggler {
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.4rem;
    height: 1.4rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(244,247,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: 100% 100%;
}

html[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(9,19,62,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-main,
.btn-secondary {
    padding: 1rem 1.45rem;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-main {
    background: linear-gradient(135deg, var(--sat-red), #ff4747);
    color: #fff;
    box-shadow: 0 18px 40px rgba(242, 5, 5, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: var(--line);
}

.btn-main:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.glass-card {
    position: relative;
    z-index: 1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.section-pad {
    position: relative;
    z-index: 1;
    padding: 5.75rem 0;
}

.page-realizace main {
    padding-top: 2.25rem;
}

@media (min-width: 992px) {
    .page-realizace main {
        padding-top: 4.5rem;
    }
}

.section-tone-a {
    background: transparent;
}

.section-tone-b {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .section-tone-b {
    background: rgba(2, 19, 115, 0.055);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--sat-red-soft);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

html[data-theme="light"] .section-kicker {
    color: var(--sat-red);
}

.section-title {
    max-width: 20ch;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: 0.95;
}

.section-lead {
    max-width: 45rem;
    color: var(--muted);
    font-size: 1.06rem;
}

.contact-card {
    padding: 1.6rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.contact-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--muted);
}

.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--sat-red);
    box-shadow: 0 0 14px rgba(242, 5, 5, 0.5);
}

.contact-subline {
    display: block;
    margin-top: 0.38rem;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.45;
}

.contact-form .form-control {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    box-shadow: none;
}

.contact-form .form-control:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.contact-form .form-control::placeholder {
    color: var(--muted);
}

html[data-theme="light"] .contact-form .form-control {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
}

.form-status {
    font-size: 0.95rem;
    color: var(--muted);
}

.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-disclaimer {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
}

.form-status.is-success {
    color: #b7ffd1;
}

.form-status.is-error {
    color: #ffc6c6;
}

html[data-theme="light"] .form-status.is-success {
    color: #087443;
}

html[data-theme="light"] .form-status.is-error {
    color: #a12626;
}

.footer {
    position: relative;
    z-index: 1;
    padding: 0 0 2rem;
}

.footer p,
.footer a {
    color: var(--muted);
}

.footer a:hover {
    color: var(--text);
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-wrap: nowrap;
    }

    .navbar-nav,
    .navbar-nav .nav-item {
        min-width: 0;
    }

    .navbar-nav .nav-control-item {
        flex: 0 0 auto;
        min-width: max-content;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(5, 12, 50, 0.78);
        backdrop-filter: blur(20px);
    }

    html[data-theme="light"] .navbar-collapse {
        background: rgba(255, 255, 255, 0.92);
    }

    .navbar-nav {
        gap: 0.75rem;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link,
    .navbar-nav .nav-pill {
        display: block;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-pill {
        padding-inline: 1rem;
    }

    .navbar-nav .theme-toggle {
        display: flex;
        margin: 0 auto;
    }

    .language-toggle {
        display: flex;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        width: 8.6rem;
        height: 2rem;
    }

    .mobile-contact-pill span:last-child {
        display: none;
    }

    .mobile-contact-pill {
        min-width: 3rem;
        min-height: 3rem;
        justify-content: center;
        padding-inline: 0.9rem;
    }

    .language-toggle,
    .theme-toggle,
    .menu-pill {
        width: 3rem;
        height: 3rem;
    }

    .lang-flag-image {
        width: 1.45rem;
        height: 1.45rem;
    }
}
