:root {
  --ru-red: #d21920;
  --ru-blue: #14388a;
  --ink: #0a0d13;
  --ink-soft: #111722;
  --canvas: #f4f5f7;
  --surface: #ffffff;
  --surface-blue: #eef3ff;
  --line: #d7deea;
  --line-dark: rgba(255, 255, 255, .16);
  --text: #141922;
  --muted: #5b6678;
  --success: #176b4b;
  --danger: #9f252b;
  --focus: #005fcc;
  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 16px; background: white; color: var(--ink); border: 2px solid var(--focus); }
.skip-link:focus { top: 16px; }

.site-header {
  width: var(--shell);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(10, 13, 19, .12);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span, .footer-brand span { display: grid; }
.brand strong, .footer-brand strong { font-size: 1rem; letter-spacing: .02em; }
.brand small, .footer-brand small { color: var(--muted); font-size: .69rem; letter-spacing: .12em; }
.site-header nav { display: flex; gap: 28px; font-size: .92rem; font-weight: 600; }
.site-header nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-color: var(--ru-blue); }

.hero {
  width: var(--shell);
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding: 88px 0 96px;
}
.eyebrow { margin: 0 0 16px; color: var(--ru-blue); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--success); }
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.13; }
h1 { max-width: 830px; margin-bottom: 28px; font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 850; letter-spacing: -.065em; }
h1 > span, h1 strong { display: block; white-space: nowrap; }
h1 strong { color: var(--ru-blue); }
.lead { max-width: 700px; margin: 0; color: #414c5c; font-size: clamp(1.04rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: var(--radius-small); font-weight: 800; text-decoration: none; }
.button-primary { color: white; background: var(--ru-red); }
.button-primary:hover { background: #b9151b; }
.button-quiet { color: var(--ru-blue); border: 1px solid #aebbd7; background: white; }
.button-disabled { color: #747c89; background: #e3e6eb; cursor: not-allowed; text-align: center; }
.release-note { max-width: 700px; margin: 26px 0 0; padding-left: 14px; color: var(--muted); border-left: 3px solid var(--ru-red); font-size: .92rem; }

.ticket { position: relative; padding: 28px; overflow: hidden; border: 1px solid #cfd6e1; border-radius: var(--radius-large); background: var(--surface); box-shadow: 0 24px 70px rgba(22, 36, 65, .12); }
.ticket-brand { display: flex; align-items: center; gap: 12px; }
.ticket-brand span { display: grid; }
.ticket-brand strong { font-size: 1.02rem; }
.ticket-brand small { color: var(--muted); font-size: .78rem; }
.handoff-line { display: grid; grid-template-columns: 1fr 1fr; height: 3px; margin: 24px -28px 30px; }
.handoff-line span:first-child { background: var(--ru-red); }
.handoff-line span:last-child { background: var(--ru-blue); }
.ticket > p { margin: 0; color: var(--muted); font-size: .84rem; text-align: center; }
.ticket-code { margin: 6px 0 18px; color: var(--ink); font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 850; letter-spacing: .08em; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-state { width: fit-content; margin: 0 auto 26px; padding: 8px 12px; border-radius: 999px; color: #71450b; background: #fff3d8; font-size: .82rem; font-weight: 700; }
.ticket-state span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #a5650b; }
.ticket ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .76rem; text-align: center; }

.proof { width: var(--shell); margin: 0 auto 32px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cbd2dd; border-bottom: 1px solid #cbd2dd; }
.proof div { display: grid; gap: 3px; padding: 20px 18px; border-right: 1px solid #cbd2dd; }
.proof div:last-child { border-right: 0; }
.proof strong { font-size: .9rem; }
.proof span { color: var(--muted); font-size: .76rem; }

.section { width: var(--shell); margin: 0 auto; padding: 112px 0; }
.section-heading { max-width: 780px; margin-bottom: 48px; }
h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 4.2vw, 4.5rem); font-weight: 830; letter-spacing: -.05em; }
h3 { margin-bottom: 10px; font-size: 1.35rem; }

.process { border-top: 1px solid #cbd2dd; }
.steps { margin: 0; padding: 0; border-top: 1px solid #9faabc; list-style: none; }
.steps li { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid #cbd2dd; }
.steps > li > span { color: var(--ru-red); font-size: 1rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 8px; }
.steps p { max-width: 650px; margin: 0; color: var(--muted); }

.boundary { width: 100%; padding-left: max(20px, calc((100vw - 1180px) / 2)); padding-right: max(20px, calc((100vw - 1180px) / 2)); color: white; background: var(--ink); }
.boundary .eyebrow { color: #aebee9; }
.boundary h2, .boundary h3 { color: white; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); }
.permission { padding: clamp(28px, 5vw, 56px); }
.permission + .permission { border-left: 1px solid var(--line-dark); }
.permission-label { width: fit-content; margin: 0 0 26px; padding: 6px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.permission-yes .permission-label { color: #7bd2ab; }
.permission-no .permission-label { color: #f2a4a8; }
.permission ul { margin: 22px 0 0; padding: 0; list-style: none; }
.permission li { position: relative; padding: 12px 0 12px 28px; color: #c9d0dc; border-top: 1px solid rgba(255,255,255,.1); }
.permission li::before { position: absolute; left: 2px; color: #7bd2ab; content: "✓"; font-weight: 900; }
.permission-no li::before { color: #f2a4a8; content: "×"; }

.compare { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.compare-table { border-top: 2px solid var(--ink); }
.compare-table > div { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid #cbd2dd; }
.compare-table span, .compare-table strong { font-size: .84rem; }
.compare-table strong { color: var(--ru-blue); }
.compare-head { color: var(--muted); font-weight: 700; }

.release { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 56px; border-radius: var(--radius-large); background: var(--surface-blue); }
.release h2 { max-width: 760px; margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 3.2rem); }
.release p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); }

.faq-list { border-top: 1px solid #9faabc; }
.faq-list details { border-bottom: 1px solid #cbd2dd; }
.faq-list summary { padding: 24px 4px; cursor: pointer; font-size: 1.08rem; font-weight: 750; }
.faq-list p { max-width: 760px; margin: 0; padding: 0 4px 24px; color: var(--muted); }

.policy-page { width: min(860px, calc(100vw - 40px)); margin: 0 auto; padding: 96px 0 112px; }
.policy-page > h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 5.4rem); }
.policy-page > .lead { padding-bottom: 56px; border-bottom: 1px solid #cbd2dd; }
.policy-page section { padding: 46px 0; border-bottom: 1px solid #cbd2dd; }
.policy-page section h2 { margin-bottom: 18px; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.025em; }
.policy-page section p, .policy-page section li { color: #414c5c; }
.policy-page section ul { margin: 0; padding-left: 1.25rem; }
.policy-page section li + li { margin-top: 9px; }

footer { width: var(--shell); min-height: 150px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid #cbd2dd; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: .8rem; }
.footer-links a { color: var(--muted); }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .ticket { max-width: 560px; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid #cbd2dd; }
  .boundary-grid, .compare { grid-template-columns: 1fr; }
  .permission + .permission { border-left: 0; border-top: 1px solid var(--line-dark); }
  .release { grid-template-columns: auto 1fr; }
  .release .button { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  :root { --shell: calc(100vw - 32px); }
  .site-header { min-height: 72px; }
  .brand img { width: 40px; height: 40px; }
  .hero { min-height: auto; gap: 52px; padding: 56px 0 72px; }
  h1 { font-size: clamp(2.45rem, 10.8vw, 2.65rem); }
  h1 > span { white-space: normal; }
  .hero-actions .button { width: 100%; }
  .ticket { padding: 22px; }
  .handoff-line { margin-left: -22px; margin-right: -22px; }
  .ticket-code { font-size: 2.2rem; letter-spacing: .04em; }
  .ticket ul { grid-template-columns: 1fr; text-align: left; }
  .proof { grid-template-columns: 1fr; }
  .proof div, .proof div:nth-child(2) { border-right: 0; border-bottom: 1px solid #cbd2dd; }
  .proof div:last-child { border-bottom: 0; }
  .section { padding: 80px 0; }
  .steps li { grid-template-columns: 50px 1fr; gap: 14px; }
  .boundary { padding-left: 16px; padding-right: 16px; }
  .compare-table { overflow-x: auto; }
  .compare-table > div { min-width: 660px; }
  .release { padding: 28px; grid-template-columns: 1fr; }
  footer { padding: 36px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
