/*
 * Лендинг (templates/landing.html) — «необрутализм» по макету
 * my-kairos/proto/landing/04-brutal.html: кремовый фон в точку, толстые
 * чёрные рамки, жёсткие тени без размытия, яркие плашки, чуть повёрнутые
 * блоки, бегущая строка. Тема одна, светлая; файл самодостаточный —
 * app.css лендинг не грузит, всё под body.landing.
 */
body.landing {
  --cream: #fff4dc; --ink: #111; --yellow: #ffd23f; --pink: #ff7eb6; --lime: #b9f45a;
  --blue: #6a8cff; --orange: #ff8a3d; --red: #ff4b3e;
  /* Цифры роста и падения: салатовый и розовый на белом не читаются. */
  --up: #12823a; --down: #d9261c;
  margin: 0; color: var(--ink); background: var(--cream);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 26px 26px; background-attachment: fixed;
}
/* Точки — сквозь полупрозрачный кремовый слой: фон живой, но не рябит. */
body.landing::before { content: ""; position: fixed; inset: 0; background: var(--cream); opacity: .9; z-index: -1; }
.landing * { box-sizing: border-box; }
.landing a { color: inherit; text-decoration: none; }
.landing .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.landing .box { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: #fff; border-radius: 14px; }
.landing .up { color: var(--up); }
.landing .down { color: var(--down); }
.landing .muted { color: #555; }
.landing .nowrap { white-space: nowrap; }

/* Кнопки: нажатие «вдавливает» кнопку в её тень. */
.landing .btn {
  display: inline-block; padding: 14px 24px; border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink); font-family: inherit; font-size: 16px; font-weight: 900; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .02em; background: var(--yellow); color: var(--ink);
  cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.landing .btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.landing .btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.landing .btn.white { background: #fff; }
.landing .btn.small { padding: 8px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }

/* Бегущая строка */
.landing .marquee {
  background: var(--ink); color: var(--yellow); overflow: hidden; white-space: nowrap;
  font-weight: 900; text-transform: uppercase; border-bottom: 3px solid var(--ink);
}
.landing .marquee span { display: inline-block; padding: 10px 0; animation: mq 40s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Шапка */
.landing header.top .wrap { display: flex; align-items: center; gap: 20px; padding-top: 22px; }
.landing .logo {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 6px;
  font-weight: 900; font-size: 24px; letter-spacing: -.03em; background: var(--lime);
  border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
}
.landing .logo img { border: 2px solid var(--ink); border-radius: 8px; display: block; }
.landing header.top nav { margin-left: auto; display: flex; gap: 8px; }
.landing header.top nav a { padding: 8px 14px; border: 3px solid transparent; border-radius: 10px; font-weight: 800; }
.landing header.top nav a:hover { border-color: var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); }

/* Первый экран */
.landing .hero {
  padding: 60px 24px 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px;
  align-items: center; position: relative;
}
.landing h1 {
  font-size: clamp(44px, 6.4vw, 92px); line-height: .95; letter-spacing: -.05em; font-weight: 900;
  margin: 0 0 26px; text-transform: uppercase;
}
.landing h1 .hl { display: inline-block; padding: 0 12px; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); }
.landing h1 .y { background: var(--yellow); transform: rotate(-1.5deg); }
.landing h1 .p { background: var(--pink); transform: rotate(1.2deg); }
.landing .lead { font-size: 20px; max-width: 32em; font-weight: 500; margin: 0; }
.landing .lead b { background: var(--lime); padding: 0 4px; border: 2px solid var(--ink); border-radius: 4px; }
.landing .cta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.landing .sticker {
  position: absolute; right: 4%; top: 0; width: 150px; height: 150px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  display: grid; place-items: center; text-align: center; font-weight: 900; text-transform: uppercase;
  font-size: 15px; line-height: 1.1; transform: rotate(12deg); animation: wob 3s ease-in-out infinite; z-index: 2;
}
@keyframes wob { 50% { transform: rotate(4deg) scale(1.04); } }

/* «Телефон» с уведомлением бота */
.landing .phone { padding: 18px; background: var(--blue); transform: rotate(2deg); }
.landing .phone .scr { background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 14px; }
.landing .bub { border: 3px solid var(--ink); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--cream); font-size: 15px; }
.landing .bub.lime { background: var(--lime); }
.landing .bub b { display: block; font-size: 13px; text-transform: uppercase; }
.landing .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 15px; margin-top: 6px; }
.landing .kv span:nth-child(odd) { font-weight: 800; }
.landing .keys { display: flex; gap: 8px; }
.landing .keys span {
  flex: 1; text-align: center; padding: 10px; border: 3px solid var(--ink); border-radius: 10px;
  font-weight: 900; background: var(--lime); box-shadow: 3px 3px 0 var(--ink);
}
.landing .keys span + span { background: #fff; }

/* Цифры под первым экраном */
.landing .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 20px; }
.landing .stats .box { padding: 14px 18px; display: flex; flex-direction: column; box-shadow: 4px 4px 0 var(--ink); }
.landing .stats .box:nth-child(1) { background: var(--yellow); transform: rotate(-1deg); }
.landing .stats .box:nth-child(3) { background: var(--lime); transform: rotate(1deg); }
.landing .stats b { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.landing .stats span { font-size: 14px; font-weight: 600; }

/* Секции и заголовки */
.landing section { padding: 80px 0; scroll-margin-top: 10px; }
.landing .tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 3px solid var(--ink);
  border-radius: 999px; font-weight: 900; text-transform: uppercase; font-size: 13px;
  background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
}
.landing .tag.lime { background: var(--lime); }
.landing .tag.pink { background: var(--pink); }
.landing h2 {
  font-size: clamp(36px, 5vw, 70px); line-height: .95; letter-spacing: -.045em; font-weight: 900;
  text-transform: uppercase; margin: 18px 0 40px; max-width: 15em;
}
.landing h3 { margin: 0 0 6px; font-size: 21px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.15; }
.landing .honest { margin: 44px 0 0; padding: 20px 24px; font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.landing .honest b { background: var(--red); color: #fff; padding: 0 6px; border-radius: 4px; }

/* Живые данные */
.landing .head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.landing .head-row h2 { margin-bottom: 18px; }
.landing .updated { margin: 0 0 22px; padding: 10px 16px; font-weight: 800; text-align: right; transform: rotate(1.5deg); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.landing .updated span { font-weight: 600; font-size: 14px; }
.landing .sub { margin-bottom: 34px; }
.landing .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--up); border: 2px solid var(--ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); } }

.landing .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.landing .card { padding: 22px; transition: transform .12s; }
.landing .card:hover { transform: rotate(-1deg) scale(1.015); }
.landing .card p { margin: 0; font-size: 15.5px; }
.landing .card.live { display: flex; flex-direction: column; min-width: 0; overflow-x: auto; }
.landing .card.live:hover { transform: none; }
.landing .pill {
  align-self: flex-start; display: inline-block; margin-bottom: 12px; padding: 2px 10px; border: 3px solid var(--ink);
  border-radius: 999px; font-weight: 900; text-transform: uppercase; font-size: 12px;
  background: var(--c); color: var(--pill-text, var(--ink)); box-shadow: 2px 2px 0 var(--ink);
}
.landing .card .note { margin-top: auto; padding-top: 12px; font-size: 13.5px; font-weight: 500; }

.landing .tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.landing .tbl th {
  padding: 0 0 6px; font-size: 11px; font-weight: 900; text-align: left; text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 3px solid var(--ink); white-space: nowrap;
}
.landing .tbl td { padding: 8px 0; border-bottom: 2px dashed #d8ccb0; vertical-align: middle; font-weight: 600; }
.landing .tbl tr:last-child td { border-bottom: 0; }
.landing .tbl th + th, .landing .tbl td + td { padding-left: 8px; }
.landing .tbl .num { text-align: right; white-space: nowrap; }
.landing .l-coin { font-weight: 900; white-space: nowrap; }
.landing .l-coin a:hover { background: var(--yellow); }
.landing .rank { font-size: 12px; font-weight: 600; color: #555; }
.landing .chips { display: flex; gap: 3px; justify-content: flex-end; }
.landing .chip { padding: 0 5px; border: 2px solid var(--ink); border-radius: 6px; font-size: 11px; line-height: 17px; font-weight: 900; background: #fff; color: #999; border-color: #bbb; }
.landing .st-long { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.landing .st-short { background: var(--red); color: #fff; border-color: var(--ink); }
.landing .st-near_long { color: var(--up); border-color: var(--up); border-style: dashed; }
.landing .st-near_short { color: var(--down); border-color: var(--down); border-style: dashed; }
.landing .side {
  display: inline-block; padding: 0 7px; border: 2px solid var(--ink); border-radius: 6px; font-size: 12px;
  line-height: 18px; font-weight: 900; text-transform: uppercase;
}
.landing .side.long { background: var(--lime); }
.landing .side.short { background: var(--red); color: #fff; }
.landing .range { position: relative; display: block; min-width: 50px; height: 10px; border: 2px solid var(--ink); border-radius: 6px;
  background: linear-gradient(90deg, var(--lime), #fff 50%, var(--pink)); }
.landing .range span { position: absolute; top: -6px; width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: var(--ink); }
.landing .dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 2px solid var(--ink); border-radius: 50%; }
.landing .move { font-size: 11px; font-weight: 900; }
.landing .breadth { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.landing .breadth li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; }
.landing .breadth .tf { font-weight: 900; }
.landing .breadth .bar { display: flex; height: 18px; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.landing .breadth .long { background: var(--lime); }
.landing .breadth .short { background: var(--red); border-left: 3px solid var(--ink); }
.landing .breadth .n { font-weight: 900; font-variant-numeric: tabular-nums; }

/* Как это работает */
.landing .mirror { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: 22px; margin-bottom: 50px; background: var(--yellow); }
.landing .mirror svg { display: block; width: 100%; height: auto; background: #fff; border: 3px solid var(--ink); border-radius: 10px; overflow: visible; }
.landing .mirror .grid line { stroke: #e6dcc6; stroke-width: 2; }
.landing .mirror .axis { font: 800 12px system-ui, sans-serif; fill: #777; }
.landing .mirror .curve { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1000; animation: draw 1.8s ease-out both; }
.landing .mirror .price { stroke: var(--orange); }
.landing .mirror .index { stroke: var(--blue); animation-delay: .15s; }
.landing .mirror .hit circle { stroke: var(--ink); stroke-width: 3; }
.landing .mirror .hit text { font: 900 13px system-ui, sans-serif; text-anchor: middle; letter-spacing: .06em; }
.landing .mirror .hit.long circle { fill: var(--lime); }
.landing .mirror .hit.short circle { fill: var(--red); }
.landing .mirror .hit { animation: pop .4s ease-out 1.5s both; }
.landing .mirror p { margin: 0 0 12px; font-weight: 600; }
.landing .legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.landing .key { display: inline-block; width: 26px; height: 8px; border: 2px solid var(--ink); border-radius: 4px; }
.landing .key.price { background: var(--orange); }
.landing .key.index { background: var(--blue); margin-left: 10px; }
@keyframes draw { from { stroke-dashoffset: 1000; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }

.landing .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.landing .step { padding: 22px; position: relative; }
.landing .step:nth-child(1) { background: var(--yellow); transform: rotate(-1.5deg); }
.landing .step:nth-child(2) { background: var(--lime); transform: rotate(1deg); }
.landing .step:nth-child(3) { background: var(--pink); transform: rotate(-.8deg); }
.landing .step:nth-child(4) { background: var(--blue); transform: rotate(1.6deg); }
.landing .step .n {
  position: absolute; top: -18px; left: -14px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px;
}
.landing .step h3 { margin: 10px 0 8px; font-size: 22px; }
.landing .step p { margin: 0; font-size: 15.5px; font-weight: 500; }

/* Разделы приложения */
.landing .card .ico {
  width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 12px; display: grid; place-items: center;
  font-size: 26px; background: var(--c); box-shadow: 3px 3px 0 var(--ink); margin-bottom: 14px;
}
.landing .card.big { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: var(--yellow); }
.landing .card.big ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.landing .card.big li { background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 10px 14px; font-weight: 700; }

/* Telegram и API — тёмная полоса */
.landing .dark { background: var(--ink); color: #fff; }
.landing .dark h2 span { color: var(--pink); }
.landing .rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing .rule { background: #fff; color: var(--ink); border: 3px solid #fff; border-radius: 14px; padding: 20px; box-shadow: 6px 6px 0 var(--pink); }
.landing .rule:nth-child(even) { box-shadow: 6px 6px 0 var(--lime); }
.landing .rule .no {
  display: inline-block; background: var(--yellow); font-weight: 900; padding: 2px 10px; border-radius: 6px;
  border: 3px solid var(--ink); text-transform: uppercase; font-size: 13px;
}
.landing .rule h3 { margin: 10px 0 4px; font-size: 22px; }
.landing .rule p { margin: 0; }

/* Форма */
.landing .contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.landing .biglogo { display: block; width: 220px; height: 220px; margin-top: 34px; padding: 0; transform: rotate(-3deg); background: #000; }
.landing .form { padding: 24px; display: grid; gap: 16px; background: var(--pink); }
.landing .form.done { background: var(--lime); }
.landing .form.done h3 { font-size: 34px; }
.landing .form.done .btn { justify-self: start; }
.landing .form label { font-weight: 900; text-transform: uppercase; font-size: 14px; display: grid; gap: 6px; }
.landing .form input, .landing .form textarea {
  width: 100%; padding: 14px; border: 3px solid var(--ink); border-radius: 10px; font-family: inherit;
  font-size: 17px; font-weight: 500; line-height: 1.4; background: #fff; color: var(--ink); outline: none; box-shadow: 3px 3px 0 var(--ink); resize: vertical;
}
.landing .form input:focus, .landing .form textarea:focus { background: var(--yellow); }
.landing .form > .btn { justify-self: start; }
.landing .error { padding: 10px 14px; border: 3px solid var(--ink); border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.landing .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Капча — задачка на графике (app/admin/captcha.py). Состояние — data-state
   у .l-captcha: idle, loading, ready, checking, solved, miss, error. */
.landing .l-captcha { background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 12px; box-shadow: 3px 3px 0 var(--ink); }
.landing .l-captcha[data-state="solved"] { background: var(--lime); }
.landing .l-captcha.is-shake { animation: shake .45s; background: var(--yellow); }
@keyframes shake { 20%, 60% { transform: translateX(-7px) rotate(-1deg); } 40%, 80% { transform: translateX(7px) rotate(1deg); } }
.landing .l-captcha-head { display: flex; align-items: center; justify-content: space-between; }
.landing .l-captcha-badge { background: var(--ink); color: var(--yellow); padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.landing .l-captcha-new {
  width: 34px; height: 34px; padding: 0; border: 3px solid var(--ink); border-radius: 8px; background: var(--yellow);
  font-family: inherit; font-size: 18px; font-weight: 900; line-height: 1; color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.landing .l-captcha-new:active { transform: translate(2px, 2px); box-shadow: none; }
.landing .l-captcha[data-state="loading"] .l-captcha-new { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.landing .l-captcha-task { margin: 8px 0 10px; font-weight: 800; min-height: 1.5em; }
.landing .l-captcha-status { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
.landing .l-captcha[data-state="miss"] .l-captcha-status,
.landing .l-captcha[data-state="error"] .l-captcha-status { color: var(--down); }

.landing .l-captcha-chart {
  position: relative; overflow: hidden; aspect-ratio: 2 / 1; border: 3px solid var(--ink); border-radius: 8px;
  background: var(--cream); cursor: crosshair; user-select: none; touch-action: manipulation; --cx: 50%; --cy: 50%;
}
.landing .l-captcha-chart img { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.landing .l-captcha:not([data-state="idle"]):not([data-state="loading"]) .l-captcha-chart img { opacity: 1; }
.landing .l-captcha[data-state="solved"] .l-captcha-chart img { opacity: .35; }
.landing .l-captcha[data-state="solved"] .l-captcha-chart,
.landing .l-captcha[data-state="checking"] .l-captcha-chart { cursor: default; }
.landing .l-captcha-skeleton {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(17, 17, 17, .06) 14px 28px) 0 0 / 200% 100%;
}
.landing .l-captcha[data-state="loading"] .l-captcha-skeleton,
.landing .l-captcha[data-state="idle"] .l-captcha-skeleton { opacity: 1; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: -40px 0; } }
.landing .l-cross-x, .landing .l-cross-y { position: absolute; pointer-events: none; opacity: 0; border: 0 dashed var(--ink); }
.landing .l-cross-x { left: 0; right: 0; top: var(--cy); border-top-width: 2px; }
.landing .l-cross-y { top: 0; bottom: 0; left: var(--cx); border-left-width: 2px; }
.landing .l-captcha[data-state="ready"] .l-captcha-chart:hover .l-cross-x,
.landing .l-captcha[data-state="ready"] .l-captcha-chart:hover .l-cross-y { opacity: .55; }
.landing .l-captcha-mark {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--yellow); pointer-events: none; opacity: 0; transform: scale(.4);
}
.landing .l-captcha-mark.is-on { opacity: 1; transform: scale(1); transition: transform .18s ease-out; }
.landing .l-captcha-mark.is-on::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--ink);
  animation: ring .7s ease-out forwards;
}
@keyframes ring { to { transform: scale(2.4); opacity: 0; } }
.landing .l-captcha-mark.is-hit { background: var(--lime); }
.landing .l-captcha-mark.is-miss { background: var(--red); }
.landing .l-captcha-done {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; font-weight: 900; font-size: 18px; text-transform: uppercase; pointer-events: none; opacity: 0;
  transform: scale(.8) rotate(-4deg); transition: opacity .25s, transform .25s;
}
.landing .l-captcha-done span {
  display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--lime); font-size: 28px; box-shadow: 4px 4px 0 var(--ink);
}
.landing .l-captcha[data-state="solved"] .l-captcha-done { opacity: 1; transform: scale(1) rotate(-4deg); }

/* Подвал */
.landing footer { padding: 30px 0 60px; font-weight: 800; }
.landing footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.landing footer a { text-decoration: underline; text-decoration-thickness: 3px; }

@media (prefers-reduced-motion: reduce) {
  .landing .marquee span, .landing .sticker, .landing .pulse, .landing .mirror .curve, .landing .mirror .hit,
  .landing .l-captcha.is-shake, .landing .l-captcha-mark.is-on::after, .landing .l-captcha-skeleton,
  .landing .l-captcha-new { animation: none !important; }
}

/* Узкий экран */
@media (max-width: 900px) {
  .landing .hero, .landing .contact, .landing .mirror { grid-template-columns: 1fr; }
  .landing .steps, .landing .cards, .landing .rgrid { grid-template-columns: 1fr; }
  .landing .stats { grid-template-columns: repeat(2, 1fr); }
  .landing .card.big { grid-column: auto; grid-template-columns: 1fr; }
  .landing header.top nav, .landing .sticker { display: none; }
  .landing header.top .btn { margin-left: auto; }
  .landing .head-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .landing section { padding: 56px 0; }
  .landing .steps { gap: 34px; }
}
@media (max-width: 480px) {
  .landing .hide-sm { display: none; }
  .landing .logo { font-size: 19px; }
  .landing .btn { padding: 12px 16px; font-size: 14px; }
}

/* Переключатель языка в шапке (docs/18-i18n.md). */
.landing .lang-switch { display: inline-flex; gap: 2px; margin-left: 8px; font-weight: 800; font-size: 12px; }
.landing .lang-switch a { padding: 3px 6px; border: 2px solid transparent; border-radius: 6px; color: inherit; text-decoration: none; opacity: .55; }
.landing .lang-switch a.on { border-color: var(--ink); opacity: 1; }
