:root { color-scheme: dark; --background: #080604; --accent: #e1b96e; --line: #cda153; --soft: #332312; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100vh; background: var(--background); color: #fff; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; font-weight: 500; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.icon { display: block; width: 23px; height: 23px; flex: 0 0 23px; }
.page { width: 100%; max-width: 450px; min-height: 100vh; margin: 0 auto; padding: 24px 0 28px; display: flex; flex-direction: column; justify-content: center; }
.hero { position: relative; width: 100%; aspect-ratio: 16 / 9; flex-shrink: 0; }
.hero-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-fallback { height: 100%; padding: 36px 22px; background: radial-gradient(ellipse at right, var(--soft), var(--background) 75%); }
.hero-fallback strong { font-size: 42px; line-height: 1.15; color: var(--accent); }
.hero-fallback p { margin-top: 18px; font-size: 16px; }
.hero-fallback small { display: block; margin-top: 8px; color: #b8b2b5; }
.content { width: 100%; padding: 0 20px; }
.routes { display: grid; gap: 12px; margin-top: 18px; }
.route { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 67px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); }
.route-copy { min-width: 0; }
.route-title { display: block; font-size: 15px; line-height: 1.35; }
.route-domain { display: block; margin-top: 4px; color: #a8a2a5; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.route .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--accent); opacity: .8; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.actions > a, .actions > button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 8px; background: #100d0f; border: 1px solid #30292d; border-radius: 10px; font-size: 13px; }
.address-card { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 88px; margin-top: 18px; padding: 15px 14px; border: 1px solid #30292d; border-radius: 13px; overflow: hidden; background: #0c090b; }
.address-card::before { content: ""; position: absolute; inset: 0 0 0 42%; z-index: -1; opacity: .55; background: linear-gradient(90deg, #0c090b, #0c090b33 55%), url("assets/hero.png") right 48% / 400px auto no-repeat; }
.address-title { color: #e6e1e3; font-size: 13px; }
.official-address { display: block; margin-top: 4px; color: var(--accent); font-size: 17px; letter-spacing: .2px; }
.copy-button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #ffffff33; border-radius: 10px; background: #0a070bba; }
.copy-button .icon { width: 20px; height: 20px; }
.copy-status { min-height: 18px; margin-top: 5px; color: var(--accent); font-size: 11px; text-align: center; }
.copy-fallback { margin: 7px 0 0; color: #c8c1c5; font-size: 12px; }
.copy-fallback input { display: block; width: 100%; min-height: 44px; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #100d0f; color: #fff; }
.contacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 16px 0 32px; }
.contacts a { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.icon-circle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #393034; border-radius: 50%; background: #080608; }
.icon-circle .icon { width: 22px; height: 22px; flex-basis: 22px; }
.footer { color: #918a8e; font-size: 11px; line-height: 1.8; text-align: center; }
.footer > p:first-child { margin-bottom: 4px; color: #c4bdc1; font-size: 12px; }
.footer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.bookmark-dialog { width: min(360px, calc(100% - 32px)); max-height: calc(100vh - 40px); margin: auto; padding: 25px 22px 22px; border: 1px solid var(--line); border-radius: 16px; background: #100c0e; color: #fff; overflow-y: auto; }
.bookmark-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; }
.bookmark-dialog h2 { padding-right: 26px; font-size: 20px; }
.bookmark-dialog > p { margin-top: 8px; color: #b8aeb5; font-size: 13px; }
.bookmark-dialog ul { display: grid; gap: 16px; margin: 22px 0; padding-left: 18px; }
.bookmark-dialog li { padding-left: 2px; color: #cfc5cb; font-size: 13px; }
.bookmark-dialog li strong { display: block; margin-bottom: 4px; color: #fff; }
.dialog-domain { display: block; padding: 12px; border-radius: 8px; background: var(--soft); color: var(--accent); font-size: 16px; text-align: center; overflow-wrap: anywhere; }
@media (hover: hover) {
  .route:hover, .actions > a:hover, .actions > button:hover, .copy-button:hover { border-color: var(--accent); background-color: var(--soft); }
  .contacts a:hover .icon-circle { border-color: var(--accent); color: var(--accent); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .route, .actions > a, .actions > button, .contacts a { transition: transform .2s ease, border-color .2s ease; }
  .route:hover, .actions > a:hover, .actions > button:hover, .contacts a:hover { transform: translateY(-2px); }
}
@media (max-width: 450px) {
  .page { padding-top: 0; }
  .content { padding: 0 12px; }
}
@media (max-width: 359px) {
  .content { padding: 0 10px; }
  .actions > a, .actions > button { gap: 5px; font-size: 12px; }
  .official-address { font-size: 16px; }
}

