/* ==========================================================================
   «О нас», новая версия — одобрена Амиром по эскизу (30.09.2026).
   pages/about.blade.php, корень .ab3. Стиль — как «Контакты» (contacts-v3.css).

   Первый экран: надзаголовок капсом с разрядкой, заголовок в три строки
   («Сервис объявлений.» + фиолетовое «С рассрочкой / по нормам ислама.»),
   иллюстрация вёрсткой в cqw — иконка КупиТак на кольцах, вокруг плитки
   категорий (как «Категории на сервисе» главной: название сверху слева,
   картинка из админки справа снизу), плашка «Рассрочка по нормам ислама».
   Дальше: лиловый блок «Мы объединяем» (как «Свяжитесь с нами»),
   «Операторы рассрочки» (карточки как выбор компании), «После одобрения
   оператор» — шаги, фиолетовый итог и крупный блок про нормы шариата.
   Телефон — столбиком под шапкой page-mhead, без нижнего меню; в
   иллюстрации 4 плитки по углам, крупнее.
   ========================================================================== */

.ab3 {
	--page-gutter: 15px;
	--ab3-line: color-mix(in srgb, var(--light-gray) 60%, var(--white));
	--ab3-tint: color-mix(in srgb, var(--accent) 10%, var(--white));
	color: var(--black);
}

body:has(.ab3),
main.content:has(.ab3) {
	background: var(--light);
}

:where(.ab3) :where(p, h1, h2, ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- крошки (ПК) ---------- */
.ab3-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	font-size: 16px;
	color: var(--gray);
}

.ab3-crumbs a {
	color: var(--gray);
	transition: color 0.2s ease;
}

.ab3-crumbs a:hover {
	color: var(--accent);
}

/* ==========================================================================
   1. Первый экран
   ========================================================================== */
.ab3-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 40px;
	min-height: 560px;
}

.ab3-eyebrow {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
}

.ab3-title {
	margin-top: 22px;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -1.4px;
}

.ab3-title span {
	color: var(--accent);
}

.ab3-sub {
	margin-top: 32px;
	font-size: 20px;
	line-height: 1.7;
	color: var(--gray);
}

.ab3-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	color: var(--black);
	font-size: 20px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.ab3-link:hover {
	color: var(--accent);
}

.ab3-link svg {
	width: 22px;
	height: 22px;
}

/* иллюстрация: размеры в cqw от её ширины (на ПК ≈ 500) */
.ab3-art {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 500 / 520;
}

.ab3-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.ab3-ring--1 {
	width: 92cqw;
	height: 92cqw;
}

.ab3-ring--2 {
	width: 56cqw;
	height: 56cqw;
}

.ab3-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22cqw;
	height: 22cqw;
	border-radius: 6cqw;
	box-shadow: 0 4cqw 11cqw color-mix(in srgb, var(--accent) 32%, transparent);
	transform: translate(-50%, -50%);
}

.ab3-pill {
	position: absolute;
	top: calc(50% + 15cqw);
	left: 50%;
	padding: 3.4cqw 5cqw;
	border-radius: 3.4cqw;
	background: var(--accent);
	color: var(--white);
	font-size: 3.6cqw;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 3cqw 8cqw color-mix(in srgb, var(--accent) 30%, transparent);
	transform: translateX(-50%) rotate(-2deg);
}

.ab3-cat {
	position: absolute;
	width: 32cqw;
	height: 17cqw;
	padding: 2.2cqw 2.6cqw;
	overflow: hidden;
	border-radius: 3.6cqw;
	background: var(--white);
	box-shadow: 0 3cqw 9cqw color-mix(in srgb, var(--accent) 11%, transparent);
}

.ab3-cat span {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 62%;
	font-size: 2.7cqw;
	font-weight: 600;
	line-height: 1.25;
}

.ab3-cat img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right bottom;
}

.ab3-cat--1 { top: 3%; left: 2%; transform: rotate(-4deg); }
.ab3-cat--2 { top: 6%; left: 66%; transform: rotate(3deg); }
.ab3-cat--3 { top: 40%; left: -1%; transform: rotate(3deg); }
.ab3-cat--4 { top: 42%; left: 68%; transform: rotate(-3deg); }
.ab3-cat--5 { top: 79%; left: 6%; transform: rotate(-2deg); }
.ab3-cat--6 { top: 80%; left: 62%; transform: rotate(4deg); }

.ab3-spark {
	position: absolute;
	top: 22%;
	left: 44%;
	width: 6cqw;
	height: 6cqw;
	color: var(--pink);
}

.ab3-spark svg {
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   2. Мы объединяем — лиловый блок, как «Свяжитесь с нами» у «Контактов»
   ========================================================================== */
.ab3-unite {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 40px;
	margin-top: 40px;
	padding: 48px;
	border-radius: 40px;
	background: color-mix(in srgb, var(--accent) 7%, var(--light));
}

.ab3-unite-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: var(--white);
	color: var(--accent);
}

.ab3-unite-icon svg {
	width: 28px;
	height: 28px;
}

.ab3-unite-title {
	margin-top: 28px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.5px;
}

.ab3-who {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

.ab3-who li {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 26px 28px;
	border-radius: 24px;
	background: var(--white);
}

.ab3-who-ic {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--ab3-tint);
	color: var(--accent);
}

.ab3-who-ic svg {
	width: 26px;
	height: 26px;
}

.ab3-who b {
	display: block;
	font-size: 24px;
	font-weight: 700;
}

.ab3-who li > span:last-child > span {
	display: block;
	margin-top: 4px;
	font-size: 17px;
	line-height: 1.45;
	color: var(--gray);
}

/* ==========================================================================
   3. Операторы рассрочки
   ========================================================================== */
.ab3-sec {
	margin-top: 72px;
}

.ab3-sec-title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.ab3-sec-sub {
	max-width: 760px;
	margin-top: 14px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--gray);
}

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

.ab3-op {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-width: 0;
	height: 150px;
	padding: 0 20px;
	border: 1px solid var(--ab3-line);
	border-radius: 24px;
	background: var(--white);
}

.ab3-logo-kupitak {
	width: auto;
	height: 36px;
	max-width: 80%;
}

.ab3-logo-fincity {
	width: auto;
	height: 30px;
	max-width: 80%;
	object-fit: contain;
}

.ab3-op span {
	font-size: 18px;
	line-height: 1.3;
	text-align: center;
	color: var(--gray);
}

.ab3-foot {
	margin-top: 18px;
	font-size: 17px;
	color: var(--gray);
}

/* ==========================================================================
   4. После одобрения оператор + итог + нормы шариата
   ========================================================================== */
.ab3-how {
	scroll-margin-top: 144px; /* якорь «Как это работает» под шапкой ПК */
}

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

.ab3-steps li {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px;
	border: 1px solid var(--ab3-line);
	border-radius: 28px;
	background: var(--white);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
}

.ab3-steps em {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--white);
	font-style: normal;
	font-size: 20px;
	font-weight: 700;
}

.ab3-sum {
	position: relative;
	margin-top: 24px;
	padding: 44px 48px;
	overflow: hidden;
	border-radius: 32px;
	background: var(--accent);
	color: var(--white);
}

.ab3-sum::after {
	content: "";
	position: absolute;
	top: -140px;
	right: -80px;
	width: 360px;
	height: 360px;
	border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
	border-radius: 50%;
}

.ab3-sum p {
	position: relative;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.4px;
}

.ab3-sum p span {
	color: color-mix(in srgb, var(--white) 70%, transparent);
}

.ab3-shariat {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 24px;
	padding: 32px 40px;
	border: 1px solid var(--ab3-line);
	border-radius: 32px;
	background: var(--white);
}

.ab3-shariat-ic {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 22px;
	background: var(--ab3-tint);
	color: var(--accent);
}

.ab3-shariat-ic svg {
	width: 36px;
	height: 36px;
}

.ab3-shariat p {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.3px;
}

.ab3-shariat p span {
	color: var(--accent);
}

/* ==========================================================================
   ПК
   ========================================================================== */
@media (min-width: 769px) {
	.ab3 {
		padding: 24px 0 32px;
	}
}

/* узкий ПК / планшет */
@media (min-width: 769px) and (max-width: 1100px) {
	.ab3-hero {
		gap: 24px;
		min-height: 0;
		padding: 16px 0 8px;
	}

	.ab3-title {
		font-size: 44px;
	}

	.ab3-sub {
		font-size: 18px;
	}

	.ab3-sub br {
		display: none;
	}

	.ab3-unite {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ab3-unite-title br {
		display: none;
	}

	.ab3-sum p {
		font-size: 28px;
	}
}

/* ==========================================================================
   Телефон — столбиком под шапкой page-mhead, без нижнего меню
   ========================================================================== */
@media (max-width: 768px) {
	body:has(.ab3) .mobile-menu {
		display: none;
	}

	body:has(.ab3) .footer {
		margin-bottom: max(24px, env(safe-area-inset-bottom));
	}

	.ab3 .page-msheet {
		padding: 24px 15px 40px;
	}

	.ab3-crumbs {
		display: none;
	}

	.ab3-sub br,
	.ab3-unite-title br,
	.ab3-sum br,
	.ab3-shariat br {
		display: none;
	}

	/* 1. первый экран */
	.ab3-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		min-height: 0;
	}

	.ab3-eyebrow {
		font-size: 12px;
	}

	.ab3-title {
		margin-top: 12px;
		font-size: 32px;
		line-height: 1.14;
		letter-spacing: -0.6px;
	}

	.ab3-sub {
		margin-top: 14px;
		font-size: 15px;
		line-height: 1.55;
	}

	.ab3-link {
		margin-top: 16px;
		font-size: 16px;
	}

	.ab3-link svg {
		width: 18px;
		height: 18px;
	}

	/* иллюстрация: 4 плитки по углам, крупнее (подписи читаются) */
	.ab3-art {
		aspect-ratio: 345 / 400;
	}

	.ab3-ring--1 {
		width: 96cqw;
		height: 96cqw;
	}

	.ab3-ring--2 {
		width: 60cqw;
		height: 60cqw;
	}

	.ab3-logo {
		width: 25cqw;
		height: 25cqw;
		border-radius: 7cqw;
	}

	.ab3-pill {
		top: calc(50% + 17cqw);
		padding: 3.6cqw 5.4cqw;
		border-radius: 4cqw;
		font-size: 4.3cqw;
	}

	.ab3-cat {
		width: 44cqw;
		height: 23cqw;
		padding: 3cqw 3.4cqw;
		border-radius: 4.6cqw;
	}

	.ab3-cat span {
		font-size: 3.7cqw;
	}

	.ab3-cat--3,
	.ab3-cat--4 {
		display: none;
	}

	.ab3-cat--1 { top: 1%; left: 0; }
	.ab3-cat--2 { top: 4%; left: 56%; }
	.ab3-cat--5 { top: 79%; left: 2%; }
	.ab3-cat--6 { top: 80%; left: 54%; }

	.ab3-spark {
		top: 30%;
		left: 22%;
		width: 7cqw;
		height: 7cqw;
	}

	/* 2. Мы объединяем */
	.ab3-unite {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		margin-top: 28px;
		padding: 20px;
		border-radius: 24px;
	}

	.ab3-unite-head {
		display: flex;
		align-items: center;
		gap: 14px;
	}

	.ab3-unite-icon {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.ab3-unite-icon svg {
		width: 22px;
		height: 22px;
	}

	.ab3-unite-title {
		margin-top: 0;
		font-size: 24px;
		letter-spacing: 0;
	}

	.ab3-who {
		gap: 10px;
	}

	.ab3-who li {
		gap: 14px;
		padding: 16px;
		border-radius: 20px;
	}

	.ab3-who-ic {
		width: 44px;
		height: 44px;
		border-radius: 14px;
	}

	.ab3-who-ic svg {
		width: 22px;
		height: 22px;
	}

	.ab3-who b {
		font-size: 18px;
	}

	.ab3-who li > span:last-child > span {
		margin-top: 2px;
		font-size: 14px;
	}

	/* 3. Операторы */
	.ab3-sec {
		margin-top: 36px;
	}

	.ab3-sec-title {
		font-size: 24px;
		letter-spacing: 0;
	}

	.ab3-sec-sub {
		margin-top: 8px;
		font-size: 14px;
		line-height: 1.5;
	}

	.ab3-ops {
		gap: 8px;
		margin-top: 16px;
	}

	.ab3-op {
		gap: 10px;
		height: 100px;
		padding: 0 8px;
		border-radius: 20px;
	}

	.ab3-logo-kupitak {
		height: 24px;
	}

	.ab3-logo-fincity {
		height: 19px;
	}

	.ab3-op span {
		font-size: 12px;
	}

	.ab3-foot {
		margin-top: 12px;
		font-size: 14px;
		line-height: 1.5;
	}

	/* 4. Шаги, итог, нормы шариата */
	.ab3-how {
		scroll-margin-top: 16px;
	}

	.ab3-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		margin-top: 16px;
	}

	.ab3-steps li {
		gap: 14px;
		padding: 16px;
		border-radius: 20px;
		font-size: 16px;
	}

	.ab3-steps em {
		width: 36px;
		height: 36px;
		font-size: 15px;
	}

	.ab3-sum {
		margin-top: 12px;
		padding: 22px 20px;
		border-radius: 24px;
	}

	.ab3-sum::after {
		top: -120px;
		right: -120px;
		width: 240px;
		height: 240px;
	}

	.ab3-sum p {
		font-size: 20px;
		letter-spacing: -0.2px;
	}

	.ab3-shariat {
		gap: 14px;
		margin-top: 12px;
		padding: 18px;
		border-radius: 24px;
	}

	.ab3-shariat-ic {
		width: 52px;
		height: 52px;
		border-radius: 16px;
	}

	.ab3-shariat-ic svg {
		width: 26px;
		height: 26px;
	}

	.ab3-shariat p {
		font-size: 17px;
		letter-spacing: 0;
	}
}
