/*
 * Главная Doira CRM (doiracrm.uz) — ядро стилей.
 *
 * Страницу рисует app/landing-blocks/render.php из landing/doira/<язык>.json; макет —
 * Figma wGC5YgBMUF7AxqsAquKJKC, кадр 1594:5311 (1920 px, контейнер 1280). Токены ниже —
 * переменные коллекции «Doira CRM · цвета».
 *
 * Здесь: токены, база, типографика, кнопки, сетка, общие части (значок, пилюля, галочки,
 * окно продукта, плавающие карточки) и блоки ядра — announce, header, hero, tiles, facts,
 * cta, footer, кнопка чата. Блоки второй волны живут в doira-b1.css (05–08) и doira-b2.css
 * (09–15): общие классы отсюда им доступны, свои они добавляют там же, где пишут шаблон.
 *
 * Имена: блок — `.<тип>`, части — `.<блок>__<часть>`, вид — `.<блок>--<вид>`. Секция каждого
 * блока: `.section.section--<тип>`; шапка секции — `.section__head` (landing_head_html()).
 *
 * Адаптив простой, без отдельного дизайна: до 1100 px колонки складываются, до 640 px всё в
 * одну колонку, меню прячется за кнопку.
 */

/* ── Шрифты ───────────────────────────────────────────────────────────────────
   Inter — свой (public/assets/fonts), Manrope для заголовков — Google Fonts (<head>).
   ⚠ Файлы те же, что у landing.css сайта услуг: вторая копия не нужна. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('/assets/fonts/inter-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;
}

/* ── Токены ──────────────────────────────────────────────────────────────── */
:root {
	--primary: #0E7C86;
	--primary-dark: #0A5F67;
	--primary-soft: #E6F4F5;
	--gold: #F2B705;
	--primary-on-dark: #5CC8CF;
	--ink: #0F1F24;
	--text2: #4A5D63;
	--on-dark: #FFFFFF;
	--on-dark-muted: #A9C4C7;
	--white: #FFFFFF;
	--soft: #F5F9F9;
	--dark: #0B2A30;
	--darker: #071E22;
	--line: #DDE7E8;
	--success: #1F9D55;
	--danger: #D64545;

	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	--container: 1280px;
	--gutter: 24px;
	--header-h: 80px;

	--r-sm: 12px;
	--r-card: 20px;
	--r-lg: 24px;

	/* Тень «скриншота продукта» (для того, что не картинка: у картинок окон она запечена). */
	--shadow-shot: 0 24px 64px rgba(15, 31, 36, .18);
	--shadow-float: 0 16px 48px rgba(15, 31, 36, .16);
}

/* ── База ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.dr {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 17px/26px var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ⚠ База — через :where(): у неё нулевая специфичность, и любой класс блока перебивает её без
   `!important` и без порядка в файле (иначе `.dr a` красило бы кнопки, `.dr p` сбрасывало отступы). */
.dr :where(img, svg) {
	max-width: 100%;
}

.dr :where(img) {
	height: auto;
}

.dr :where(a) {
	color: inherit;
}

.dr [id] {
	scroll-margin-top: calc(var(--header-h) + 16px);
}

.dr :where(p, h1, h2, h3, ul, dl, dd) {
	margin: 0;
}

.dr :where(ul) {
	padding: 0;
	list-style: none;
}

.icon {
	flex: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.dr * {
		transition: none !important;
	}
}

/* ── Типографика ─────────────────────────────────────────────────────────── */
.h1,
.h2,
.h3 {
	font-family: var(--font-head);
	color: var(--ink);
}

.h1 {
	font-size: 64px;
	line-height: 72px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.h2 {
	font-size: 44px;
	line-height: 52px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.h3 {
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
}

.card-title {
	font-family: var(--font-head);
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
}

.lead {
	font-size: 20px;
	line-height: 32px;
	color: var(--text2);
}

.small {
	font-size: 14px;
	line-height: 20px;
}

.eyebrow {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--primary);
	text-align: center;
}

/* ── Сетка ───────────────────────────────────────────────────────────────── */
.container {
	width: min(var(--container), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.section {
	padding: 96px 0;
}

/* Шапка секции: надзаголовок, H2, лид — по центру, ширина до 880, промежутки 16; до содержимого 56. */
.section__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 880px;
	margin: 0 auto 56px;
	text-align: center;
}

.section--soft {
	background: var(--soft);
}

.section--tint {
	background: var(--primary-soft);
}

/* Заглушка блока второй волны. */
.section--stub {
	padding: 48px 0;
	text-align: center;
}

/* ── Кнопки (кит: Основная / Вторичная / На тёмном / Контурная на тёмном; L и M) ─ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 2px solid transparent;
	border-radius: var(--r-sm);
	font-family: var(--font);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.btn--l {
	height: 56px;
	padding: 0 28px;
	font-size: 18px;
	line-height: 24px;
}

.btn--m {
	height: 44px;
	padding: 0 20px;
	font-size: 16px;
	line-height: 20px;
}

.btn--primary {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
}

.btn--secondary {
	background: var(--white);
	border-color: var(--primary);
	color: var(--primary);
}

.btn--secondary:hover {
	background: var(--primary-soft);
}

.btn--on-dark {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}

.btn--on-dark:hover {
	background: #ffc928;
	border-color: #ffc928;
}

.btn--outline-dark {
	background: transparent;
	border-color: var(--white);
	color: var(--white);
}

.btn--outline-dark:hover {
	background: rgba(255, 255, 255, .1);
}

.btn:focus-visible,
.dr a:focus-visible,
.dr button:focus-visible,
.dr input:focus-visible {
	outline: 3px solid var(--primary-on-dark);
	outline-offset: 2px;
}

/* ── Общие части ─────────────────────────────────────────────────────────── */
/* Плашка иконки: 48×48, скругление 12, заливка primary-soft, значок primary. */
.icon-plate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: var(--r-sm);
	background: var(--primary-soft);
	color: var(--primary);
}

.icon-plate--sm {
	width: 40px;
	height: 40px;
}

/* Пилюля над заголовком. */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 38px;
	padding: 0 17px 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--primary-dark);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.badge__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
}

/* Пункты с галочками. */
.checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.checks__item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
}

.checks__icon {
	color: var(--success);
}

/*
 * Окно продукта — картинка-холст с запечённой тенью.
 * Вокруг видимого окна прозрачные поля (в единицах окна: слева и справа по 64, сверху 40,
 * снизу 88). `--w` — ширина видимого окна в макете (px, число без единицы); блок занимает
 * ровно окно, а холст выходит за него полями. Проценты в margin считаются от ширины блока,
 * поэтому всё масштабируется вместе с ним. Тень CSS на такую картинку не добавлять.
 *
 *   <div class="shot" style="--w:720"><img class="shot__img" …></div>
 */
.shot {
	--w: 780;
	display: flow-root;
	position: relative;
	width: 100%;
}

.shot__img {
	display: block;
	width: calc(100% * (var(--w) + 128) / var(--w));
	max-width: none;
	height: auto;
	margin: calc(-100% * 40 / var(--w)) 0 calc(-100% * 88 / var(--w)) calc(-100% * 64 / var(--w));
}

/* ── 00 · Полоса анонса ──────────────────────────────────────────────────── */
.announce {
	background: var(--dark);
	color: var(--on-dark);
	font-size: 15px;
	line-height: 20px;
	font-weight: 500;
}

.announce .container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 0;
	text-align: center;
}

.announce__link {
	color: var(--primary-on-dark);
	text-decoration: none;
}

.announce__link:hover {
	text-decoration: underline;
}

/* ── 01 · Шапка ──────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: 100%;
}

.site-header__logo {
	display: inline-flex;
	flex: none;
	text-decoration: none;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
}

.logo__mark {
	flex: none;
	width: 36px;
	height: 36px;
}

.logo__word {
	font-family: var(--font-head);
	font-size: 26px;
	line-height: 36px;
	font-weight: 800;
	color: var(--ink);
	white-space: nowrap;
}

.logo__word b {
	font-weight: 800;
	color: var(--primary);
}

.logo--dark .logo__word {
	color: var(--on-dark);
}

.logo--dark .logo__word b {
	color: var(--primary-on-dark);
}

.nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 16px;
	line-height: 19px;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.nav__link:hover {
	color: var(--primary);
}

.nav__chevron {
	color: var(--text2);
}

/* Пункт меню с выпадающей панелью (header: children). Панель — две колонки; открывается по наведению и кнопке-шеврону. */
.nav__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.nav__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.nav__more:hover .nav__chevron,
.nav__more:focus-visible .nav__chevron {
	color: var(--primary);
}

.nav__item .nav__chevron {
	transition: transform .15s;
}

.nav__item.is-open .nav__chevron {
	transform: rotate(180deg);
}

.nav__drop {
	display: none;
	position: absolute;
	top: calc(100% + 24px);
	left: -24px;
	z-index: 60;
	min-width: 520px;
	padding: 24px;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow-float);
}

.nav__item:hover > .nav__drop,
.nav__item.is-open > .nav__drop {
	display: grid;
}

/* Мостик над панелью: курсор доходит от пункта до панели, не теряя наведения. */
.nav__item::after {
	content: '';
	position: absolute;
	left: -24px;
	right: -24px;
	top: 100%;
	height: 24px;
}

.nav__col-title {
	display: block;
	margin: 0 0 12px;
	font-family: var(--font-head);
	font-size: 16px;
	line-height: 20px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

a.nav__col-title:hover {
	color: var(--primary);
}

.nav__col-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__sub {
	display: block;
	padding: 6px 0;
	font-size: 15px;
	line-height: 20px;
	font-weight: 500;
	color: var(--text2);
	text-decoration: none;
	white-space: nowrap;
}

.nav__sub:hover,
.nav__sub:focus-visible {
	color: var(--primary);
}
.nav__extra {
	display: none;
}

.site-header__side {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-header__login {
	font-size: 16px;
	line-height: 19px;
	font-weight: 500;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}

.site-header__login:hover {
	color: var(--primary);
}

.icon-link {
	display: inline-flex;
	color: var(--text2);
}

.icon-link:hover {
	color: var(--primary);
}

.burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
}

/* Переключатель языка RU | O‘Z. */
.lang {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: var(--soft);
}

.lang__item {
	padding: 5px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 17px;
	font-weight: 600;
	color: var(--text2);
	text-decoration: none;
}

.lang__item.is-active {
	background: var(--white);
	color: var(--ink);
	box-shadow: 0 1px 2px rgba(15, 31, 36, .08);
}

.lang__item:not(.is-active):hover {
	color: var(--primary);
}

.lang--footer {
	padding: 0;
	gap: 0;
	background: none;
}

.lang--footer .lang__item {
	padding: 0 8px;
	border-radius: 0;
	color: var(--on-dark-muted);
}

.lang--footer .lang__item + .lang__item {
	border-left: 1px solid var(--on-dark-muted);
}

.lang--footer .lang__item.is-active {
	background: none;
	box-shadow: none;
	color: var(--on-dark);
}

.lang--footer .lang__item:last-child {
	padding-right: 0;
}

/* ── 02 · Первый экран ───────────────────────────────────────────────────── */
.section--hero {
	padding: 72px 0 128px;
	overflow: hidden;
	background: var(--primary-soft);
}

.hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 660px;
}

.hero__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 730px;
	max-width: 100%;
}

.hero__text .h1 {
	max-width: 620px;
	margin-top: 25px;
}

.hero__text .lead {
	max-width: 580px;
	margin-top: 23px;
}

.hero__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	margin-top: 36px;
}

.hero__text .checks {
	margin-top: 36px;
}

/*
 * Правая колонка: окно продукта (780 px от x = 738) уходит за край контейнера, как в макете.
 * Ширина считается от окна браузера: на экране уже 1920 px окно ужимается, а не обрезается
 * (справа остаётся поле в один отступ; 100vw с полосой прокрутки — поэтому запас).
 */
.hero__visual {
	--vw: min(780px, calc(100vw - 738px - max((100vw - var(--container)) / 2, var(--gutter)) - var(--gutter)));
	position: absolute;
	top: 0;
	left: 738px;
	width: var(--vw);
	height: calc(var(--vw) * 660 / 780);
}

.hero__visual .shot {
	position: absolute;
	top: calc(var(--vw) * 24 / 780);
	left: 0;
}

/* Плавающие карточки: белые, тень, скругление 16 — привязаны к видимому окну, а не к холсту. */
.float {
	position: absolute;
	border-radius: 16px;
	background: var(--white);
	box-shadow: var(--shadow-float);
}

.float--tg {
	top: 96px;
	left: -80px;
	width: 279px;
	padding: 16px 16px 18px;
}

.float--call {
	right: -16px;
	bottom: -8px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 356px;
	max-width: 100%;
	padding: 16px;
}

.float__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.float__title {
	display: block;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: var(--ink);
}

.float__msg {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: var(--r-sm);
	background: var(--soft);
	font-size: 15px;
	line-height: 22px;
	color: var(--ink);
}

.float__status {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: var(--text2);
}

.float--tg .float__status {
	margin-top: 12px;
}

.float__status--ok,
.float__ok {
	color: var(--success);
}

.float__body {
	min-width: 0;
}

/* ── 03 · Что внутри ─────────────────────────────────────────────────────── */
.section--tiles {
	padding: 72px 0;
}

.tiles__title {
	margin-bottom: 40px;
	text-align: center;
	font-size: 18px;
	line-height: 28px;
	font-weight: 500;
	color: var(--text2);
}

.tiles__list {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 0;
	min-width: 0;
	max-width: 140px;
	height: 120px;
	padding: 0 8px;
	border-radius: 16px;
	background: var(--soft);
	text-align: center;
}

.tile__label {
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
	color: var(--ink);
}

/* ── 04 · Доверие ────────────────────────────────────────────────────────── */
.section--facts {
	padding: 56px 0;
	border-top: 1px solid var(--line);
}

.facts__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 40px;
}

.fact {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 24px;
	text-align: center;
}

.fact + .fact::before {
	content: '';
	position: absolute;
	top: 6px;
	left: 0;
	width: 1px;
	height: 64px;
	background: var(--line);
}

.fact__value {
	font-family: var(--font-head);
	font-size: 40px;
	line-height: 48px;
	font-weight: 800;
	color: var(--primary);
}

.fact__label {
	margin-top: 4px;
	font-size: 16px;
	line-height: 24px;
	color: var(--text2);
}

/* ── 16 · Финальный призыв ───────────────────────────────────────────────── */
.section--cta {
	padding: 112px 0;
	background: var(--dark);
	color: var(--on-dark);
	text-align: center;
}

.cta__title {
	color: var(--on-dark);
}

.cta__lead {
	margin-top: 16px;
	font-size: 20px;
	line-height: 32px;
	color: var(--on-dark-muted);
}

.cta__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
}

.cta__input {
	width: 360px;
	max-width: 100%;
	height: 56px;
	padding: 0 20px;
	border: 2px solid transparent;
	border-radius: var(--r-sm);
	background: var(--white);
	font: 400 18px/24px var(--font);
	color: var(--ink);
}

.cta__input::placeholder {
	color: var(--text2);
	opacity: 1;
}

.cta__input.is-error {
	border-color: var(--danger);
}

.cta__note {
	margin-top: 16px;
	font-size: 16px;
	line-height: 24px;
	color: var(--on-dark-muted);
}

.cta__note.is-error {
	color: #ff9b9b;
}

.cta__note.is-ok {
	color: var(--primary-on-dark);
	font-size: 20px;
	line-height: 32px;
	font-weight: 600;
}

.cta__form[hidden] {
	display: none;
}

.cta__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
	font-size: 17px;
	line-height: 26px;
	font-weight: 600;
}

.cta__link {
	color: var(--primary-on-dark);
	text-decoration: none;
}

.cta__link:hover {
	text-decoration: underline;
}

.cta__dot {
	color: var(--primary-on-dark);
}

/* ── 17 · Подвал ─────────────────────────────────────────────────────────── */
.site-footer {
	/* Снизу запас 96: у самого низа страницы кнопка чата (fixed) не закрывает переключатель языка и ссылки. */
	padding: 72px 0 96px;
	background: var(--darker);
	color: var(--on-dark-muted);
	font-size: 16px;
	line-height: 24px;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--on-dark);
}

.site-footer__grid {
	display: grid;
	/* Доли равны макету (328/168/248/188/188 при контейнере 1280), поэтому на 1920 ничего не меняется,
	   а на 1101–1340 колонки сжимаются, а не выталкивают страницу вбок. */
	grid-template-columns: minmax(0, 328fr) minmax(0, 168fr) minmax(0, 248fr) minmax(0, 188fr) minmax(0, 188fr);
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--on-dark-muted);
}

.site-footer__logo {
	display: flex;
}

.site-footer__tagline {
	margin-top: 20px;
}

.site-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 20px;
}

.site-footer__row {
	display: flex;
	gap: 20px;
}

.site-footer__row dt {
	width: 90px;
	flex: none;
}

.site-footer__row dd a {
	font-weight: 500;
	color: var(--on-dark);
}

.site-footer__socials {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--dark);
	color: var(--on-dark);
}

.social:hover {
	background: var(--primary);
}

.site-footer__head {
	display: block;
	margin-bottom: 20px;
	font-weight: 600;
	color: var(--on-dark);
}

.site-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-top: 48px;
	font-size: 14px;
	line-height: 20px;
}

.site-footer__bottom .lang {
	margin-left: auto;
}

/* Строка юрлица и способы оплаты: под колонками ссылок, над строкой копирайта. */
.site-footer__company {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 32px;
	font-size: 14px;
	line-height: 20px;
}

.site-footer__company p {
	margin: 0;
}

.site-footer__company + .site-footer__bottom {
	padding-top: 24px;
}

/* Способы оплаты: строка текстом и ряд официальных логотипов (поле pay_logos). Знаки не перекрашиваем и не растягиваем:
   высота задана, ширина по пропорции, вокруг свободное поле. Знак, который нельзя ставить на тёмное, — на белой плашке. */
.site-footer__payrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.site-footer__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__paylogo {
	display: flex;
	align-items: center;
	height: 36px;
}

.site-footer__paylogo img {
	display: block;
	width: auto;
	height: 100%;
}

.site-footer__paylogo--plate {
	box-sizing: content-box;
	height: 24px;
	padding: 6px 12px;
	background: #fff;
	border-radius: 8px;
}

.site-footer__paylogo--plate img {
	height: 24px;
}

/* ── Кнопка чата в углу ──────────────────────────────────────────────────── */
.chat-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
}

.chat-fab__bubble {
	padding: 13px 20px;
	border-radius: var(--r-sm);
	background: var(--white);
	box-shadow: var(--shadow-float);
	font-size: 15px;
	line-height: 20px;
	font-weight: 500;
	color: var(--ink);
}

.chat-fab__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
	box-shadow: 0 8px 24px rgba(14, 124, 134, .35);
	transition: background-color .15s;
}

.chat-fab:hover .chat-fab__btn {
	background: var(--primary-dark);
}

/* ── Адаптив ─────────────────────────────────────────────────────────────── */
/* Шапка: полная раскладка макета занимает ~1210 px, поэтому ужимается ступенями, а не на 1100. */
@media (max-width: 1340px) {
	.nav {
		gap: 20px;
	}

	.site-header__side {
		gap: 16px;
	}

	/* Карточка звонка не выходит за окно справа: поле до края экрана тут меньше 16 px (+ полоса прокрутки). */
	.float--call {
		right: 0;
	}
}

@media (max-width: 1280px) {
	.nav {
		gap: 16px;
	}

	.site-header__side > .icon-link {
		display: none;
	}
}

/* Меню за кнопкой. */
@media (max-width: 1220px) {
	.burger {
		display: inline-flex;
	}

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 20px var(--gutter) 24px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 32px rgba(15, 31, 36, .08);
	}

	.site-header.is-open .nav {
		display: flex;
	}

	/* Выпадающая панель в раскрытом меню — просто вложенный список. */
	.nav__item {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
	}

	.nav__item::after,
	.nav__more {
		display: none;
	}

	.nav__drop,
	.nav__item:hover > .nav__drop {
		display: grid;
		position: static;
		min-width: 0;
		width: 100%;
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 12px;
		padding: 0 0 0 16px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.site-header__side > .icon-link {
		display: inline-flex;
	}
}

@media (max-width: 1180px) {
	/* Первый экран в одну колонку: текст, под ним окно с карточками. */
	.hero__inner {
		display: block;
		min-height: 0;
	}

	.hero__text {
		width: auto;
	}

	.hero__actions {
		flex-wrap: wrap;
	}

	.hero__visual {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		max-width: 780px;
		height: auto;
		margin: 56px auto 0;
	}

	.hero__visual .shot {
		position: relative;
		top: auto;
	}

	.float--tg {
		top: 56px;
		left: -8px;
	}

	.float--call {
		right: -8px;
		bottom: -24px;
	}

	.section--hero {
		padding-bottom: 96px;
	}
}

@media (max-width: 1100px) {
	.h1 {
		font-size: 52px;
		line-height: 60px;
	}

	.h2 {
		font-size: 36px;
		line-height: 44px;
	}

	.section {
		padding: 72px 0;
	}

	.tiles__list {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 16px;
	}

	.tile {
		max-width: none;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 40px 32px;
	}

	.site-footer__about {
		grid-column: 1 / -1;
	}
}

/* Шапка: логотип, язык и кнопка меню; вход и призыв — внутри панели.
   Порог 800, а не 640: в ряд «язык, Telegram, Войти, кнопка, меню» не помещается до ~775 px
   (русская кнопка длиннее всех, плюс полоса прокрутки) — страница ползёт вбок. */
@media (max-width: 800px) {
	.site-header__login,
	.site-header__side > .btn,
	.site-header__side > .icon-link {
		display: none;
	}

	.nav__extra {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		width: 100%;
	}

	.nav__extra .btn {
		width: 100%;
	}
}

@media (max-width: 640px) {
	:root {
		--gutter: 16px;
		--header-h: 68px;
	}

	body.dr {
		font-size: 16px;
		line-height: 24px;
	}

	.h1 {
		font-size: 36px;
		line-height: 44px;
	}

	.h2 {
		font-size: 28px;
		line-height: 36px;
	}

	.h3 {
		font-size: 22px;
		line-height: 30px;
	}

	.lead {
		font-size: 18px;
		line-height: 28px;
	}

	.section {
		padding: 56px 0;
	}

	.section__head {
		margin-bottom: 36px;
	}

	.btn--l {
		height: 52px;
		padding: 0 20px;
		font-size: 17px;
	}

	.announce {
		font-size: 14px;
	}

	.badge {
		height: auto;
		min-height: 38px;
		padding: 8px 17px 8px 15px;
		border-radius: 20px;
	}

	.logo__word {
		font-size: 24px;
	}

	.section--hero {
		padding: 40px 0 72px;
	}

	.hero__actions {
		flex-wrap: wrap;
		width: 100%;
	}

	.hero__actions .btn {
		width: 100%;
		white-space: normal;
		text-align: center;
	}

	.hero__visual {
		margin-top: 40px;
	}

	/* Карточки — под окном, а не поверх него. */
	.float {
		position: static;
		width: auto;
		margin-top: 12px;
	}

	.section--tiles {
		padding: 48px 0;
	}

	.tiles__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.facts__list {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.fact + .fact::before {
		top: -14px;
		left: 25%;
		width: 50%;
		height: 1px;
	}

	.section--cta {
		padding: 64px 0;
	}

	.cta__form {
		flex-direction: column;
		align-items: stretch;
	}

	.cta__form .btn,
	.cta__input {
		width: 100%;
	}

	/* Две ссылки под формой могут встать в две строки (узбекский): точка-разделитель тогда повисает в конце первой. */
	.cta__links {
		gap: 8px 24px;
	}

	.cta__dot {
		display: none;
	}

	.site-footer {
		padding: 48px 0 96px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		padding-bottom: 40px;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding-top: 32px;
	}

	.site-footer__bottom .lang {
		margin-left: 0;
	}

	/* Облачко прячем: остаётся круглая кнопка. */
	.chat-fab__bubble {
		display: none;
	}

	.chat-fab {
		right: 16px;
		bottom: 16px;
	}
}

/* Самые узкие телефоны (320–380): шапка в ряд — логотип, язык, кнопка меню — чуть плотнее, чтобы не ползла вбок. */
@media (max-width: 380px) {
	.site-header__inner {
		gap: 8px;
	}

	.site-header__side {
		gap: 8px;
	}

	.logo {
		gap: 6px;
	}

	.logo__word {
		font-size: 22px;
	}

	.lang__item {
		padding: 5px 9px;
	}
}
