:root {
    --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-color: #333;
    --main-color: #0b63c7;
    --secondary-color: #0b84dc;
    --navy: #082a5a;
    --shadow: 0 18px 55px rgba(8, 42, 90, 0.12);
    --soft: 0 10px 30px rgba(11, 99, 199, 0.10);
    --z-header: 1030;
    --z-overlay: 1040;
    --z-drawer: 1050;
    --z-header-active: 1060;
    --mobile-header-height: 64px;
    --desktop-header-height: 92px;
    --anchor-scroll-offset: calc(var(--desktop-header-height) + 16px);
}

html, body {
    font-size: 16px !important;
    color: var(--font-color) !important;
    background-color: #fff !important;
    font-family: var(--font-body) !important;
    line-height: 1.68;
}

html {
    scroll-padding-top: var(--anchor-scroll-offset);
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: auto;
    }
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.container-fluid {
    max-width: 1440px;
    margin-inline: auto;
}

/* ===== Topbar ===== */
.topbar {
    display: none;
    height: 38px;
    background: linear-gradient(90deg, #073a7d, #0b75cf);
    color: #eaf7ff;
    font-size: 13px;
}

.topbar__inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar span {
    opacity: 0.92;
}

.topbar__links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
    margin-left: 16px;
}

/* ===== Header ===== */
.main-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(217, 232, 248, 0.82);
    box-shadow: 0 8px 24px rgba(3, 37, 82, 0.05);
}

body.mobile-nav-open .main-header {
    z-index: var(--z-header);
}

.nav-wrap {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand__logo {
    display: block;
    width: 240px;
    height: auto;
    max-height: 52px;
    aspect-ratio: 560 / 120;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 92px;
    padding: 0 11px;
    color: #17345d;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-link::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-top: -4px;
    opacity: 0.55;
}

.nav-item.no-menu .nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link--active {
    color: var(--main-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--main-color), #11a6d8);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(11, 99, 199, 0.24);
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.2s;
}

.nav-cta:hover {
    color: #fff;
    transform: translateY(-1px);
}

.header__lang {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    line-height: 1;
}

.header__lang-item {
    color: #6e7d91;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.header__lang-item:hover,
.header__lang-item--active {
    color: var(--main-color);
}

.header__lang-divider {
    color: #c5d3e3;
    font-size: 12px;
    user-select: none;
}

.nav-submenu {
    position: absolute;
    left: 0;
    top: calc(100% - 4px);
    min-width: 220px;
    width: max-content;
    max-width: 320px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border: 1px solid #e2edf9;
    background: #fff;
    box-shadow: 0 12px 32px rgba(8, 42, 90, 0.12);
    border-radius: 14px;
    z-index: 40;
}

.nav-item:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu__link {
    display: block;
    padding: 11px 18px;
    color: #17345d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-submenu__link:hover,
.nav-submenu__link--active {
    background: #f4f9ff;
    color: var(--main-color);
}

/* ===== Desktop / Mobile Header ===== */
.header-mobile-bar {
    display: none;
}

/* ===== Mobile Header Bar ===== */
.mobile-bar {
    height: var(--mobile-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    color: #17345d;
}

.mobile-menu-btn--open {
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn__bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.mobile-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.mobile-brand__logo {
    display: block;
    width: 168px;
    height: auto;
    max-height: 36px;
    aspect-ratio: 560 / 120;
    object-fit: contain;
    object-position: left center;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 31, 66, 0.45);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 320px);
    background: #fff;
    z-index: var(--z-drawer);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
}

.mobile-nav-panel__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--mobile-header-height);
    padding: 0 12px 0 20px;
    background: #fff;
    border-bottom: 1px solid #edf3f9;
    flex-shrink: 0;
}

.mobile-nav-panel__title {
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0b376f;
    text-decoration: none;
    line-height: 1.3;
}

.mobile-nav-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17345d;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-nav-open .mobile-nav-panel {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 12px 0 40px rgba(7, 31, 66, 0.16);
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
}

.mobile-nav-link {
    display: block;
    padding: 13px 20px;
    color: #17345d;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.mobile-nav-link--top {
    border-bottom: 1px solid #edf3f9;
}

.mobile-nav-link:hover,
.mobile-nav-link--active {
    color: var(--main-color);
    background: #f5faff;
}

.mobile-nav-group {
    border-bottom: 1px solid #edf3f9;
    padding-bottom: 4px;
}

.mobile-nav-group__title {
    padding: 14px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6e7d91;
    text-transform: uppercase;
}

.mobile-nav-group .mobile-nav-link {
    padding: 10px 20px 10px 28px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 0;
}

.mobile-nav-footer {
    margin-top: auto;
    padding: 18px 20px 24px;
    border-top: 1px solid #edf3f9;
    background: #f8fcff;
}

.mobile-nav-cta {
    display: block;
    margin-bottom: 14px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--main-color), #11a6d8);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(11, 99, 199, 0.2);
}

.mobile-nav-cta:hover {
    color: #fff;
}

.mobile-nav-footer .header__lang {
    justify-content: center;
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    :root {
        --anchor-scroll-offset: calc(var(--mobile-header-height) + 16px);
    }

    .main-header {
        height: var(--mobile-header-height);
    }

    .header-desktop {
        position: absolute;
        inset: 0;
        visibility: hidden;
        pointer-events: none;
        overflow: hidden;
    }

    .header-mobile-bar {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 2;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(217, 232, 248, 0.82);
    }
}

@media (max-width: 640px) {
    .mobile-brand__logo {
        width: 148px;
        max-height: 32px;
    }
}

/* ===== Footer ===== */
.main-footer {
    background: #071f42;
    color: #d8eaff;
    padding: 54px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr 1.1fr;
    gap: 30px;
}

.main-footer h4 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.main-footer a,
.main-footer p {
    display: block;
    color: #b5c8dd;
    margin: 8px 0;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.6;
}

.main-footer a:hover {
    color: #fff;
}

.footer-brand-col {
    max-width: 320px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-brand__logo {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand__text h4 {
    margin: 0 0 8px;
}

.footer-brand__text p {
    margin: 0;
    color: #b5c8dd;
    font-size: 14px;
    line-height: 1.65;
}

.footer-slogan {
    margin: 0;
    color: #97adca;
    font-size: 13px;
    line-height: 1.75;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 36px;
    padding-top: 18px;
    color: #97adca;
    font-size: 13px;
    line-height: 1.8;
}

.copyright a {
    display: inline;
    color: #97adca;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .main-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand-col {
        max-width: none;
    }

    .footer-brand__logo {
        width: 48px;
        height: 48px;
    }

    .copyright {
        font-size: 12px;
    }
}

/* ===== Inner pages (shared) ===== */
.page-hero {
    background: linear-gradient(180deg, #f2f9ff, #fff);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    top: -140px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 203, 219, 0.22), transparent 65%);
    pointer-events: none;
}

.page-hero .container-fluid {
    position: relative;
    z-index: 1;
    padding-top: 48px;
    padding-bottom: 32px;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #6e7d91;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.breadcrumb > span:not(.breadcrumb__sep) {
    color: #6e7d91;
    font-weight: 400;
}

.breadcrumb__sep {
    margin: 0 8px;
    color: #b8c4d1;
}

.page-hero h1 {
    font-size: 36px;
    line-height: 1.28;
    margin: 0 0 16px;
    color: var(--navy);
    letter-spacing: -0.025em;
    font-weight: 700;
}

.page-hero p {
    max-width: 740px;
    color: #5a6d84;
    font-size: 17px;
    line-height: 1.85;
    margin: 0;
}

.page-block,
.section {
    padding: 36px 0;
}

.page-block--alt,
.section.alt {
    background: linear-gradient(180deg, #f8fcff, #fff);
}

.page-head.centered,
.section-head.centered {
    display: block;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 28px;
}

.page-head.centered.compact-title,
.section-head.centered.compact-title {
    margin-bottom: 24px;
}

.page-head.centered p,
.section-head.centered p {
    margin: 10px auto 0;
    max-width: 720px;
    color: #65798d;
    line-height: 1.85;
}

.compact-title h2 {
    font-size: 30px;
    color: #0b376f;
    margin: 0 0 8px;
    font-weight: 700;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.page-card {
    display: block;
    background: #fff;
    border: 1px solid #dceaf7;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 12px 34px rgba(8, 42, 90, 0.055);
    transition: 0.2s;
    color: inherit;
    text-decoration: none;
}

.page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(8, 42, 90, 0.12);
    color: inherit;
}

.page-card em {
    font-style: normal;
    color: #0b63c7;
    font-weight: 900;
    font-size: 14px;
}

.page-card h3 {
    margin: 12px 0 10px;
    color: #0b376f;
    font-size: 22px;
    font-weight: 700;
}

.page-card p {
    color: #5f7188;
    line-height: 1.85;
    margin: 0;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.content-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid #ddecfb;
    box-shadow: 0 10px 34px rgba(8, 42, 90, 0.06);
    padding: 28px 32px;
}

.split .content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.content-card h2 {
    font-size: 24px;
    margin: 0 0 16px;
    color: #0b376f;
    font-weight: 700;
    line-height: 1.35;
}

.content-card h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #0b376f;
    font-weight: 700;
}

.content-card p,
.content-card li {
    color: #53697f;
    line-height: 1.78;
}

.content-card p {
    margin: 0;
}

.content-card p + p {
    margin-top: 12px;
}

.content-card ul {
    padding-left: 20px;
    margin: 0;
    flex: 1;
}

.content-card li + li {
    margin-top: 6px;
}

.content-card ul.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: none;
}

.content-card ul.download-list li {
    margin: 0;
    border-bottom: 1px solid #e6eef8;
}

.content-card ul.download-list li + li {
    margin-top: 0;
}

.content-card ul.download-list li:last-child {
    border-bottom: none;
}

.content-card ul.download-list a {
    display: block;
    padding: 14px 4px;
    color: #0b63c7;
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.content-card ul.download-list a:hover {
    color: #084a96;
    text-decoration: underline;
}

.notice-box {
    border-left: 4px solid #0b63c7;
    background: #f4f9ff;
    border-radius: 16px;
    padding: 18px 22px;
    color: #43586f;
    line-height: 1.78;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: #20334a;
    font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    border: 1px solid #cfe1f3;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.form-grid textarea {
    grid-column: 1 / -1;
    min-height: 130px;
}

.form-actions {
    margin-top: 18px;
}

.split .content-card .form-actions {
    margin-top: auto;
    padding-top: 20px;
}

.split .content-card:has(.form-actions) > p {
    flex: 1;
}

.button,
.form-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #0b63c7;
    color: #fff;
    padding: 12px 22px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.button:hover,
.form-actions button:hover {
    background: #0956ad;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(4, 50, 111, 0.13);
}

.button.secondary {
    background: #eef7ff;
    color: #0b63c7;
}

.button.secondary:hover {
    background: #dbeefe;
    color: #0956ad;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(4, 50, 111, 0.1);
}

.button + .button {
    margin-left: 10px;
}

.tag-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.tag-row span {
    border: 1px solid #d6e9fa;
    background: #f4f9ff;
    border-radius: 999px;
    padding: 6px 12px;
    color: #0b63c7;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .page-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .page-hero .container-fluid {
        padding-top: 36px;
        padding-bottom: 28px;
    }

    .page-block,
    .section {
        padding: 28px 0;
    }
}

/* ===== Empty list ===== */
.empty-list {
    padding: 56px 24px;
    border: 1px dashed #d8e8f8;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
    text-align: center;
}

.empty-list__inner {
    max-width: 420px;
    margin: 0 auto;
}

.empty-list__icon {
    display: block;
    font-size: 48px;
    line-height: 1;
    color: #9eb5cc;
    margin-bottom: 16px;
}

.empty-list__text {
    margin: 0;
    color: #60758b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}