:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-soft: #fffefa;
  --paper-line: #d8d3c8;
  --ink: #0c192c;
  --ink-soft: #304156;
  --muted: #6c746f;
  --red: #ff4048;
  --blue: #4383df;
  --gold: #f8a900;
  --white: #fbfaf6;
  --green: #245845;
  --green-soft: #d8ead8;
  --blue-soft: #dfe9fb;
  --gold-soft: #f6e5bd;
  --red-soft: #f8d5d6;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(12, 25, 44, 0.1);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 15px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 14px;
}
.nav a:hover { color: var(--ink); }
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.langs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.langs .on { color: var(--ink); }
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-link:hover { background: transparent; color: var(--ink); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 92px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: stretch;
  padding: 16px 0 56px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 12px 0;
}
.kicker,
.label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h1 {
  max-width: 560px;
  margin-top: 22px;
  color: var(--ink);
  font-size: 72px;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}
.lead {
  max-width: 520px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.68;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(12, 25, 44, 0.22);
  background: rgba(251, 250, 246, 0.6);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.text-button:hover { border-color: var(--ink); }
.studio-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero-board {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  border: 1px solid rgba(12, 25, 44, 0.16);
  background: var(--paper-soft);
}
.brand-field {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: var(--ink);
  color: var(--white);
}
.brand-mark {
  width: 140px;
  height: 140px;
  border: 1px solid rgba(246, 244, 239, 0.14);
  background: #102241;
}
.brand-field h2 {
  max-width: 360px;
  font-size: 32px;
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: 0;
}
.brand-field p {
  margin-top: 14px;
  color: rgba(246, 244, 239, 0.68);
  font-size: 14px;
  line-height: 1.6;
}
.signal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(12, 25, 44, 0.12);
}
.signal {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid rgba(12, 25, 44, 0.12);
}
.signal:last-child { border-right: 0; }
.signal b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
}
.signal span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.index-list { padding: 10px 0; }
.index-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(12, 25, 44, 0.1);
}
.index-item:last-child { border-bottom: 0; }
.index-kind {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.index-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}
.index-desc {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(12, 25, 44, 0.13);
  background: rgba(12, 25, 44, 0.04);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.status.live { background: var(--green-soft); border-color: rgba(36, 88, 69, 0.24); color: var(--green); }
.status.test { background: var(--gold-soft); border-color: rgba(248, 169, 0, 0.34); color: #6a4b00; }
.status.ready { background: var(--blue-soft); border-color: rgba(67, 131, 223, 0.24); color: #173a76; }
.status.prepare { background: var(--red-soft); border-color: rgba(255, 64, 72, 0.2); color: #823136; }

.section {
  padding: 58px 0;
  border-top: 1px solid rgba(12, 25, 44, 0.14);
}
.section-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: end;
  margin-bottom: 28px;
}
.section h2 {
  color: var(--ink);
  font-size: 38px;
  font-weight: 650;
  line-height: 1.05;
}
.section-head p {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.catalog {
  border: 1px solid rgba(12, 25, 44, 0.14);
  background: var(--paper-soft);
}
.catalog-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 130px;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid rgba(12, 25, 44, 0.1);
}
.catalog-row:last-child { border-bottom: 0; }
.catalog-row:hover { background: rgba(255, 255, 255, 0.46); }
.catalog-name {
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
}
.catalog-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.catalog-meta { justify-self: end; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(12, 25, 44, 0.14);
  background: var(--paper-soft);
  padding: 26px;
}
.panel h3 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.12;
}
.panel p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 30px;
}
.mini-list {
  border-top: 1px solid rgba(12, 25, 44, 0.12);
}
.mini-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 90px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(12, 25, 44, 0.1);
}
.mini-row h3 {
  font-size: 18px;
  font-weight: 650;
}
.mini-row p {
  color: var(--ink-soft);
  font-size: 15px;
}
.mini-row .status { justify-self: end; }
.philosophy {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: stretch;
  padding: 0;
  border-top: 1px solid rgba(12, 25, 44, 0.14);
}
.philosophy-title {
  min-height: 280px;
  padding: 34px;
  background: var(--ink);
  color: var(--white);
}
.philosophy-title h2 {
  max-width: 360px;
  font-size: 42px;
  font-weight: 650;
  line-height: 1.06;
}
.philosophy-copy {
  padding: 34px 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.8;
}
.accent-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 8px;
  margin-top: 34px;
}
.accent-strip span:nth-child(1) { background: var(--red); }
.accent-strip span:nth-child(2) { background: var(--gold); }
.accent-strip span:nth-child(3) { background: var(--blue); }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 34px 32px;
  border-top: 1px solid rgba(12, 25, 44, 0.12);
  background: var(--paper-soft);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.foot-nav a { text-decoration: underline; text-underline-offset: 3px; }
.copy {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.index-title a,
.catalog-name a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.doc-page {
  max-width: 980px;
}
.doc-hero {
  padding: 24px 0 46px;
  border-bottom: 1px solid rgba(12, 25, 44, 0.14);
}
.doc-hero h1 {
  max-width: 840px;
  font-size: 58px;
  line-height: 1.02;
}
.doc-hero .lead {
  max-width: 760px;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.doc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(12, 25, 44, 0.14);
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}
.doc-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(12, 25, 44, 0.12);
}
.doc-section h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.12;
}
.doc-section p,
.doc-section li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.doc-card {
  border: 1px solid rgba(12, 25, 44, 0.14);
  background: var(--paper-soft);
  padding: 20px;
}
.doc-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.22;
}
.doc-card ul,
.doc-steps,
.doc-list {
  padding-left: 20px;
  margin-top: 12px;
}
.doc-steps li {
  margin: 10px 0;
}
.doc-callout {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(248, 169, 0, 0.34);
  background: var(--gold-soft);
  color: var(--ink);
}
.doc-callout p,
.doc-callout li {
  color: var(--ink);
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--paper-soft);
  border: 1px solid rgba(12, 25, 44, 0.14);
}
.doc-table th,
.doc-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(12, 25, 44, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}
.doc-table th {
  color: var(--ink);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.42);
}
.doc-table td {
  color: var(--ink-soft);
}
.doc-faq details {
  border: 1px solid rgba(12, 25, 44, 0.14);
  background: var(--paper-soft);
  padding: 16px 18px;
  margin-top: 10px;
}
.doc-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.doc-faq p {
  margin-top: 10px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy { min-height: 0; }
  h1 { font-size: 54px; }
  .hero-board { min-height: 0; }
  .section-head,
  .philosophy { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .copy { justify-self: center; }
}

@media (max-width: 640px) {
  .topbar {
    padding: 16px 18px;
    gap: 16px;
  }
  .langs { display: none; }
  main { padding: 34px 18px 66px; }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .hero { padding-bottom: 42px; }
  .brand-field {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .brand-mark {
    width: 92px;
    height: 92px;
  }
  .brand-field h2 { font-size: 27px; }
  .signal-row { grid-template-columns: repeat(2, 1fr); }
  .signal { border-bottom: 1px solid rgba(12, 25, 44, 0.12); }
  .signal:nth-child(2n) { border-right: 0; }
  .index-item {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }
  .index-kind { grid-column: 1 / -1; }
  .index-desc { white-space: normal; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 32px; }
  .catalog-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 20px;
  }
  .catalog-text { grid-column: 1 / -1; }
  .catalog-meta { grid-row: 1; grid-column: 2; }
  .panel { min-height: 230px; padding: 22px; }
  .panel h3 { font-size: 24px; }
  .mini-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }
  .mini-row h3 { grid-column: 1; }
  .mini-row p { grid-column: 1 / -1; }
  .mini-row .status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .philosophy-title { min-height: 220px; padding: 26px; }
  .philosophy-title h2 { font-size: 34px; }
  .philosophy-copy { padding: 26px 0; font-size: 16px; }
  .doc-hero h1 { font-size: 40px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-table { display: block; overflow-x: auto; }
  .topbar .langs { display: flex; }
  footer { padding: 30px 18px; }
  .foot-nav { gap: 16px; }
}
