.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    padding: 0 40px;
    background-color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    backdrop-filter: saturate(180%) blur(20px);
}

.container {
    max-width: 1344px;
    margin: 0 auto;
    padding: 0 16px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.navbar-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: clamp(132px, 18vw, 188px);
    height: 46px;
    overflow: hidden;
}

.navbar-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 42px;
    border: 2px dashed #9fb7c7;
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.72);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-links a {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    line-height: 1;
    white-space: nowrap;
}

.navbar-links a:hover,
.navbar-dropdown-toggle:hover {
    color: var(--primary);
}

.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
}

.navbar-dropdown-toggle span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.navbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    display: grid;
    min-width: 240px;
    padding: 10px;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.navbar-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 16px;
}

.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown:focus-within .navbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.navbar-dropdown-menu a {
    padding: 9px 10px;
    border-radius: 7px;
}

.navbar-dropdown-menu a:hover {
    background: #f3f8fb;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 3px 8px;
    border: 1px solid rgba(0, 106, 167, 0.18);
    border-radius: 999px;
    background: rgba(246, 252, 255, 0.74);
}

.language-switcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.language-switcher button.active {
    background: var(--primary);
    color: #fff;
}

.language-switcher span {
    width: 1px;
    height: 14px;
    background: rgba(0, 106, 167, 0.18);
}

.btn-outline-sm {
    position: relative;
    padding: 6px 16px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    background: transparent;
    color: var(--primary) !important;
    box-shadow: 0 0 0 rgba(0, 106, 167, 0);
    transform: perspective(600px) translateZ(0) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-outline-sm:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow:
        0 10px 0 #084b80,
        0 18px 28px rgba(0, 48, 78, 0.24);
    transform: perspective(600px) translateY(-5px) translateZ(22px) rotateX(10deg);
}

.btn-outline-sm:active {
    box-shadow:
        0 4px 0 #084b80,
        0 10px 18px rgba(0, 48, 78, 0.18);
    transform: perspective(600px) translateY(0) translateZ(8px) rotateX(4deg);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.public-main {
    padding-top: 64px;
    min-height: calc(100vh - 64px);
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: #f8f9fb;
}

.section-title {
    color: #1a1a2e;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    max-width: 760px;
    margin: 0 auto 56px;
    color: var(--text-light);
    font-size: 17px;
    text-align: center;
}

.legal-hero {
    padding: 74px 0 48px;
    background:
        linear-gradient(135deg, rgba(0, 106, 167, 0.12), rgba(246, 252, 255, 0.94)),
        #f6fcff;
}

.legal-hero h1 {
    max-width: 760px;
    margin: 8px 0 12px;
    color: var(--primary-dark);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.04;
}

.legal-hero p {
    max-width: 720px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.68;
}

.legal-section {
    padding: 64px 0 96px;
    background: #fff;
}

.legal-card {
    max-width: 860px;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 56px rgba(0, 48, 78, 0.08);
}

.legal-card h2 {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 22px;
}

.legal-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.legal-card a {
    color: var(--primary);
    font-weight: 700;
}

.legal-card hr {
    height: 1px;
    margin: 28px 0;
    border: 0;
    background: #e8ecf1;
}

.service-hero {
    padding: 88px 0 64px;
    background:
        radial-gradient(circle at 80% 14%, rgba(246, 252, 255, 0.92) 0, rgba(246, 252, 255, 0.26) 32%, rgba(246, 252, 255, 0) 52%),
        linear-gradient(118deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.service-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 40px;
    align-items: center;
}

.service-hero-copy h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.08;
}

.service-hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.68;
}

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.service-actions .btn {
    box-shadow: 0 16px 30px rgba(0, 48, 78, 0.2);
}

.service-signal-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.service-signal-panel article {
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 36px rgba(0, 48, 78, 0.16);
    backdrop-filter: blur(14px);
}

.service-signal-panel span,
.service-feature-grid span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.service-signal-panel h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 20px;
}

.service-signal-panel p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.service-story-grid,
.service-feature-grid {
    display: grid;
    gap: 24px;
}

.service-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-story-card,
.service-feature-grid article {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 48, 78, 0.06);
}

.service-story-card {
    padding: 34px;
}

.service-story-card h2 {
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 26px;
}

.service-story-card p,
.service-feature-grid p {
    color: var(--text-light);
    line-height: 1.75;
}

.service-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 44px;
}

.service-feature-grid article {
    min-height: 190px;
    padding: 26px;
}

.service-feature-grid span {
    color: var(--primary);
}

.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col {
    min-width: 0;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(132px, 18vw, 188px);
    max-width: 100%;
    height: 48px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.footer-logo {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.footer-about p {
    max-width: 320px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-about .footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: inherit;
}

.footer-bottom {
    border-top: 1px solid var(--secondary);
    padding-top: 24px;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-align: left;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 600;
}

.footer-legal-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.footer-social svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(620px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(0, 106, 167, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(0, 48, 78, 0.18);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-text strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 16px;
}

.cookie-consent-text p {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.55;
}

.cookie-consent-text a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-btn-muted {
    border: 1px solid rgba(0, 106, 167, 0.2);
    background: #fff;
    color: var(--primary);
}

.cookie-btn-primary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .service-hero-inner,
    .service-story-grid,
    .service-feature-grid {
        grid-template-columns: 1fr;
    }

    .service-signal-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar-logo-wrap {
        width: clamp(118px, 42vw, 164px);
        height: 42px;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 20px 20px;
        background: var(--primary);
        border-bottom: 1px solid var(--secondary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links a {
        color: #fff;
        padding: 10px 0;
    }

    .navbar-dropdown {
        width: 100%;
    }

    .navbar-dropdown-toggle {
        width: 100%;
        height: auto;
        justify-content: space-between;
        color: #fff;
        padding: 10px 0;
    }

    .navbar-dropdown-toggle:hover,
    .navbar-dropdown-toggle[aria-expanded="true"] {
        color: #fff;
    }

    .navbar-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 4px 0 10px;
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .navbar-dropdown:hover .navbar-dropdown-menu,
    .navbar-dropdown:focus-within .navbar-dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .navbar-dropdown.open .navbar-dropdown-menu {
        display: grid;
        opacity: 1;
        visibility: visible;
    }

    .navbar-dropdown.open .navbar-dropdown-toggle span {
        transform: translateY(2px) rotate(225deg);
    }

    .navbar-dropdown-menu a {
        width: 100%;
        color: rgba(255, 255, 255, 0.86);
        padding: 10px 8px;
        border-radius: 7px;
        transform: none;
    }

    .navbar-dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .language-switcher {
        width: fit-content;
        margin: 10px 0;
        border-color: rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.12);
    }

    .language-switcher button {
        color: rgba(255, 255, 255, 0.8);
    }

    .language-switcher button.active {
        background: #fff;
        color: var(--primary);
    }

    .language-switcher span {
        background: rgba(255, 255, 255, 0.26);
    }

    .navbar-links .btn-outline-sm {
        margin-top: 8px;
        border-color: #fff;
        color: #fff !important;
    }

    .navbar-toggle {
        display: flex;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-logo-link {
        width: 176px;
        height: 54px;
        padding: 8px 12px;
    }

    .footer-bottom-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-legal-links {
        justify-content: flex-start;
    }

    .cookie-consent {
        right: 16px;
        bottom: 16px;
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        justify-content: flex-start;
    }

    .service-hero {
        padding: 68px 0 50px;
    }

    .service-signal-panel {
        grid-template-columns: 1fr;
    }

    .service-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-outline-sm {
        transition: background 0.2s ease, color 0.2s ease;
    }

    .btn-outline-sm:hover,
    .btn-outline-sm:active {
        transform: none;
    }
}
