:root {
    --bg: #ffffff;
    --surface: #f7f9fc;
    --surface-strong: #eef3f8;
    --line: #dfe6ef;
    --text: #142033;
    --muted: #64748b;
    --primary: #2f6feb;
    --primary-strong: #1f55c8;
    --ink: #242553;
    --accent: #1f8a70;
    --shadow: 0 10px 30px rgba(17, 40, 72, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body {
    margin: 0;
    min-width: 320px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-strong);
}

.site-header,
.site-footer {
    align-items: center;
    display: flex;
    gap: 24px;
    margin: 0 auto;
    max-width: 1360px;
    padding: 18px 28px;
}

.site-header {
    border-bottom: 1px solid var(--line);
    min-height: 78px;
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 26px;
    font-weight: 700;
    gap: 12px;
    letter-spacing: 0;
    margin-right: auto;
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(20, 32, 51, 0.12);
    display: block;
    flex: 0 0 auto;
    height: 38px;
    width: 38px;
}

.main-nav {
    display: flex;
    gap: 26px;
}

.main-nav a,
.site-footer a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.locale-switch {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
}

.locale-switch a {
    align-items: center;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    min-width: 38px;
    padding: 0 10px;
}

.locale-switch a:hover {
    color: var(--primary-strong);
}

.locale-switch a.is-active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(47, 111, 235, 0.18);
}

.hero {
    border-bottom: 1px solid var(--line);
    padding: 76px 24px 64px;
}

.hero-check {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 43%, rgba(255, 255, 255, 0.58) 70%, rgba(255, 255, 255, 0.2) 100%),
        url("/assets/img/company-check-hero.webp") right center / cover no-repeat;
    min-height: 500px;
    padding: 86px 24px 44px;
}

.hero-inner,
.section,
.page-heading,
.breadcrumbs {
    margin: 0 auto;
    max-width: 1220px;
}

.hero-inner {
    max-width: 920px;
}

.hero-check-inner {
    max-width: 1200px;
}

.hero-copy {
    max-width: 900px;
}

.eyebrow {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    color: var(--ink);
    font-size: 56px;
    line-height: 1.08;
    margin-bottom: 28px;
}

h2 {
    font-size: 26px;
    line-height: 1.2;
}

h3 {
    font-size: 18px;
}

.hero-lead,
.page-heading p {
    color: var(--muted);
    font-size: 19px;
    margin-bottom: 28px;
}

.hero-columns {
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    max-width: 850px;
}

.strong-lead {
    color: var(--ink);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.42;
}

.stat-lead {
    font-size: 20px;
    line-height: 1.48;
}

.stat-lead strong {
    color: var(--ink);
    display: block;
    font-size: 26px;
    line-height: 1.15;
}

.hero-search-panel {
    margin-top: 70px;
    max-width: 960px;
}

.search-box {
    max-width: 960px;
    position: relative;
}

.search-control {
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(47, 111, 235, 0.16);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 70px;
    overflow: hidden;
}

.search-control input {
    border: 0;
    color: var(--text);
    font: inherit;
    font-size: 19px;
    min-width: 0;
    outline: 0;
    padding: 0 26px;
}

.search-control button {
    background: var(--primary);
    border: 0;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-width: 155px;
    padding: 0 28px;
}

.search-control button:hover {
    background: var(--primary-strong);
}

.suggestions {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    left: 0;
    margin-top: 8px;
    overflow: hidden;
    position: absolute;
    right: 0;
    z-index: 20;
}

.suggestions a {
    border-bottom: 1px solid var(--line);
    color: var(--text);
    display: block;
    padding: 14px 18px;
}

.suggestions a:last-child {
    border-bottom: 0;
}

.suggestions strong {
    display: block;
    font-size: 15px;
}

.suggestions span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.search-hints {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.search-hints span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}

.search-note {
    color: var(--muted);
    font-size: 14px;
    margin: 12px 0 0;
}

.service-strip {
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
    padding: 34px 24px;
}

.service-strip-inner {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1160px;
}

.service-item {
    align-items: center;
    color: var(--text);
    display: grid;
    font-size: 16px;
    font-weight: 650;
    gap: 12px;
    justify-items: center;
    line-height: 1.25;
    min-height: 110px;
    text-align: center;
}

.service-icon {
    border: 2px solid var(--primary);
    border-radius: 8px;
    display: block;
    height: 44px;
    position: relative;
    width: 44px;
}

.service-icon::before,
.service-icon::after {
    background: var(--primary);
    content: "";
    display: block;
    position: absolute;
}

.service-icon.risk::before {
    height: 18px;
    left: 20px;
    top: 9px;
    width: 2px;
}

.service-icon.risk::after {
    border: 2px solid var(--primary);
    border-bottom: 0;
    border-left: 0;
    height: 12px;
    left: 14px;
    top: 8px;
    transform: rotate(-45deg);
    width: 12px;
}

.service-icon.registry::before {
    height: 2px;
    left: 9px;
    top: 14px;
    width: 24px;
    box-shadow: 0 8px 0 var(--primary), 0 16px 0 var(--primary);
}

.service-icon.relations::before {
    border-radius: 50%;
    height: 8px;
    left: 8px;
    top: 8px;
    width: 8px;
    box-shadow: 20px 4px 0 var(--primary), 10px 22px 0 var(--primary);
}

.service-icon.relations::after {
    height: 2px;
    left: 14px;
    top: 21px;
    transform: rotate(28deg);
    width: 22px;
}

.service-icon.contacts::before {
    height: 18px;
    left: 12px;
    top: 12px;
    width: 20px;
}

.service-icon.contacts::after {
    background: var(--surface-strong);
    border: 2px solid var(--primary);
    border-radius: 50%;
    height: 12px;
    left: 24px;
    top: 22px;
    width: 12px;
}

.service-icon.monitoring {
    border-radius: 50%;
}

.service-icon.monitoring::before {
    height: 16px;
    left: 20px;
    top: 9px;
    width: 2px;
}

.service-icon.monitoring::after {
    height: 2px;
    left: 20px;
    top: 23px;
    transform: rotate(35deg);
    width: 12px;
}

.service-icon.matching::before {
    border-radius: 50%;
    height: 12px;
    left: 8px;
    top: 11px;
    width: 12px;
    box-shadow: 14px 8px 0 var(--primary);
}

.service-icon.matching::after {
    height: 2px;
    left: 14px;
    top: 28px;
    transform: rotate(-20deg);
    width: 18px;
}

.data-overview {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    padding-bottom: 34px;
    padding-top: 54px;
}

.data-copy {
    align-self: center;
}

.data-copy p,
.preview-copy p,
.source-copy p {
    color: var(--muted);
    font-size: 18px;
}

.data-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-metrics article,
.preview-card,
.check-sections article,
.discovery-grid article,
.source-grid article {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(17, 40, 72, 0.05);
}

.data-metrics article {
    min-height: 126px;
    padding: 22px;
}

.data-metrics strong {
    color: var(--ink);
    display: block;
    font-size: 34px;
    line-height: 1.05;
    margin-bottom: 10px;
}

.data-metrics span,
.source-grid span {
    color: var(--muted);
}

.platform-preview {
    align-items: center;
    display: grid;
    gap: 60px;
    grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
    padding-bottom: 70px;
    padding-top: 42px;
}

.preview-card {
    position: relative;
    padding: 28px;
}

.preview-card::before {
    background:
        linear-gradient(90deg, rgba(47, 111, 235, 0.18), rgba(31, 138, 112, 0.16));
    border-radius: var(--radius) var(--radius) 0 0;
    content: "";
    height: 6px;
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

.preview-card-head {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.preview-card h3 {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.preview-facts {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.feature-list {
    color: var(--text);
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    padding-left: 22px;
}

.feature-list li::marker {
    color: var(--primary);
}

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

.text-link::after {
    content: " ->";
}

.feature-panels {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.check-sections {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 68px;
    padding-top: 68px;
}

.check-sections article {
    padding: 30px;
}

.check-sections h2 {
    font-size: 32px;
    margin-bottom: 18px;
}

.discovery-section {
    background: #fbfdff;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

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

.discovery-grid article {
    padding: 24px;
}

.source-section {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
    padding-bottom: 64px;
    padding-top: 64px;
}

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

.source-grid article {
    min-height: 128px;
    padding: 22px;
}

.source-grid strong {
    color: var(--ink);
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.section {
    padding: 46px 24px;
}

.section-soft {
    background: #fafcff;
}

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

.section-head h2 {
    margin-bottom: 0;
}

.benefit-grid,
.company-grid,
.endpoint-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid article,
.company-card,
.endpoint-list article,
.two-column article,
.profile-main,
.profile-side,
.faq details {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(17, 40, 72, 0.04);
}

.benefit-grid article,
.endpoint-list article {
    padding: 22px;
}

.benefit-grid p,
.company-meta,
.empty-state,
.prose,
.faq p {
    color: var(--muted);
}

.company-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 164px;
    padding: 18px;
}

.company-title {
    color: var(--text);
    display: inline-block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 8px;
    margin-top: 8px;
}

.compact-facts,
.facts-grid,
.stacked-facts {
    margin: 0;
}

.compact-facts {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: auto;
}

dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.page-heading {
    padding: 54px 24px 18px;
}

.page-heading.narrow,
.prose {
    max-width: 820px;
}

.breadcrumbs {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 28px 24px 0;
}

.company-profile {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 330px;
    margin: 0 auto;
    max-width: 1180px;
    padding: 24px;
}

.profile-main,
.profile-side {
    padding: 24px;
}

.status-pill {
    background: #e9f8f3;
    border: 1px solid #bde7d8;
    border-radius: 999px;
    color: #11624f;
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
    padding: 5px 10px;
}

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

.stacked-facts {
    display: grid;
    gap: 14px;
}

.profile-actions {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
}

.profile-actions a {
    align-items: center;
    background: #f7faff;
    border: 1px solid #d9e7ff;
    border-radius: 8px;
    color: var(--accent);
    display: flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: space-between;
    line-height: 1.25;
    min-height: 44px;
    padding: 10px 12px;
}

.profile-actions a::after {
    content: ">";
    font-weight: 900;
}

.two-column {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.two-column article {
    padding: 24px;
}

.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-cloud a {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    font-weight: 650;
    gap: 8px;
    padding: 8px 12px;
}

.link-cloud span {
    color: var(--muted);
    font-size: 13px;
}

.faq {
    display: grid;
    gap: 12px;
}

.faq details {
    padding: 18px 20px;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
}

.endpoint-list code,
.prose code {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: inline-block;
    overflow-wrap: anywhere;
    padding: 10px 12px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-nav a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 800;
    padding: 12px 16px;
}

.log-view {
    background: #0f172a;
    border-radius: var(--radius);
    color: #e2e8f0;
    overflow: auto;
    padding: 18px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    margin-top: 40px;
}

.site-footer span {
    margin-right: auto;
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .brand {
        width: 100%;
    }

    .main-nav {
        order: 3;
        overflow-x: auto;
        width: 100%;
    }

    h1 {
        font-size: 38px;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-check {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 65%, rgba(255, 255, 255, 0.84) 100%),
            url("/assets/img/company-check-hero.webp") center top / cover no-repeat;
        min-height: 0;
        padding-bottom: 34px;
    }

    .hero-columns {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .strong-lead,
    .stat-lead {
        font-size: 17px;
    }

    .stat-lead strong {
        font-size: 20px;
    }

    .hero-search-panel {
        margin-top: 28px;
    }

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

    .search-control {
        grid-template-columns: 1fr;
    }

    .search-control input {
        min-height: 60px;
    }

    .search-control button {
        min-height: 52px;
        width: 100%;
    }

    .benefit-grid,
    .company-grid,
    .endpoint-list,
    .company-profile,
    .two-column,
    .facts-grid,
    .data-overview,
    .platform-preview,
    .check-sections,
    .discovery-grid,
    .source-section,
    .source-grid {
        grid-template-columns: 1fr;
    }

    .data-overview,
    .platform-preview,
    .check-sections,
    .source-section {
        gap: 22px;
        padding-bottom: 42px;
        padding-top: 42px;
    }

    .data-metrics,
    .preview-facts {
        grid-template-columns: 1fr;
    }

    .data-metrics strong {
        font-size: 28px;
    }

    .check-sections h2 {
        font-size: 26px;
    }

    .compact-facts {
        grid-template-columns: 1fr;
    }
}
