/* ===================================================================
   РЕДИЗАЙН 2026 — страница «Ответы на вопросы» (/faq/)
   Скоуп: .rd-faq . Токены/шрифты — из redesign.css. Крошки — глобальные (.bx-breadcrumb).
   =================================================================== */
.rd-faq {
	background: var(--rd-bg);
	color: #fff;
	font-family: 'Roboto Flex', Arial, sans-serif;
	padding-bottom: 120px;
}

/* ---- Заголовок (крошки рендерит глобальный компонент выше) ---- */
.rd-faq__head { padding-top: 60px; text-align: center; }
.rd-faq__h1 {
	font-family: var(--rd-font-head);
	text-transform: uppercase;
	font-weight: 900;
	line-height: .95;
	letter-spacing: .5px;
	font-size: clamp(40px, 5vw, 76px);
	margin: 0;
	color: #fff;
}

/* ---- Табы-категории (пилюли, центр) ---- */
/* Ширина ограничена как у колонки вопросов ниже (1060px) — с 7 категориями строка
   переносится ровными рядами внутри этой же ширины, а не «съезжает» на весь экран. */
.rd-faq__tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 1060px;
	margin: 44px auto 0;
}
.rd-faq__tab {
	border: 0;
	background: #262626;
	color: rgba(255,255,255,.85);
	font-family: 'Roboto Flex', Arial, sans-serif;
	font-weight: 600;
	font-size: 15px;
	padding: 13px 24px;
	border-radius: 100px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}
.rd-faq__tab:hover { background: #333; }
.rd-faq__tab.is-active { background: var(--rd-accent); color: #fff; }

/* ---- Аккордеон (центрированная колонка ~1060px) ---- */
.rd-faq__list {
	max-width: 1060px;
	margin: 56px auto 0;
}
.rd-faq__item {
	border-top: 1px solid #2d2d2d;
}
.rd-faq__item:last-child { border-bottom: 1px solid #2d2d2d; }
.rd-faq__item[hidden] { display: none; }

.rd-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 28px 4px;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	color: #fff;
	font-family: 'Roboto Flex', Arial, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.25;
	transition: color .2s ease;
}
.rd-faq__q:hover { color: var(--rd-accent); }
.rd-faq__chev {
	flex: 0 0 auto;
	width: 22px; height: 22px;
	transition: transform .3s ease;
	color: rgba(255,255,255,.7);
}
.rd-faq__item.is-open .rd-faq__chev { transform: rotate(180deg); color: #fff; }

/* тело ответа — плавное раскрытие через grid-rows */
.rd-faq__a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s ease;
}
.rd-faq__item.is-open .rd-faq__a { grid-template-rows: 1fr; }
.rd-faq__a-in { overflow: hidden; }
.rd-faq__a-body {
	padding: 0 4px 30px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255,255,255,.62);
	max-width: 900px;
}
.rd-faq__a-body p { margin: 0 0 14px; }
.rd-faq__a-body p:last-child { margin-bottom: 0; }
.rd-faq__a-body ol,
.rd-faq__a-body ul { margin: 0 0 14px; padding-left: 22px; }
.rd-faq__a-body li { margin-bottom: 8px; }
.rd-faq__a-body b, .rd-faq__a-body strong { color: rgba(255,255,255,.85); font-weight: 600; }

.rd-faq__empty {
	text-align: center;
	color: rgba(255,255,255,.5);
	font-size: 16px;
	padding: 40px 0;
}

/* ===================================================================
   АДАПТИВ
   =================================================================== */
@media (max-width: 900px) {
	.rd-faq { padding-bottom: 72px; }
	.rd-faq__head { padding-top: 24px; }
	.rd-faq__h1 { font-size: clamp(30px, 8.5vw, 44px); }
	.rd-faq__tabs {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: none;
		margin: 28px calc(-1 * var(--rd-gutter)) 0;
		padding: 0 var(--rd-gutter) 6px;
		scrollbar-width: none;
	}
	.rd-faq__tabs::-webkit-scrollbar { display: none; }
	.rd-faq__list { margin-top: 36px; }
	.rd-faq__q { font-size: 17px; padding: 22px 0; gap: 16px; }
	.rd-faq__a-body { font-size: 14px; }
}
