/* Corbit landing. Brand tokens: docs/brand/brandbook (light and dark themes, WCAG AA pairs).
   One accent (#F4502C): the primary button, the logo dot and one callout. Text never uses the pure accent. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+2011, U+00A9, U+00AB, U+00B0-00B1, U+00B7, U+00BB, U+00D7, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2030, U+20AC, U+2122, U+2190, U+2192, U+2212;
}
/* JetBrains Mono (OFL, fonts/OFL-JetBrainsMono.txt): labels and numbers. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f5f4f0;
  --card: #ffffff;
  --text: #15171c;
  --muted: #5b6068;
  --line: #dad8d0;
  --field: #868b93;
  --accent: #f4502c;
  --on-accent: #15171c;
  --accent-text: #b93414;
  --ok: #17724f;
  --bad: #b42318;
  --user-bubble: #15171c;
  --user-text: #f5f4f0;
  --sans: "Golos Text", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Golos Text", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --card: #1b1e24;
    --text: #f2f1ec;
    --muted: #a3a7af;
    --line: #2c2f36;
    --field: #6d727b;
    --accent-text: #ff7a5c;
    --ok: #4cc79c;
    --bad: #ff8a7a;
    --user-bubble: #2c2f36;
    --user-text: #f2f1ec;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .88em; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo img { height: 30px; width: auto; }
.top nav { display: none; gap: 4px 24px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.top nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.top .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }

/* Buttons: orange fill, graphite text (brandbook: not white) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  background: var(--accent); color: var(--on-accent);
  font: 500 17px/1.2 var(--sans); text-decoration: none;
  border: 2px solid var(--accent); border-radius: 10px; cursor: pointer;
}
.btn:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }

/* Sections */
section { padding: 44px 0; border-top: 1px solid var(--line); }
.eyebrow { font: 400 13px/1.4 var(--mono); color: var(--muted); margin: 0 0 10px; letter-spacing: .02em; }
h1, h2, h3 { font-weight: 500; margin: 0; }
h2 { font-size: clamp(27px, 7vw, 36px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 10px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.005em; margin-bottom: 6px; }
.sub { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 38em; margin: 0 0 28px; }
.fine { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Hero */
.hero { padding: 28px 0 44px; border-top: 0; display: grid; gap: 36px; }
h1 { font-size: clamp(34px, 9.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 18px; }
.hero .sub { color: var(--muted); }
.cta { display: grid; gap: 12px; margin: 0 0 16px; }
.hero .fine { max-width: 34em; margin: 0; }

/* Example dialog: neutral colours on purpose, no Telegram look */
.dialog { margin: 0; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.msg { background: var(--bg); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 10px 14px; max-width: 90%; }
.msg b { font-weight: 500; }
.msg.me { justify-self: end; background: var(--user-bubble); color: var(--user-text); border-color: var(--user-bubble); border-radius: 12px 12px 4px 12px; }
.chat-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-btn { border: 1px solid var(--field); border-radius: 8px; padding: 6px 12px; font-size: 14px; background: var(--card); }
.dialog figcaption { margin-top: 10px; }

/* Calculator */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; }
.calc-in, .calc-out { padding: 20px; }
.calc-in { border-bottom: 1px solid var(--line); }
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
label, .label { display: block; font-weight: 500; margin: 0 0 8px; }
.value { font: 500 28px/1.2 var(--mono); letter-spacing: -.01em; margin-bottom: 6px; }
input[type=range] { width: 100%; height: 36px; margin: 0; accent-color: var(--text); }
select, input[type=number] {
  font: inherit; width: 100%; max-width: 220px; min-height: 48px; padding: 8px 12px;
  border: 1px solid var(--field); border-radius: 8px; background: var(--bg); color: var(--text);
}
label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 0; min-height: 44px; }
input[type=checkbox] { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--text); }
.field .fine { margin: 8px 0 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row.total { border-bottom: 0; padding-bottom: 4px; }
.row span:first-child { color: var(--muted); }
.row b { font-weight: 500; text-align: right; }
.row .big { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.row.total span:first-child { color: var(--text); font-weight: 500; }
.calc-note { margin: 16px 0 0; font-size: 15px; }

/* Cells: hairline grids, like a page of documentation */
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cells > * { background: var(--card); padding: 20px; }
.cells p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cells .k { font: 400 13px/1 var(--mono); color: var(--muted); display: block; margin-bottom: 12px; }

/* Audience */
.cols { display: grid; gap: 36px; }
.cols h3 { font-size: 22px; margin-bottom: 14px; }
.plain > li { padding: 14px 0; border-top: 1px solid var(--line); }
.plain > li:last-child { border-bottom: 1px solid var(--line); }
.plain b { font-weight: 500; }
.no-list > li { position: relative; padding-left: 22px; }
.no-list > li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

/* Money: facts */
.facts > * { padding: 20px; }
.facts p { color: var(--text); font-size: 17px; }

/* Early access */
.early p { max-width: 40em; font-size: 18px; }

/* How to */
.need { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 44em; }
.need b { font-weight: 500; }
.need p { margin: 0; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 13px/1 var(--mono); color: var(--muted); display: block; margin-bottom: 12px; }
.after { margin: 20px 0 0; }

/* Prices */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; }
table { width: 100%; border-collapse: collapse; }
table, tbody { display: block; }
thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
td { display: block; padding: 0; min-width: 0; }
td.num { white-space: normal; }
td::before { content: attr(data-label); display: block; font: 400 12px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
td.tier { grid-column: 1; grid-row: 1; font-size: 22px; font-weight: 500; margin-bottom: 8px; }
td.tier::before, td.price::before { display: none; }
td.price { grid-column: 2; grid-row: 1; text-align: right; font-weight: 500; font-size: 22px; }
td.price::after { display: block; margin-top: 2px; content: "в\00a0месяц"; font: 400 13px/1 var(--sans); color: var(--muted); }
.table-card .fine { margin: 16px 0 0; font-size: 15px; }
.offer { margin-top: 20px; border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; background: var(--card); max-width: 56em; }
.offer h3 { font-size: 21px; margin-bottom: 8px; }
.offer p { margin: 0; }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; min-height: 56px; font-size: 18px; font-weight: 500; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--muted); flex: none; }
details[open] > summary::after { content: "−"; }
.answer { padding: 0 0 18px; max-width: 42em; color: var(--muted); }
.answer p:last-child { margin-bottom: 0; }

/* Final call and footer */
.final { text-align: left; }
.final h2 { max-width: 20em; }
.final .btn { width: 100%; margin-top: 14px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; line-height: 1.5; display: grid; gap: 12px; }
footer a { color: var(--muted); text-decoration-color: var(--muted); }
footer p { margin: 0; }
.todo { border-bottom: 1px dashed var(--muted); }

/* Tablet and up */
@media (min-width: 640px) {
  .cta { display: flex; flex-wrap: wrap; }
  .cta .btn { min-width: 0; }
  .final .btn { width: auto; }
  .cells.two, .cells.four { grid-template-columns: 1fr 1fr; }
  table { display: table; }
  tbody { display: table-row-group; }
  thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  td.num { white-space: nowrap; }
  tr { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr 1fr; align-items: baseline; padding: 14px 0; }
  thead tr { padding: 14px 0 10px; border-bottom-color: var(--text); }
  th { text-align: left; font: 400 12px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-right: 12px; }
  td::before { display: none; }
  td.tier, td.price { grid-column: auto; grid-row: auto; font-size: 18px; margin: 0; }
  td.price { text-align: left; }
  td.price::after { content: none; }
  .cols { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .top { padding: 20px 0; }
  .top nav { display: flex; }
  .logo img { height: 34px; }
  section { padding: 72px 0; }
  .hero { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; padding: 48px 0 80px; }
  .sub { font-size: 20px; }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-in { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px; }
  .calc-out { padding: 28px; align-content: center; }
  .cells > * { padding: 28px; }
  .cells.four { grid-template-columns: repeat(4, 1fr); }
  .table-card { padding: 8px 28px 24px; }
  .offer { padding: 28px; }
}

.mt { margin-top: 24px; }
.row .num { white-space: normal; }
input[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
