/* BirYo‘l, сайт-визитка. Бренд 2026: Яркий алый + белый, DM Sans. Сначала телефон.
   Цвета приложения (#E31E24, Onest) живут только внутри .phone и не касаются алого бренда. */

@font-face {
	font-family: 'DM Sans';
	src: url('assets/fonts/dm-sans.woff2') format('woff2');
	font-weight: 100 1000;
	font-display: swap;
}
/* В DM Sans нет кириллицы: русские буквы набирает Onest, стек ниже переключается сам. */
@font-face {
	font-family: 'Onest';
	src: url('assets/fonts/onest.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--scarlet: #FF2700;
	--shade: #D61D05;
	--white: #FFFFFF;
	--canvas: #EDEDED;
	--light: #EAEAEA;
	--ink: #1A1C0F;
	--cream: #F8F1E5;
	--ink2: rgba(26, 28, 15, .68);
	--line: rgba(26, 28, 15, .14);
	--app-red: #E31E24;
	--app-bg: #F5F7FA;
	--app-muted: #EAEEF3;
	--app-text: #1D2939;
	--app-text3: #6B7A90;
	--app-ok: #23A468;
	--tg-chat: #DCE7F0;
	--tg-out: #E1F7CF;
	--tg-accent: #3390EC;
	--font: 'DM Sans', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ease-in: cubic-bezier(.2, .8, .2, 1);
	--ease-move: cubic-bezier(.65, 0, .35, 1);
	--r: 22px;
	--gutter: 18px;
	--tile-w: 140px;
	--tile-h: 221.4px;
}

html[lang="ru"] { --font: 'Onest', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html.i18n-wait body { visibility: hidden; animation: i18n-show 0s 1.2s forwards; }
@keyframes i18n-show { to { visibility: visible; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 500 17px/1.45 var(--font);
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(76px + env(safe-area-inset-bottom));
	overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
fieldset { border: 0; min-width: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sec--ink :focus-visible { outline-color: var(--white); }

/* Кнопки: белый на алом допустим только жирным от 19 px, поэтому такой кегль. */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 54px; padding: 12px 24px;
	border: 0; border-radius: 16px;
	font-weight: 700; font-size: 19px; line-height: 1.15; text-decoration: none; text-align: center;
	cursor: pointer; transition: transform .16s var(--ease-in), background-color .16s, color .16s;
}
.btn:active { transform: scale(.96); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn--red { background: var(--scarlet); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--shade { background: var(--shade); color: var(--white); }
.btn--line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--tg { background: var(--ink); color: var(--white); font-size: 17px; min-height: 48px; width: 100%; }
.btn--full { width: 100%; }
@media (hover: hover) {
	.btn--white:hover, .btn--line:hover { background: var(--light); }
	.btn--red:hover { background: var(--shade); }
	.btn--ghost:hover { background: var(--white); color: var(--ink); }
	.btn--tg:hover { background: var(--shade); }
}

/* Шапка */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.top__logo { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.top__logo img:first-child { width: 30px; }
.top__logo img:last-child { width: 72px; }
.top__nav { display: none; gap: 24px; font-weight: 600; font-size: 16px; }
.top__nav a { padding: 12px 0; text-decoration: none; }
.top__nav a:hover { color: var(--shade); }
.lang { display: flex; padding: 3px; background: var(--canvas); border-radius: 12px; }
.lang button { min-width: 46px; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--shade); color: var(--white); }

/* Первый экран */
.hero { position: relative; overflow: hidden; background: var(--scarlet); color: var(--white); }
.hero__pattern {
	position: absolute; inset: -420px; pointer-events: none;
	background: url('assets/brand/pattern-white.svg') 0 0 / var(--tile-w) var(--tile-h);
	opacity: .07;
	animation: drift 46s linear infinite;
}
@keyframes drift { to { transform: translate3d(calc(var(--tile-w) * 2), calc(var(--tile-h) * -1), 0); } }
.hero__grid { position: relative; display: grid; gap: 8px; padding-top: 34px; }
.hero__eyebrow { font-weight: 700; font-size: 19px; line-height: 1.2; }
h1 { font-size: clamp(42px, 12vw, 76px); line-height: 1.02; letter-spacing: -.015em; font-weight: 800; margin: 12px 0 16px; text-wrap: balance; }
html[lang="ru"] h1 { font-size: clamp(34px, 9.6vw, 62px); }
.hero__lead { font-weight: 700; font-size: 19px; line-height: 1.32; max-width: 34em; text-wrap: pretty; }
.hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; max-width: 460px; }
.hero__facts li { background: var(--white); color: var(--ink); border-radius: 14px; padding: 10px 10px 11px; font-size: 13px; line-height: 1.2; font-weight: 600; }
.hero__facts b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--shade); margin-bottom: 2px; }

.hero__art { position: relative; height: 270px; margin-top: 10px; }
.hero__rig { position: absolute; left: 0; bottom: 28px; width: 42%; max-width: 170px; height: auto; overflow: visible; }
.hero__lola { position: absolute; right: -12px; bottom: -8px; width: 49%; max-width: 208px; animation: lola-in .8s .35s var(--ease-in) both; }
@keyframes lola-in { from { transform: translateY(44px); opacity: 0; } }

/* Сборка лого: хронология LogoAssemble (шестигранник, детали знака, буквы, точка) */
.hero__rig #hex { transform-box: fill-box; transform-origin: center; animation: hex-in .62s var(--ease-in) both; }
.hero__rig #symbol path:not(#hex) { animation: part-in .42s .16s var(--ease-in) both; }
.hero__rig #b-top-right { --dx: 130px; --dy: -75px; }
.hero__rig #b-top-left { --dx: -130px; --dy: 75px; }
.hero__rig #b-bottom-left { --dx: 0px; --dy: 170px; }
.hero__rig #b-right-bowl { --dx: 130px; --dy: 75px; }
.hero__rig #wordmark > * { animation: letter-in .44s var(--ease-in) both; }
.hero__rig #b { animation-delay: .36s; }
.hero__rig #i-stem { animation-delay: .43s; }
.hero__rig #r { animation-delay: .5s; }
.hero__rig #y { animation-delay: .57s; }
.hero__rig #o { animation-delay: .64s; }
.hero__rig #l { animation-delay: .71s; }
.hero__rig #i-dot { animation: dot-in .36s .86s var(--ease-in) both; transform-box: fill-box; transform-origin: center; }
@keyframes hex-in { 0% { transform: scale(0); } 70% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes part-in { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes letter-in { from { opacity: 0; transform: translateY(300px); } }
@keyframes dot-in { from { opacity: 0; transform: scale(0); } }

/* Перелёт: Стамбул → Узбекистан, города и самолёт из роликов, небо крем как в мультике. Траекторию считает app.js */
.route { position: relative; height: 228px; overflow: hidden; background: linear-gradient(#FBF5EA, #F5ECDC); border-bottom: 6px solid var(--ink); color: var(--ink); }
.route__city { position: absolute; z-index: 3; bottom: 0; width: auto; }
.route__city--a { left: -6%; height: 62px; -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.route__city--b { right: -7%; height: 70px; -webkit-mask-image: linear-gradient(to left, #000 80%, transparent); mask-image: linear-gradient(to left, #000 80%, transparent); }
.route__svg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__base { fill: none; stroke: rgba(26, 28, 15, .28); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.route__trail { fill: none; stroke: var(--scarlet); stroke-width: 4; stroke-linecap: round; }
.route__plane { position: absolute; z-index: 2; left: 0; top: 0; width: 92px; will-change: transform; transform-origin: 50% 50%; }
.route__pt { position: absolute; z-index: 4; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; background: var(--white); border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.route__pt--a { left: var(--gutter); }
.route__pt--b { right: var(--gutter); }
.route__pt i { display: block; width: 15px; height: 17px; background: var(--scarlet); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.route__pt.pop i { animation: pt-pop .6s var(--ease-in); }
@keyframes pt-pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.cloud { position: absolute; display: block; width: 74px; height: 22px; border-radius: 22px; background: var(--white); animation: cloud 34s linear infinite alternate; }
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 50%; background: var(--white); }
.cloud::before { width: 30px; height: 30px; left: 12px; top: -14px; }
.cloud::after { width: 38px; height: 38px; left: 32px; top: -20px; }
.cloud--1 { left: 8%; top: 40px; }
.cloud--2 { left: 58%; top: 26px; transform: scale(.72); animation-duration: 46s; }
.cloud--3 { left: 76%; top: 76px; transform: scale(.56); animation-duration: 28s; }
@keyframes cloud { to { translate: 34px 0; } }

/* Секции */
.sec { position: relative; padding: 58px 0; }
.sec--canvas { background: var(--cream); }
.sec--canvas .tag { color: #B81703; }
.sec--ink { background: var(--ink); color: var(--white); }
.sec--red { background: var(--scarlet); color: var(--white); overflow: hidden; }
.tag { font-weight: 700; font-size: 15px; color: var(--shade); margin-bottom: 8px; }
.tag--light { color: var(--white); opacity: .8; }
h2 { font-size: clamp(32px, 8.6vw, 52px); line-height: 1.06; letter-spacing: -.012em; font-weight: 800; text-wrap: balance; }
.lead { margin-top: 12px; font-size: 18px; line-height: 1.4; max-width: 36em; color: var(--ink2); text-wrap: pretty; }
.sec--ink .lead { color: rgba(255, 255, 255, .78); }
.sec--red .lead { color: var(--white); font-weight: 700; font-size: 19px; line-height: 1.32; }
html[lang="uz"] h1, html[lang="uz"] h2 { font-weight: 900; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }

/* Заголовки по словам */
.kin__m { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .05em .16em; margin: -.1em -.05em -.16em; }
.js .kin__w { transform: translateY(118%); }
.kin__w { display: inline-block; transition: transform .62s var(--ease-in); transition-delay: calc(var(--i) * 45ms); }
.js .kin.in .kin__w { transform: none; }
h1 .kin__w { transition-delay: calc(.12s + var(--i) * 55ms); }

.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease-in), transform .5s var(--ease-in); }
.js .rv.in { opacity: 1; transform: none; }

/* Мобильное приложение */
.mob { overflow: hidden; padding-bottom: 0; }
.appbox { position: relative; display: grid; gap: 34px; }
.appid { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.appid img { width: 56px; border-radius: 13px; }
.appid b { display: block; font-size: 20px; line-height: 1.15; }
.appid small { font-size: 15px; color: rgba(255, 255, 255, .72); }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; max-width: 420px; }
.store svg { flex: none; }
.store { display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 9px 12px; border-radius: 15px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .16s var(--ease-in), background-color .16s; }
.store:active { transform: scale(.96); }
.store small { display: block; font-size: 12px; font-weight: 600; line-height: 1.15; }
.store b { display: block; font-size: 18px; line-height: 1.15; font-weight: 800; white-space: nowrap; }
.tabs { display: grid; gap: 4px; margin-top: 24px; }
.tabs button { position: relative; display: block; width: 100%; padding: 11px 12px 11px 18px; border: 0; border-radius: 13px; background: transparent; color: var(--white); text-align: left; cursor: pointer; transition: background-color .25s; }
.tabs button::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: background-color .25s; }
.tabs b { display: block; font-size: 18px; line-height: 1.25; }
.tabs span { display: block; margin-top: 2px; font-size: 16px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.tabs [aria-pressed="true"] { background: rgba(255, 255, 255, .09); }
.tabs [aria-pressed="true"]::before { background: var(--scarlet); }
.app__more { margin-top: 14px; padding-left: 18px; font-size: 16px; color: rgba(255, 255, 255, .72); }
.fan { position: relative; height: 368px; margin: 0 calc(var(--gutter) * -1); overflow: hidden; }
.dev { position: absolute; bottom: -2px; left: 50%; width: 270px; aspect-ratio: 701 / 885; padding: 8px 8px 0; background: #14161A; border-radius: 38px 38px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); overflow: hidden; }
.dev img { display: block; width: 100%; height: auto; border-radius: 31px 31px 0 0; }
.dev--c { margin-left: -135px; z-index: 2; }
.dev--l { margin-left: -232px; transform: rotate(-7deg) scale(.86); transform-origin: 50% 100%; filter: brightness(.58) saturate(.85); }
.dev--r { margin-left: -38px; transform: rotate(7deg) scale(.86); transform-origin: 50% 100%; filter: brightness(.58) saturate(.85); }
.js .fan .dev--l, .js .fan .dev--r { transition: transform .7s .1s var(--ease-in); }
.dev--c img { position: absolute; left: 8px; right: 8px; top: 8px; width: calc(100% - 16px); height: auto; opacity: 0; transition: opacity 0s .3s; }
.dev--c img.on { z-index: 1; opacity: 1; transition: opacity .3s; }

/* На телефоне подпись и экран видны вместе: веер над списком, список накрывает низ телефонов */
@media (max-width: 999px) {
	.mob { padding-bottom: 40px; }
	.appbox { gap: 0; }
	.appbox__text { display: contents; }
	.appid { order: 1; }
	.mob h2 { order: 2; }
	.mob .lead { order: 3; }
	.stores { order: 4; }
	.fan { order: 5; margin-top: 24px; }
	.tabs { order: 6; position: relative; z-index: 3; margin-top: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); background: var(--ink); }
	.app__more { order: 7; }
}

/* Принципы */
.prin { display: grid; gap: 12px; margin-top: 26px; counter-reset: p; }
.prin li { border-top: 2px solid var(--ink); padding: 18px 0 0; }
.prin__n { display: grid; place-items: center; width: 40px; height: 44px; margin-bottom: 12px; background: var(--scarlet); color: var(--white); font-weight: 800; font-size: 20px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.prin p { margin-top: 6px; color: var(--ink2); }

/* Услуги и цена */
.serv { display: grid; gap: 12px; margin-top: 26px; }
.card { background: var(--white); border-radius: var(--r); padding: 20px; }
.card img { width: 64px; margin-bottom: 10px; }
.card p { margin-top: 6px; color: var(--ink2); }
.price { position: relative; overflow: hidden; background: var(--scarlet); color: var(--white); border-radius: var(--r); padding: 22px; }
.js .price { clip-path: polygon(50% 45%, 55% 47%, 55% 53%, 50% 55%, 45% 53%, 45% 47%); transition: clip-path .7s var(--ease-in); }
.js .serv.in .price { clip-path: polygon(50% -60%, 160% -30%, 160% 130%, 50% 160%, -60% 130%, -60% -30%); }
.price__pattern { position: absolute; inset: 0; background: url('assets/brand/pattern-white.svg') 0 0 / var(--tile-w) var(--tile-h); opacity: .07; }
.price > :not(.price__pattern) { position: relative; }
.price__tag { font-weight: 700; font-size: 19px; }
.price__val { display: inline-block; width: .62em; text-align: right; }
.price__num { font-size: 120px; line-height: 1; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.price__unit { font-weight: 800; font-size: 26px; line-height: 1.1; }
.price__note { margin: 12px 0 18px; font-weight: 700; font-size: 19px; line-height: 1.3; }

/* Бот */
.bot { display: grid; gap: 30px; }
.bot__phone { display: flex; justify-content: center; order: 2; }
.bot__text { order: 1; }
.bot__steps { order: 3; }
.bot__cta { margin-top: 16px; }
.feat { display: grid; gap: 16px; margin-top: 24px; }
.feat li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.feat p { margin-top: 2px; color: var(--ink2); font-size: 16px; }
.feat h3 { font-size: 18px; }
.steps__title { font-size: 24px; font-weight: 800; }
.steps { margin: 16px 0 20px; counter-reset: st; }
.steps li { position: relative; padding: 0 0 18px 50px; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 34px; height: 37px; background: var(--ink); color: var(--white); font-weight: 800; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--ink2); font-size: 16px; }

/* Телефон */
.phone { width: min(292px, 78vw); aspect-ratio: 393 / 800; padding: 9px; background: #14161A; border-radius: 42px; }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 34px; background: var(--app-bg); font-family: 'Onest', var(--font); font-size: 13px; line-height: 1.3; color: var(--app-text); }
.tg, .app { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .42s var(--ease-move); }
.app { transform: translateY(102%); background: var(--app-bg); }
.phone[data-scene="app"] .app { transform: none; }
.tg { background: var(--tg-chat); }
.tg__head { display: flex; align-items: center; gap: 9px; padding: 30px 12px 9px; background: var(--white); }
.tg__head img { width: 34px; height: 34px; border-radius: 50%; }
.tg__head b { display: block; font-size: 14px; }
.tg__head small { color: var(--app-text3); }
.tg__feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; overflow: hidden; }
.msg { max-width: 86%; padding: 8px 10px; border-radius: 13px; background: var(--white); display: grid; gap: 3px; }
.msg--out { align-self: flex-end; background: var(--tg-out); }
.hl { color: var(--app-red); font-size: 15px; }
.msg__btn { max-width: 86%; padding: 8px 10px; border-radius: 11px; background: rgba(255, 255, 255, .72); color: var(--tg-accent); font-weight: 600; text-align: center; }
.tg__kbd { margin: 0 10px 18px; padding: 11px; border-radius: 11px; background: var(--white); color: var(--tg-accent); font-weight: 600; text-align: center; transition: opacity .25s, transform .25s; }

.s1, .s2, .s3 { display: none; }
.phone[data-step="6"] .s1, .phone[data-step="6"] .s2, .phone[data-step="6"] .s3 { display: grid; animation: none; }
.phone[data-step="1"] .s1, .phone[data-step="2"] .s1, .phone[data-step="3"] .s1, .phone[data-step="4"] .s1, .phone[data-step="5"] .s1 { display: grid; animation: bubble .3s var(--ease-in) both; }
.phone[data-step="3"] .s2, .phone[data-step="4"] .s2, .phone[data-step="5"] .s2 { display: grid; animation: bubble .3s var(--ease-in) both; }
.phone[data-step="4"] .s3, .phone[data-step="5"] .s3 { display: grid; animation: bubble .34s var(--ease-in) both; }
.phone[data-step="3"] .tg__kbd, .phone[data-step="4"] .tg__kbd, .phone[data-step="5"] .tg__kbd { opacity: 0; }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.app__bar { display: flex; align-items: baseline; gap: 6px; padding: 30px 14px 9px; background: var(--white); }
.app__bar small { color: var(--app-text3); }
.app__body { display: grid; gap: 9px; padding: 12px; }
.app__hi { font-size: 18px; font-weight: 700; }
.app__card { background: var(--white); border-radius: 15px; padding: 11px 12px; }
.app__card small { display: block; color: var(--app-text3); font-size: 11px; font-weight: 600; }
.app__id { text-align: center; }
.app__id strong { display: block; font-size: 24px; letter-spacing: .04em; margin: 3px 0 9px; }
.app__btn { position: relative; padding: 9px; border-radius: 10px; background: var(--app-red); color: var(--white); font-weight: 600; transition: background-color .2s; }
.app__btn .b { display: none; }
.phone[data-step="8"] .app__btn { background: var(--app-ok); }
.phone[data-step="8"] .app__btn .a { display: none; }
.phone[data-step="8"] .app__btn .b { display: inline; }
.app__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app__tiles b { font-size: 16px; }
.app__track { height: 7px; margin: 8px 0 6px; border-radius: 4px; background: var(--app-muted); overflow: hidden; }
.app__track i { display: block; height: 100%; width: 0; background: var(--app-red); border-radius: 4px; transition: width .9s var(--ease-in); }
.phone[data-scene="app"] .app__track i { width: 60%; }
.app__limit p { font-size: 13px; }
.app__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: auto; padding: 10px 6px 18px; background: var(--white); border-top: 1px solid var(--app-muted); text-align: center; font-size: 9.5px; font-weight: 600; color: var(--app-text3); }
.app__tabs .on { color: var(--app-red); }
.app__limit span { color: var(--app-text3); }

/* Касание в демо: координаты по шагам */
.tap { position: absolute; left: 50%; top: 92%; width: 32px; height: 32px; margin: -16px; border-radius: 50%; background: rgba(29, 41, 57, .14); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); opacity: 0; transform: scale(1.3); transition: opacity .2s, transform .2s; pointer-events: none; }
.phone[data-step="2"] .tap, .phone[data-step="7"] .tap, .phone[data-step="5"] .tap { opacity: 1; transform: scale(1); }
.phone[data-step="5"] .tap { top: 88%; left: 45%; }
.phone[data-step="7"] .tap { top: 189px; }

/* Ролики */
.rail { display: flex; gap: 12px; margin-top: 26px; padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent; }
.rail__head { position: relative; }
.rail__nav { display: none; position: absolute; right: var(--gutter); bottom: 0; gap: 8px; }
.rail__nav button { width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--white); color: var(--ink); font-size: 22px; font-weight: 700; cursor: pointer; }
.rail__nav button:hover { background: var(--scarlet); color: var(--white); }
.vid { flex: 0 0 min(66vw, 250px); scroll-snap-align: start; }
.vid--loop { order: 2; }
html[lang="ru"] .vid--ru { order: -1; }
.vid__box { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #2B2D22; cursor: pointer; }
.vid--loop .vid__box { cursor: default; }
.vid__box video { width: 100%; height: 100%; object-fit: cover; }
.vid__play { position: absolute; left: 14px; bottom: 14px; width: 54px; height: 60px; background: var(--scarlet); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: transform .2s var(--ease-in), opacity .2s; }
.vid__play::after { content: ''; position: absolute; left: 20px; top: 19px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--white); }
.vid__box:hover .vid__play { transform: scale(1.08); }
.playing .vid__play { opacity: 0; }
.vid__box.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border: 4px solid rgba(255, 255, 255, .3); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vid__lang { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 700; }
.vid figcaption { padding: 10px 0 0; }
.vid figcaption b { display: block; font-size: 17px; line-height: 1.2; }
.vid figcaption span { display: block; margin-top: 2px; font-size: 15px; color: rgba(255, 255, 255, .72); }

/* Заявка */
.leadbox { position: relative; display: grid; gap: 22px; }
.leadbox__lola { display: none; }
.form { display: grid; gap: 14px; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 20px; }
.fld { display: grid; gap: 6px; }
.fld > span, .fld legend { font-weight: 700; font-size: 16px; padding: 0; }
.fld legend { margin-bottom: 6px; }
input[type="text"], input[type="tel"], textarea {
	width: 100%; min-height: 52px; padding: 13px 14px;
	font: 500 17px/1.3 var(--font); color: var(--ink);
	background: var(--white); border: 2px solid rgba(26, 28, 15, .5); border-radius: 13px;
	transition: border-color .15s;
}
textarea { resize: vertical; min-height: 88px; }
input::placeholder, textarea::placeholder { color: rgba(26, 28, 15, .62); }
input:focus, textarea:focus { outline: 0; border-color: var(--ink); }
.fld__err { display: none; font-style: normal; font-weight: 600; font-size: 15px; color: var(--shade); }
.fld.bad .fld__err { display: block; }
.fld.bad input { border-color: var(--shade); }
.fld.bad input:focus { box-shadow: 0 0 0 2px var(--ink); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts label { position: relative; display: block; cursor: pointer; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.opts span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 6px; text-align: center; line-height: 1.15; font-weight: 600; font-size: 15px; border-radius: 13px; border: 2px solid rgba(26, 28, 15, .5); transition: background-color .15s, border-color .15s, color .15s; }
.opts input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.opts input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.form__hint { color: var(--ink2); font-size: 15px; line-height: 1.35; }
.form__done { display: grid; gap: 8px; padding: 14px; border-radius: 15px; background: var(--canvas); outline: 0; }
.form__done[hidden] { display: none; }
.form__done p { font-size: 15px; line-height: 1.35; }
.form__row { display: grid; gap: 8px; margin-top: 4px; }

/* Контакты */
.cont { display: grid; gap: 12px; margin-top: 26px; }
.cont__c { position: relative; background: var(--canvas); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; }
.cc { position: absolute; right: 16px; top: 16px; padding: 3px 8px; border-radius: 8px; background: var(--white); font-size: 13px; font-weight: 700; }
.cont__tel { display: flex; align-items: center; min-height: 48px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.cont__tel:hover { color: var(--shade); }
.links { display: grid; gap: 8px; margin-top: 12px; }
.links__i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; color: var(--ink); }
.links__a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; text-decoration: none; }
a.links__a:hover { border-color: var(--ink); }
.links__a img { width: 40px; }
.links__a b { display: block; font-size: 17px; line-height: 1.2; }
.links__a small { display: block; line-height: 1.25; color: var(--ink2); font-size: 15px; }

/* Подвал */
.foot { background: var(--scarlet); color: var(--white); padding: 34px 0 30px; text-align: center; }
.foot__row { display: grid; justify-items: center; gap: 12px; }
.foot p { font-weight: 700; font-size: 20px; line-height: 1.2; }
.foot small { font-weight: 700; font-size: 19px; }

/* Нижняя панель на телефоне */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr 1fr 50px; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transition: transform .24s var(--ease-move); }
.dock.hide { transform: translateY(110%); }
.dock .btn { min-height: 50px; padding: 8px 6px; font-size: 16px; }
.dock__tel { padding: 0 !important; }

/* Переход языка: алый шестигранник с тёмным кантом проходит по оси 30° */
.wipe { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; visibility: hidden; }
.wipe.on { visibility: visible; }
.wipe i { position: absolute; left: 50%; top: 50%; width: 260vmax; height: 290vmax; margin: -145vmax -130vmax; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transform: translate(-190vmax, 110vmax); }
.wipe i:first-child { background: var(--shade); }
.wipe i:last-child { background: var(--scarlet); }
.wipe.on i { animation: wipe-pass .72s var(--ease-move) both; }
.wipe.on i:last-child { animation-delay: .04s; }
@keyframes wipe-pass {
	0% { transform: translate(-190vmax, 110vmax); }
	46%, 54% { transform: translate(0, 0); }
	100% { transform: translate(190vmax, -110vmax); }
}

@media (max-width: 359px) {
	.stores { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
	.price .btn, .bot__steps .btn, .bot__cta { width: 100%; }
}

@media (max-height: 480px) {
	h1, html[lang="ru"] h1 { font-size: 32px; }
	.dock .btn { min-height: 40px; }
}

@media (min-width: 480px) {
	.hero__cta { grid-template-columns: auto auto; justify-content: start; max-width: none; }
	.form__row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
	:root { --gutter: 28px; }
	.sec { padding: 84px 0; }
	.hero__art { height: 320px; }
	.prin { grid-template-columns: repeat(3, 1fr); }
	.serv { grid-template-columns: repeat(2, 1fr); }
	.price { grid-row: span 3; }
	.links { grid-template-columns: repeat(2, 1fr); }
	.feat { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
}

@media (min-width: 1000px) {
	body { padding-bottom: 0; }
	.dock { display: none; }
	.top__nav { display: flex; }
	.links { grid-template-columns: repeat(5, 1fr); }
	.links__a { padding: 12px; }
	.cont { grid-template-columns: repeat(3, 1fr); }
	.top__row { height: 72px; }
	.top__logo img:first-child { width: 34px; }
	.top__logo img:last-child { width: 82px; }
	.hero__grid { grid-template-columns: 1.08fr .92fr; align-items: end; gap: 28px; padding-top: 62px; min-height: min(620px, calc(100vh - 134px)); }
	.hero__text { padding-bottom: 54px; }
	.hero__lead { font-size: 21px; }
	.hero__facts { max-width: 480px; }
	.hero__art { height: 100%; min-height: 470px; margin: 0; }
	.hero__rig { width: 38%; max-width: 188px; left: 0; bottom: 96px; }
	.hero__lola { width: 60%; max-width: 330px; right: 0; bottom: -10px; }
	.route { height: 270px; }
	.route__trail { stroke-width: 5; }
	.route__city--a { left: 0; height: 104px; }
	.route__city--b { right: 0; height: 118px; }
	.route__plane { width: 176px; }
	.route__pt { font-size: 17px; bottom: 12px; padding: 5px 14px 5px 9px; }
	.route__pt--a { left: 96px; }
	.route__pt--b { right: 96px; }
	.serv { grid-template-columns: repeat(3, 1fr); }
	.price { grid-row: auto; grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 44px; align-items: center; padding: 26px 34px; }
	.price__tag { grid-column: 1; grid-row: 1; }
	.price__num { grid-column: 1; grid-row: 2; font-size: 112px; }
	.price__unit { grid-column: 1; grid-row: 3; }
	.price__note { grid-column: 2; grid-row: 1 / 4; margin: 0; max-width: 28em; }
	.price .btn { grid-column: 3; grid-row: 1 / 4; }
	.bot { grid-template-columns: 330px 1fr; gap: 34px 60px; align-items: start; }
	.bot__phone { order: 0; grid-row: span 2; justify-content: flex-start; position: sticky; top: 100px; }
	.bot__text, .bot__steps { order: 0; }
	.phone { width: 322px; }
	.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.steps li { padding: 46px 0 0; }
	.steps li:not(:last-child)::after { left: 44px; right: 0; top: 18px; bottom: auto; width: auto; height: 2px; }
	.rail__nav { display: flex; }
	.rail { padding-inline: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); }
	.vid { flex-basis: 236px; }
	.sec.mob { padding: 96px 0 0; }
	.appbox { grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
	.appbox__text { padding-bottom: 72px; }
	.tabs { max-width: 470px; }
	.fan { height: 520px; margin: 0; overflow: visible; }
	.dev { width: 400px; border-radius: 48px 48px 0 0; padding: 10px 10px 0; }
	.dev img { border-radius: 38px 38px 0 0; }
	.dev--c { margin-left: -200px; }
	.dev--c img { left: 10px; right: 10px; top: 10px; width: calc(100% - 20px); }
	.dev--l { margin-left: -300px; }
	.dev--r { margin-left: -100px; }
	.leadbox { grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
	.form { align-self: center; }
	.leadbox__lola { display: block; width: 300px; margin: 20px 0 -84px; }
	.form { padding: 26px; }
	.foot__row { grid-template-columns: auto 1fr auto; text-align: left; gap: 26px; align-items: center; }
}

@media (min-width: 1000px) and (max-width: 1279px) {
	.dev { width: 320px; }
	.dev--c { margin-left: -160px; }
	.dev--l { margin-left: -240px; }
	.dev--r { margin-left: -80px; }
	.fan { height: 430px; }
	h1 { font-size: clamp(50px, 5.2vw, 62px); }
	html[lang="ru"] h1 { font-size: clamp(42px, 4.6vw, 52px); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .kin__w { transform: none; }
	.js .rv { opacity: 1; transform: none; }
	.js .price { clip-path: none; }
}
