:root {
    --bg: #ffffff;
    --bg-subtle: #f5f6f8;
    --line: #e5e7eb;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #1c2b4a;
    --brand-strong: #12203b;
    --link: #0f3d91;
    --container: 1200px;
    --radius: 18px;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Yu Gothic UI", "Hiragino Sans", "Microsoft YaHei UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

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

a:hover {
    color: var(--link);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container,
.hero,
.section {
    width: min(var(--container), calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.narrow {
    max-width: 820px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #273b68);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-text span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.96rem;
    color: #374151;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .16s ease, border-color .16s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--brand-strong);
    border-color: var(--brand-strong);
}

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

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    background: #fff;
    min-width: 248px;
    height: 42px;
}

.search-form button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.search-form input {
    border: 0;
    outline: 0;
    flex: 1 1 auto;
    min-width: 0;
    font: inherit;
    background: transparent;
    color: var(--text);
}

.locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.locale-switch select {
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 0 30px 0 10px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 40px;
    align-items: center;
    padding: 56px 0 48px;
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: var(--brand-strong);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.8vw, 4.1rem);
    max-width: 12ch;
}

.hero-copy p,
.lead {
    color: #475569;
}

.hero-copy p {
    margin: 22px 0 0;
    font-size: 1.08rem;
    max-width: 46rem;
}

.hero-actions,
.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-visual {
    min-width: 0;
}

.hero-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f9fafb, #eef2f7);
    box-shadow: var(--shadow-soft);
}

.hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: 72%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.hero-caption strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--brand-strong);
}

.hero-caption span {
    font-size: 0.92rem;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(28, 43, 74, 0.18);
}

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

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

.section,
.page-hero {
    padding: 30px 0 52px;
}

.page-hero {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero .lead {
    margin: 14px 0 0;
    max-width: 52rem;
    font-size: 1.06rem;
}

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

.section-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 1.2;
    color: var(--brand-strong);
}

.section-link,
.text-link {
    color: var(--link);
    font-weight: 600;
}

.card-grid,
.cards-grid,
.business-grid,
.sitemap-grid {
    display: grid;
    gap: 22px;
}

.card-grid,
.cards-grid,
.business-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.portfolio-card,
.business-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.card h2,
.card h3,
.portfolio-card h3,
.business-card h3 {
    margin: 0 0 10px;
    line-height: 1.3;
    color: var(--brand-strong);
}

.card p,
.portfolio-card p,
.business-card p {
    margin: 0;
    color: #475569;
}

.portfolio-card {
    min-height: 100%;
}

.badge,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eef2ff;
    color: var(--brand);
    margin-bottom: 12px;
}

.muted {
    color: var(--muted);
}

.company-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}

.company-lead {
    color: #475569;
    font-size: 1.04rem;
}

.profile-table {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.profile-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
}

.profile-row:first-child {
    border-top: 0;
}

.profile-label {
    font-weight: 700;
    color: #475569;
}

.profile-value {
    color: var(--text);
}

.richtext,
.prose {
    color: #334155;
}

.richtext > *:first-child,
.prose > *:first-child {
    margin-top: 0;
}

.richtext > *:last-child,
.prose > *:last-child {
    margin-bottom: 0;
}

.richtext h2,
.prose h2,
.richtext h3,
.prose h3 {
    color: var(--brand-strong);
}

.news-list,
.stack {
    display: grid;
    gap: 18px;
}

.news-item,
.search-hit {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.news-item:last-child,
.search-hit:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.news-item h2,
.search-hit h3 {
    margin: 10px 0 8px;
    color: var(--brand-strong);
}

.news-meta,
.job-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: #475569;
    font-size: 0.92rem;
}

.filter-chip.active,
.filter-chip:hover {
    border-color: #c5d2ea;
    background: #eff4ff;
    color: var(--brand);
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: #475569;
}

.form-row input,
.form-row textarea,
.search-form-large input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.form-row textarea {
    resize: vertical;
}

.search-form-large {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.search-form-large input {
    flex: 1 1 auto;
}

.alert {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.alert.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: #fafbfc;
}

.site-footer .container {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-top: 24px;
    padding-bottom: 18px;
}

.footer-title {
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--brand-strong);
}

.footer-bottom {
    padding-top: 0;
    padding-bottom: 28px;
    font-size: 0.85rem;
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1180px) {
    .site-header .container {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 14px 0;
    }

    .site-nav {
        gap: 18px;
    }

    .header-tools {
        width: 100%;
        justify-content: space-between;
    }

    .hero,
    .company-layout {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .cards-grid,
    .business-grid,
    .two-col,
    .sitemap-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    body {
        font-size: 15px;
    }

    .container,
    .hero,
    .section {
        width: min(var(--container), calc(100% - 28px));
    }

    .brand-text span {
        white-space: normal;
    }

    .site-nav {
        gap: 14px 16px;
    }

    .header-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        min-width: 0;
        width: 100%;
    }

    .locale-switch {
        align-self: flex-end;
    }

    .hero {
        gap: 26px;
        padding-top: 36px;
    }

    .hero-caption {
        position: static;
        max-width: none;
        border-radius: 0 0 20px 20px;
        background: #fff;
        box-shadow: none;
        border-top: 1px solid var(--line);
    }

    .card-grid,
    .cards-grid,
    .business-grid,
    .two-col,
    .sitemap-grid,
    .footer-grid,
    .profile-row {
        grid-template-columns: 1fr;
    }

    .profile-row {
        gap: 6px;
    }

    .search-form-large {
        flex-direction: column;
    }
}
