* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--bg); font: 15px/1.5 var(--runway-interface); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.runway-display { font-family: var(--runway-display); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; padding: .6rem .9rem; border-radius: .5rem; color: var(--on-accent); background: var(--cobalt); }
.skip-link:focus { top: 1rem; }
:where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.35rem 2.1rem; }
.wordmark { color: var(--ink); font-weight: 600; letter-spacing: .22em; text-decoration: none; text-transform: uppercase; }
.wordmark span { color: var(--cobalt); }
.primary-nav { display: flex; align-items: center; gap: .35rem; }
.nav-tab, .quiet-link { border: 0; padding: .5rem .85rem; color: var(--dim); background: transparent; cursor: pointer; text-decoration: none; }
.nav-tab { border-radius: 999px; }
.nav-tab.is-active { color: var(--ink); background: var(--cobalt-soft); }
.quiet-link { text-decoration: underline; text-underline-offset: .2rem; }
#theme-control { margin-left: .45rem; }
.language-control { display: inline-flex; align-items: center; }
.language-control select { width: min(10.5rem, 28vw); border: 1px solid var(--hair); border-radius: 999px; padding: .42rem 1.9rem .42rem .75rem; color: var(--dim); background: var(--panel); cursor: pointer; }
.language-control select:hover { color: var(--ink); }
#main { flex: 1; display: grid; place-items: center; width: 100%; padding: .5rem 1.5rem 2rem; }
.view { width: min(100%, 41.25rem); }
.view.is-active { display: flex; flex-direction: column; align-items: center; }
.content-view { align-items: stretch !important; }
.content-view h1 { align-self: flex-start; margin: 0; font-size: 1.65rem; font-weight: 500; }
.lead { margin: .2rem 0 1.35rem; color: var(--dim); font-size: .9rem; }
.sender-panel { width: 100%; text-align: center; }
#drop-target { display: grid; place-items: center; }
.runway-ring { width: min(20rem, 78vw); transition: transform 160ms ease, filter 160ms ease, --runway-progress 360ms cubic-bezier(.22, .61, .36, 1); }
.runway-ring:hover { transform: translateY(-2px); filter: drop-shadow(0 .65rem 1.3rem color-mix(in srgb, var(--ink) 10%, transparent)); }
.runway-ring.is-dragging { transform: scale(1.025); background: radial-gradient(closest-side, var(--cobalt-soft) calc(100% - 3px), transparent calc(100% - 2px)), conic-gradient(var(--cobalt) 360deg, var(--hair) 0); }
.folder-intake { margin: 1.05rem 0 0; font-size: .84rem; }
.receiver-line { min-height: 3.2rem; margin-top: .9rem; display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--dim); }
.current-transfers { width: 100%; min-height: 1px; margin-top: 1.4rem; border-top: 1px solid var(--hair); text-align: left; }
.current-transfers:empty { border-top: 0; }
.runway-transfer { flex-wrap: wrap; }
.runway-transfer > .runway-link { margin-left: .3rem; }
.sender-fineprint { max-width: 33rem; margin: 1.55rem auto 0; color: var(--dim); font-size: .79rem; line-height: 1.65; }
.sender-fineprint strong { color: var(--ink); }
.status-message { min-height: 1.5rem; margin: .8rem 0 0; color: var(--dim); font-size: .84rem; }
.status-message.is-error { color: var(--red); }
.pairing-panel { width: 100%; display: grid; place-items: center; }
.pairing-card { width: min(28.75rem, 100%); padding: 1.2rem 2rem 1.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pairing-card h2 { margin: 0; font-size: 1.55rem; font-weight: 500; }
.pairing-ring { width: min(17.5rem, 72vw); aspect-ratio: 1; margin-top: .7rem; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; background: radial-gradient(closest-side, var(--bg) calc(100% - 3px), transparent calc(100% - 2px)), conic-gradient(var(--cobalt) var(--pairing-progress, 300deg), var(--hair) 0); }
.qr-box { width: 10.5rem; height: 10.5rem; padding: .75rem; border: 1px solid var(--hair); border-radius: .65rem; background: #fff; }
.qr-box canvas { display: block; width: 100% !important; height: 100% !important; }
.pairing-expiry { color: var(--dim); font-size: .76rem; }
.pairing-steps { align-self: stretch; margin: 1.3rem 0 0; padding: 0; list-style: none; counter-reset: pairing; text-align: left; }
.pairing-steps li { counter-increment: pairing; display: grid; grid-template-columns: 1.7rem 1fr; gap: .45rem; margin-top: .45rem; }
.pairing-steps li::before { content: counter(pairing); color: var(--cobalt); font: 700 .75rem var(--runway-utility); }
.pairing-steps em { color: var(--dim); font-style: normal; }
.pairing-fallback { margin-top: 1.15rem; }
.pairing-code-panel { width: 100%; margin-top: 1.15rem; color: var(--dim); }
.pairing-code { margin: 0 0 .65rem; color: var(--ink); font: 700 clamp(1.6rem, 7vw, 2.15rem) var(--runway-utility); letter-spacing: .14em; }
.gate-card { width: min(36rem, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.gate-ring { width: min(9rem, 38vw); aspect-ratio: 1; margin-bottom: 1.55rem; border-radius: 50%; background: radial-gradient(closest-side, var(--bg) calc(100% - 2px), transparent calc(100% - 1.5px)), conic-gradient(from 0deg, var(--cobalt) 0 58deg, var(--hair) 58deg 360deg); }
.gate-card h2 { margin: .6rem 0 0; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 500; line-height: 1.3; }
.gate-lead { max-width: 34rem; margin: .9rem 0 0; color: var(--dim); font-size: .95rem; line-height: 1.65; }
.gate-note { margin: 1rem 0 0; color: var(--ink); font-size: .84rem; }
.button-row { display: flex; justify-content: center; gap: .75rem; margin-top: .9rem; }
.primary-button, .secondary-button { border: 0; border-radius: .65rem; padding: .65rem 1rem; cursor: pointer; }
.primary-button { color: var(--on-accent); background: var(--cobalt); font-weight: 600; }
.secondary-button { color: var(--ink); background: var(--cobalt-soft); }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .55; }
.history-list, .device-list { width: 100%; }
.history-day { margin: 1rem 0 .35rem; color: var(--dim); font: .72rem var(--runway-utility); letter-spacing: .16em; text-transform: uppercase; }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 1rem; padding: .75rem .1rem; border-bottom: 1px solid var(--hair); }
.history-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { color: var(--dim); font-size: .78rem; }
.history-status { color: var(--dim); font-size: .82rem; white-space: nowrap; }
.history-status.is-ok { color: var(--ok); }
.history-status.is-queued { color: var(--amber); }
.history-status.is-error { color: var(--red); }
.history-footer { display: flex; justify-content: space-between; margin-top: 1rem; color: var(--dim); font-size: .79rem; }
.empty-copy { padding: 1.2rem 0; color: var(--dim); }
.device-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1.05rem .1rem; border-bottom: 1px solid var(--hair); }
.device-actions { display: flex; gap: .75rem; }
.device-name { font-size: 1.05rem; font-weight: 600; }
.device-meta { color: var(--dim); font-size: .78rem; }
.direction-badge { padding: .25rem .65rem; border-radius: 999px; color: var(--cobalt); background: var(--cobalt-soft); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.danger { color: var(--red); }
.device-note { max-width: 35rem; margin: 1.1rem 0; color: var(--dim); font-size: .82rem; }
.slot-limit-note { margin: .55rem 0 0; color: var(--dim); font-size: .78rem; }
#pair-another { align-self: flex-start; }
footer { padding: 1rem 2rem 1.35rem; border-top: 1px solid var(--hair); color: var(--dim); font-size: .75rem; text-align: center; }
.footer-row { display: flex; justify-content: center; gap: 1.1rem; flex-wrap: wrap; }
.footer-row + .footer-row { margin-top: .45rem; }
footer button, footer a { border: 0; padding: 0; color: var(--dim); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: .2rem; }
.love { display: inline-flex; align-items: center; gap: .35rem; font-style: normal; }
dialog { width: min(26rem, calc(100vw - 2rem)); border: 1px solid var(--hair); border-radius: 1rem; padding: 2rem; color: var(--ink); background: var(--bg); box-shadow: 0 1rem 3rem color-mix(in srgb, var(--ink) 20%, transparent); }
dialog::backdrop { background: color-mix(in srgb, var(--ink) 24%, transparent); }
dialog h2 { margin: 0 0 .7rem; font-weight: 500; }
dialog p { color: var(--dim); }
.dialog-close { position: absolute; right: 1rem; top: .7rem; border: 0; color: var(--dim); background: none; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 50rem) {
  .site-header { align-items: flex-start; padding: 1rem; }
  .primary-nav { justify-content: flex-end; flex-wrap: wrap; }
  .desktop-nav-link { display: none; }
  #theme-control { width: 100%; display: flex; justify-content: flex-end; }
  #main { padding-inline: 1rem; }
}
@media (max-width: 34rem) {
  .site-header { flex-direction: column; align-items: stretch; gap: .7rem; }
  .wordmark { text-align: center; }
  .primary-nav { justify-content: center; }
  #theme-control { justify-content: center; margin: .2rem 0 0; }
  .language-control select { width: min(11rem, 48vw); }
  .history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .history-row > .runway-link { grid-column: 2; }
  .history-status { max-width: 9rem; white-space: normal; text-align: right; }
  .device-row { grid-template-columns: minmax(0, 1fr) auto; }
  .device-actions { grid-column: 2; }
  .direction-badge { max-width: 9rem; white-space: normal; text-align: center; }
  .button-row { flex-wrap: wrap; }
  .device-actions { flex-wrap: wrap; justify-content: flex-end; }
  footer { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .runway-ring { transition: none; }
}

/* Landing (issue #56): маркетинговые секции вокруг сендера. Только токены Runway. */
html { scroll-behavior: smooth; }
.send-hero { width: 100%; min-height: calc(100svh - 11rem); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-intro { margin: .3rem 0 1.7rem; text-align: center; }
.hero-intro h1 { margin: 0; font-size: clamp(1.75rem, 4.6vw, 2.4rem); font-weight: 500; line-height: 1.22; }
.hero-sub { max-width: 37rem; margin: .9rem auto 0; color: var(--dim); font-size: .95rem; line-height: 1.65; }
body.is-paired .hero-intro { display: none; }
.scroll-cue { margin-top: 2.1rem; font-size: .84rem; }
.landing { width: 100%; margin-top: 1.6rem; }
.landing > section { border-top: 1px solid var(--hair); padding: 3.3rem 0 3.7rem; }
.eyebrow { margin: 0; color: var(--cobalt); font: 700 .72rem var(--runway-utility); letter-spacing: .18em; text-transform: uppercase; }
.landing h2 { margin: .6rem 0 0; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 500; line-height: 1.3; }
.section-lead { max-width: 36rem; margin: .9rem 0 0; color: var(--dim); }
.steps { margin: 2.3rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2.4rem; }
.step h3 { margin: 1.05rem 0 0; font-size: 1.02rem; font-weight: 600; }
.step p { margin: .45rem 0 0; color: var(--dim); font-size: .88rem; line-height: 1.6; }
.step p em { color: var(--ok); font-style: normal; font-weight: 600; }
.step-ring { --p: 0deg; width: 3.6rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--bg) calc(100% - 2px), transparent calc(100% - 1.5px)), conic-gradient(var(--cobalt) var(--p), var(--hair) 0); }
.step-ring--drop { --p: 223deg; }
.step-ring--saved { --p: 360deg; }
.step-qr { display: grid; grid-template-columns: repeat(2, .55rem); gap: .3rem; }
.step-qr i { display: block; aspect-ratio: 1; background: var(--ink); border-radius: 1px; }
.step-qr i:last-child { background: var(--cobalt); }
.step-glyph { color: var(--cobalt); font-size: 1.35rem; line-height: 1; }
.step-glyph--ok { color: var(--ok); font-weight: 700; }
.ledger { margin: 1.6rem 0 0; }
.ledger-row { display: grid; grid-template-columns: 13rem 1fr; gap: .4rem 1.6rem; padding: 1.15rem 0; border-bottom: 1px solid var(--hair); }
.ledger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger-row dt { font-weight: 600; }
.ledger-row dd { margin: 0; color: var(--dim); line-height: 1.6; }
.receipt-vignette { margin: 2rem 0 .3rem; display: flex; justify-content: flex-end; }
.vignette-card { width: min(21rem, 100%); padding: .85rem 1rem .95rem; border: 1px solid var(--hair); border-radius: .8rem; background: var(--panel); text-align: left; box-shadow: 0 .4rem 1.2rem color-mix(in srgb, var(--ink) 6%, transparent); }
.vignette-head { display: flex; align-items: center; gap: .45rem; color: var(--dim); font-size: .72rem; }
.vignette-dot { flex: none; width: .8rem; height: .8rem; border-radius: 50%; background: radial-gradient(closest-side, var(--panel) calc(100% - 2px), transparent calc(100% - 1.5px)), conic-gradient(var(--cobalt) 360deg, var(--hair) 0); }
.vignette-app { font-weight: 600; letter-spacing: .04em; }
.vignette-time { margin-left: auto; }
.vignette-file { margin-top: .55rem; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vignette-status { margin-top: .15rem; color: var(--ok); font-size: .84rem; font-weight: 600; }
.privacy-copy { max-width: 38rem; }
.privacy-copy p { margin: .95rem 0 0; color: var(--dim); line-height: 1.65; }
.privacy-copy strong { color: var(--ink); }
.channels { margin: 1.7rem 0 0; }
.channel-row { display: flex; align-items: baseline; gap: 1.2rem; padding: 1.05rem 0; border-bottom: 1px solid var(--hair); }
.channel-copy { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.channel-name { font-weight: 600; }
.channel-desc { color: var(--dim); font-size: .84rem; }
.channel-status { margin-left: auto; color: var(--dim); font: 600 .74rem var(--runway-utility); letter-spacing: .03em; white-space: nowrap; }
.channel-status--here { padding: .3rem .7rem; border-radius: 999px; color: var(--cobalt); background: var(--cobalt-soft); }
.channels-note { max-width: 36rem; margin: 1.3rem 0 0; color: var(--dim); font-size: .8rem; line-height: 1.6; }
.faq-list { margin-top: 1.4rem; }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary { padding: 1.05rem 1.6rem 1.05rem 0; position: relative; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); color: var(--cobalt); font: 400 1.15rem var(--runway-utility); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { max-width: 37rem; margin: 0 0 1.2rem; color: var(--dim); line-height: 1.65; }
.landing > .closing { text-align: center; padding-bottom: 4rem; }
.closing-line { margin: 0 0 .9rem; font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 500; }
@media (max-width: 50rem) {
  .steps { grid-template-columns: 1fr; gap: 1.7rem; }
  .step { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1.1rem; }
  .step .step-ring { width: 3.2rem; grid-row: 1 / span 2; }
  .step h3 { margin-top: .1rem; }
  .step h3, .step p { grid-column: 2; }
  .ledger-row { grid-template-columns: 1fr; }
  .receipt-vignette { justify-content: flex-start; }
  .landing > section { padding: 2.5rem 0 2.9rem; }
}
@media (max-width: 34rem) {
  .channel-row { flex-wrap: wrap; gap: .55rem 1rem; }
}
