/*
 * Главная Doira CRM — стили блоков второй волны, часть 2: 10 chips, 11 case (+ reviews), 12 pricing,
 * 13 steps_card, 14 features, 15 faq (агент Б2; 09 cards_grid — у агента Б1). Владелец файла (шаблоны
 * app/landing-blocks/<тип>.php). Ядро (токены, кнопки, сетка, .shot, .icon-plate, .checks) — в doira.css;
 * здесь только то, чего там нет.
 *
 * Секции макета (1920): 10 и 14 — белые, поля 96; 11, 13, 15 — фон soft, 12 — белая; у 11, 12, 13, 15 поля 112.
 * Адаптив простой: до 1100 колонки складываются, до 640 — одна колонка.
 *
 * ⚠ Поля секции заданы здесь отдельно на каждой ступени: doira.css уменьшает `.section` на 1100 и 640,
 * а `.section--<тип>` той же специфичности стоит позже и перебил бы его.
 */

/* ── Общее: ссылка со стрелкой, поля и фоны секций ─────────────────────────── */
.b2-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 17px;
	line-height: 26px;
	font-weight: 600;
	color: var(--primary);
	text-decoration: none;
}

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

.b2-link .icon {
	transition: transform .15s;
}

.b2-link:hover .icon {
	transform: translateX(3px);
}

.section--chips,
.section--features {
	padding: 96px 0;
}

.section--case,
.section--pricing,
.section--steps_card,
.section--faq,
.section--reviews {
	padding: 112px 0;
}

.section--case,
.section--reviews,
.section--steps_card,
.section--faq {
	background: var(--soft);
}

/* ── 10 · Интеграции ─────────────────────────────────────────────────────── */
.chips__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px 40px;
}

.chip {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 72px;
	padding: 2px 12px 0;
	border-radius: 14px;
	background: var(--soft);
	font-size: 18px;
	line-height: 24px;
	font-weight: 600;
	color: var(--ink);
	text-align: center;
}

.chips__more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

/* ── 11 · Кейс ───────────────────────────────────────────────────────────── */
.case {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 48px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--white);
}

.case__company {
	font-family: var(--font-head);
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
	color: var(--ink);
}

.case__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.case__col {
	padding: 26px 24px 22px;
	border-radius: 16px;
}

.case__col--was {
	background: rgba(214, 69, 69, .1);
}

.case__col--now {
	background: rgba(31, 157, 85, .1);
}

.case__col-title {
	margin: 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
}

.case__col--was .case__col-title,
.case__col--was .case__icon {
	color: var(--danger);
}

.case__col--now .case__col-title,
.case__col--now .case__icon {
	color: var(--success);
}

.case__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 12px;
}

.case__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 17px;
	line-height: 26px;
	color: var(--ink);
}

.case__icon {
	margin-top: 1px;
}

.case__more {
	margin-top: 26px;
}

/* Ряд цифр справа — только когда он есть в данных (по умолчанию скрыт). */
.case--metrics {
	grid-template-columns: minmax(0, 1fr) auto;
}

.case--metrics .case__main {
	padding-right: 48px;
}

.case__metrics {
	width: 389px;
	padding-left: 48px;
	border-left: 1px solid var(--line);
}

.case__figures {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
}

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

.case__label {
	margin: 2px 0 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--text2);
}

.case__note {
	margin-top: 24px;
	font-size: 14px;
	line-height: 24px;
	color: var(--text2);
}

/* ── 11б · Отзывы (в данных скрыты) ─────────────────────────────────────── */
/* Стоят сразу за кейсом на одном фоне: подтягиваем в нижнее поле кейса, между карточками остаётся 24. */
.section--case + .section--reviews {
	margin-top: -88px;
	padding-top: 0;
}

.reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.review {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--white);
}

.review__text {
	margin: 0;
	font-size: 17px;
	line-height: 26px;
	color: var(--ink);
}

.review__by {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
}

.review__ava {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
}

.review__name {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: var(--ink);
}

/* ── 12 · Тарифы ─────────────────────────────────────────────────────────── */
.pricing__toggle {
	display: flex;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 32px;
	padding: 4px 3px;
	border-radius: var(--r-sm);
	background: var(--soft);
}

.pricing__toggle[hidden] {
	display: none;
}

.pricing__tab {
	height: 40px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font: 600 15px/20px var(--font);
	color: var(--text2);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.pricing__tab + .pricing__tab {
	padding: 0 26px;
}

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

.pricing__tab.is-active {
	background: var(--primary);
	color: var(--white);
}

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

/* Рамка у всех 2 px (прозрачная), у «Бизнеса» — цвет: содержимое стоит на одних и тех же местах. */
.plan {
	display: flex;
	flex-direction: column;
	padding: 30px;
	border: 2px solid transparent;
	border-radius: var(--r-card);
	background: var(--soft);
}

.plan--featured {
	border-color: var(--primary);
	background: var(--white);
	box-shadow: 0 24px 64px rgba(15, 31, 36, .09);
}

.plan__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.plan__name {
	font-family: var(--font-head);
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
	color: var(--ink);
}

.plan__audience {
	margin-top: 4px;
	font-size: 17px;
	line-height: 26px;
	color: var(--text2);
}

.plan__badge {
	display: inline-flex;
	align-items: center;
	flex: none;
	height: 28px;
	margin-top: 3px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--gold);
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.plan__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin-top: 24px;
}

.plan__amount {
	font-family: var(--font-head);
	font-size: 44px;
	line-height: 52px;
	font-weight: 800;
	color: var(--ink);
	white-space: nowrap;
}

.plan__unit {
	font-size: 17px;
	line-height: 24px;
	color: var(--text2);
	white-space: nowrap;
}

.plan__alt {
	margin-top: 8px;
	font-size: 15px;
	line-height: 22px;
	color: var(--text2);
}

.plan__alt b {
	font-weight: 600;
	color: var(--ink);
}

/* Месяц / год: оба набора цен в разметке, какой виден — решает data-period у .pricing (ставит doira-b2.js). */
.plan__amount--year,
.plan__alt--year {
	display: none;
}

.pricing[data-period="yearly"] .plan__amount--month,
.pricing[data-period="yearly"] .plan__alt--month {
	display: none;
}

.pricing[data-period="yearly"] .plan__amount--year,
.pricing[data-period="yearly"] .plan__alt--year {
	display: inline;
}

.plan__body {
	flex: 1;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.plan__lead {
	min-height: 24px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--ink);
}

.plan__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.plan__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	line-height: 24px;
	color: var(--ink);
}

.plan__check {
	color: var(--primary);
}

.plan > .btn {
	width: 100%;
	margin-top: 32px;
}

.plan__note {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	color: var(--text2);
}

.pricing__foot {
	margin-top: 32px;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	color: var(--text2);
}

.pricing__dot {
	margin: 0 10px;
}

.pricing__more {
	font-size: 16px;
	line-height: 24px;
	vertical-align: top;
}

/* ── 13 · Внедрение под ключ ─────────────────────────────────────────────── */
.impl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	gap: 80px;
	align-items: stretch;
}

.impl__eyebrow {
	text-align: left;
}

.impl__title {
	margin-top: 16px;
}

.impl__steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.impl__step {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 100px;
	padding: 21px 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--white);
}

.impl__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--primary);
	font-family: var(--font-head);
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
	color: var(--white);
}

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

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

.impl__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: 48px 48px 50px;
	border-radius: var(--r-lg);
	background: var(--dark);
	color: var(--on-dark);
}

.impl__value {
	font-family: var(--font-head);
	font-size: 120px;
	line-height: 130px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--primary-on-dark);
}

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

.impl__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 29px;
	padding-top: 27px;
	border-top: 1px solid var(--on-dark-muted);
}

.impl__sub {
	font-family: var(--font-head);
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
	color: var(--on-dark);
}

.impl__tg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 1px;
	font-size: 16px;
	line-height: 22px;
	color: var(--on-dark-muted);
	text-decoration: none;
}

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

/* ── 14 · Безопасность ───────────────────────────────────────────────────── */
.features__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.feature {
	padding: 32px;
	border-radius: var(--r-card);
	background: var(--soft);
}

.feature__title {
	margin-top: 21px;
	color: var(--ink);
}

.feature__text {
	margin-top: 7px;
	font-size: 16px;
	line-height: 26px;
	color: var(--text2);
}

/* ── 15 · Вопросы и ответы ───────────────────────────────────────────────── */
.faq {
	max-width: 880px;
	margin: 0 auto;
	padding: 10px 40px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--white);
}

.faq__item + .faq__item {
	border-top: 1px solid var(--line);
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
	padding: 28px 0;
	font-family: var(--font-head);
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	color: var(--ink);
	list-style: none;
	cursor: pointer;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q:focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: -3px;
	border-radius: 8px;
}

.faq__sign {
	display: inline-flex;
	flex: none;
	color: var(--text2);
}

.faq__minus,
.faq__item[open] .faq__plus {
	display: none;
}

.faq__item[open] .faq__minus {
	display: block;
}

.faq__item[open] .faq__sign {
	color: var(--primary);
}

.faq__item[open] .faq__q {
	min-height: 0;
	padding-bottom: 13px;
}

.faq__a {
	max-width: 680px;
	padding-bottom: 26px;
	font-size: 17px;
	line-height: 26px;
	color: var(--text2);
}

/* ── Адаптив ─────────────────────────────────────────────────────────────── */
/* Три тарифа в ряд занимают 1052 px на 1100 — цена «1 290 000 сум / мес» ещё помещается, если ужать поля. */
@media (max-width: 1280px) {
	.plan {
		padding: 26px;
	}

	.plan__amount {
		font-size: 38px;
		line-height: 46px;
	}

	.plan__unit {
		font-size: 15px;
	}

	.chips__grid {
		column-gap: 24px;
	}
}

@media (max-width: 1100px) {
	.section--chips,
	.section--features,
	.section--case,
	.section--pricing,
	.section--steps_card,
	.section--faq,
	.section--reviews {
		padding: 72px 0;
	}

	.section--case + .section--reviews {
		margin-top: -48px;
		padding-top: 0;
	}

	.chips__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

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

	.case--metrics .case__main {
		padding-right: 0;
	}

	.case__metrics {
		width: auto;
		margin-top: 32px;
		padding: 32px 0 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.case__figures {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 24px 48px;
	}

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

	/* Тарифы друг под другом: средняя («Бизнес») остаётся выделенной. */
	.pricing__grid {
		grid-template-columns: minmax(0, 560px);
		justify-content: center;
	}

	.plan {
		padding: 30px;
	}

	.plan__amount {
		font-size: 44px;
		line-height: 52px;
	}

	.plan__unit {
		font-size: 17px;
	}

	.impl {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.impl__card {
		gap: 48px;
	}

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

@media (max-width: 640px) {
	.section--chips,
	.section--features,
	.section--case,
	.section--pricing,
	.section--steps_card,
	.section--faq,
	.section--reviews {
		padding: 56px 0;
	}

	.section--case + .section--reviews {
		margin-top: -32px;
		padding-top: 0;
	}

	.chips__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.chip {
		height: 60px;
		padding: 0 8px;
		font-size: 16px;
		line-height: 22px;
	}

	.chips__more {
		margin-top: 28px;
	}

	.case {
		padding: 24px;
		border-radius: var(--r-card);
	}

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

	.case__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.case__col {
		padding: 20px;
	}

	.review {
		padding: 24px;
	}

	.pricing__toggle {
		width: 100%;
	}

	.pricing__tab {
		flex: 1 1 0;
		padding: 0 12px;
	}

	.plan {
		padding: 22px;
	}

	.plan__name {
		font-size: 24px;
		line-height: 32px;
	}

	.plan__amount {
		font-size: 38px;
		line-height: 46px;
	}

	.pricing__part,
	.pricing__more {
		display: block;
	}

	.pricing__more {
		display: inline-flex;
		margin-top: 4px;
	}

	.pricing__dot {
		display: none;
	}

	.pricing__foot {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}

	.impl__step {
		align-items: flex-start;
		padding: 20px;
		gap: 16px;
	}

	.impl__card {
		padding: 32px 24px;
	}

	.impl__value {
		font-size: 84px;
		line-height: 88px;
	}

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

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

	.impl__bottom .btn {
		width: 100%;
	}

	.features__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.feature {
		padding: 24px;
	}

	.faq {
		padding: 4px 20px;
		border-radius: var(--r-card);
	}

	.faq__q {
		min-height: 68px;
		padding: 20px 0;
		font-size: 17px;
	}

	.faq__item[open] .faq__q {
		padding-bottom: 10px;
	}

	.faq__a {
		padding-bottom: 20px;
	}
}
