:root {
  --ink: #172234;
  --ink-soft: #3e4a59;
  --muted: #687483;
  --line: #d9e0e5;
  --line-dark: #bcc7ce;
  --paper: #ffffff;
  --canvas: #f3f5f6;
  --cream: #fbf5f0;
  --copper: #a65f3f;
  --copper-dark: #7d4028;
  --copper-soft: #e8c8b7;
  --teal: #276b6a;
  --green: #2f7457;
  --amber: #9a651d;
  --amber-bg: #fff7e7;
  --red: #a43d35;
  --shadow: 0 18px 48px rgba(23, 34, 52, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1180px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 18px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 18px;
}

.draft-bar {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 24px;
  background: #2c3542;
  color: #f7f9fa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.draft-bar strong {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(188, 199, 206, 0.7);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(23, 34, 52, 0.04);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 124px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 27px;
  background: var(--line-dark);
}

.brand-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  background: var(--cream);
  color: var(--copper-dark);
}

.header-nav .language {
  margin-left: 8px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 14%, rgba(166, 95, 63, 0.11), transparent 25%),
    linear-gradient(135deg, #fff 0%, #fff 57%, #f4e9e1 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -190px;
  width: 550px;
  height: 550px;
  border: 1px solid rgba(166, 95, 63, 0.16);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  display: grid;
  width: min(1380px, calc(100% - 84px));
  margin: 0 auto;
  padding: 58px 0 52px;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
  gap: 58px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb span {
  color: #a7b0b7;
}

.kicker {
  margin: 0 0 10px;
  color: var(--copper-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Montserrat, Inter, sans-serif;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(46px, 4.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.62;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #d7c4b8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #684735;
  font-size: 12px;
  font-weight: 800;
}

.pill::before {
  content: none;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.button-primary {
  background: var(--ink);
  color: white;
}

.button-secondary {
  background: white;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 34, 52, 0.12);
}

.doc-control {
  display: grid;
  max-width: 690px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doc-control div {
  min-height: 62px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.doc-control div:last-child {
  border-right: 0;
}

.doc-control span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-control strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-visual {
  position: relative;
}

.hero-image {
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-flag {
  position: absolute;
  right: -14px;
  bottom: 24px;
  width: 214px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: 0 15px 30px rgba(23, 34, 52, 0.2);
}

.hero-flag strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.hero-flag span {
  display: block;
  color: #cdd5dc;
  font-size: 11px;
  line-height: 1.4;
}

.guide-shell {
  display: grid;
  width: min(1380px, calc(100% - 84px));
  margin: 0 auto;
  padding: 38px 0 80px;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 92px;
}

.sidebar-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 34, 52, 0.05);
}

.sidebar-title {
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-card nav {
  display: grid;
  padding: 8px;
}

.sidebar-card nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-card nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a7b0b7;
}

.sidebar-card nav a:hover,
.sidebar-card nav a:focus-visible {
  background: var(--cream);
  color: var(--copper-dark);
}

.sidebar-card nav a:hover::before,
.sidebar-card nav a:focus-visible::before {
  background: var(--copper);
}

.sidebar-meta {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #d7c4b8;
  border-radius: 10px;
  background: var(--cream);
  color: #654534;
  font-size: 11px;
}

.guide-content {
  display: grid;
  gap: 18px;
}

.section {
  scroll-margin-top: 95px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(23, 34, 52, 0.035);
}

.section-header {
  display: block;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-summary {
  max-width: 460px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.section-body {
  padding: 24px 28px 28px;
}

.review-callout {
  display: grid;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e4c98c;
  border-left: 5px solid var(--amber);
  border-radius: 9px;
  background: var(--amber-bg);
  color: #6d4b18;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  font-size: 12px;
}

.review-callout strong {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.info-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.info-card.soft {
  background: var(--canvas);
}

.info-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

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

.fact {
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}

.fact span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

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

.list-card {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.list-card h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.clean-list,
.warning-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li,
.warning-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 13px;
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--green);
  font-weight: 900;
}

.warning-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber);
  color: white;
  font-size: 9px;
  font-weight: 900;
}

.illustration {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  background: #fff;
}

.illustration img {
  width: 100%;
  height: auto;
  background: #fff;
}

.illustration figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.illustration figcaption strong {
  color: var(--ink);
}

.anatomy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 18px;
}

.label-list {
  display: grid;
  gap: 9px;
}

.label-item {
  display: grid;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
  grid-template-columns: 27px 1fr;
  gap: 10px;
}

.label-item span {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.label-item b {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.label-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.step {
  display: grid;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  grid-template-columns: minmax(0, 0.94fr) minmax(350px, 1.06fr);
}

.step:last-child {
  margin-bottom: 0;
}

.step-copy {
  padding: 22px 23px;
}

.step-index {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.step p {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.step ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.step-visual {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  background: #fff;
}

.step-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.commission-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.tbc-card {
  padding: 18px;
  border: 1px dashed #d2a866;
  border-radius: 10px;
  background: var(--amber-bg);
}

.tbc-card h3 {
  color: #704d1c;
  font-size: 16px;
}

.tbc-card p,
.tbc-card li {
  color: #785a2f;
  font-size: 12px;
}

.test-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.test-flow div {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}

.test-flow div:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -9px;
  color: var(--copper);
  font-weight: 900;
  transform: translateY(-50%);
}

.test-flow span {
  display: block;
  margin-bottom: 4px;
  color: var(--copper-dark);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.test-flow b {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.state-table,
.spec-table,
.trouble-table {
  width: 100%;
  border-collapse: collapse;
}

.state-table th,
.state-table td,
.spec-table th,
.spec-table td,
.trouble-table th,
.trouble-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.state-table thead th,
.spec-table thead th,
.trouble-table thead th {
  background: var(--ink);
  color: white;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-table tbody th,
.spec-table tbody th {
  width: 28%;
  color: var(--ink);
  font-weight: 800;
}

.state-table td,
.spec-table td,
.trouble-table td {
  color: var(--ink-soft);
}

.state-table tr:last-child th,
.state-table tr:last-child td,
.spec-table tr:last-child th,
.spec-table tr:last-child td,
.trouble-table tr:last-child td {
  border-bottom: 0;
}

.trouble-table td:first-child {
  width: 23%;
  color: var(--ink);
  font-weight: 800;
}

.trouble-table td:nth-child(2) {
  width: 34%;
}

.status-tbc {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f3ddb3;
  color: #73501c;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.approval {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}

.approval span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approval b {
  display: block;
  font-size: 12px;
}

.approval em {
  display: block;
  margin-top: 6px;
  color: var(--amber);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.support-footer {
  padding: 34px 42px 38px;
  background: var(--ink);
  color: white;
}

.footer-inner {
  display: flex;
  width: min(1380px, 100%);
  margin: 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.footer-inner p {
  margin-bottom: 0;
  color: #c6d0d8;
  font-size: 13px;
}

.footer-meta {
  color: #aeb9c2;
  font-size: 11px;
  text-align: right;
}

.footer-meta b {
  color: white;
}

:focus-visible {
  outline: 3px solid rgba(166, 95, 63, 0.35);
  outline-offset: 3px;
}
