@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/onest-latin.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: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #111316;
  --surface: #1a1e24;
  --surface-deep: #15191f;
  --surface-soft: #20252d;
  --ink: #f0f1f3;
  --muted: #9a9fa9;
  --line: rgba(255, 255, 255, .09);
  --blue: #82a7ff;
  --green: #72c98a;
  --orange: #ef9a79;
  --yellow: #e6bb61;
  --radius: 13px;
  --wrap: 72rem;
  --text-wrap: 45rem;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Плавна прокрутка - лише тим, хто не просив систему зменшити рух */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Без overflow-x: hidden. Він не усував переповнення, а зрізав його:
   таблиця в політиці конфіденційності виходила за край екрана телефона,
   і прокрутити до неї було неможливо. Таблиці тепер у .table-wrap. */
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; background: radial-gradient(circle at 8% -10%, rgba(105, 119, 167, .14), transparent 34rem), radial-gradient(circle at 90% 35%, rgba(75, 118, 102, .1), transparent 32rem), repeating-linear-gradient(115deg, rgba(255,255,255,.012) 0 1px, transparent 1px 5px); pointer-events: none; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: #b6c9ff; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: 1.35rem; }
.skip { position: absolute; z-index: 20; left: -9999px; top: 0; padding: .6rem 1rem; background: var(--blue); color: #101217; }
.skip:focus { left: 0; }

/* Shared panel language */
.home-hero-copy, .community-logo-panel, .community-side-note, .community-card, .app-card, .app-hero-copy, .app-visual, .app-facts div, .app-prose, .app-side-note, .screen-card, .doc-box, .home-note-copy, .prose:not(.app-prose) { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 14px 30px rgba(0,0,0,.15); }
.home-hero-copy::after, .community-logo-panel::after, .community-side-note::after, .community-card::after, .app-card::after, .app-hero-copy::after, .app-visual::after, .screen-card::after { content: ""; position: absolute; pointer-events: none; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.04), transparent 28%, transparent 75%, rgba(255,255,255,.015)); }
.kicker { position: relative; z-index: 1; margin: 0 0 1rem; font-size: .7rem; font-weight: 700; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; color: var(--blue); }
.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid rgba(130,167,255,.7); border-radius: 8px; background: linear-gradient(135deg, #779eff, #6289e9); color: #101318; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(76, 116, 218, .2); }
.button:hover { color: #0e1117; filter: brightness(1.1); }
.button-muted { border-color: var(--line); background: rgba(255,255,255,.025); color: var(--muted); box-shadow: none; cursor: default; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(17,19,22,.84); backdrop-filter: blur(16px); }
.head-inner { display: flex; min-height: 4.35rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 2.3rem; height: 2.3rem; padding: .12rem; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; object-fit: contain; background: #0c1016; box-shadow: inset 0 1px rgba(255,255,255,.1), 0 4px 10px rgba(0,0,0,.22); }
.site-head nav { display: flex; align-items: center; gap: 1.35rem; }
.site-head nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }
.site-head .lang { padding: .15rem .05rem; border: 0; border-radius: 0; color: #dce6ff; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-shadow: 0 1px 0 #8aa7e8, 0 2px 0 #526b9b, 0 3px 7px rgba(0,0,0,.8); }
.site-head .lang:hover { color: #fff; text-shadow: 0 1px 0 #bdd0ff, 0 2px 0 #6584c4, 0 4px 10px rgba(76,122,255,.45); }

/* Home */
.home-hero { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.home-hero-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .75fr); gap: 10px; align-items: stretch; }
/* container-type робить панель одиницею виміру для заголовка всередині неї.
   Без цього заголовок міряється у vw, тобто від ширини ВІКНА, а панель після
   72rem рости перестає: від 1100 до 1920 пікселів панель ширшала на 30%,
   а шрифт - на 62%, і заголовок перескакував на третій рядок. */
.home-hero-copy { container-type: inline-size; min-height: 34rem; padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 77% 15%, rgba(96, 128, 220, .27), transparent 18rem), linear-gradient(135deg, #1d222b, #15191f); }
.home-hero h1 { position: relative; z-index: 1; max-width: 16ch; margin: 0; font-size: 3.4rem; font-size: clamp(2.4rem, 9cqi, 4.25rem); line-height: 1; letter-spacing: -.058em; }
.hero-lead { position: relative; z-index: 1; max-width: 38rem; margin: 1.45rem 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.22rem); }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin: 2rem 0 0; }
.text-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.text-link span { margin-left: .3rem; color: var(--blue); }
.platforms { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; max-width: 43rem; margin: 3.5rem 0 0; padding: 0; list-style: none; }
.platforms li { display: grid; aspect-ratio: 1; place-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 9px; background: rgba(8,10,14,.25); }
.platform-icon { display: grid; width: clamp(2.6rem, 11cqi, 5.4rem); height: clamp(2.6rem, 11cqi, 5.4rem); place-items: center; color: var(--blue); filter: drop-shadow(0 5px 10px rgba(91,135,255,.18)); }
.platform-icon svg, .platform-icon img { width: 100%; height: 100%; object-fit: contain; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
/* Дві рівні половини. Раніше панель з логотипом була квадратною і рости не
   могла, тож увесь надлишок висоти дістававався зеленій панелі: на 1920
   порожніми лишалися 305 з 408 пікселів. */
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
/* aspect-ratio тримає панель квадратною там, де висоту не задає сітка
   (одна колонка на телефоні). Вміст панелі позиційований абсолютно і власної
   висоти не дає, бо на старті її взагалі немає: перший кадр анімації прозорий. */
.community-logo-panel { aspect-ratio: 1; min-height: 14rem; padding: 0; background: #06070d !important; }
.community-logo-panel::after { display: none; }
/* contain, а не cover: логотип квадратний, і при обрізанні з нього зникали б
   краї напису «Bridges». */
.community-logo-panel img,
.community-logo-panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.community-logo-panel video { opacity: 0; transition: opacity .3s ease; }
.community-logo-panel.has-anim video { opacity: 1; }
/* padding-right - це смуга, у якій живе номер «01». Без неї текст заповзав
   під цифру на всіх перевірених ширинах, а не лише на вузьких. */
.community-side-note { min-height: 9rem; padding: 1.25rem; padding-right: 4.5rem; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 80% 15%, rgba(114,201,138,.18), transparent 9rem), #19201f !important; }
.community-side-note .kicker { margin-bottom: .5rem; color: var(--green); }
.community-side-note p:not(.kicker) { position: relative; z-index: 1; max-width: 20rem; margin: 0; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.community-side-note > span { position: absolute; right: 1.25rem; bottom: 1rem; color: rgba(114,201,138,.32); font-size: 2.8rem; font-weight: 700; letter-spacing: -.08em; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
/* Дві секції поспіль давали подвійний відступ: 96px знизу першої плюс 96px
   зверху другої, разом 192px порожнечі. Сусідні секції ділять один відступ. */
.section + .section { padding-top: 0; }
/* Останню секцію не додаємо до відступу підвалу: він має власні 80px,
   і разом виходило 160. Тепер до підвалу скрізь рівно 80. */
main > section:last-of-type { padding-bottom: 0; }
/* Колонка заголовка ширша за колонку тексту. При старому співвідношенні
   .85fr/1.15fr вона виходила 447px, а рядок «Ми робимо технології» потребує
   567px - заголовок ламався на три рядки замість двох. */
.community-intro { display: grid; grid-template-columns: minmax(16rem, 1.1fr) minmax(18rem, .9fr); gap: 2.5rem; align-items: end; margin-bottom: 1.2rem; }
/* text-wrap: balance вирівнює довжину рядків у заголовку, щоб останній
   не лишався коротким недогризком. */
.community-intro h2, .section-intro h2, .screens-section h2 { max-width: 16ch; margin: 0; font-size: clamp(2.1rem, 4.5vw, 3.65rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.community-intro > p, .section-intro > p:last-child { max-width: 39rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.community-grid { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 10px; }
/* Вміст притиснутий доверху, а не донизу. При вирівнюванні донизу заголовки
   стояли на різних рівнях: тексти в картках мають 2, 3 і 4 рядки, і кожен
   зсував свій заголовок на свою висоту. Верхній відступ більший за решту -
   під ним живе номер картки. */
.community-card { min-height: 15rem; padding: 3.6rem 1.6rem 1.6rem; display: flex; flex-direction: column; justify-content: flex-start; }
.community-card-1 { background: radial-gradient(circle at 50% 20%, rgba(226,105,76,.22), transparent 8rem), linear-gradient(135deg, #252025, #171a1f) !important; }
.community-card-2 { background: radial-gradient(circle at 70% 10%, rgba(107,140,255,.3), transparent 14rem), linear-gradient(135deg, #1c202b, #16191e) !important; }
.community-card-3 { background: radial-gradient(circle at 45% 25%, rgba(77,193,132,.2), transparent 9rem), linear-gradient(135deg, #1d2625, #171b1f) !important; }
.card-number { position: absolute; top: 1.35rem; left: 1.5rem; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.community-card h3 { position: relative; z-index: 1; margin: 0; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.025em; }
.community-card p { position: relative; z-index: 1; margin: .65rem 0 0; color: var(--muted); font-size: .9rem; }
.apps-section, .screens-section { background: transparent; }
.section-intro { margin-bottom: 1.25rem; }
.section-intro > p:last-child { margin-top: .8rem; }
.app-list { display: grid; gap: 10px; }
/* align-items: center, а не end: інакше іконка притискається до низу картки,
   і відступ над нею виходить утричі більший за відступ під нею. */
.app-card { min-height: 15.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.5rem; color: var(--ink); text-decoration: none; background: radial-gradient(circle at 75% 0%, rgba(25,177,95,.28), transparent 16rem), linear-gradient(135deg, #1b2522, #161b20) !important; transition: transform .2s ease, border-color .2s ease; }
.app-card:hover { border-color: rgba(114,201,138,.52); color: var(--ink); transform: translateY(-3px); }
/* Ілюстрація застосунку. Позиційована абсолютно, тому не впливає на сітку
   картки: іконка, текст і стрілка лишаються там, де були. Висота у відсотках,
   а не фіксована, - так картинка не вилазить за картку на жодній ширині. */
.app-card-art { position: absolute; z-index: 1; right: 4.5rem; top: 50%; transform: translateY(-50%); height: 76%; width: auto; border-radius: .9rem; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.card-icon, .app-card-copy, .app-arrow { position: relative; z-index: 2; }
.card-icon { border-radius: .95rem; object-fit: contain; }
.app-card-copy { align-self: center; display: grid; gap: .28rem; }
.app-card-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -.04em; }
.app-card-text { color: var(--muted); }
.app-card-meta { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .65rem; }
.app-card-meta span { padding: .1rem .48rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
.app-arrow { align-self: center; color: var(--green); font-size: 1.7rem; }
.home-note { padding-top: 1.2rem; }
.home-note-copy { max-width: var(--text-wrap); padding: 1.8rem 2rem; }

/* Application */
.app-hero-new { padding: clamp(3rem, 6vw, 5rem) 0 0; border: 0; background: transparent; }
.breadcrumbs { margin: 0 0 1.2rem; color: var(--muted); font-size: .83rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 .45rem; }
.app-hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: 10px; }
.app-hero-copy { container-type: inline-size; min-height: 27rem; padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 84% 17%, rgba(66,179,102,.24), transparent 14rem), linear-gradient(145deg, #1c2420, #15191f) !important; }
.app-hero-copy h1 { position: relative; z-index: 1; margin: 0; font-size: 4.4rem; font-size: clamp(2.8rem, 13cqi, 5.2rem); line-height: .91; letter-spacing: -.075em; }
.app-summary { position: relative; z-index: 1; max-width: 35rem; margin: .9rem 0 0; color: var(--ink); font-size: 1.04rem; }
.stores { position: relative; z-index: 1; display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.7rem 0 0; }
.app-visual { min-height: 27rem; padding: 1.25rem; background: radial-gradient(circle at 30% 10%, rgba(107,222,143,.38), transparent 10rem), linear-gradient(145deg, #0c9d57, #08603c) !important; }
.app-visual > .app-icon { width: 8rem; height: 8rem; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.24)); }
.app-visual-list { position: relative; z-index: 1; display: grid; gap: .6rem; margin-top: 4.3rem; padding: .9rem; border: 1px solid rgba(255,255,255,.35); border-radius: .9rem; background: rgba(255,255,255,.94); box-shadow: 0 15px 28px rgba(0,0,0,.18); color: #1c3027; transform: rotate(-2.5deg); }
.app-visual-list span { display: flex; align-items: center; gap: .65rem; padding: .55rem; border-bottom: 1px solid #dfebe3; font-size: .9rem; font-weight: 600; }
.app-visual-list span:last-child { border-bottom: 0; }
.app-visual-list i { width: .95rem; height: .95rem; border: 2px solid #0c9b5b; border-radius: .25rem; }

/* Панель із готовою ілюстрацією: жодних відступів і власного фону - картинка
   заповнює панель цілком, а заокруглення дає overflow: hidden спільного
   правила панелей. Глянцевий відблиск ::after тут вимкнено: поверх фотографії
   він тільки бруднить. */
.app-visual-image { padding: 0; background: none !important; }
.app-visual-image::after { display: none; }
.app-visual-image img { width: 100%; height: 100%; object-fit: cover; }
.app-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 10px; }
.app-facts div { min-height: 9.5rem; padding: 1.25rem; display: flex; flex-direction: column; justify-content: end; }
.app-facts div:nth-child(1) { background: radial-gradient(circle at 15% 5%, rgba(110,203,141,.22), transparent 7rem); }
.app-facts div:nth-child(2) { background: radial-gradient(circle at 60% 0%, rgba(115,154,255,.22), transparent 7rem); }
.app-facts div:nth-child(3) { background: radial-gradient(circle at 45% 0%, rgba(239,154,121,.18), transparent 7rem); }
.app-facts strong { color: var(--green); font-size: 1.17rem; }
.app-facts span { margin-top: .1rem; color: var(--muted); font-size: .88rem; }
/* Без justify-content: space-between - воно лишало 117px порожнечі між
   панелями, тоді як усюди на сайті панелі розділяють 10px. Зайву ширину
   забирає бічна колонка. */
.app-content-layout { display: grid; grid-template-columns: minmax(0, var(--text-wrap)) minmax(14rem, 1fr); gap: 10px; }
.app-prose { padding: clamp(1.6rem, 4vw, 2.8rem); }
.app-side-note { height: max-content; padding: 1.35rem; border-top: 2px solid var(--green); }
.app-side-note p:last-child { margin-bottom: 0; color: var(--muted); }
/* Власного вертикального відступу немає: проміжки задають сусідні секції,
   інакше з одного боку виходило 99px, а з другого 168px. */
.screens-section { padding-block: 0; }
.screen-placeholders { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 10px; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.screen-card { min-height: 25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1rem; text-align: center; }
.screen-card-1 { background: radial-gradient(circle at 50% 30%, rgba(239,154,121,.23), transparent 8rem), #1c1d21 !important; }
.screen-card-2 { background: radial-gradient(circle at 50% 25%, rgba(114,201,138,.22), transparent 10rem), #19211f !important; }
.screen-card-3 { background: radial-gradient(circle at 60% 30%, rgba(130,167,255,.22), transparent 8rem), #191d25 !important; }
.screen-noise { position: absolute; inset: 0; opacity: .36; background: repeating-linear-gradient(125deg, transparent 0 4px, rgba(255,255,255,.024) 4px 5px); }
.placeholder-top { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .25rem; }
.placeholder-top i { width: .4rem; height: .4rem; border-radius: 50%; background: rgba(255,255,255,.23); }
.screen-ui { position: absolute; z-index: 1; top: 4.2rem; left: 1.15rem; right: 1.15rem; display: grid; gap: .42rem; padding: .7rem; border: 1px solid rgba(255,255,255,.16); border-radius: .75rem; background: rgba(7,10,12,.5); transform: rotate(-3deg); }
.screen-card-2 .screen-ui { transform: rotate(2deg); }
.screen-ui span { display: flex; align-items: center; gap: .4rem; padding: .36rem; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.57); font-size: .74rem; text-align: left; }
.screen-ui span:last-child { border-bottom: 0; }
.screen-ui i { width: .6rem; height: .6rem; border: 1px solid var(--green); border-radius: .15rem; }
.placeholder-icon, .screen-card strong, .screen-card em { position: relative; z-index: 2; }
.placeholder-icon { display: grid; width: 4.4rem; height: 4.4rem; place-items: center; margin-top: 3rem; border-radius: 1.1rem; background: rgba(11,158,88,.17); }
.placeholder-icon img { width: 3.8rem; height: 3.8rem; object-fit: contain; }
.screen-card strong { margin-top: .3rem; }
.screen-card em { color: var(--muted); font-size: .78rem; font-style: normal; }
/* Карусель скріншотів: активна картка по центру, сусідні визирають з боків.
   Сіткою це не зробити - п'ять панелей 9:16 у ряд на 72rem дали б по 220px,
   і набраний на них текст став би нечитабельним.

   Бічні відступи смуги дорівнюють половині вільного місця, інакше перша
   й остання картка не змогли б стати рівно по центру. */
.carousel { position: relative; --card: min(19rem, 68vw); }
.shots {
  display: flex; gap: 10px; margin: 1.25rem 0 0; list-style: none;
  padding: .5rem calc((100% - var(--card)) / 2) .5rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.shots li {
  flex: 0 0 var(--card); scroll-snap-align: center;
  transform: scale(.85); opacity: .45;
  transition: transform .35s ease, opacity .35s ease;
}
.shots li.is-active { transform: none; opacity: 1; }
.shots img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.shots li.is-active img { box-shadow: 0 18px 40px rgba(0,0,0,.35); }

/* Керування. Додається скриптом, тому без JS відступу під нього не лишається. */
.carousel-nav { display: none; }
.carousel.has-nav .carousel-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.1rem;
}
.carousel-arrow {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.04); color: var(--ink);
  font: inherit; font-size: 1.05rem; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.carousel-arrow:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: var(--blue); }
.carousel-arrow:disabled { opacity: .3; cursor: default; }
.carousel-dots { display: flex; align-items: center; gap: .45rem; }
.carousel-dot {
  width: .5rem; height: .5rem; padding: 0;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.22);
  cursor: pointer; transition: background .2s ease, width .2s ease;
}
.carousel-dot.is-active { width: 1.4rem; background: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .shots li { transition: none; }
}
.doc-box { max-width: var(--text-wrap); padding: 1.65rem; }
.doc-box h2 { margin: 0 0 .75rem; font-size: 1.12rem; }
.doc-list { margin: 0; padding-left: 1.15rem; }
.doc-list li { margin: .32rem 0; }

/* Supporting content */
.prose { container-type: inline-size; max-width: var(--text-wrap); padding: 2.25rem; }
.prose h1 { margin: 0 0 .7rem; font-size: 2.9rem; font-size: clamp(1.9rem, 7.8cqi, 3.2rem); line-height: 1.03; letter-spacing: -.055em; }
.prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.38rem; line-height: 1.2; letter-spacing: -.03em; }
.prose h3 { margin: 1.8rem 0 .5rem; font-size: 1.08rem; }
.prose p, .prose li { font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .32rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose code { padding: .1em .35em; border-radius: .25rem; background: rgba(255,255,255,.07); font-family: ui-monospace, monospace; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.prose th { background: rgba(255,255,255,.04); }
/* Таблиця отримує власну горизонтальну прокрутку, щоб на вузькому екрані
   жодна колонка не лишалася недосяжною. tabindex у розмітці дає доступ
   до цієї прокрутки з клавіатури. */
.prose .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.prose .table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.prose .table-wrap table { margin: 1.4rem 0; }
.prose .table-wrap th, .prose .table-wrap td { white-space: normal; min-width: 6.5rem; }
/* Текстова сторінка - один блок у main, тож ритм задає він сам: відступ від
   шапки такий самий, як між секціями на інших сторінках. Без цього панель
   торкалася шапки, хоча знизу відступ був 80px. */
main > .prose { margin-top: clamp(3rem, 6vw, 5rem); }
.meta, .muted { color: var(--muted); font-size: .88rem; }
.toc { margin: 1.5rem 0 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.toc-title { margin: 0 0 .5rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.toc ul { margin: 0; padding-left: 1rem; }
.invite { text-align: center; }
.invite .stores, .invite ol { text-align: left; }
.invite .stores { justify-content: center; }
.code-label { margin: 0; color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.code { margin: .35rem 0 2rem; color: var(--blue); font: 700 clamp(1.75rem, 7vw, 2.75rem)/1 ui-monospace, monospace; letter-spacing: .18em; }
.site-foot { margin-top: 5rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.018); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.7rem; }
.copy, .site-foot a { color: var(--muted); font-size: .83rem; }
.copy { margin: 0; }
.site-foot nav { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 46rem) {
  .head-inner { min-height: 4rem; }
  .brand { font-size: .86rem; }
  .site-head nav { gap: .65rem; }
  .site-head nav a { font-size: .76rem; }
  .wrap { padding-inline: 1rem; }
  .home-hero-layout, .community-intro, .community-grid, .app-hero-layout, .app-facts, .app-content-layout, .screen-placeholders { grid-template-columns: 1fr; }
  .home-hero-copy { min-height: 28rem; padding: 1.6rem; }
  .hero-side { grid-template-rows: auto minmax(8rem, 1fr); }
  .community-logo-panel { min-height: auto; }
  .platforms { grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
  .community-intro { gap: 1.2rem; }
  /* На телефоні картки йдуть стовпчиком, вирівнювати їх нема з чим,
     тож нехай кожна має висоту свого тексту, без порожнечі знизу. */
  .community-card { min-height: auto; padding-top: 3.2rem; }
  .app-card { min-height: 13rem; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  /* На вузькому екрані картинка накрила б текст, тому ховаємо її. */
  .app-card-art { display: none; }
  .app-arrow { display: none; }
  .app-hero-copy { min-height: 24rem; padding: 1.65rem; }
  .app-visual { min-height: 22rem; }
  .app-facts { padding-top: 10px; }
  .app-facts div { min-height: 7rem; }
  .app-content-layout { gap: 10px; }
  /* margin-top прибрано в основному правилі, тут його скидати нема чого */
  .screen-card { min-height: 20rem; }
  .prose { padding: 1.4rem; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* Друк. Юридичні документи інколи роздруковують, тому сторінка на папері
   мусить бути звичайним чорним текстом на білому, без темних панелей,
   світло-сірих абзаців і декоративних підкладок. */
@media print {
  .site-head, .site-foot, .skip, .stores, .screens-section,
  .hero-side, .platforms, .app-visual, .screen-placeholders, .toc { display: none; }

  html, body { background: #fff !important; color: #000 !important; }
  body::before { display: none; }

  /* Панелі-картки перетворюються на звичайний текст */
  .home-hero-copy, .community-logo-panel, .community-side-note, .community-card,
  .app-card, .app-hero-copy, .app-facts div, .app-prose, .app-side-note,
  .doc-box, .home-note-copy, .prose {
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: none !important;
  }
  .home-hero-copy::after, .community-card::after, .app-card::after,
  .app-hero-copy::after, .home-note-copy::after { display: none !important; }

  /* Приглушені кольори на папері нечитабельні */
  .meta, .muted, .kicker, .prose p, .prose li, .prose td, .prose th,
  .breadcrumbs, .copy { color: #000 !important; }

  a { color: #000 !important; text-decoration: underline; }
  /* Адреса посилання поруч із текстом - на папері клікати нічого */
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }

  .prose table, .prose th, .prose td { border: 1px solid #666 !important; }
  .prose th { background: #eee !important; }
  .prose h2, .prose h3 { page-break-after: avoid; }
  .prose table, .prose li { page-break-inside: avoid; }
}
