/* Общая шкура рекламных страниц (/amocrm/, /bitrix24/, дальше /wazzup/, /whatcrm/).
   Палитра и типографика — общие с лендингом (landing.css подключается первым),
   здесь только блоки этих страниц.

   Акцент задаётся токенами: страница вешает на body свой класс (.page--bx)
   и переопределяет --blue / --blue-dark / --tint / --tint-strong. Значения
   по умолчанию равны палитре лендинга, поэтому страница без класса выглядит
   ровно так, как выглядела до выноса файла. */

:root {
	/* Насыщенная заливка значков и бейджей — на тон плотнее, чем --tint. */
	--tint-strong: #dbeafe;
}

/* Битрикс24: свой синий, чуть светлее и «холоднее» фирменного синего лендинга. */
.page--bx {
	--blue: #0b6bcb;
	--blue-dark: #0a5495;
	--tint: #e9f4fd;
	--tint-strong: #cfe6fa;
}

/* WhatCRM: зелёный мессенджеров — страница про WhatsApp и Telegram. */
.page--wc {
	--blue: #12a150;
	--blue-dark: #0d7a3c;
	--tint: #eaf7f0;
	--tint-strong: #cdebd9;
}

/* Sipuni: оранжевый — телефония, а не мессенджеры. */
.page--sp {
	--blue: #c2650f;
	--blue-dark: #964d0a;
	--tint: #fdf3e8;
	--tint-strong: #f7ddbf;
}

/* Wazzup: фиолетовый — чтобы две страницы про мессенджеры не путались. */
.page--wz {
	--blue: #6d3fd4;
	--blue-dark: #542fa8;
	--tint: #f1ecfd;
	--tint-strong: #ddd2f8;
}

/* ── Первый экран ────────────────────────────────────────────────────── */

.hero-a { padding: 64px 0 72px; background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%); }
.hero-a__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-a h1 { margin: 20px 0 16px; font-size: 46px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.hero-a h1 span { color: var(--blue); }
.hero-a__lead { max-width: 520px; margin: 0 0 26px; color: #4b5563; font-size: 17px; }
.hero-a__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-a__trust { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-a__trust b { display: block; color: var(--ink); font-size: 20px; font-weight: 800; }

.checklist { display: grid; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: #374151; font-size: 15px; }
.checklist li::before {
	content: '✓';
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--tint-strong);
	color: var(--blue-dark);
	font-size: 12px;
	font-weight: 800;
}

.pricecard { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
	box-shadow: 0 18px 40px rgba(17, 24, 39, .08); }
.pricecard__top { display: flex; align-items: baseline; gap: 8px; }
.pricecard__label { color: var(--muted); font-size: 13px; }
.pricecard__sum { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.pricecard__unit { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.pricecard__rows { display: grid; gap: 10px; margin-bottom: 18px; }
.pricecard__note { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.pricerow { display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.pricerow span { color: var(--muted); font-size: 13px; }

.btn--wide { width: 100%; justify-content: center; }

/* ── Боли ────────────────────────────────────────────────────────────── */

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.pain__mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
	border-radius: 10px; background: #fef2f2; color: #dc2626; font-size: 17px; }
.pain h3 { margin: 0 0 8px; font-size: 16px; }
.pain p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Возможности ─────────────────────────────────────────────────────── */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.feature__mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
	border-radius: 10px; background: var(--tint-strong); color: var(--blue-dark); font-size: 17px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

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

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.plan--best { border-color: var(--blue); box-shadow: 0 18px 40px rgba(29, 78, 216, .12); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.plan__name { font-size: 19px; font-weight: 800; }
.plan__tag { padding: 4px 10px; border-radius: 999px; background: var(--tint-strong); color: var(--blue-dark);
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan__sum { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.plan__unit { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.plan__year { margin: -12px 0 18px; color: var(--muted); font-size: 13px; }
.plan__list { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none;
	color: #374151; font-size: 14px; }
.plan__list li { display: flex; gap: 8px; }
.plan__list li::before { content: '•'; color: var(--blue); }

/* Тариф без публичной цены (Энтерпрайз) — широкой полосой под сеткой. */
.plan--wide { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
	margin-top: 18px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
	background: var(--bg-soft); }
.plan--wide h3 { margin: 0 0 6px; font-size: 18px; }
.plan--wide p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Калькулятор ─────────────────────────────────────────────────────── */

.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding: 28px;
	border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.calc__field { margin-bottom: 18px; }
.calc__label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.calc__options { display: flex; gap: 8px; flex-wrap: wrap; }
.calc__opt { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff; font-size: 14px; }
.calc__opt.is-on { border-color: var(--blue); background: var(--tint); color: var(--blue-dark); font-weight: 600; }
.calc__users { display: inline-flex; align-items: center; gap: 16px; padding: 6px 10px;
	border: 1px solid var(--line); border-radius: var(--radius); }
.calc__users button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--tint);
	color: var(--blue-dark); font-size: 18px; line-height: 1; }
.calc__users input { width: 62px; border: 0; font: inherit; font-size: 16px; font-weight: 700; text-align: center; }
.calc__result { display: flex; flex-direction: column; justify-content: center; padding: 24px;
	border-radius: var(--radius-lg); background: var(--tint); }
.calc__sum { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.calc__hint { margin: 6px 0 18px; color: var(--muted); font-size: 13px; }
.calc__bonus { margin-bottom: 18px; padding: 10px 14px; border-radius: var(--radius); background: #dcfce7;
	color: #166534; font-size: 13px; font-weight: 600; }

/* ── Сравнение оплаты за компанию и за пользователя ───────────────────── */

.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th,
.compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare th { color: var(--muted); font-size: 13px; font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare td b { font-weight: 700; }
.compare__win { color: var(--blue-dark); font-weight: 700; }
.compare__note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

/* Прайс и состав тарифов виджета: первая колонка — подпись строки. */
.compare--grid td:first-child,
.compare--grid th:first-child { position: sticky; left: 0; background: #fff; font-weight: 600; }
.compare--grid td { font-size: 14px; }
.compare__yes { color: #16a34a; font-weight: 700; }
.compare__no { color: #d1d5db; }
.compare__dash { color: var(--muted); }

/* ── Каталог виджетов (/vidjets/) ─────────────────────────────────────── */

.catalog__lead { max-width: 680px; margin: -24px auto 0; color: var(--muted); font-size: 15px; text-align: center; }
.catalog__lead b { color: var(--ink); }

.wcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.wcard { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--line);
	border-radius: var(--radius-lg); background: #fff; }
.wcard--link { transition: border-color .15s, box-shadow .15s, transform .15s; }
.wcard--link:hover { border-color: var(--blue); box-shadow: 0 16px 36px rgba(17, 24, 39, .09); transform: translateY(-2px); }
.wcard__top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.wcard__logo { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px;
	border-radius: 14px; background: var(--tint); color: var(--blue-dark); font-size: 20px; font-weight: 800; }
.wcard h2 { margin: 0; font-size: 21px; font-weight: 800; }
.wcard__crm { display: flex; gap: 6px; margin-top: 6px; }
.wcard__crm span { padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
	color: var(--muted); font-size: 11px; font-weight: 600; }
.wcard__text { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.wcard__channels { margin-bottom: 18px; padding: 10px 14px; border-radius: var(--radius);
	background: var(--bg-soft); color: var(--ink); font-size: 13px; font-weight: 600; }
.wcard__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
	padding-top: 16px; border-top: 1px solid var(--line); }
.wcard__price { display: block; font-size: 19px; font-weight: 800; }
.wcard__unit { color: var(--muted); font-size: 12px; }
.wcard__count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.wcard__more { margin-top: 18px; color: var(--blue); font-size: 14px; font-weight: 700; }

/* «Кому подходит» — список под карточками объяснения. */
.fits { max-width: 760px; margin: 40px auto 0; padding: 28px 32px; border: 1px solid var(--line);
	border-radius: var(--radius-lg); background: var(--tint); }
.fits h3 { margin: 0 0 18px; font-size: 18px; }
.fits .checklist { margin: 0; }

/* Переключатель «amoCRM / Битрикс24» над таблицей состава. */
.switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.switch button { padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff; font-size: 14px; }
.switch button.is-on { border-color: var(--blue); background: var(--tint); color: var(--blue-dark); font-weight: 600; }

/* ── Виджеты ─────────────────────────────────────────────────────────── */

.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line);
	border-radius: var(--radius-lg); background: #fff; }
.addon__logo { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px;
	border-radius: 12px; background: var(--tint); color: var(--blue-dark); font-size: 16px; font-weight: 800; }
.addon h3 { margin: 0 0 4px; font-size: 16px; }
.addon p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.addon b { font-size: 14px; }
/* Вендор со своей посадочной — вся карточка кликабельна. */
.addon--link { transition: border-color .15s, box-shadow .15s; }
.addon--link:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(17, 24, 39, .08); }
.addon__more { display: block; margin-top: 6px; color: var(--blue-dark); font-size: 13px; font-weight: 600; }

/* ── Этапы ───────────────────────────────────────────────────────────── */

.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.stage__num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
	border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; }
.stage h3 { margin: 0 0 6px; font-size: 16px; }
.stage p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.stage__time { color: var(--blue-dark); font-size: 12px; font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--blue); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ── Заявка ──────────────────────────────────────────────────────────── */

.cta { padding: 44px; border-radius: var(--radius-lg);
	background: radial-gradient(900px 320px at 50% -30%, var(--blue-dark) 0%, #111827 70%); color: #fff; text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: 32px; font-weight: 900; letter-spacing: -.02em; }
.cta p { max-width: 560px; margin: 0 auto 26px; color: #cbd5e1; }
.leadform { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.leadform input { width: 230px; padding: 14px 16px; border: 0; border-radius: var(--radius); font: inherit; font-size: 15px; }
.leadform .btn { padding: 14px 26px; background: #22c55e; }
.leadform .btn:hover { background: #16a34a; }
.cta__small { color: #94a3b8; font-size: 12px; }
.cta__links { display: flex; gap: 18px; justify-content: center; margin-top: 20px; font-size: 14px; }
.cta__links a { color: #93c5fd; }

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

@media (max-width: 980px) {
	.hero-a__inner,
	.calc { grid-template-columns: 1fr; }
	.pains,
	.features,
	.plans,
	.addons { grid-template-columns: 1fr; }
	.stages { grid-template-columns: repeat(2, 1fr); }
	.plan--wide { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.hero-a h1 { font-size: 32px; }
	.stages { grid-template-columns: 1fr; }
	.cta { padding: 28px 20px; }
	.leadform input { width: 100%; }
}
/* Две кнопки подряд в итоге калькулятора: КП и оформление в кабинете. */
.calc__result .btn--wide + .btn--wide { margin-top: 8px; }

/* «Получить КП» на посадочных — та же кнопка, что на главной, но акцент берётся
   из палитры страницы. Соседнюю «Получить расчёт» приглушаем: две одинаково
   яркие кнопки в шапке спорят друг с другом, и не видно ни одной. */

.nav__kp {
	position: relative;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 8px 18px -6px rgba(17, 24, 39, .45);
	transition: transform .15s, box-shadow .15s, background .15s;
	animation: kpPulse 2.4s ease-out 1s 2;
}
.nav__kp:hover {
	background: var(--blue-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -8px rgba(17, 24, 39, .5);
}

.nav__side .btn--sm { background: var(--tint); color: var(--blue-dark); }
.nav__side .btn--sm:hover { background: var(--tint-strong); }

@media (max-width: 980px) {
	.nav__menu { display: flex; margin-left: auto; }
	.nav__menu a:not(.nav__kp) { display: none; }
}

@media (max-width: 620px) {
	.nav__kp { padding: 9px 14px; font-size: 14px; }
}

@media (max-width: 760px) {
	.nav__inner { gap: 12px; }
	.nav__side .btn--sm { display: none; }
}

/* ── Короткая форма в карточке цены: точка захвата в первом экране ───── */

.leadform--tight { flex-direction: column; gap: 8px; margin: 12px 0 10px; }
.leadform--tight input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font-size: 14px;
}
.leadform--tight input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.leadform--tight .btn { width: 100%; padding: 13px 18px; }

/* ── Строка цен: краткая витрина, подробности — на странице тарифов ──── */

.pricestrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pricestrip__item {
	display: block;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, transform .15s ease;
}
.pricestrip__item:hover { border-color: var(--blue); transform: translateY(-2px); }
.pricestrip__item:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pricestrip__name { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.pricestrip__sum { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.pricestrip__unit { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pricestrip__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.pricestrip__more span { color: var(--muted); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
	.pricestrip__item { transition: none; }
	.pricestrip__item:hover { transform: none; }
}
