/* Витрина demo.augustusforge.com: общий стиль русской (/) и английской (/en/) страниц */
:root {
  --paper: #FFFFFF;
  --ink: #1D1A17;
  --muted: #6E6862;
  --line: #EAE6E1;
  --wash: #F5F3F0;
  --tg-blue: #3390EC;
  --tg-chat: #DDE7D5;
  --term: #23201D;
  --term-ink: #E9E4DD;
  --term-hint: #B3A99D;
  --side-w: min(300px, calc((100vw - 560px) / 2 - 80px));
  font-family: "Golos Text", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); line-height: 1.45; }
:focus-visible { outline: 3px solid #9CC7F5; outline-offset: 2px; }
.page { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
header { padding: 20px 0 8px; }
.langs { display: flex; justify-content: flex-end; gap: 6px; font-size: 14px; color: var(--muted); }
.langs a { color: var(--muted); text-decoration: none; padding: 2px 4px; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; }
.langs a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 12px; }
header p { font-size: 18px; margin: 0; max-width: 30em; }
h2 { font-size: 22px; margin: 32px 0 10px; }
section { position: relative; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows b { display: block; font-size: 18px; }
.rows span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.rows .code { display: inline-block; margin-top: 4px; color: var(--tg-blue); font-size: 14px; text-decoration: none; }
.rows .code:hover { text-decoration: underline; text-underline-offset: 3px; }
.examples > li { padding: 0; }
.examples a { display: block; padding: 14px 0; color: inherit; text-decoration: none; }
.examples a:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* «Что делаю» — плотнее: пунктов много */
.compact > li { padding: 10px 0; }
.compact b { font-size: 16px; }
.compact span { font-size: 14px; }

/* Картинки только на полях широкого экрана; на телефоне их нет, лента остаётся короткой */
.side { display: none; position: absolute; top: 46px; width: var(--side-w); font-size: 13px; }
.side-left { right: calc(100% + 48px); }
.side-right { left: calc(100% + 48px); }
@media (min-width: 1040px) { .side { display: grid; gap: 20px; } }
.side figure { margin: 0; }
.side figcaption { color: var(--muted); margin-top: 6px; }
.shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }

.phone { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--tg-chat); }
.phone-bar { display: flex; align-items: center; gap: 8px; background: var(--tg-blue); color: #fff; padding: 8px 12px; }
.phone-bar .ava { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--tg-blue); display: grid; place-items: center; font-weight: 700; }
.phone-bar small { display: block; opacity: 0.85; font-size: 11px; }
.chat { padding: 10px; display: grid; gap: 6px; }
.bubble { background: #fff; border-radius: 12px 12px 12px 4px; padding: 7px 10px 4px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); }
.bubble strong { display: block; }
.bubble p { margin: 0; }
.bubble time { display: block; text-align: right; color: #8C9AA6; font-size: 11px; }

.report { margin: 0; padding: 12px; border-radius: 10px; background: var(--term); color: var(--term-ink); font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; }
.report i { font-style: normal; color: var(--term-hint); }

.contact p { margin: 0 0 16px; }
.cta {
  display: block; text-align: center; background: var(--tg-blue); color: #fff; font-weight: 600; font-size: 17px;
  padding: 15px 18px; border-radius: 12px; text-decoration: none;
}
.contact .more { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.contact .more a { color: var(--tg-blue); }

.bubble.out { justify-self: end; background: #EFFDDE; border-radius: 12px 12px 4px 12px; }
.widget { border: 1px solid var(--line); border-radius: 14px; background: var(--wash); overflow: hidden; }
.widget-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--paper); border-bottom: 1px solid var(--line); font-weight: 600; }
.widget-bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DBE6B; }
.widget-chat { display: grid; gap: 6px; padding: 10px; }
.widget-chat p { margin: 0; padding: 7px 10px; border-radius: 12px; max-width: 88%; }
.widget-chat small { display: block; margin-top: 4px; opacity: 0.8; }
.widget-chat .them { background: var(--paper); justify-self: start; border-bottom-left-radius: 4px; }
.widget-chat .me { background: var(--tg-blue); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }

/* Под «Что делаю» слева — ниже, чтобы не наезжать на две картинки сайта из блока примеров */
.side.later { top: 160px; }
.side figcaption a { color: var(--tg-blue); }
