:root {
  --ink: #17222d;
  --ink-2: #22313f;
  --steel: #5d6b78;
  --muted: #6f7b86;
  --line: #cfd6dc;
  --line-dark: #aeb8c1;
  --paper: #f4f6f7;
  --white: #fff;
  --accent: #b96f13;
  --accent-light: #d79236;
  --shade: #e8ecef;
  --max: 1180px;
  --radius: 3px;
  --shadow: 0 8px 22px rgb(23 34 45 / 9%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul { margin-top: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .65rem 1rem;
  background: var(--white);
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header { background: var(--ink); color: var(--white); border-bottom: 4px solid var(--accent); }
.header-main { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand img { width: min(238px, 72vw); height: auto; }
.domain { display: none; color: #aeb8c1; font-size: .76rem; letter-spacing: .08em; }

.site-nav { border-top: 1px solid rgb(255 255 255 / 12%); background: var(--ink-2); overflow-x: auto; scrollbar-width: thin; }
.nav-list { display: flex; width: max-content; min-width: 100%; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block;
  padding: .8rem .9rem;
  color: #dfe5e9;
  border-right: 1px solid rgb(255 255 255 / 10%);
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .025em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a[aria-current="page"] { background: var(--accent); color: var(--white); }

.hero {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #26323b url("assets/img/hero.webp") center / cover no-repeat;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 17 23 / 92%) 0%, rgb(10 17 23 / 72%) 52%, rgb(10 17 23 / 23%) 100%); }
.hero-inner { padding-block: 3.5rem; }
.eyebrow { margin-bottom: .65rem; color: var(--accent-light); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin-bottom: 1rem; font-size: clamp(2.1rem, 7vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.hero .lead { max-width: 700px; margin-bottom: 1.8rem; color: #e4e9ed; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: #c5cdd4; font-size: .84rem; }
.hero-meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; background: var(--accent-light); }

.page-head { padding-block: 2.5rem 2.2rem; background: var(--ink-2); color: var(--white); border-bottom: 1px solid #3b4854; }
.breadcrumbs { margin-bottom: .85rem; color: #aeb9c2; font-size: .78rem; }
.breadcrumbs a { text-decoration-color: #657482; text-underline-offset: 3px; }
.page-head h1 { margin-bottom: .7rem; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.page-head p { max-width: 800px; margin-bottom: 0; color: #cbd3d9; }

.section { padding-block: 3.2rem; }
.section + .section { border-top: 1px solid var(--line); }
.section-dark { color: var(--white); background: var(--ink-2); }
.section-title { margin-bottom: .7rem; font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; }
.section-intro { max-width: 790px; margin-bottom: 1.8rem; color: var(--muted); }
.section-dark .section-intro { color: #bcc6ce; }
.kicker { display: block; margin-bottom: .45rem; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.link-grid { display: grid; gap: 1rem; }
.link-card { position: relative; min-height: 230px; padding: 1.35rem; color: var(--white); background: var(--ink-2); border: 1px solid #40505e; overflow: hidden; text-decoration: none; }
.link-card::after { content: "→"; position: absolute; right: 1.25rem; bottom: 1rem; color: var(--accent-light); font-size: 1.5rem; transition: transform .2s ease; }
.link-card:hover::after { transform: translateX(.3rem); }
.link-card img { width: 46px; height: 46px; margin-bottom: 2.2rem; }
.link-card h2 { margin-bottom: .45rem; font-size: 1.25rem; }
.link-card p { max-width: 31ch; margin: 0; color: #bcc6ce; font-size: .9rem; }

.facts { display: grid; gap: 1rem; margin-top: 2rem; }
.fact { padding: 1.2rem; background: var(--white); border-top: 3px solid var(--accent); box-shadow: var(--shadow); }
.fact strong { display: block; margin-bottom: .2rem; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: .85rem; }

.two-col { display: grid; gap: 2rem; }
.note { padding: 1.1rem 1.2rem; background: #fff8ed; border-left: 4px solid var(--accent); color: #5c4930; }
.note p:last-child { margin-bottom: 0; }

.catalog-grid { display: grid; gap: 1.2rem; }
.product-card { display: grid; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.product-photo { width: 100%; height: 190px; object-fit: cover; background: #6a747d; }
.product-body { padding: 1.25rem; }
.product-top { display: grid; grid-template-columns: 1fr 88px; gap: .75rem; align-items: start; }
.product-profile { width: 88px; height: 66px; object-fit: contain; background: #eef1f3; border: 1px solid var(--line); }
.product-card h2 { margin-bottom: .45rem; font-size: 1.35rem; }
.product-card p { margin-bottom: .8rem; color: var(--muted); font-size: .92rem; }
.spec-line { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.tag { padding: .22rem .45rem; color: #47545f; background: var(--shade); border: 1px solid var(--line); font-size: .71rem; }

.anchor-nav { display: flex; gap: .45rem; overflow-x: auto; padding: .8rem 0; scrollbar-width: thin; }
.anchor-nav a { flex: none; padding: .42rem .65rem; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-size: .78rem; font-weight: 700; text-decoration: none; }
.anchor-nav a:hover { border-color: var(--accent); color: var(--accent); }

.table-section { padding-block: 2.5rem; scroll-margin-top: 1rem; }
.table-section + .table-section { border-top: 1px solid var(--line); }
.table-head { margin-bottom: 1rem; }
.table-head h2 { margin-bottom: .4rem; font-size: 1.55rem; }
.table-head p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line-dark); box-shadow: var(--shadow); }
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table caption { padding: .65rem .75rem; color: var(--muted); text-align: left; font-size: .75rem; }
.data-table th, .data-table td { padding: .52rem .68rem; border-right: 1px solid #d8dee3; border-bottom: 1px solid #d8dee3; text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { color: var(--white); background: var(--ink-2); font-size: .75rem; letter-spacing: .025em; }
.data-table tbody tr:nth-child(even) { background: #f0f3f5; }
.data-table tbody tr:hover { background: #fff3df; }
.data-table td { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .82rem; }

.calculator { display: grid; gap: 1rem; padding: 1.25rem; color: var(--white); background: var(--ink-2); border-top: 4px solid var(--accent); }
.calculator h2 { margin: 0; font-size: 1.45rem; }
.calc-grid { display: grid; gap: .9rem; }
.field label { display: block; margin-bottom: .3rem; color: #bcc6ce; font-size: .75rem; font-weight: 700; }
.field select, .field input { width: 100%; height: 44px; padding: .5rem .65rem; color: var(--ink); background: var(--white); border: 1px solid #758391; border-radius: 0; font: inherit; font-variant-numeric: tabular-nums; }
.calc-result { display: flex; flex-direction: column; justify-content: center; min-height: 90px; padding: 1rem; background: #101a23; border: 1px solid #40505e; }
.calc-result span { color: #aeb9c2; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.calc-result output { color: var(--accent-light); font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-formula { margin: 0; color: #9eabb6; font-size: .76rem; }

.standard-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.standard-list li { padding: 1rem 1.1rem; background: var(--white); border-left: 4px solid var(--accent); box-shadow: 0 2px 8px rgb(23 34 45 / 7%); }
.standard-list strong { display: block; margin-bottom: .18rem; font-variant-numeric: tabular-nums; }
.standard-list span { color: var(--muted); font-size: .87rem; }

.prose { max-width: 850px; }
.prose h2 { margin-top: 2rem; margin-bottom: .65rem; font-size: 1.45rem; }
.prose li { margin-bottom: .45rem; }
.definition-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.definition { padding: 1.2rem; background: var(--white); border: 1px solid var(--line); }
.definition h2 { margin-bottom: .45rem; font-size: 1.15rem; }
.definition p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.site-footer { padding-block: 2rem; color: #b9c3cb; background: #101921; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; gap: 1.3rem; }
.footer-brand { color: var(--white); font-size: 1rem; font-weight: 800; }
.footer-text { max-width: 560px; margin: .35rem 0 0; font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-size: .78rem; text-underline-offset: 3px; }
.copyright { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #2c3944; color: #7f8d99; font-size: .72rem; }

@media (min-width: 600px) {
  .domain { display: block; }
  .link-grid, .facts, .definition-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 820px) {
  .container { width: min(100% - 3rem, var(--max)); }
  .nav-list { width: auto; min-width: 0; justify-content: center; }
  .nav-list a { padding-inline: 1.3rem; }
  .hero-inner { padding-block: 5.5rem; }
  .link-grid { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1.25fr .75fr; align-items: start; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .calculator { padding: 1.6rem; }
  .calc-grid { grid-template-columns: 1.15fr 1.35fr .8fr 1.2fr; align-items: end; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .product-photo { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
