/* Направление «Интернет-магазин»: /magazin/ и /magazin/tarify/.
 *
 * /magazin/ — макет design/magazin-redesign/index.dc.html (утверждён владельцем 22.10.2026):
 * десктоп 1440 с контейнером 1248, на 1100 и 760 px колонки встают в стопку.
 * /magazin/tarify/ — кадр Figma 1176:8567 (20.10.2026); его правила ниже, в блоках «Уровни» и «/magazin/tarify/».
 *
 * ⚠ Все правила — под `.mg` (обёртка `<main class="mg">`): шапка и подвал сайта
 * лежат вне неё, поэтому пилюли-кнопки и контейнер 1248 их не трогают. Общие
 * классы landing.css (.wrap, .section, .section__head, .eyebrow, .btn, .faq)
 * используются как есть, здесь они только подогнаны под макет.
 * Свои классы — с приставкой `mg-`; в чужие CSS этот файл ничего не пишет.
 *
 * ⚠ Тарифная страница тоже читает этот файл: блоки «Общие части», «Уровни», «FAQ» и
 * «/magazin/tarify/» — её, их правят только вместе с ней. Всё, что с `.mg-page` в селекторе, —
 * только /magazin/ (у тарифов у <body> этого класса нет).
 *
 * Токены сайта (--ink, --line, --blue, --tint, --bg-soft) берутся из landing.css;
 * недостающие (сильный tint, градиенты плиток, тени) — ниже. --muted на /magazin/
 * затемнён до #5b6475 (контраст ≥ 4.5:1 и на --bg-soft); у шапки и подвала остаётся сайтовый.
 */

.mg {
	--mg-tint-strong: #dbeafe;
	--mg-shadow: 0 10px 30px rgba(17, 24, 39, .06);
	--mg-shadow-sm: 0 10px 15px rgba(17, 24, 39, .06);
	--mg-grad-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	--mg-grad-violet: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
	--mg-grad-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
	--mg-grad-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: var(--ink);
}

.mg .wrap { max-width: 1248px; }
.mg [id] { scroll-margin-top: 96px; }

/* ── Общие части ──────────────────────────────────────────────────────── */

.mg .section { padding: 88px 0; }
.mg .section--soft { background: var(--bg-soft); }

.mg .section__head { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.mg .section__head h2 {
	margin: 16px 0 0;
	font-size: 40px;
	line-height: 48px;
	font-weight: 700;
	letter-spacing: 0;
}
.mg .section__head p { margin: 16px 0 0; font-size: 20px; line-height: 30px; color: var(--muted); }
.mg .section__head p:empty { display: none; }

/* Бейдж секции: пилюля tint с синей точкой, капсом. */
.mg .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--tint);
	color: var(--blue);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .08em;
}
.mg .eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* Кнопки кадра: пилюля высотой 52. Primary — штатный `.btn`. */
.mg .btn {
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	font-size: 16px;
	line-height: 1.2;
}
/* Secondary: белая пилюля с линией. */
.mg .btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.mg .btn--line:hover { background: var(--tint); color: var(--blue); }
.mg .btn--block { width: 100%; }

/* Крошки. */
.mg .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 17px; color: var(--muted); }
.mg .crumbs a:hover { color: var(--blue); }
.mg .crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* Плитка-иконка с градиентом: 40 в схеме, 48 в «Что внутри», 44 в услугах, 56 в демо/пробе. */
.mg-ico {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--mg-grad-blue);
	color: #fff;
}
.mg-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-ico--blue { background: var(--mg-grad-blue); }
.mg-ico--violet { background: var(--mg-grad-violet); }
.mg-ico--green { background: var(--mg-grad-green); }
.mg-ico--amber { background: var(--mg-grad-amber); }
.mg-ico--lg { width: 48px; height: 48px; border-radius: 14px; }
.mg-ico--lg svg { width: 24px; height: 24px; }
.mg-ico--xl { width: 56px; height: 56px; border-radius: 16px; }
.mg-ico--xl svg { width: 28px; height: 28px; }

/* Чип: пилюля tint, синий текст 14 Medium. */
.mg-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--tint);
	color: var(--blue);
	font-size: 14px;
	font-weight: 500;
	line-height: 17px;
}
a.mg-chip:hover { background: #fff; }


/* ── Уровни: карточки (одни и те же на /magazin/ и /magazin/tarify/) ──── */

.mg-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }

.mg-level {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--mg-shadow-sm);
}
/* Популярный: рамка синяя 2 px; padding уменьшен на 1 px, чтобы высота не прыгала. */
.mg-level--pop { padding: 27px; border: 2px solid var(--blue); }

.mg-level__head { display: flex; flex-direction: column; gap: 6px; }
.mg-level__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg-level__name h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.mg-level__tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; line-height: 1.2; font-weight: 600; }
.mg-level__for { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }

.mg-level__price { display: flex; flex-direction: column; gap: 4px; }
.mg-level__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.mg-level__sum b { font-size: 40px; line-height: 48px; font-weight: 700; white-space: nowrap; }
.mg-level__sum span { font-size: 14px; line-height: 20px; color: var(--muted); }

.mg-level hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }

/* Кнопка «Обсудить «…» в Telegram»: название тарифа длинное («Профессиональный») — текст переносится, кнопка растёт. */
.mg .mg-level__btn { height: auto; padding: 10px 20px; line-height: 1.25; text-align: center; white-space: normal; }

.mg-level__list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mg-level__list li { display: flex; align-items: flex-start; gap: 12px; }
.mg-level__list b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.mg-level__list span { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
/* Под «не входит» — в каком тарифе группа есть (считается по данным). */
.mg-level__list .mg-level__alt { margin-top: 2px; font-weight: 600; color: var(--blue); }

/* Значок «входит» / «нет»: круг 20, рисуется фоном — лишних файлов не надо. */
.mg-mark { flex: none; width: 20px; height: 20px; border-radius: 10px; background: #f3f4f6 center / 12px no-repeat; }
.mg-mark--yes {
	background-color: var(--mg-tint-strong);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231d4ed8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E");
}
.mg-mark--no {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 6h6'/%3E%3C/svg%3E");
}

.mg-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 48px; text-align: center; }
.mg-more p { margin: 0; font-size: 14px; color: var(--muted); }
/* Длинная подпись (в узбекской версии — 50 знаков) не должна упираться в края экрана. */
.mg .mg-more .btn { max-width: 100%; height: auto; padding: 14px 28px; line-height: 1.3; text-align: center; white-space: normal; }


/* ── FAQ: строки с плюсом (партиал faq.php) ───────────────────────────── */

.mg .wrap--narrow { max-width: 1248px; }
.mg .faq { display: flex; flex-direction: column; gap: 0; max-width: none; margin: 0; }
.mg .faq__item { padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.mg .faq__item summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.mg .faq__item summary::-webkit-details-marker { display: none; }
.mg .faq__item summary::after {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%231d4ed8' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 2v10M2 7h10'/%3E%3C/svg%3E") center / 14px no-repeat;
	transform: none;
}
.mg .faq__item[open] summary::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%231d4ed8' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 7h10'/%3E%3C/svg%3E");
	transform: none;
}
.mg .faq__answer { padding: 0 64px 24px 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.mg .faq__answer p { margin: 0; }
/* FAQ тарифов — на белом, как в кадре; у партиала фон секции всегда мягкий. */
.mg-faq--white .section--soft { background: #fff; }

/* ── /magazin/tarify/: заголовок, бонусы, таблица, демо и проба ───────── */

.mg-top { padding: 48px 0 72px; background: linear-gradient(90deg, var(--bg-soft) 0%, #e8ecfb 100%); }
.mg-top__text { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin-top: 24px; }
.mg-top h1 { margin: 0; font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: 0; }
.mg-top p { margin: 0; font-size: 20px; line-height: 30px; color: var(--muted); }

.mg-levels-sec { padding: 64px 0 88px; background: #fff; }

.mg-bonus { padding: 72px 0; background: var(--bg-soft); }
.mg-bonus__band {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 40px 56px;
	border-radius: 32px;
	background: linear-gradient(90deg, #1d4ed8 0%, #1e40af 100%);
	color: #fff;
}
.mg-bonus__text { flex: 1; min-width: 0; }
.mg-bonus__text h2 { margin: 0 0 8px; font-size: 28px; line-height: 36px; font-weight: 700; color: #fff; }
.mg-bonus__text p { margin: 0; font-size: 16px; line-height: 24px; color: var(--mg-tint-strong); }
.mg-bonus__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-bonus__chips b { padding: 14px 20px; border-radius: 999px; background: #fff; color: var(--blue); font-size: 20px; line-height: 24px; font-weight: 700; white-space: nowrap; }

/* Таблица дополнений: 332 + 444 + остаток — как колонки кадра (300/420/366 плюс поля). */
.mg-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--mg-shadow);
}
.mg-table thead th {
	padding: 14px 12px;
	background: var(--bg-soft);
	color: var(--muted);
	font-size: 12px;
	line-height: 15px;
	font-weight: 600;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
}
.mg-table tbody td { padding: 20px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mg-table tbody tr:last-child td { border-bottom: 0; }
.mg-table th:first-child, .mg-table td:first-child { width: 332px; padding-left: 32px; }
.mg-table th:nth-child(2), .mg-table td:nth-child(2) { width: 444px; }
.mg-table th:last-child, .mg-table td:last-child { padding-right: 32px; }
.mg-table__name { font-size: 16px; line-height: 24px; font-weight: 600; }
.mg-table__price { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--blue); }
.mg-table__note { font-size: 14px; line-height: 20px; color: var(--muted); }

.mg-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.mg-duo__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 40px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--mg-shadow);
}
.mg-duo__card--trial { padding: 39px; border: 2px solid var(--mg-tint-strong); }
.mg-duo__card h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.mg-duo__card p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.mg-duo__card p.mg-duo__small { font-size: 14px; line-height: 20px; }
.mg-duo__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-nowrap { white-space: nowrap; }
.mg-duo__fill { flex: 1; width: 100%; min-height: 8px; }
.mg-duo__btns { display: flex; flex-wrap: wrap; gap: 12px; }


/* ═══════════════════════════════════════════════════════════════════════
   /magazin/ (body.mg-page): страница о продукте
   ═══════════════════════════════════════════════════════════════════════ */

.mg-page .mg {
	--muted: #5b6475;
	--mg-green: #047857;
	--mg-green-bg: #ecfdf5;
	--mg-amber: #b45309;
	--mg-amber-bg: #fffbeb;
	--mg-tg: #0e6f9e;
	--mg-tg-hover: #0b5a80;
	--mg-grad-final: linear-gradient(135deg, #1e40af 0%, #1d4ed8 60%, #2563eb 100%);
}
.mg-page .mg [id] { scroll-margin-top: 120px; }
.mg-page .mg :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Заголовок секции: eyebrow 14 px капсом, как в макете. */
.mg-page .mg .eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* Кнопка Telegram — тёмнее сайтовой (#229ED9 даёт белому тексту контраст 3:1). */
.mg .btn--tg { background: var(--mg-tg, #0e6f9e); }
.mg .btn--tg:hover { background: var(--mg-tg-hover, #0b5a80); }

.mg-i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mg .mg-ico .mg-i { width: 20px; height: 20px; }
.mg .mg-ico--lg .mg-i { width: 24px; height: 24px; }

/* ── 1 · Hero ─────────────────────────────────────────────────────────── */

.mg-hero { padding: 32px 0 56px; background: linear-gradient(90deg, var(--bg-soft) 0%, #e8ecfb 100%); }
.mg-hero__cols { display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 520fr); gap: 56px; align-items: center; margin-top: 32px; }
.mg-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.mg-hero h1 { margin: 0; font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: 0; }
.mg-hero__lead { margin: 0; font-size: 20px; line-height: 30px; color: var(--muted); }

.mg-cta { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.mg-cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mg-cta__note { font-size: 14px; line-height: 20px; color: var(--muted); }

.mg-select { position: relative; width: 210px; max-width: 100%; }
.mg-cta__row .btn { padding: 0 24px; }
.mg-select select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 52px;
	padding: 0 44px 0 20px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6475' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
	color: var(--muted);
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}
/* Пока выбран пустой пункт (required), цвет приглушён; выбрали отрасль — чернила. */
.mg-select select:valid { color: var(--ink); }
.mg-select select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .16); }
.mg-select option { color: var(--ink); }
.mg-select option:disabled { color: #9ca3af; }

.mg-hero__tg { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--mg-tg); }
.mg-hero__tg:hover { text-decoration: underline; }

/* Мозаика справа. */
.mg-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mg-mosaic__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mg-mosaic__col--b { margin-top: 40px; }

.mg-mcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--mg-shadow-sm); }
.mg-cap { font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--muted); }
.mg-nophoto { display: grid; place-items: center; width: 100%; height: 120px; border-radius: 12px; background: var(--tint); color: var(--blue); }
.mg-nophoto .mg-i { width: 56px; height: 56px; stroke-width: 1.4; }
.mg-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--mg-green-bg); color: var(--mg-green); font-size: 14px; line-height: 1.4; font-weight: 600; }
.mg-badge .mg-i { width: 14px; height: 14px; }
.mg-mcard__name { font-weight: 600; line-height: 1.3; }
.mg-mcard__price { font-size: 20px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.mg-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-specs span { padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); font-size: 14px; color: var(--muted); }

.mg-channel { display: flex; align-items: center; gap: 10px; }
.mg-channel__t b { display: block; font-size: 16px; line-height: 1.2; }
.mg-channel__t span { font-size: 14px; color: var(--muted); }
.mg-post { width: 100%; padding: 12px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; line-height: 1.45; }
.mg-post b { display: block; font-size: 15px; }
.mg-post__btn { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--mg-tg); color: #fff; font-size: 14px; font-weight: 600; }

.mg-receipt { gap: 8px; }
.mg-receipt__title { font-size: 16px; font-weight: 700; }
.mg-receipt__row { display: flex; justify-content: space-between; gap: 8px; width: 100%; font-size: 14px; white-space: nowrap; }
.mg-receipt__row--sum { font-size: 16px; font-weight: 700; }
.mg-receipt hr { width: 100%; height: 0; margin: 2px 0; border: 0; border-top: 1px dashed var(--line); }

.mg-label { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px; border: 1px dashed var(--muted); border-radius: 10px; }
.mg-label b { font-size: 15px; }
.mg-label span { font-size: 14px; color: var(--muted); }
.mg-bars { display: flex; align-items: stretch; gap: 2px; height: 30px; margin-top: 4px; }
.mg-bars i { display: block; flex: none; background: var(--ink); }

.mg-stat { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mg-stat b { display: block; font-size: 15px; line-height: 1.3; }
.mg-stat span { color: var(--muted); }

/* Полоса доверия. */
.mg-trust { border-bottom: 1px solid var(--line); background: #fff; }
.mg-trust__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 20px; padding-bottom: 20px; }
.mg-pays { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mg-pay { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 700; }
.mg-pay img { display: block; width: auto; max-width: none; height: 22px; }
.mg-pay--click { color: #0a6fb8; }
.mg-pay--payme { color: #0f766e; }
.mg-pay--uzum { color: #6d28d9; }
.mg-pay--alif { color: #b91c1c; }
.mg-trust__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.mg-trust__facts span { display: inline-flex; align-items: center; gap: 8px; }
.mg-trust__facts .mg-i { color: var(--blue); }

/* ── 2 · Как это работает + что входит ────────────────────────────────── */

.mg-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.mg-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px; text-align: center; }
.mg-step:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: calc(50% + 34px); right: calc(-50% + 34px); border-top: 2px dashed #93b4f5; }
.mg-step h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; }
.mg-step p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.mg-step small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--ink); }

.mg-gtitle { margin: 56px 0 0; text-align: center; font-size: 24px; line-height: 32px; font-weight: 700; }
.mg-gsub { margin: 6px 0 0; text-align: center; color: var(--muted); }
.mg-gsub a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mg-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.mg-gcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--mg-shadow-sm); }
.mg-gcard h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.mg-gcard p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.mg-gcard__from { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* ── 3 · Демо ─────────────────────────────────────────────────────────── */

.mg-inds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mg-ind { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid transparent; border-radius: var(--radius); background: #fff; box-shadow: var(--mg-shadow-sm); transition: border-color .15s, transform .15s; }
.mg-ind:hover { border-color: var(--blue); transform: translateY(-2px); }
.mg-ind__pv { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 104px; padding: 10px; border-radius: 12px; background: var(--bg-soft); }
.mg-ind__pv i { display: block; width: 60%; height: 10px; border-radius: 5px; background: var(--blue); }
.mg-ind__pv div { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mg-ind__pv b { border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mg-ind h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.mg-ind p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mg-ind__etalon { font-size: 14px; font-weight: 600; color: var(--mg-green); }
.mg-ind__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; font-size: 15px; font-weight: 600; color: var(--blue); }

.mg-soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.mg-soon__lab { margin-right: 4px; font-size: 14px; color: var(--muted); }
.mg-soon__chip { padding: 4px 12px; border: 1px dashed var(--muted); border-radius: 999px; font-size: 14px; color: var(--muted); }
.mg-noind { margin: 20px 0 0; text-align: center; color: var(--muted); }
.mg-noind a { color: var(--mg-tg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── 4 · Кейсы ────────────────────────────────────────────────────────── */

.mg-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.mg-case { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--mg-shadow); transition: transform .15s, box-shadow .15s; }
.mg-case:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(17, 24, 39, .1); }
.mg-case__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mg-case__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mg-case__tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border: 1px solid #fcd34d; border-radius: 999px; background: var(--mg-amber-bg); color: var(--mg-amber); font-size: 14px; font-weight: 600; }
.mg-case__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; }
.mg-case__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-case h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; }
.mg-case p { margin: 0; color: var(--muted); }
.mg-case__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: 600; color: var(--blue); }

/* ── 5 · Сравнение ────────────────────────────────────────────────────── */

.mg-tblwrap { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--mg-shadow); }
/* Дополнения на /magazin/tarify/: обёртка держит рамку и скругление вместо самой таблицы. */
.mg-tblwrap--add { border: 1px solid var(--line); }
.mg-tblwrap--add .mg-table { border: 0; border-radius: 0; box-shadow: none; }
/* Подсказка над широкой таблицей: показывается только там, где она листается вбок (см. «Адаптив»). */
.mg-swipe { display: none; margin: 0 0 10px; font-size: 14px; line-height: 20px; text-align: right; color: var(--muted); }
.mg-cmp, .mg-ftbl { width: 100%; border-collapse: collapse; }
.mg-cmp { min-width: 860px; }
.mg-cmp th, .mg-cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.45; }
.mg-cmp thead th { font-size: 16px; }
.mg-cmp tbody th { width: 18%; font-weight: 600; }
.mg-cmp tbody td { color: var(--muted); }
.mg-cmp .mg-us { background: var(--tint); box-shadow: inset 2px 0 0 var(--blue), inset -2px 0 0 var(--blue); color: var(--ink); }
.mg-cmp thead .mg-us { background: var(--blue); color: #fff; }
.mg-cmp tr:last-child th, .mg-cmp tr:last-child td { border-bottom: 0; }
.mg-cmp .mg-yes { color: var(--mg-green); font-weight: 600; }
.mg-fn { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ── 6 · Тарифы ───────────────────────────────────────────────────────── */

/* Переключатель и табы существуют только со скриптом (класс is-js на #mg-tariffs). */
.mg-task, .mg-tabs { display: none; }
.mg-tariffs.is-js .mg-task { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 32px; }
.mg-task > span { margin-right: 6px; font-size: 15px; color: var(--muted); }
.mg-task button { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; }
.mg-task button:hover { border-color: var(--blue); color: var(--blue); }
.mg-task button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 600; }

.mg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.mg-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 28px 28px; border: 2px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .2s, border-color .2s; }
.mg-plan--pop { border-color: var(--blue); }
.mg-plan.is-match { border-color: var(--blue); box-shadow: 0 0 0 4px var(--mg-tint-strong), var(--mg-shadow); }
.mg-plan__pop { position: absolute; top: -16px; left: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; }
.mg-plan__pop .mg-i { width: 14px; height: 14px; }
.mg-plan h3 { margin: 0; font-size: 24px; line-height: 1.2; }
.mg-plan__for { margin: -8px 0 0; font-size: 15px; color: var(--muted); }
.mg-plan__price b { display: block; font-size: 36px; line-height: 1.1; font-weight: 700; white-space: nowrap; }
.mg-plan__price small { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--muted); }

.mg-keys { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.mg-keys li { display: flex; align-items: flex-start; gap: 10px; }
.mg-keys .mg-i { width: 18px; height: 18px; margin-top: 3px; color: var(--mg-green); }
.mg-keys li.is-off { color: var(--muted); }
.mg-keys li.is-off .mg-i { color: var(--muted); }
.mg-keys__val { display: none; }
.mg-plan__btn { margin-top: auto; padding: 10px 20px; line-height: 1.25; text-align: center; white-space: normal; }

.mg-example { display: flex; align-items: center; gap: 16px; max-width: 820px; margin: 32px auto 0; padding: 20px 24px; border-radius: var(--radius); background: var(--tint); box-shadow: inset 0 0 0 1px var(--mg-tint-strong); }
.mg-example b { display: block; font-size: 20px; line-height: 1.3; }
.mg-example span { font-size: 15px; color: var(--muted); }

.mg-full { margin-top: 48px; }
.mg-full h3 { margin: 0 0 20px; text-align: center; font-size: 24px; }
.mg-ftbl { min-width: 860px; table-layout: fixed; }
.mg-ftbl th, .mg-ftbl td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.45; }
.mg-ftbl thead th { border-bottom: 2px solid var(--line); background: #fff; font-size: 16px; }
.mg-ftbl thead small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }
.mg-ftbl thead th.is-pop { color: var(--blue); }
.mg-ftbl tbody th { width: 16%; font-weight: 600; }
.mg-ftbl td small { color: var(--muted); font-size: 14px; }
.mg-ftbl .is-pop { background: var(--tint); }
.mg-ftbl thead .is-match { box-shadow: inset 0 3px 0 var(--blue); }
.mg-ftbl tbody .is-match { background: var(--tint); }
.mg-ftbl tr:last-child th, .mg-ftbl tr:last-child td { border-bottom: 0; }
.mg-na { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.mg-na .mg-i { width: 16px; height: 16px; }

.mg-addons { margin-top: 56px; }
.mg-addons h3 { margin: 0; text-align: center; font-size: 24px; }
.mg-addons > p { margin: 6px 0 24px; text-align: center; color: var(--muted); }
.mg-addgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.mg-add { display: flex; justify-content: space-between; gap: 20px; padding: 16px 20px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mg-add b { display: block; font-size: 16px; line-height: 1.3; }
.mg-add span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.mg-add em { font-size: 15px; font-style: normal; font-weight: 700; text-align: right; white-space: nowrap; }
.mg-add em.is-long { max-width: 190px; white-space: normal; }

/* ── 7 · Запуск ───────────────────────────────────────────────────────── */

.mg-launch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mg-lc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--mg-shadow-sm); }
.mg-lc__n { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.mg-lc h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.mg-lc p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ── 8 · FAQ на /magazin/: колонка уже, как в макете ──────────────────── */

.mg-page .mg .wrap--narrow { max-width: 920px; }

/* ── 9 · Финальный блок ───────────────────────────────────────────────── */

.mg-final { padding: 88px 0; background: var(--mg-grad-final); color: #fff; text-align: center; }
.mg-final h2 { max-width: 760px; margin: 0 auto; font-size: 40px; line-height: 48px; font-weight: 700; }
.mg-final__lead { max-width: 640px; margin: 16px auto 0; font-size: 20px; line-height: 30px; color: var(--mg-tint-strong); }
.mg .mg-final__btn { min-height: 64px; margin-top: 32px; padding: 0 40px; background: #fff; color: var(--blue); font-size: 18px; }
.mg .mg-final__btn:hover { background: var(--tint); }
.mg-final__btn .mg-i { width: 24px; height: 24px; }
.mg-final__alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 32px; margin-top: 24px; }
.mg-final__alt a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.mg-final__alt a:hover { text-decoration: underline; }

/* Закреплённая панель «Написать в Telegram» + звонок — только телефон. Справа 96 px свободно под круглый чат-виджет. */
.mg-tgbar { display: none; }

/* ── Адаптив ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.mg-bonus__band { flex-direction: column; align-items: flex-start; }

	.mg-hero__cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.mg-hero h1 { font-size: 44px; line-height: 52px; }
	.mg-mosaic { max-width: 560px; }
	.mg-inds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mg-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mg-launch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Таблица дополнений на планшете: колонки в процентах, а не 332 + 444 px, — иначе она шире экрана и колонка «Подпись» сжимается. */
@media (min-width: 761px) and (max-width: 1100px) {
	.mg-table th:first-child, .mg-table td:first-child { width: 30%; padding-left: 24px; }
	.mg-table th:nth-child(2), .mg-table td:nth-child(2) { width: 36%; }
	.mg-table th:last-child, .mg-table td:last-child { padding-right: 24px; }
}

/* Широкие таблицы («Сравнение», «Полное сравнение тарифов», 860 px) листаются вбок внутри обёртки: сверху подсказка,
   подписи строк закреплены слева, чтобы после прокрутки к нашей колонке было видно, что в какой строке. */
@media (max-width: 910px) {
	.mg-swipe { display: block; }

	.mg-cmp tbody th, .mg-cmp thead th:first-child,
	.mg-ftbl tbody th, .mg-ftbl thead th:first-child {
		position: sticky;
		left: 0;
		z-index: 2;
		background: #fff;
		box-shadow: 8px 0 8px -8px rgba(17, 24, 39, .22);
	}
	.mg-cmp thead th:first-child, .mg-ftbl thead th:first-child { z-index: 3; }
	.mg-cmp tbody th, .mg-cmp thead th:first-child { width: 112px; min-width: 112px; max-width: 112px; padding: 14px 12px; font-size: 14px; }
	.mg-ftbl thead th:first-child { width: 128px; }
	.mg-ftbl tbody th { width: 128px; padding-left: 14px; padding-right: 12px; font-size: 14px; }
	.mg-cmp { min-width: 820px; }
	.mg-cmp td, .mg-cmp thead th:not(:first-child) { min-width: 168px; }
}

@media (max-width: 900px) {
	.mg-levels { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
	.mg-duo { grid-template-columns: minmax(0, 1fr); }

	.mg-cases { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
	.mg-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
	.mg-plan--pop { margin-top: 12px; }
	.mg-addgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Телефон: всё в стопку, ничего не выходит за экран ────────────────── */

@media (max-width: 760px) {
	.mg .section { padding: 56px 0; }
	.mg .section__head { margin-bottom: 32px; }
	.mg .section__head h2,
	.mg-final h2 { font-size: 28px; line-height: 36px; }
	.mg .section__head p,
	.mg-final__lead,
	.mg-hero__lead,
	.mg-top p { font-size: 17px; line-height: 26px; }

	.mg-top { padding: 32px 0 48px; }
	.mg-top h1 { font-size: 36px; line-height: 42px; }
	.mg-top__text { margin-top: 24px; }
	.mg-levels-sec { padding: 40px 0 56px; }

	.mg-bonus { padding: 40px 0; }
	.mg-bonus__band { padding: 28px 20px; border-radius: 24px; }

	.mg-duo__card { padding: 28px 22px; }
	.mg-duo__card--trial { padding: 27px 21px; }
	.mg-duo__btns .btn { width: 100%; }

	.mg .faq__item summary { font-size: 17px; line-height: 24px; }
	.mg .faq__answer { padding-right: 0; }

	/* Таблица дополнений: каждая строка — карточкой. */
	.mg-table, .mg-table tbody, .mg-table tr, .mg-table td { display: block; }
	.mg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.mg-table tbody tr { padding: 18px 20px; border-bottom: 1px solid var(--line); }
	.mg-table tbody tr:last-child { border-bottom: 0; }
	.mg-table tbody td,
	.mg-table th:first-child, .mg-table td:first-child,
	.mg-table th:nth-child(2), .mg-table td:nth-child(2),
	.mg-table th:last-child, .mg-table td:last-child { width: auto; padding: 0; border: 0; }
	.mg-table td + td { margin-top: 6px; }

	/* ── только /magazin/ ── */
	.mg-hero { padding: 16px 0 40px; }
	.mg-page .mg .crumbs { display: none; }
	.mg-hero__cols { gap: 28px; margin-top: 0; }
	.mg-hero__text { gap: 18px; width: 100%; }
	.mg-hero h1 { font-size: 32px; line-height: 40px; }
	.mg-cta__row { flex-direction: column; align-items: stretch; }
	.mg-select { width: 100%; }
	.mg-cta__row .btn { width: 100%; padding: 0 24px; }
	.mg-mosaic { grid-template-columns: minmax(0, 1fr); max-width: none; }
	.mg-mosaic__col--b { margin-top: 0; }
	.mg-hide-m { display: none; }

	.mg-trust__in { padding-top: 16px; padding-bottom: 16px; }
	.mg-trust__facts { flex-direction: column; }

	.mg-flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mg-step { flex-direction: row; align-items: flex-start; gap: 14px; padding: 0; text-align: left; }
	.mg-step:not(:last-child)::after { display: none; }
	.mg-step h3 { margin-top: 0; }
	.mg-groups { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.mg-gtitle { margin-top: 40px; }

	.mg-inds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mg-ind { padding: 10px 10px 12px; }
	/* «Стройматериалы и инструменты» в карточке на половину экрана (~137 px под текст): слово «Стройматериалы» при 15 px
	   ≈ 127 px — входит; на самых узких экранах переносится (знак переноса — там, где браузер знает русские слоги). */
	.mg-ind h3 { font-size: 15px; overflow-wrap: anywhere; hyphens: auto; }
	.mg-ind__pv { height: 72px; }
	.mg-ind__go .mg-i { display: none; }

	.mg-case__body { padding: 18px; }

	/* Тарифы: со скриптом — табы и одна карточка; без скрипта — три карточки колонкой. Таблицы нет: значения — в карточке. */
	.mg-tariffs.is-js .mg-tabs { display: flex; gap: 6px; margin-bottom: 28px; padding: 4px; border-radius: 999px; background: var(--mg-tint-strong); }
	.mg-tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: 14px; font-weight: 600; }
	.mg-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
	.mg-tariffs.is-js .mg-task { justify-content: flex-start; }
	.mg-tariffs.is-js .mg-task > span { width: 100%; }
	.mg-task button { flex: 1 1 auto; padding: 0 12px; }
	.mg-tariffs.is-js .mg-plan { display: none; }
	.mg-tariffs.is-js .mg-plan.is-show { display: flex; }
	.mg-plans { max-width: none; }
	.mg-plan { padding: 28px 20px 20px; }
	.mg-keys__val { display: block; font-size: 14px; color: var(--muted); }
	.mg-keys b { font-weight: 600; }
	.mg-full { display: none; }
	.mg-example { flex-direction: column; align-items: flex-start; gap: 8px; }
	.mg-add { flex-direction: column; gap: 6px; }
	.mg-add em, .mg-add em.is-long { max-width: none; text-align: left; white-space: normal; }

	.mg-launch { grid-template-columns: minmax(0, 1fr); }

	.mg-final { padding: 56px 0; }
	.mg .mg-final__btn { width: 100%; padding: 0 24px; font-size: 17px; white-space: normal; text-align: center; }

	/* Нижняя панель: Telegram + звонок; справа 96 px под круглый чат-виджет (он 64 px, от края 24 — занимает 88 px; 8 px зазор). */
	.mg-tgbar { position: fixed; z-index: 40; right: 96px; bottom: 12px; left: 12px; display: flex; gap: 8px; }
	.mg-tgbar .btn { flex: 1; min-width: 0; min-height: 52px; padding: 0 10px; gap: 6px; border-radius: 999px; background: #0e6f9e; font-size: 15px; line-height: 1.15; text-align: center; justify-content: center; box-shadow: 0 8px 24px rgba(17, 24, 39, .22); }
	.mg-tgbar__call { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(17, 24, 39, .22); color: var(--ink); }
	/* Отступ, чтобы панель не закрывала низ подвала. */
	body.mg-page { padding-bottom: 76px; }
}

/* 320 px: кнопка Telegram в панели 152 px — значок не помещается рядом с подписью, остаётся слово. */
@media (max-width: 340px) {
	.mg-tgbar .btn .mg-i { display: none; }
}

/* ── Читаемость на планшете и телефоне: тело карточек — не меньше 15 px, подписи — не меньше 13 px ───────────────────── */

@media (max-width: 900px) {
	.mg-level__for, .mg-level__list b, .mg-level__list span, .mg-level__sum span, .mg-level__list .mg-level__alt,
	.mg-table__note, .mg-add span, .mg-ind p, .mg-ind__etalon, .mg-gcard__from, .mg-step small,
	.mg-keys__val, .mg-duo__card p.mg-duo__small, .mg-example span, .mg-case__tag, .mg-fn { font-size: 15px; line-height: 1.45; }
	.mg .eyebrow, .mg-page .mg .eyebrow, .mg-level__tag { font-size: 13px; }
}
