:root {
    --brand: #1764e8;
    --brand-dark: #0f3f9e;
    --brand-soft: #eef5ff;
    --ink: #102033;
    --muted: #667085;
    --line: #dce6f2;
    --soft: #f6f9fc;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(16, 32, 51, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(220, 230, 242, .9);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    min-width: 188px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--ink);
}

.brand-logo { max-height: 44px; width: auto; object-fit: contain; }

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #35a4ff);
    border-radius: 8px;
}

.brand-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1;
    min-width: 0;
}

.nav-item { position: relative; }

.main-nav a,
.nav-more-btn {
    display: inline-flex;
    align-items: center;
    min-height: 76px;
    color: #304154;
    font-size: 15px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.main-nav a:hover,
.main-nav a.active,
.nav-more:hover .nav-more-btn { color: var(--brand); }

.nav-dropdown,
.nav-more-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.nav-dropdown:empty { display: none !important; }

.nav-more-menu { left: auto; right: 0; }

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu { display: grid; }

.nav-dropdown a,
.nav-more-menu a {
    min-height: auto;
    padding: 9px 10px;
    border-radius: 6px;
}

.nav-dropdown a:hover,
.nav-more-menu a:hover { background: var(--brand-soft); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
}

.lang-switch a.active {
    color: #fff;
    background: var(--brand);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: .18s ease;
}

.btn-primary {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
    color: var(--brand);
    background: #fff;
    border-color: rgba(23, 100, 232, .35);
}

.btn-light {
    color: var(--brand);
    background: #fff;
    border-color: #fff;
}

.mobile-nav {
    display: none;
    padding: 10px 0 16px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(220, 230, 242, .72);
}

.site-footer {
    color: #d7e1ef;
    background: #0e2038;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(160px, .7fr) minmax(240px, 1fr);
    gap: 42px;
    padding: 54px 0 38px;
}

.footer-main h3,
.footer-main h4 {
    margin: 0 0 14px;
    color: #fff;
}

.footer-main p {
    max-width: 520px;
    margin: 0;
    color: #b9c7d8;
}

.footer-main ul {
    list-style: none;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: grid;
    gap: 2px;
}

.footer-contact span { color: #8fa5bf; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #9db0c5;
    font-size: 13px;
}

.footer-bottom-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.section {
    padding: 78px 0;
}

.section-soft {
    background: var(--soft);
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
}

.section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.text-link {
    color: var(--brand);
    font-weight: 800;
}

.prose {
    color: #33465b;
    font-size: 17px;
}

.prose p:first-child { margin-top: 0; }

@media (max-width: 960px) {
    .main-nav,
    .header-actions { display: none; }
    .mobile-nav { display: block; }
    .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 24px, 1180px); }
    .header-inner { min-height: 66px; }
    .section { padding: 54px 0; }
    .footer-bottom-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
}
