/* The budu landing. Brand: spec §8 (blue, lime, navy, white; Onest; pills; lowercase headings; flat, no gradients or shadows).
   Motion only where it answers the visitor or shows the product: UI feedback under 250 ms, transform and opacity only,
   nothing enters on scroll; all of it off under prefers-reduced-motion. */
@font-face { font-family: Onest; src: url(fonts/onest-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(fonts/onest-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; 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 {
  --blue: #2E6BFF; --lime: #D4FF1F; --navy: #0B1E5B; --white: #fff;
  --yellow: #FFC21A; --red: #D92D20; --orange: #FF7A1A;
  --ink-2: #44507A; --muted: #5B6B94; --line: #E6EAF5; --soft: #EEF2FF; --field: #D3DAEA; --tint: #F1F5FF;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --focus: var(--blue);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 18px/1.5 Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
p, dd, li { text-wrap: pretty; }
html:not(.js) [role="tablist"] { display: none; } /* without the script the first panel is the picture */
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.logo, .link-arrow, .link-plain, .foot-links a, .code pre { border-radius: 6px; } /* the focus ring's corners; pills keep their own */
.wrap { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--lime); color: var(--navy); font-weight: 700; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: one primary per screen, filled pills; press feedback 160 ms. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.link-arrow, .link-plain { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.link-plain { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn-lime:hover { background: #DDFF52; }
  .btn-navy:hover { background: #142A73; }
  .link-arrow:hover svg { transform: translateY(3px); }
}

/* Budik: lime ticket, navy face. */
.budik .body { fill: var(--lime); }
.budik .face { fill: var(--navy); }
.budik .st { fill: none; stroke: var(--navy); stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; }
.budik .eye, .exg { transform-box: fill-box; transform-origin: center; }
.exg { transform-origin: 50% 100%; }

/* Logo: the wordmark takes the text colour, the «!» takes --ex. */
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: inherit; flex: none; }
.logo-ru { height: 30px; width: auto; }
.logo-ru .wm { fill: currentColor; }
.logo .ex { fill: var(--ex, var(--blue)); }
.logo-en { display: inline-flex; align-items: center; gap: 6px; }
.logo-budik { width: 44px; height: auto; }
.logo-word { font-size: 31px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: -6px; }
.logo-ex { height: 21px; width: auto; margin-left: -3px; margin-top: -4px; overflow: visible; } /* the «!» springs out of its box */

/* Header: blue over the hero, white once the hero has scrolled away (landing.js). */
.top { position: sticky; top: 0; z-index: 50; isolation: isolate; color: var(--white); --ex: var(--lime); --focus: var(--lime); transition: color 200ms ease; }
.top.solid { color: var(--navy); --ex: var(--blue); --focus: var(--blue); }
/* The bar itself and its shadow are layers under the links: once the page scrolls they shrink to 56 px (transform
   only, the layout keeps 64), and the shadow shows once the bar turns white. */
.top::before, .top::after { content: ""; position: absolute; inset: 0; transform-origin: top; transition: transform 240ms var(--ease-out), background-color 200ms ease, opacity 200ms ease; pointer-events: none; }
.top::before { z-index: -1; background: var(--blue); }
.top::after { z-index: -2; opacity: 0; box-shadow: 0 1px 0 var(--line), 0 12px 28px -14px rgba(11,30,91,.28); }
.top.solid::before { background: var(--white); }
.top.solid::after { opacity: 1; }
.top.compact::before, .top.compact::after { transform: scaleY(.875); }
.top-in { transition: transform 240ms var(--ease-out); }
.top.compact .top-in { transform: translateY(-4px); }
.top .logo { transform-origin: left center; transition: transform 240ms var(--ease-out); }
.top.compact .logo { transform: scale(.92); }
.top-in { display: flex; align-items: center; gap: 8px; height: 64px; }
.links { display: none; margin-left: auto; gap: 2px; }
.links a { padding: 10px 14px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color 150ms ease; }
.lang { margin-left: auto; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-right: -12px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color 150ms ease; }
.login-long { display: none; }
@media (min-width: 560px) { .login-long { display: inline; } .login-short { display: none; } }
@media (hover: hover) and (pointer: fine) {
  .links a:hover, .lang:hover, .login:hover { background: rgba(255,255,255,.16); }
  .top.solid .links a:hover, .top.solid .lang:hover, .top.solid .login:hover { background: var(--soft); }
}
@media (min-width: 1080px) { .links { display: flex; } .lang { margin-left: 4px; } }

/* An iPhone, front on, sized by --w alone: the proportions of an iPhone 15 Pro (a 393 × 852 pt screen). A thin border of
   black glass around the screen, a thin titanium rim with a lit outer edge, the buttons on the sides, the Dynamic
   Island. The screen's corner and the rim's share one centre (outer radius = screen radius + border). Flat: rings of
   solid colour, no blur, no gradient. */
.phone { --w: 280px; --ti: #3A3D44; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * .017); border-radius: calc(var(--w) * .157); background: #050506;
  box-shadow: 0 0 0 calc(var(--w) * .002) #1E2024, 0 0 0 calc(var(--w) * .0075) var(--ti), 0 0 0 calc(var(--w) * .0075 + 1px) #8A8E97; }
.phone::before, .phone::after { content: ""; position: absolute; width: calc(var(--w) * .009); border-radius: calc(var(--w) * .003); background: var(--ti); }
.phone::before { left: calc(var(--w) * -.0145); top: 25%; height: 7%; box-shadow: 0 calc(var(--w) * .2) 0 var(--ti); } /* volume up, volume down */
.phone::after { right: calc(var(--w) * -.0145); top: 29%; height: 11%; } /* side button */
.phone .scr { position: relative; overflow: hidden; border-radius: calc(var(--w) * .14); aspect-ratio: 393 / 852; background: #000; isolation: isolate; container-type: inline-size; }
.phone .scr::after { content: ""; position: absolute; z-index: 3; left: 50%; top: 0; width: 31.8%; margin: 2.8% 0 0 -15.9%; aspect-ratio: 125 / 37; border-radius: 999px; background: #000; }
/* A screen: the status bar over the page's own top colour, the screenshot under it, the home indicator at the bottom. */
.screen { position: absolute; inset: 0; overflow: hidden; background: var(--top); color: var(--ink); }
.screen img { width: 100%; height: auto; }
.screen::after { content: ""; position: absolute; left: 50%; bottom: 2.1cqw; width: 34cqw; height: 1.3cqw; margin-left: -17cqw; border-radius: 999px; background: var(--home); }
.screen[data-top="blue"] { --top: #2F6BFF; --ink: #fff; }
.screen[data-top="lime"] { --top: #D4FF1F; --ink: #000; }
.screen[data-top="yellow"] { --top: #FFC21A; --ink: #000; }
.screen[data-top="red"] { --top: #DA2D21; --ink: #fff; }
.screen[data-top="navy"] { --top: #0F2053; --ink: #fff; }
.screen[data-top="white"] { --top: #fff; --ink: #000; }
.screen[data-top="green"] { --top: #1E5A46; --ink: #fff; } /* the demo organizer's page (brand-qr.webp) */
.screen[data-home="dark"] { --home: #000; }
.screen[data-home="light"] { --home: #fff; }
.sb { position: relative; height: 13.7cqw; font: 600 4.35cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sb span { position: absolute; left: 0; top: 5.3cqw; width: 33cqw; text-align: center; }
.sb svg { position: absolute; right: 9.5cqw; top: 5.9cqw; width: 18cqw; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.edge { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; } /* landing.js: the page has scrolled once this leaves */
/* Several screens in one phone (the story, the tabs) take turns. */
.shot { opacity: 0; transition: opacity 280ms var(--ease-out), visibility 0s linear 280ms; }
.shot.on { opacity: 1; visibility: visible; transition: opacity 280ms var(--ease-out), visibility 0s; }
.shot[hidden] { display: block; visibility: hidden; }

/* Hero */
.hero { position: relative; background: var(--blue); color: var(--white); overflow: hidden; --focus: var(--lime); }
.hero-in { display: grid; gap: 40px; padding-top: 40px; }
.hero h1 { font-size: clamp(42px, 11.4vw, 64px); line-height: .98; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.hero .lead { margin-top: 22px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; font-weight: 500; max-width: 30em; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero-art { position: relative; height: 420px; margin: 0 -16px; }
.hero-art .phone { position: absolute; }
.phone-front { --w: 232px; left: 50%; top: 16px; margin-left: -150px; z-index: 2; }
.phone-back { --w: 200px; left: 50%; top: 88px; margin-left: 30px; }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px; padding-top: 0; min-height: clamp(720px, calc(100svh - 64px), 880px); }
  .hero h1 { font-size: clamp(56px, 6.2vw, 80px); }
  :lang(en) .hero h1 { font-size: clamp(48px, 4.7vw, 68px); } /* «we handle tickets» is longer than «берём на себя» */
  .hero-copy { padding: 56px 0 72px; }
  .hero-art { height: 100%; min-height: 720px; margin: 0; align-self: stretch; }
  .phone-front { --w: 300px; left: auto; right: 190px; top: auto; bottom: 48px; margin: 0; }
  .phone-back { --w: 250px; left: auto; right: 6px; top: auto; bottom: -72px; margin: 0; }
}

/* Sections */
.sec { padding: 72px 0; }
@media (min-width: 960px) { .sec { padding: 112px 0; } }
.sec h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.sec-lead { margin-top: 18px; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.note { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 600; }

/* How it works: steps scroll by, the phone stays and swaps its screen. */
.story { margin-top: 48px; }
.steps { display: grid; gap: 56px; }
.step h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.step-n { margin-right: .4em; color: var(--blue); font-variant-numeric: tabular-nums; }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 28em; }
.phone-inline { --w: min(280px, 76vw); margin-top: 28px; }
.story-stage { display: none; }
/* Phones and tablets: the steps are cards in a row you swipe through, each with its own screen. */
@media (max-width: 959px) {
  .steps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(84%, 360px); scroll-snap-align: start; display: flex; flex-direction: column; padding: 24px 22px 0; border-radius: 28px; background: var(--soft); overflow: hidden; }
  .step p { font-size: 17px; }
  .phone-inline { --w: min(236px, 62vw); margin: 24px auto calc(var(--w) * -.62); } /* the card crops the phone's lower quarter */
}
@media (min-width: 768px) and (max-width: 959px) { .steps { margin: 0 -32px; padding: 0 32px 8px; scroll-padding: 0 32px; } }
@media (min-width: 960px) {
  .phone-inline { --w: 260px; }
  .js .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .js .steps { gap: 0; }
  /* The current step is navy with a blue number; the others step back in colour, not opacity, so they stay readable. */
  .js .step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
  .step h3, .step p, .step-n { transition: color 200ms ease; }
  .js .step:not(.on) h3, .js .step:not(.on) p, .js .step:not(.on) .step-n { color: var(--muted); }
  .js .phone-inline { display: none; }
  .js .story-stage { display: flex; justify-content: center; align-items: center; position: sticky; top: 64px; height: calc(100vh - 64px); }
  .phone-stage { --w: min(330px, 36vh); }
}
.phone-stage .shot { transform: scale(.985); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s linear 280ms; }
.phone-stage .shot.on { transform: none; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s; }

/* Ticket looks */
.ticket { background: var(--blue); color: var(--white); --focus: var(--lime); }
.ticket .sec-lead { color: var(--white); }
.ticket-in { display: grid; gap: 48px; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 32px; padding: 5px; border-radius: 999px; background: #1D52D6; }
.seg button { position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; color: var(--white); min-height: 48px; padding: 0 26px; border-radius: 999px; transition: color 200ms ease; }
.seg button[aria-selected="true"] { color: var(--navy); }
.seg-thumb { position: absolute; z-index: 0; left: 5px; top: 5px; bottom: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--white); transition: transform 240ms var(--ease-out); }
.seg[data-sel="1"] .seg-thumb { transform: translateX(100%); }
.ticket .list { --rule: rgba(255,255,255,.3); margin-top: 36px; max-width: 36em; }
@media (min-width: 520px) { .ticket .list { grid-template-columns: 1fr 1fr; } }
.ticket-art { position: relative; display: flex; justify-content: center; }
.ticket-art .phone { --w: min(300px, 78vw); }
@media (min-width: 960px) {
  .ticket-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
  .ticket-art .phone { --w: 330px; }
}

/* The door: navy like the scanner itself; the screen follows the tabs, which play by themselves while in view. */
.door { background: var(--navy); color: var(--white); --focus: var(--lime); }
.door .sec-lead { color: rgba(255,255,255,.85); }
.door-in { display: grid; gap: 48px; }
.door-art { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.phone-door { --w: min(300px, 78vw); }
.phone-door .shot, .phone-door .shot.on { transition: none; } /* like the scanner: the colour changes at once, no blend */
@media (prefers-reduced-motion: no-preference) { .phone-door .shot.on img { animation: scan-pop 180ms ease-out; } }
@keyframes scan-pop { from { transform: scale(1.04); } } /* the scanner's own result pop */
.door-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100%, 340px); }
.door-tabs i { flex: none; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--c); transition: background-color 200ms ease; }
.door-tabs button[aria-selected="true"] i { background: currentColor; }
.door-tabs .k0 { --c: var(--lime); } .door-tabs .k1 { --c: var(--yellow); } .door-tabs .k2 { --c: #FF6B5E; } .door-tabs .k3 { --c: var(--white); }
.door-tabs button { display: inline-flex; align-items: center; justify-content: center; appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--white); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.door-tabs button:active { transform: scale(.97); }
.door-tabs .k0[aria-selected="true"] { background: var(--lime); color: var(--navy); }
.door-tabs .k1[aria-selected="true"] { background: var(--yellow); color: var(--navy); }
.door-tabs .k2[aria-selected="true"] { background: var(--red); color: var(--white); }
.door-tabs .k3[aria-selected="true"] { background: var(--white); color: var(--navy); }
@media (max-width: 359px) { .door-tabs button { padding: 0 8px; font-size: 15px; white-space: nowrap; } .door-tabs i { margin-right: 6px; } } /* 320px: the longest label fits on one line */
.facts { display: grid; gap: 28px; margin-top: 40px; }
.facts dt { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.facts dd { margin-top: 6px; color: rgba(255,255,255,.82); font-size: 17px; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
@media (min-width: 960px) {
  .door-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 72px; }
  .phone-door { --w: 320px; }
}

/* The dashboard: a laptop around an HTML copy of the event page (apps/web). */
.cabinet-art { position: relative; margin-top: 48px; }
.laptop { max-width: 980px; margin: 0 auto; text-align: center; }
.lid { padding: 1.4%; border-radius: 22px; background: var(--navy); }
.lid .scr { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--white); container-type: inline-size; text-align: left; }
.base { position: relative; height: 16px; margin: 0 -5%; border-radius: 0 0 18px 18px; background: var(--navy); }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; margin-left: -8%; border-radius: 0 0 10px 10px; background: #26398A; }
@media (max-width: 959px) { .base { margin: 0 max(-5%, -16px); } } /* full-width laptop: the base stays inside the gutter */
/* The sign-in screen is real; its empty lower half is cropped by the card. */
.cabinet-login { margin-top: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 22px 0; border-radius: 28px; background: var(--soft); overflow: hidden; }
.cabinet-login .phone { --w: 220px; order: 2; margin: 18px 0 -62%; }
.cabinet-login .note { margin: 0; padding: 0; background: none; font-size: 15px; }
@media (min-width: 960px) {
  .cabinet-art { display: flex; align-items: flex-end; gap: 48px; }
  .laptop { flex: 1; max-width: 900px; margin: 0; }
  .cabinet-login { margin: 0 0 46px; flex: none; width: 240px; }
  .cabinet-login .phone { --w: 196px; margin-bottom: -150px; }
}
/* Rows of a term and its line: the dashboard's sections, the extras. */
.rows { display: grid; gap: 0 48px; margin-top: 56px; }
.rows > div { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.rows dt { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.rows dd { margin: 0; color: var(--ink-2); font-size: 17px; }
.rows-one { max-width: 880px; }
@media (min-width: 720px) { .rows > div { grid-template-columns: 13em minmax(0, 1fr); gap: 24px; align-items: baseline; } }
@media (min-width: 1080px) { .rows:not(.rows-one) { grid-template-columns: 1fr 1fr; } }

/* Your brand: the same full-screen QR in budu's look and in an organizer's, then the dashboard page that sets it. */
.brand-art { display: grid; gap: 56px; margin-top: 48px; }
.brand-pair { display: flex; justify-content: center; gap: 16px; }
.brand-pair figure { width: min-content; } /* as wide as its phone: the caption wraps under it */
.brand-pair .phone { --w: min(240px, calc(50vw - 24px)); }
.brand-art figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; font-weight: 600; text-align: center; text-wrap: balance; }
.brand-art .laptop { width: 100%; margin: 0 auto; }
.brand-art .lid img { width: 100%; height: auto; }
@media (min-width: 1180px) { /* side by side once the laptop gets 600 px; until then the phones stand above it */
  .brand-art { display: flex; align-items: flex-end; }
  .brand-pair { flex: none; gap: 24px; }
  .brand-pair .phone { --w: 220px; }
}

/* The mockup itself, sized in em off the screen width: 1em = 1/80 of it (a 1280 px design at 16 px). */
.app { font-size: 1.25cqw; height: 100%; display: flex; flex-direction: column; color: var(--navy); line-height: 1.4; }
.app svg { display: inline-block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; vertical-align: -.12em; }
.app-top { display: flex; align-items: center; gap: 1.4em; height: 4.2em; padding: 0 1.8em; border-bottom: 1px solid var(--line); font-size: 1em; }
.app-logo { display: inline-flex; align-items: center; gap: .35em; font-weight: 800; font-size: 1.45em; letter-spacing: -.03em; }
.app-logo i { font-style: normal; color: var(--blue); }
.app-budik { width: 1.7em; }
.app-org { font-weight: 700; padding-left: 1.2em; border-left: 1px solid var(--line); }
.app-sp { flex: 1; }
.app-mode { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; }
.app-mode i { width: 2.4em; height: 1.4em; border-radius: 999px; background: var(--field); position: relative; }
.app-mode i::after { content: ""; position: absolute; left: .2em; top: .2em; width: 1em; height: 1em; border-radius: 50%; background: var(--white); }
.app-user { color: var(--muted); }
.app-body { flex: 1; display: grid; grid-template-columns: 14em 1fr; min-height: 0; }
.app-nav { padding: 1.6em 1em; border-right: 1px solid var(--line); display: grid; align-content: start; gap: .25em; }
.app-nav li { padding: .55em .9em; border-radius: 999px; font-size: 1.05em; color: var(--ink-2); }
.app-nav li.on { background: var(--tint); color: var(--blue); font-weight: 600; }
.app-main { display: flex; flex-direction: column; gap: 1.5em; padding: 1.4em 2.6em; overflow: hidden; }
.app-back { display: inline-flex; align-items: center; gap: .25em; margin-bottom: -.75em; color: var(--blue); font-weight: 600; }
.app .app-back svg { width: 1.25em; height: 1.25em; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em 2em; }
.app-head > div { display: grid; gap: .5em; justify-items: start; }
.app-title { font-size: 2em; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.app-when { font-variant-numeric: tabular-nums; }
.app-when span { color: var(--muted); }
.app-pill { padding: .2em .75em; border-radius: 999px; background: var(--lime); font-size: .875em; font-weight: 600; }
.app-acts { display: flex; gap: .25em; }
.app-acts span { padding: .5em .75em; color: var(--blue); font-weight: 600; white-space: nowrap; }
.app-tabs { display: flex; gap: .25em; margin: -.5em -1em 0; }
.app-tabs span { padding: .7em 1em; border-radius: 999px; font-weight: 500; }
.app-tabs .on { background: var(--tint); color: var(--blue); font-weight: 600; }
.app-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75em; }
.app-kpis div { display: flex; flex-direction: column; gap: .1em; padding: 1em 1.25em; border: 1px solid var(--line); border-radius: 1.25em; }
.app-kpis .acc { border-color: var(--blue); }
.app-kpis span, .app-kpis small { color: var(--muted); font-size: .875em; }
.app-kpis b { font-size: 2em; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.app-status { margin-top: -.75em; color: var(--muted); font-size: .875em; }
.app-tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75em; margin-top: -.5em; }
.app-tariffs li { display: flex; flex-direction: column; gap: .75em; padding: 1.25em 1.5em; border: 1px solid var(--line); border-radius: 1.25em; }
.app-tariffs p { display: flex; justify-content: space-between; align-items: baseline; gap: .75em; }
.app-tariffs b { font-weight: 600; }
.app-tariffs p span { font-size: 1.25em; font-weight: 700; font-variant-numeric: tabular-nums; }
.app .app-fill { display: block; width: 100%; height: .5em; stroke: none; }
.app-fill rect { rx: .25em; }
.app-fill .track { fill: var(--line); }
.app-fill .held { fill: #C0D3FF; }
.app-fill .sold { fill: var(--blue); }
.app-tariffs dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; }
.app-tariffs dt { color: var(--muted); font-size: .8125em; }
.app-tariffs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* API */
.brand, .api, .more { padding-top: 0; }
.api-in { display: grid; gap: 48px; }
/* Plain lists (the ticket's features, the API's promises): a hairline over each item, no icons. */
.list { --rule: var(--line); display: grid; column-gap: 32px; margin-top: 32px; }
.list li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 17px; font-weight: 600; }
.code { min-width: 0; background: var(--navy); color: var(--white); border-radius: 28px; padding: 24px; font-size: 13.5px; }
.code pre { margin: 10px 0 0; overflow-x: auto; font: 500 1em/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code code { font: inherit; }
.code .m { color: var(--lime); }
.code .h { color: #B8C6EE; }
.code .k { color: var(--lime); }
.code .s { color: #A9C1FF; }
.code .n { color: var(--white); }
.code-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #B8C6EE; }
.code-res { margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.2); }
.code-res b { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--lime); color: var(--navy); letter-spacing: 0; }
@media (min-width: 960px) {
  .api-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 72px; }
  .api-copy { padding-top: 24px; }
  .code { padding: 32px; font-size: 14.5px; }
}

/* Final call: lime, the text on the left, Budik beside it on wide screens. */
.final { background: var(--lime); color: var(--navy); padding: 72px 0 80px; }
.final-in { display: grid; gap: 40px; }
.final-budik { width: 104px; box-sizing: content-box; padding: 10px 13px; border-radius: 24px; background: var(--navy); order: -1; }
.final h2 { font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; max-width: 12em; }
.final p { margin-top: 18px; font-size: clamp(18px, 1.9vw, 21px); max-width: 30em; }
@media (min-width: 960px) {
  .final { padding: 112px 0 120px; }
  .final-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; }
  .final-budik { width: 220px; padding: 26px 32px; border-radius: 56px; order: 0; margin-right: 40px; }
}

/* Footer */
.foot { background: var(--navy); color: var(--white); --ex: var(--lime); --focus: var(--lime); padding: 40px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot p { font-size: 15px; opacity: .85; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; opacity: .9; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; } }

/* Motion. Every move answers something: the page arriving, a section coming into view, the visitor's pointer or press.
   Entrances 300-420 ms ease-out, feedback 140-240 ms; transform and opacity only; nothing moves on keys (the tabs swap
   at once when picked with the arrows, landing.js marks them .instant); prefers-reduced-motion turns all of it off. */
.link-arrow, .link-plain, .lang, .login, .links a, .seg button { transition: transform 160ms var(--ease-out), background-color 150ms ease, color 200ms ease; }
.link-arrow:active, .link-plain:active, .lang:active, .login:active, .links a:active, .seg button:active { transform: scale(.97); }
.phone .shot.instant, .phone .shot.instant img { transition: none; animation: none; }
@media (prefers-reduced-motion: no-preference) {
  /* The first screen: the words, then the phones, all in place within half a second. */
  .hero-copy > * { animation: enter 300ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 50ms; }
  .hero-copy > :nth-child(3) { animation-delay: 100ms; }
  .phone-front { animation: enter-far 420ms var(--ease-out) 80ms both; }
  .phone-back { animation: enter-far 420ms var(--ease-out) 150ms both; }
  /* Budik in the logo blinks once the page is in, and again when the final call comes into view. */
  .top .logo .eye { animation: blink 180ms ease-in-out 900ms; }
  .final-budik.in .eye { animation: blink 180ms ease-in-out 420ms; }
  /* Sections come in once, as they reach the screen (landing.js adds .rv and then .in). */
  .rv { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .rv:not(.in) { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* Pointing at the logo: Budik winks and the «!» springs. */
  .logo .eye-r { transition: transform 140ms var(--ease-out); }
  .logo:hover .eye-r { transform: scaleY(.12); }
  .logo:hover .exg { animation: spring 420ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .top::before, .top::after, .top-in, .top .logo { transition: none; }
}
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
@keyframes enter-far { from { opacity: 0; transform: translateY(28px); } }
@keyframes blink { 50% { transform: scaleY(.1); } }
@keyframes spring { 30% { transform: translateY(-16%) rotate(6deg); } 62% { transform: translateY(4%) rotate(-2deg); } 84% { transform: translateY(-1%); } }
