@font-face { font-family: 'Fira C'; font-weight: 500; font-display: swap; src: url(fonts/fira-c-Medium.woff) format('woff'); }
@font-face { font-family: 'Fira C'; font-weight: 600; font-display: swap; src: url(fonts/fira-c-SemiBold.woff) format('woff'); }
@font-face { font-family: 'Fira C'; font-weight: 800; font-display: swap; src: url(fonts/fira-c-ExtraBold.woff) format('woff'); }

:root {
  --blue: #005BAB; --sky: #24ABE2; --on-blue: #fff;
  --bg: #F3F6FA; --surface: #FFFFFF; --text: #0F1B2A; --muted: #5B6878; --line: #E1E7EF;
  --btn-ghost: #E8F1FB; --btn-ghost-text: #005BAB; --focus: #24ABE2; --shadow: 0 1px 2px rgba(15,27,42,.06), 0 4px 16px rgba(15,27,42,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1320; --surface: #121F31; --text: #E8EEF6; --muted: #93A2B5; --line: #22324A;
    --btn-ghost: #17304F; --btn-ghost-text: #8FD0F2; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1320; --surface: #121F31; --text: #E8EEF6; --muted: #93A2B5; --line: #22324A;
  --btn-ghost: #17304F; --btn-ghost-text: #8FD0F2; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 500 16px/1.4 'Fira C', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
       max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }

/* ── шапка = лицо визитки ── */
.hero { position: relative; overflow: hidden; background: var(--blue); color: var(--on-blue);
        padding: calc(16px + env(safe-area-inset-top)) 20px 28px; min-height: 300px; }
.hero-mark { position: absolute; width: 270px; height: 270px; left: -118px; top: 44px; pointer-events: none; }
.hero-top { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.wordmark { display: block; width: auto; height: 19px; margin-bottom: 16px; }
.tools { display: flex; gap: 8px; }
.chip { min-width: 44px; height: 36px; padding: 0 12px; border-radius: 18px; background: rgba(255,255,255,.16); color: #fff;
        font-weight: 600; font-size: 14px; letter-spacing: .04em; display: inline-flex; align-items: center; justify-content: center; }
.chip.icon { padding: 0; width: 36px; min-width: 36px; }
.chip:hover { background: rgba(255,255,255,.26); }
.hero-text { position: relative; margin-left: 44%; padding-top: 6px; }
.co { font-weight: 600; font-size: 17px; line-height: 1.2; }
.cats { margin-top: 10px; font-size: 13.5px; line-height: 1.35; color: #D6ECFA; }
h1 { margin-top: 26px; font-weight: 800; line-height: 1; }
h1 .first { display: block; font-weight: 500; font-size: 19px; margin-bottom: 4px; }
h1 .last { display: block; font-size: clamp(22px, 8vw, 34px); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }

/* ── действия ── */
main { padding: 20px 16px 8px; }
.primary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; padding: 0 10px; white-space: nowrap; border-radius: 14px;
       font-weight: 600; font-size: 15.5px; text-align: center; }
.btn.solid { background: var(--blue); color: #fff; }
.btn.solid:hover { background: #004E93; }
.btn.ghost { background: var(--btn-ghost); color: var(--btn-ghost-text); }
.phone { text-align: center; margin: 12px 0 4px; font-weight: 600; font-size: 20px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
h2 { margin: 22px 4px 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px; border-radius: 14px; background: var(--surface);
        box-shadow: var(--shadow); border: 1px solid var(--line); font-weight: 600; font-size: 16px; text-align: left; }
.tile svg { width: 28px; height: 28px; }
.tile:hover { border-color: var(--sky); }
.list { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; font-weight: 600; overflow-wrap: anywhere; }
.list a svg { color: var(--blue); width: 22px; height: 22px; }
:root[data-theme="dark"] .list a svg { color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .list a svg { color: var(--sky); } }
.list small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; padding-left: 8px; }
footer { padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 13px; }

/* ── WeChat ── */
dialog { margin: auto; width: min(92vw, 380px); border: 0; border-radius: 18px; padding: 22px 20px 18px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(5,12,22,.55); }
dialog h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
dialog p { color: var(--muted); }
dialog .big { color: var(--text); font-size: 24px; font-weight: 600; margin: 6px 0 16px; font-variant-numeric: tabular-nums; }
dialog .wqr { display: block; width: 220px; height: 220px; margin: 0 auto 14px; background: #fff; padding: 10px; border-radius: 12px; }
dialog .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

@media (max-width: 360px) {
  .hero-text { margin-left: 42%; }
  .hero-mark { left: -128px; }
  .btn { font-size: 14.5px; }
  .co { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .tile, .chip { transition: background-color .15s, border-color .15s; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.c-tg { color: #26A5E4; } .c-vb { color: #7360F2; } .c-wa { color: #25D366; } .c-wc { color: #07C160; }
.center { text-align: center; }
.btn.wide { display: flex; width: 100%; margin-bottom: 10px; }
