/* sberdisk-bridge site. Neutral colours on purpose: not Sberbank's brand. */
:root {
  --bg: #fbfbfd; --fg: #1d1d24; --muted: #5d5f6e; --line: #e4e5ec;
  --card: #ffffff; --code: #f2f3f7; --accent: #3557d6; --accent-ink: #ffffff;
  --note: #fff6e0; --note-line: #f0d48a;
  --radius: 12px; --max: 1040px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111217; --fg: #e8e9ef; --muted: #9a9cab; --line: #2a2c36;
    --card: #181a21; --code: #1f2129; --accent: #7d97ff; --accent-ink: #0d0f16;
    --note: #2b2516; --note-line: #6b5a2a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 17px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--fg); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--fg); text-decoration: none; }
nav .lang { color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; font-weight: 600; font-size: 13px; line-height: 24px; }

/* Landing */
.hero { padding: 72px 0 40px; display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(20, 30, 80, .35); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line); color: var(--fg); background: var(--card); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.badge { display: inline-block; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 12px; }

.landing h2 { font-size: 28px; letter-spacing: -0.015em; margin: 64px 0 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; flex: 1; }
.card .tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 10px; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }
.principles div strong { display: block; }
.principles div { color: var(--muted); font-size: 15.5px; }
.principles div strong { color: var(--fg); font-size: 16.5px; }

/* Docs */
.doc { max-width: 860px; padding-top: 32px; padding-bottom: 32px; }
.doc h1 { font-size: 36px; letter-spacing: -0.02em; line-height: 1.15; }
.doc h2 { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
h1, h2, h3 { scroll-margin-top: 80px; }
blockquote, .note { margin: 20px 0; padding: 12px 18px; background: var(--note); border: 1px solid var(--note-line); border-radius: 10px; color: var(--fg); }
blockquote p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--code); padding: .12em .35em; border-radius: 5px; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; font-size: 14px; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 15px; margin: 16px 0; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--code); }
.highlight { background: none; }

.foot { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 20px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot p { margin: 6px 0; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  body { font-size: 16px; }
}

/* Each doc opens with an "English | Русский" line for GitHub; the header has the switch here. */
.doc > table:first-child { display: none; }
/* Feature tables in the docs have an empty "| | |" header row. */
thead:has(th:empty:first-child + th:empty:last-child) { display: none; }
