/* Nirlax Inc. — site styles */
:root {
  --paper: #F5F7FB;
  --white: #FFFFFF;
  --ink: #172142;
  --slate: #56607A;
  --blue: #1D3A8A;
  --blue-deep: #12265F;
  --mist: #E7ECF7;
  --line: #D9DFEA;
  --red: #D9232B;
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 14px; z-index: 50; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { display: inline-flex; align-items: center; }
.brand { gap: 12px; text-decoration: none; color: var(--blue-deep); }
.brand img { height: 50px; width: auto; display: block; }
.brand span { font-weight: 700; font-size: 1.32rem; letter-spacing: 0.14em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--blue-deep); }
.nav a.btn { border-bottom: 0; color: var(--white); padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 500; padding: 13px 22px; border-radius: 6px; border: 1px solid var(--blue); font-family: inherit; font-size: 1rem; cursor: pointer; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn.quiet { background: transparent; color: var(--blue-deep); border-color: var(--line); }
.btn.quiet:hover { background: var(--mist); color: var(--blue-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%); position: relative; overflow: hidden; }
.hero-globe { position: absolute; right: -140px; top: -120px; width: 720px; height: 720px; color: #DCE3F1; pointer-events: none; }
.hero .wrap { position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 80px; }
.hero p.lead { font-size: 1.2rem; color: var(--slate); max-width: 34em; }
.motto { font-size: 0.98rem; color: var(--blue-deep); font-weight: 500; margin-bottom: 18px; }

/* Sections */
.section { padding: 76px 0; }
.section.tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 44em; margin-bottom: 36px; }
.section-intro p { color: var(--slate); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.7em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose .lead { font-size: 1.2rem; color: var(--slate); }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--slate); font-size: 0.97rem; }

/* Service index */
.svc-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.svc-group:last-child { border-bottom: 1px solid var(--line); }
.svc-group > h3 { color: var(--blue-deep); margin: 4px 0 0; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.svc-list a { font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.svc-list a:hover { color: var(--blue); text-decoration: underline; }
.svc-list p { margin: 4px 0 0; color: var(--slate); font-size: 0.97rem; }

/* Standards */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.tags li { font-family: var(--mono); font-size: 0.88rem; border: 1px solid var(--line); background: var(--white); border-radius: 4px; padding: 6px 12px; }
.prose .tags { padding-left: 0; margin-bottom: 1.4em; }
.prose .tags li { margin-bottom: 0; }

/* Statement */
.statement { background: var(--blue-deep); color: var(--white); }
.statement .wrap { padding-top: 84px; padding-bottom: 84px; }
.statement p.big { font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 22px; }
.statement p.small a { color: #FFFFFF; }
.statement p.small { color: #C6CFE6; max-width: 36em; margin: 0; }

/* Call to action */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 60px; padding-bottom: 60px; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: var(--slate); }

/* Inner pages */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 46px 0 44px; }
.page-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 0; }
.page-head p { color: var(--slate); font-size: 1.12rem; max-width: 40em; margin: 14px 0 0; }
.crumbs { font-size: 0.9rem; color: var(--slate); margin-bottom: 16px; }
.crumbs a { color: var(--slate); }
.crumbs span { margin: 0 6px; }
.with-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.side { position: sticky; top: 100px; }
.side h2 { font-size: 0.95rem; color: var(--slate); font-weight: 500; letter-spacing: 0; margin-bottom: 10px; }
.side ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.side a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: 0.96rem; }
.side a:hover { color: var(--blue); }
.side a[aria-current="page"] { border-left-color: var(--blue); color: var(--blue-deep); font-weight: 600; }
.callout { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 22px 24px; margin-top: 36px; }
.callout h2 { font-size: 1.15rem; margin: 0 0 6px; }
.callout p { color: var(--slate); margin: 0 0 14px; }

.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 0 0 1.4em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue-deep); font-weight: 600; font-size: 0.9rem; display: grid; place-items: center; }
.steps strong { display: block; }

.courses { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.courses th, .courses td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); }
.courses th { font-weight: 500; color: var(--slate); font-size: 0.92rem; }
.courses td:last-child, .courses th:last-child { font-family: var(--mono); font-size: 0.88rem; text-align: right; white-space: nowrap; padding-left: 16px; }

/* Contact and forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; color: var(--slate); font-size: 0.92rem; }
address { font-style: normal; }
form.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 30px; }
form.card h2 { font-size: 1.3rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.93rem; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--slate); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #B8C4CE; border-radius: 6px; padding: 11px 12px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--mist); border-color: var(--blue); }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot p { margin: 0; font-size: 0.9rem; color: var(--slate); flex: 1 1 240px; }
.form-status { margin: 18px 0 0; padding: 14px 16px; background: var(--mist); border-radius: 6px; font-size: 0.95rem; }
.form-status[hidden] { display: none; }

/* Icons */
.ico { color: var(--blue); flex: none; }

/* Hero routes */
.routes { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 10px 10px; box-shadow: 0 24px 48px -32px rgba(18, 38, 95, 0.4); }
.routes h2 { font-size: 1.05rem; margin: 0 14px 10px; }
.routes a { display: flex; gap: 14px; align-items: flex-start; padding: 13px 14px; border-radius: 8px; text-decoration: none; color: var(--slate); font-size: 0.93rem; line-height: 1.4; border-top: 1px solid var(--line); }
.routes a:hover { background: var(--mist); }
.routes a strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; }

/* Key figures */
.strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats div { padding: 30px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; color: var(--blue-deep); line-height: 1.2; }
.stats span { color: var(--slate); font-size: 0.93rem; }

/* Cards and panels */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card .ico { width: 30px; height: 30px; margin-bottom: 16px; }
.card p, .panel p { color: var(--slate); font-size: 0.98rem; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card { border-top: 3px solid var(--blue); }
.links { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links a { display: block; padding: 11px 0; text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }
.panel .tags { margin: 14px 0 16px; }
.panel.tinted { background: var(--mist); border-color: var(--mist); }
.after { margin: 28px 0 0; font-weight: 500; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo .panel { padding: 36px; }
.duo .btn { margin-top: 6px; }

/* Tabs */
.tabs { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tab-list { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-list button { flex: 1 0 auto; font: inherit; font-weight: 500; color: var(--slate); background: none; border: 0; border-bottom: 3px solid transparent; padding: 16px 22px; cursor: pointer; }
.tab-list button:hover { color: var(--ink); background: var(--paper); }
.tab-list button[aria-selected="true"] { color: var(--blue-deep); border-bottom-color: var(--red); font-weight: 600; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding: 34px; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.35rem; }
.tab-panel p { color: var(--slate); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 14px 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* Reasons */
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 14px; color: var(--slate); font-size: 0.96rem; }
.reasons strong { display: block; color: var(--ink); font-size: 1.02rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 500; color: var(--slate); font-size: 0.9rem; background: var(--paper); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; }

/* Technologies */
.tech-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding: 34px 0; border-top: 1px solid var(--line); align-items: start; }
.tech-row:first-child { border-top: 0; padding-top: 0; }
.tech-row h2 { font-size: 1.35rem; }
.tech-row p { color: var(--slate); }
.tags li { background: var(--paper); }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--slate); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer h2 { font-size: 0.95rem; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.foot-base { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.foot-base a { margin-left: 20px; }
.foot-base a:first-child { margin-left: 0; }

/* Responsive */
@media (max-width: 1040px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.92rem; }
}
@media (max-width: 920px) {
  .cols3, .duo, .tab-panel, .tech-row { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 22px 16px; }
  .stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-globe { opacity: 0.5; }
  .hero .wrap, .split, .contact-grid, .with-side { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { padding-top: 52px; padding-bottom: 56px; }
  .side { position: static; order: 2; }
  .svc-group { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .svc-list, .fields { grid-template-columns: 1fr; }
    body { font-size: 16px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  form.card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .side, .cta, .nav-toggle { display: none; } }
