:root {
  --bone: #e8dcc8;
  --bone-2: #ddd0b8;
  --paper: #f7f0e4;
  --tag: #fbf6ec;
  --ink: #14110f;
  --ink-soft: #2c2622;
  --muted: #6d645a;
  --rust: #b23a28;
  --rust-deep: #8a2b1d;
  --string: #8d7d6a;
  --rail: #3c3834;
  --rail-shine: #6a645c;
  --line: rgba(20, 17, 15, .16);
  --shadow: 0 18px 36px rgba(20, 17, 15, .1);
  --header: 76px;
  --serif: "Source Serif 4", "Times New Roman", serif;
  --sans: "Barlow", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(178, 58, 40, .06), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 71px, rgba(20, 17, 15, .035) 71px 72px),
    var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); max-width: 18ch; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
main { overflow-x: hidden; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(232, 220, 200, .92);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: var(--header);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.brand span:last-child { display: grid; min-width: 0; overflow: hidden; }
.brand strong {
  font-family: var(--cond);
  font-size: clamp(13px, 3.6vw, 18px);
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand small { color: var(--muted); font-size: 12px; }
.brand-tag {
  position: relative;
  width: 38px;
  height: 46px;
  background: var(--tag);
  clip-path: polygon(50% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  flex: none;
}
.brand-tag i {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--bone);
}
.brand-tag b {
  font-family: var(--cond);
  font-size: 13px;
  color: var(--rust);
}

.desktop-nav { display: none; margin-left: auto; gap: 8px 18px; flex-wrap: wrap; }
.desktop-nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.desktop-nav a.active,
.desktop-nav a:hover { color: var(--ink); }
.header-actions { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .lang-switch,
.header-actions .menu-toggle { flex-shrink: 0; }
.lang-switch {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--tag);
}
.lang-btn {
  border: 0;
  background: transparent;
  min-width: 42px;
  height: 34px;
  cursor: pointer;
  font-family: var(--cond);
  letter-spacing: .08em;
  flex: none;
}
.menu-toggle {
  width: 42px;
  height: 34px;
  border: 1px solid var(--ink);
  background: var(--tag);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  flex: none;
}
.lang-btn.active {
  background: var(--ink);
  color: var(--paper);
}
.four article a {
  display: inline-block;
  margin-top: 8px;
  color: var(--rust-deep);
}
#order-form {
  display: grid;
  gap: 14px;
}
#order-form label { display: grid; gap: 6px; }
#order-form .full,
#order-form .consent,
#order-form .button,
#order-form .form-hint { grid-column: 1 / -1; }
.order-split { margin-top: 28px; }
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.mobile-menu {
  display: grid;
  padding: 8px 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu a {
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.hero,
.section,
.site-footer {
  width: min(1200px, calc(100% - 32px));
  max-width: 100%;
  margin: auto;
}
.hero {
  display: grid;
  gap: 36px;
  padding: 36px 0 20px;
}
.tag-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--cond);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 13px;
}
.mini-tag {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 6px 2px;
  background: var(--rust);
  color: var(--paper);
  clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
  font-size: 12px;
}
.hero-lead,
.lead { max-width: 62ch; color: var(--ink-soft); }
.hero-note, .form-hint { color: var(--muted); font-size: 14px; }
.hero-actions, .summary-actions, .builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--tag);
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.button.disabled,
.button:disabled {
  opacity: .45;
  pointer-events: none;
}
.mail-link { font-size: 15px; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 8px 0 0;
}
.hero-facts div { border-top: 1px solid var(--line); padding-top: 8px; }
.hero-facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-facts dd { margin: 2px 0 0; font-family: var(--cond); font-size: clamp(16px, 1.8vw, 22px); }

.rail-wall {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 28px 12px 16px;
  background:
    linear-gradient(180deg, rgba(60, 56, 52, .08), transparent 40%),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rail {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rail-shine), var(--rail));
  box-shadow: 0 6px 0 rgba(20, 17, 15, .12);
}
.rail i {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b1916;
  transform: translate(-50%, -50%);
}
.rail i:nth-child(1) { left: 8%; }
.rail i:nth-child(2) { left: 24%; }
.rail i:nth-child(3) { left: 40%; }
.rail i:nth-child(4) { left: 56%; }
.rail i:nth-child(5) { left: 72%; }
.rail i:nth-child(6) { left: 88%; }
.hang-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: start;
  margin-top: 0;
  min-width: 0;
  width: 100%;
}
.hang-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.hang-tag .string {
  width: 1px;
  background: linear-gradient(var(--rail), var(--string));
}
.drop-a .string { height: 28px; }
.drop-b .string { height: 52px; }
.drop-c .string { height: 36px; }
.drop-d .string { height: 60px; }
.drop-e .string { height: 24px; }
.drop-f .string { height: 44px; }
.tag-card {
  position: relative;
  width: 100%;
  max-width: 128px;
  min-height: 158px;
  padding: 22px 10px 12px;
  background: var(--tag);
  clip-path: polygon(50% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  border: 1px solid rgba(20, 17, 15, .12);
  box-shadow: 0 10px 18px rgba(20, 17, 15, .08);
  text-align: center;
}
.eyelet {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--bone);
}
.size-chip {
  position: absolute;
  top: 18px;
  right: 8px;
  min-width: 28px;
  padding: 2px 6px;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--cond);
  font-size: 13px;
  letter-spacing: .04em;
  transform: rotate(8deg);
}
.size-chip.muted { background: var(--ink-soft); }
.picto {
  width: 42px;
  height: 42px;
  margin: 18px auto 8px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tag-card small {
  display: block;
  font-family: var(--cond);
  letter-spacing: .12em;
  color: var(--muted);
}
.tag-card b {
  display: block;
  margin-top: 4px;
  padding: 0 6px;
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.15;
}
.rail-caption {
  margin: 18px 8px 4px;
  color: var(--muted);
  font-size: 13px;
}

.size-strip {
  width: min(1200px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin: 8px auto 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.size-strip .chip {
  min-width: 40px;
  padding: 7px 10px 6px;
  text-align: center;
  background: var(--tag);
  border: 1px solid var(--line);
  font-family: var(--cond);
  font-size: 16px;
}
.size-strip .chip.rust {
  background: var(--rust);
  color: var(--paper);
  border-color: var(--rust-deep);
}
.size-strip small { flex: 1 1 220px; color: var(--muted); font-size: 13px; }

.section { padding: 64px 0 8px; }
.section-grid, .split, .builder-wrap {
  display: grid;
  gap: 28px;
}
.notice, .note-tag, .file-card, .contact-aside, .summary-card, .code-tag {
  background: var(--paper);
  border: 1px solid var(--line);
}
.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--rust);
}
.file-card, .registry { display: grid; gap: 0; }
.file-card div, .registry div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.file-card { padding: 8px 18px; }
.file-card dt, .registry dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.file-card dd, .registry dd { margin: 0; }
.registry {
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 18px;
}
.registry .full { grid-column: 1 / -1; }

.code-rail, .four, .people {
  display: grid;
  gap: 14px;
}
.code-tag { position: relative; padding: 18px 16px 16px; }
.code-tag.primary { outline: 2px solid var(--rust); }
.code-no {
  font-family: var(--cond);
  font-size: 28px;
  color: var(--rust);
}
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: .08em;
  vertical-align: 6px;
}
.code-tag h3 { margin-top: 8px; max-width: none; }
.code-tag a { color: var(--rust-deep); }
.hang-list {
  margin: 0;
  padding: 8px 0 0 0;
  list-style: none;
}
.hang-list li {
  position: relative;
  padding: 12px 12px 12px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--tag);
}
.hang-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 10px;
  height: 16px;
  background: var(--rust);
  clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
}
.note-tag {
  position: relative;
  padding: 28px 20px 20px;
}
.four article, .people article {
  padding: 16px;
  background: var(--tag);
  border: 1px solid var(--line);
}
.route {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.route li {
  display: grid;
  gap: 4px;
  padding: 16px 16px 16px 64px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  counter-increment: step;
}
.route li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--cond);
  font-size: 22px;
  color: var(--rust);
}
.limit-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.limit-rail li {
  padding: 14px 16px;
  background: var(--paper);
  border-left: 4px solid var(--ink);
}

.builder-grid, #contact-form {
  display: grid;
  gap: 14px;
}
.builder-grid label, #contact-form label { display: grid; gap: 6px; }
.builder-grid .full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--tag);
  padding: 10px 12px;
}
.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
}
.consent input { width: auto; margin-top: 4px; }
.summary-card { padding: 16px; }
.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.summary-head h3 { margin: 0; max-width: none; }
.no-price {
  font-family: var(--cond);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust);
  font-size: 13px;
}
pre {
  min-height: 180px;
  margin: 12px 0;
  padding: 14px;
  overflow: auto;
  background: var(--bone);
  border: 1px dashed var(--line);
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 14px;
}
.role {
  font-family: var(--cond);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 4px 14px 10px;
}
.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.contact-aside { padding: 18px; height: fit-content; }
.site-footer {
  display: grid;
  gap: 8px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

@media (min-width: 720px) {
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hang-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registry { grid-template-columns: 1fr 1fr; }
  .builder-grid { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .desktop-nav {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0 0 14px;
    order: 3;
    gap: 10px 20px;
  }
  .menu-toggle, .mobile-menu { display: none !important; }
  .header-actions { margin-left: 0; }
  .hero, .section-grid, .split, .builder-wrap { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .code-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #order-form { grid-template-columns: 1fr 1fr; }
  h2 { max-width: 16ch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 979px) {
  .brand { flex: 0 1 auto; }
  .header-actions { margin-left: 8px; }
}
@media (max-width: 719px) {
  .header-inner {
    display: flex;
    width: min(1200px, calc(100% - 16px));
    max-width: calc(100% - 16px);
    gap: 8px;
  }
  .brand { max-width: none; flex: 0 1 auto; }
  .header-actions {
    position: static;
    transform: none;
    margin-left: 8px;
    gap: 6px;
  }
  .brand small { display: none; }
  .lang-btn { min-width: 30px; height: 30px; }
  .menu-toggle { width: 34px; height: 30px; }
  .drop-a .string,
  .drop-b .string,
  .drop-c .string,
  .drop-d .string,
  .drop-e .string,
  .drop-f .string { height: 22px; }
  .hang-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
