:root {
  --bg: #121214;
  --bg-2: #1c1c20;
  --bg-3: #0c0c0e;
  --cream: #f3f1ec;
  --paper: #faf9f6;
  --red: #e10600;
  --red-soft: #ff5a4d;
  --text: #f3f1ec;
  --muted: #a8a6a0;
  --ink: #121214;
  --ink-muted: #55534f;
  --line: rgba(243, 241, 236, .12);
  --radius: 10px;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 40px; max-width: 18ch; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--red-soft); margin: 0 0 20px; }
.eyebrow--red { color: var(--red); }
.muted { color: var(--muted); }
.lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; margin: 0 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--red); cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); background: #fff; color: var(--red); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(18, 18, 20, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { height: 26px; width: auto; }
.brand__name { font: 700 24px/1 var(--display); letter-spacing: .01em; }
.brand__name i { color: var(--red); font-style: normal; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 8px 11px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }
.burger { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .2s, top .2s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); background: radial-gradient(900px 420px at 85% 0, rgba(225, 6, 0, .16), transparent 70%), var(--bg-3); }
.hero__logo { display: block; background: none; border: 0; padding: 0; margin: 0 0 clamp(32px, 5vw, 56px); width: min(760px, 100%); cursor: pointer; }
.logo-anim { width: 100%; height: auto; overflow: hidden; }
.hero__title { font-size: clamp(38px, 6.4vw, 84px); text-transform: uppercase; max-width: 16ch; margin-bottom: 24px; }
.hero__sub { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__where { color: var(--muted); margin: 0 0 clamp(40px, 6vw, 72px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
.stats > div { border-top: 2px solid var(--red); padding-top: 18px; }
.stats dt { font: 700 clamp(34px, 4.4vw, 56px)/1 var(--display); }
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* Sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--light { background: var(--cream); color: var(--ink); }
.sec--light .muted { color: var(--ink-muted); }
.sec--deep { background: var(--bg-3); }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--paper); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.card strong { display: block; font: 700 clamp(28px, 3vw, 40px)/1.05 var(--display); color: var(--red); margin-bottom: 8px; }
.card span { font-size: 15px; color: var(--ink-muted); line-height: 1.45; }

.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dir { background: var(--bg-2); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.dir:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--red); }
.dir__n { font: 700 34px/1 var(--display); color: var(--red); }
.dir h3 { font-size: 22px; margin-top: 12px; }
.dir p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.dir__price { margin-top: 18px; font-weight: 600; font-size: 15px; }
.dir--note { background: var(--red); justify-content: flex-end; font-weight: 600; font-size: 17px; line-height: 1.4; cursor: default; }
.dir--note:hover { transform: none; box-shadow: none; }

/* Services */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab { background: var(--bg-2); border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font-weight: 500; font-size: 15px; cursor: pointer; color: var(--muted); transition: color .15s, border-color .15s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--red); color: #fff; }
.svc-list { display: grid; gap: 24px; }
.svc { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 56px); background: var(--bg); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.svc__n { font: 600 13px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--red-soft); margin: 0 0 14px; }
.svc h3 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 18px; }
.svc__desc { margin: 0 0 22px; }
.svc h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--red-soft); }
.svc ul { margin: 0 0 22px; padding-left: 20px; }
.svc li { margin-bottom: 4px; }
.svc li::marker { color: var(--text); }
.svc__fit { color: var(--muted); margin: 0; }
.svc__fit b { color: var(--text); font-weight: 600; }
.price { background: var(--bg-2); border-top: 4px solid var(--red); border-radius: 6px; padding: 26px 24px; align-self: start; }
.price small { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.price__val { font: 700 clamp(34px, 3.6vw, 44px)/1.1 var(--display); color: var(--red); margin: 4px 0 6px; }
.price__val--sm { font-size: 24px; }
.price__unit { margin-bottom: 6px; }
.price hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0 16px; }
.price div + div { margin-top: 14px; }

/* Pricing table */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
.ptable { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid #d0cec8; }
.ptable th { background: var(--ink); color: #fff; text-align: left; padding: 18px 22px; font-weight: 600; }
.ptable td { padding: 18px 22px; border-top: 1px solid #d0cec8; }
.ptable td:first-child { width: 46%; border-right: 1px solid #d0cec8; font-weight: 500; }
.ptable td:last-child { color: var(--ink-muted); }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: s; border-top: 3px solid var(--red); padding-top: 18px; }
.steps li::before { content: '0' counter(s); display: block; font: 700 clamp(44px, 5vw, 64px)/1 var(--display); color: var(--red); margin-bottom: 18px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.steps__pay { padding-top: 24px; border-top: 1px solid var(--line); }

/* CTA */
.cta { background: var(--red); padding: clamp(64px, 9vw, 110px) 0; }
.cta__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.cta h2 { font-size: clamp(40px, 6vw, 80px); text-transform: uppercase; max-width: 10ch; }
.cta p { font-size: 19px; max-width: 40ch; }
.contacts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-weight: 500; }
.contacts a { text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 16px; background: rgba(0, 0, 0, .18); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form textarea { font: inherit; padding: 13px 14px; border-radius: 8px; border: 2px solid transparent; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }

.footer { background: var(--bg-3); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Анимированный логотип: чёрта-каретка стоит на месте, текст выезжает из-под неё, затем каретка постоянно мигает */
.logo-anim .la-slide { transform: translateX(0); }
.logo-anim.is-playing .la-mark { animation: la-mark .5s ease-out both; }
.logo-anim.is-playing .la-slide { animation: la-slide 1.5s cubic-bezier(.22, .8, .24, 1) .9s both; }
@keyframes la-mark { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes la-slide { from { transform: translateX(-870px); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .logo-anim.is-playing * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .dirs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 24px; font-size: 17px; border-top: 1px solid var(--line); }
  .topbar__right .btn { display: none; }
  .about, .cta__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .stats, .dirs, .steps, .cards { grid-template-columns: 1fr; }
  .ptable th, .ptable td { padding: 14px; }
}

/* =====================================================================
   Адаптация под все форматы: телефоны (в т.ч. узкие и в ландшафте),
   планшеты, ноутбуки, большие мониторы, сенсорные и мышиные устройства
   ===================================================================== */
:root { --wrap-max: 1180px; --gutter: clamp(16px, 4vw, 28px); --bar-h: 68px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
.wrap { width: min(var(--wrap-max), 100% - 2 * var(--gutter) - env(safe-area-inset-left) - env(safe-area-inset-right)); }
h1, h2, h3, p, li, dd { overflow-wrap: break-word; hyphens: auto; }
.hero__title { font-size: clamp(32px, 6.4vw, 84px); }

/* вырез / «чёлка»: viewport-fit=cover */
.topbar { padding-top: env(safe-area-inset-top); }
.topbar__in { height: var(--bar-h); }
.footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* крупные мониторы */
@media (min-width: 1600px) {
  :root { --wrap-max: 1360px; }
  body { font-size: 18px; }
  .svc { grid-template-columns: 1fr 380px; }
}
@media (min-width: 2200px) {
  :root { --wrap-max: 1680px; --bar-h: 80px; }
  body { font-size: 21px; }
  .hero__title { font-size: 112px; }
  .hero__logo { width: min(980px, 100%); }
  .svc { grid-template-columns: 1fr 440px; }
}

/* планшеты и всё, где меню уходит в бургер */
@media (max-width: 980px) {
  .burger { display: block; width: 44px; height: 44px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:first-child { top: calc(50% - 5px); }
  .burger span:last-child { top: calc(50% + 3px); }
  .burger[aria-expanded="true"] span:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { top: calc(50% - 1px); transform: rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 0 0 env(safe-area-inset-bottom); max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px var(--gutter); font-size: 17px; border-top: 1px solid var(--line); }
  .nav .nav__cta { margin: 16px var(--gutter); border-radius: 8px; background: var(--red); color: #fff; text-align: center; border: 0; font-weight: 600; }
  .nav .lang--menu { display: none; margin: 4px var(--gutter) 16px; align-self: flex-start; }
  .topbar__right > .btn { display: none; }
}
@media (min-width: 981px) { .nav .nav__cta, .nav .lang--menu { display: none; } }
.nav a { padding-block: 10px; }

/* телефоны */
@media (max-width: 700px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; position: relative; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .svc { padding: 22px 18px; }
  .price { padding: 22px 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__in { flex-direction: column; }
  /* таблица расходов — карточками */
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tr { border-top: 1px solid #d0cec8; padding: 14px 16px; }
  .ptable tr:first-child { border-top: 0; }
  .ptable td, .ptable td:first-child { border: 0; padding: 0; width: 100%; }
  .ptable td:first-child { font-weight: 600; margin-bottom: 2px; }
}

/* узкие телефоны: язык переезжает в меню, чтобы шапка не ломалась */
@media (max-width: 420px) {
  .topbar__right > .lang { display: none; }
  .nav .lang--menu { display: flex; }
  .brand__name { font-size: 22px; }
}
@media (max-width: 340px) {
  .stats dt { font-size: 32px; }
  .btn { padding-inline: 18px; }
}

/* телефон в ландшафте и другие низкие экраны */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar-h: 52px; }
  html { scroll-padding-top: 0; }
  .topbar { position: relative; }
  .hero { padding: 28px 0 36px; }
  .hero__logo { width: min(440px, 60%); margin-bottom: 24px; }
  .hero__where { margin-bottom: 28px; }
  .sec { padding: 56px 0; }
}

/* сенсорные экраны: крупные цели нажатия, никакого «залипшего» hover */
@media (pointer: coarse) {
  .lang button { min-width: 44px; min-height: 44px; }
  .tab { min-height: 44px; }
  .btn { min-height: 48px; }
  .nav a { padding-block: 16px; }
  .form input, .form textarea { font-size: 16px; }
}
@media (hover: none) {
  .btn:hover { transform: none; background: var(--red); color: #fff; border-color: var(--red); }
  .btn--ghost:hover { background: transparent; color: var(--text); border-color: var(--line); }
  .btn--dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
  .dir:hover { transform: none; box-shadow: none; }
}
.btn:active { transform: scale(.98); }
.brand { min-height: 44px; }
.eyebrow, .svc__n { line-height: 1.5; }

/* Форма заявки: ловушка для ботов, согласие, статус отправки */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__note { margin: 0; font-size: 13px; line-height: 1.45; opacity: .85; }
.form__note a, .footer a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { margin: 0; min-height: 1.4em; font-weight: 500; }
.form__status.is-ok { color: #fff; background: rgba(0, 0, 0, .25); padding: 12px 14px; border-radius: 8px; }
.form__status.is-err { color: #fff; background: #120000; padding: 12px 14px; border-radius: 8px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Страница политики конфиденциальности */
.legal { min-height: 70vh; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 8px; max-width: none; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 36px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--ink); }
.legal .muted { color: var(--ink-muted); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
article[hidden] { display: none; }


/* ======================= Правки: каретка, анимации, цены, переключатель языка ======================= */

/* Каретка: мигает как настоящая (ритм задаёт JS: html.caret-off каждые 530 мс), резко, без плавности */
.brand__caret { width: 3px; height: 26px; background: var(--red); margin-left: -4px; flex: none; }
.caret-off .brand__caret, .caret-off .la-bar.is-live, .caret-off .tcaret { opacity: 0; }

/* Цена: красным «сумма сум / $», ниже мелко «разово» / «в месяц» */
.price__val { font: 700 clamp(26px, 2.5vw, 34px)/1.12 var(--display); color: var(--red); margin: 2px 0 4px; }
.price__val span { display: inline-block; }
.price__unit { color: var(--text); margin: 0 0 14px; }
.price__val + .price__unit + .price__val { margin-top: 6px; }

/* Первый экран: справа живая плашка с печатающимся кодом */
.hero { position: relative; overflow: hidden; }
.hero__art { display: none; }
@media (min-width: 1180px) {
  .hero__art { display: block; position: absolute; right: 0; top: clamp(24px, 4vw, 70px); width: clamp(310px, 29vw, 430px); aspect-ratio: 1 / 1.06; pointer-events: none; }
}
@media (min-width: 2200px) { .hero__art { width: 560px; } }
.art__ring { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(225,6,0,0) 0%, rgba(225,6,0,.55) 30%, rgba(225,6,0,0) 62%); filter: blur(34px); animation: art-spin 14s linear infinite; }
@keyframes art-spin { to { transform: rotate(360deg); } }
.codewin { position: absolute; left: 0; right: 0; top: 22%; background: rgba(20, 20, 24, .92); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(225, 6, 0, .12); backdrop-filter: blur(6px); animation: art-float 7s ease-in-out infinite; }
.codewin__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.codewin__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.codewin__bar i:first-child { background: var(--red); }
.codewin__bar span { margin-left: 8px; font: 500 12px/1 var(--body); color: var(--muted); letter-spacing: .04em; }
.codewin__code { margin: 0; padding: 18px 18px 22px; min-height: 190px; font: 500 clamp(12px, 1.05vw, 14px)/1.75 ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; color: var(--text); white-space: pre; overflow: hidden; }
.cl { display: block; min-height: 1.75em; }
.codewin__code .kw { color: var(--red-soft); }
.codewin__code .fn { color: #fff; font-weight: 600; }
.codewin__code .str { color: #9ad18b; }
.tcaret { display: inline-block; width: .55em; height: 1.1em; vertical-align: text-bottom; margin-left: 1px; background: var(--red); }
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.art__chip { position: absolute; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font: 600 14px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: art-bob 6s ease-in-out infinite; }
.art__chip::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.art__chip--1 { right: 30%; bottom: 0; animation-delay: -1s; }
.art__chip--2 { right: -2%; top: 10%; animation-delay: -2.6s; }
.art__chip--3 { left: 4%; bottom: 8%; animation-delay: -4s; }
.art__chip--4 { right: 6%; bottom: 14%; animation-delay: -.4s; }
.art__chip--5 { left: 46%; top: -2%; animation-delay: -3.2s; }
@keyframes art-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .art__ring, .codewin, .art__chip { animation: none; } }

/* Переключатель языка: красная «таблетка» плавно переезжает на выбранный язык */
.lang { position: relative; }
.lang::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 44px; background: var(--red); border-radius: 7px; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .38s cubic-bezier(.34, 1.4, .5, 1); }
.lang:has(button:nth-child(2)[aria-pressed="true"]) { --i: 1; }
.lang:has(button:nth-child(3)[aria-pressed="true"]) { --i: 2; }
.lang button { position: relative; width: 44px; padding-inline: 0; text-align: center; transition: color .25s; }
.lang button[aria-pressed="true"] { background: none; color: #fff; }
.lang { overflow: visible; }

/* Смена языка: контент уходит с размытием и возвращается, сверху пробегает красная линия */
.lang-bar { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.lang-bar.is-run { animation: lang-run .75s cubic-bezier(.6, 0, .2, 1); }
@keyframes lang-run { 0% { transform: scaleX(0); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: left; } 56% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) { .lang-bar { display: none; } .lang::before { transition: none; } }
.hero__in { position: relative; }


/* ===== Переключатель языка: красная «таблетка» и белая плашка, которая плавно переезжает (как на личном сайте, только живее) ===== */
.lang { padding: 3px; border: 0; border-radius: 22px; background: var(--red); }
.lang::before { top: 3px; bottom: 3px; left: 3px; width: 44px; border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: transform .5s cubic-bezier(.34, 1.45, .5, 1); }
.lang button { border-radius: 18px; color: #fff; padding-block: 5px; }
.lang button[aria-pressed="true"] { color: var(--red); background: none; }

/* Печать заголовка и каскадное появление текста */
.tcaret--title { width: .06em; min-width: 3px; height: .86em; margin-left: .08em; vertical-align: baseline; }
.lang-rv { animation: lang-rv .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes lang-rv { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .lang-rv { animation: none; } }
