:root {
    --ink: #10233a;
    --muted: #5b6878;
    --line: #dbe2e8;
    --paper: #ffffff;
    --mist: #f3f6f8;
    --blue: #1767a5;
    --teal: #007f7a;
    --orange: #de7f21;
    --radius: 8px;
    --shadow: 0 18px 44px rgba(16, 35, 58, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a { color: inherit; }

.site-shell {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgba(219, 226, 232, 0.85);
    background: rgba(255, 255, 255, 0.96);
}

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

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 158px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav > a { font-size: 0.94rem; font-weight: 700; text-decoration: none; }
.site-nav > a:not(.nav-login):hover { color: var(--blue); }

.language-control { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.language-control svg { width: 17px; height: 17px; }
.language-control select { min-height: 34px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.nav-login,
.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-login { padding: 0 15px; color: #fff; background: var(--ink); }
.nav-login:hover, .button-primary:hover { background: #0b1b2e; transform: translateY(-1px); }
.nav-login svg, .button svg, .tool-link svg { width: 17px; height: 17px; }

.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

.hero { position: relative; min-height: 640px; overflow: hidden; background: #e9eef0; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; z-index: 1; display: flex; min-height: 640px; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 1200px; }

.eyebrow,
.section-label,
.tool-number {
    margin: 0;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.06; }

h1 { max-width: 560px; margin: 14px 0 18px; font-size: 5.75rem; }
.hero-copy { max-width: 480px; margin-bottom: 30px; font-size: 1.32rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button { padding: 0 19px; }
.button-primary { color: #fff; background: var(--blue); }
.button-secondary { border-color: rgba(16, 35, 58, 0.35); background: rgba(255, 255, 255, 0.9); }
.button-secondary:hover { border-color: var(--ink); background: #fff; transform: translateY(-1px); }

.section { padding: 112px 0; }
.catalog-hero { padding-bottom: 72px; background: var(--mist); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 76px; color: var(--muted); font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--blue); }
.back-link svg { width: 17px; height: 17px; }
.catalog-hero h1 { max-width: 760px; margin: 14px 0 20px; font-size: 4.5rem; }
.catalog-copy { max-width: 710px; margin: 0; color: var(--muted); font-size: 1.18rem; }
.catalog-tools { padding-top: 76px; }
.legal-content { background: var(--mist); }
.legal-shell { max-width: 820px; }
.legal-content h1 { max-width: none; margin: 14px 0 52px; font-size: 4.5rem; }
.legal-content section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 10px; font-size: 1.35rem; }
.legal-content p { max-width: 720px; margin: 0; color: var(--muted); }
.legal-content p a { color: var(--blue); font-weight: 700; }
.intro { background: var(--mist); }
.intro-grid { display: grid; grid-template-columns: minmax(200px, 0.75fr) minmax(0, 1.45fr); gap: 64px; }
.intro h2, .section-heading h2, .access h2 { max-width: 720px; margin-bottom: 20px; font-size: 3.5rem; }
.intro p:not(.section-label) { max-width: 700px; margin: 0; color: var(--muted); font-size: 1.12rem; }

.modules { background: var(--paper); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.module-card { min-height: 280px; padding: 28px; border-top: 4px solid var(--blue); background: var(--mist); }
.module-card--asm { border-top-color: var(--teal); }
.module-card--wit { border-top-color: var(--orange); }
.module-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 56px; border-radius: 7px; color: var(--blue); background: #dcecf8; }
.module-card--asm .module-icon { color: #0e615f; background: #dff5f1; }
.module-card--wit .module-icon { color: #a65208; background: #fff0dd; }
.module-icon svg { width: 24px; height: 24px; }
.module-card h3 { margin-bottom: 12px; font-size: 1.5rem; }
.module-card p { margin: 0; color: var(--muted); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 38px; }
.section-heading h2 { margin: 12px 0 0; }
.section-heading > p { max-width: 340px; margin: 0; color: var(--muted); }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card {
    display: flex;
    min-height: 375px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

a.tool-card { text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
a.tool-card:hover { transform: translateY(-4px); border-color: rgba(23, 103, 165, 0.45); box-shadow: var(--shadow); }

.tool-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 7px; }
.tool-icon svg { width: 26px; height: 26px; }
.tool-card--qr .tool-icon { color: #0e615f; background: #dff5f1; }
.tool-card--gland .tool-icon { color: #a65208; background: #fff0dd; }
.tool-card--cable .tool-icon { color: #005b8f; background: #dcecf8; }
.tool-card--terminal .tool-icon { color: #4f6b1f; background: #e8f3d6; }
.tool-card--distance .tool-icon { color: #405ca2; background: #e8edff; }

.tool-card-copy { margin-top: auto; }
.tool-number { margin-bottom: 13px; }
.tool-card h3 { margin-bottom: 12px; font-size: 1.55rem; }
.tool-card p:not(.tool-number) { margin-bottom: 0; color: var(--muted); }
.tool-status, .tool-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-size: 0.88rem; font-weight: 700; }
.tool-status { color: var(--muted); }
.tool-status svg { width: 16px; height: 16px; }
.tool-link { color: var(--blue); }

.access { padding: 0; background: var(--ink); color: #fff; }
.access-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 285px; }
.access .section-label { color: #88c4ef; }
.access h2 { margin: 10px 0 0; }
.access .button-primary { background: #fff; color: var(--ink); }
.access .button-primary:hover { background: #e7f2fa; }

.site-footer { padding: 36px 0; background: #071321; color: #cfdae3; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-inner img { width: 142px; filter: brightness(0) invert(1); }
.footer-inner p { margin: 0; font-size: 0.88rem; }
.footer-contact { display: grid; gap: 3px; color: #cfdae3; }
.footer-contact a, .footer-links a { color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.footer-contact span { font-size: 0.8rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }
.footer-contact a:hover, .footer-links a:hover { color: #88c4ef; }

@media (max-width: 800px) {
    .site-shell { width: min(100% - 32px, 1200px); }
    .header-inner { min-height: 68px; }
    .brand img { width: 140px; }
    .header-inner { gap: 12px; }
    .language-control { margin-left: auto; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav { display: none; position: absolute; top: 68px; right: 0; left: 0; padding: 18px 16px 22px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); background: #fff; }
    .site-nav.is-open { display: flex; }
    .site-nav > a { padding: 8px 0; }
    .nav-login { margin-top: 4px; }
    .hero, .hero-content { min-height: 570px; }
    .hero-image { object-position: 33% center; }
    .hero-content { justify-content: end; padding-bottom: 48px; }
    h1 { font-size: 2.5rem; line-height: 1.08; }
    .hero-copy { max-width: 300px; font-size: 1.05rem; }
    .intro h2, .section-heading h2, .access h2 { font-size: 2.25rem; }
    .section { padding: 76px 0; }
    .catalog-hero { padding-bottom: 52px; }
    .back-link { margin-bottom: 48px; }
    .catalog-hero h1 { font-size: 2.5rem; }
    .legal-content h1 { margin-bottom: 36px; font-size: 2.5rem; }
    .intro-grid, .module-grid, .tool-grid { grid-template-columns: 1fr; gap: 28px; }
    .section-heading, .access-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
    .section-heading { gap: 12px; }
    .tool-card { min-height: 310px; }
    .access-inner { justify-content: center; padding: 68px 0; }
    .footer-inner { gap: 14px; }
    .footer-links { justify-content: flex-start; gap: 14px; }
}
