.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;
}

.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;
}

.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 p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-align: center;
}

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

@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;
    }

    .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;
    }
}

@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;
    }
}
