/* =========================================================
   Technolo Audit AI — Editorial Sand + Teal v1
   Bootstrap 5, base font 18px, без правок HTML
========================================================= */

/* -------- Tokens -------- */
:root {
	/* базовые */
	--ta-text: #241b1b;
	--ta-muted: #6b7280;
	--ta-bg: #faf7f2; /* песочный фон */
	--ta-surface: #ffffff;

	/* акценты (новая палитра) */
	--ta-teal: #a8560e; /* основной акцент (бирюза) */
	--ta-teal-ink: #90350b;
	--ta-coral: #e93a46; /* тёплый дополнительный */
	--ta-amber: #f2546c;

	/* обводки/тени/радиусы */
	--ta-border: rgba(27, 31, 36, 0.12);
	--ta-sep: rgba(27, 31, 36, 0.1);
	--ta-shadow-xs: 0 4px 12px rgba(27, 31, 36, 0.08);
	--ta-shadow-sm: 0 10px 24px rgba(27, 31, 36, 0.1);
	--ta-shadow-md: 0 16px 36px rgba(27, 31, 36, 0.12);
	--ta-radius: 14px;
	--ta-radius-lg: 22px;

	/* декоративные */
	--ta-stripe: linear-gradient(
		90deg,
		rgba(14, 165, 168, 0.06) 0 1px,
		transparent 1px 28px
	);
}

@media (prefers-color-scheme: dark) {
	:root {
		--ta-bg: #221214;
		--ta-surface: #121a23;
		--ta-text: #e8eef5;
		--ta-muted: #a6b0bd;
		--ta-border: rgba(232, 238, 245, 0.16);
		--ta-sep: rgba(232, 238, 245, 0.12);
		--ta-shadow-xs: 0 4px 12px rgba(0, 0, 0, 0.35);
		--ta-shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.4);
		--ta-shadow-md: 0 16px 36px rgba(0, 0, 0, 0.5);
		--ta-stripe: linear-gradient(
			90deg,
			rgba(14, 165, 168, 0.12) 0 1px,
			transparent 1px 28px
		);
	}
}

/* -------- Base / Type -------- */
html,
body {
	height: 100%;
}
body {
	background: radial-gradient(
			900px 420px at 100% -10%,
			rgba(233, 106, 58, 0.06),
			transparent 60%
		),
		radial-gradient(
			900px 420px at 0% 110%,
			rgba(14, 165, 168, 0.07),
			transparent 60%
		),
		var(--ta-bg);
	color: var(--ta-text);
	font-size: 18px;
	line-height: 1.64;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1 {
	font-weight: 800;
	letter-spacing: 0.2px;
}
h2,
h3 {
	font-weight: 700;
	letter-spacing: 0.2px;
}
h4,
h5 {
	font-weight: 600;
}
.lead {
	color: var(--ta-muted);
}

/* журнальные заголовки секций — с ленточкой */
section .h4 {
	position: relative;
	padding-left: 14px;
	margin-bottom: 0.8rem;
}
section .h4::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2rem;
	bottom: 0.2rem;
	width: 6px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--ta-teal), var(--ta-teal-ink));
	box-shadow: 0 6px 14px rgba(14, 165, 168, 0.25);
}

/* -------- Links & Buttons -------- */
a {
	color: var(--ta-teal);
	text-decoration: none;
}
a:hover {
	color: var(--ta-teal-ink);
	text-decoration: underline;
}

.btn {
	border-radius: 999px; /* капсулы */
	padding: 0.78rem 1.15rem;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.22s ease,
		transform 0.06s ease;
}
.btn:active {
	transform: translateY(1px);
}
.btn-primary {
	background: linear-gradient(135deg, var(--ta-teal), #41c7ca);
	border: none;
	color: #fff;
	box-shadow: 0 12px 26px rgba(14, 165, 168, 0.3);
}
.btn-primary:hover {
	background: linear-gradient(135deg, #41c7ca, var(--ta-teal-ink));
}
.btn-outline-secondary {
	border: 1px solid var(--ta-border);
	color: var(--ta-text);
	background: #fff;
}
.btn-outline-secondary:hover {
	border-color: var(--ta-teal);
	color: var(--ta-teal);
	background: rgba(14, 165, 168, 0.08);
}
/* тёплая кнопка */
.btn-warm {
	background: linear-gradient(135deg, var(--ta-coral), #ff8b61);
	color: #fff;
	border: none;
	box-shadow: 0 12px 26px rgba(233, 106, 58, 0.28);
}
.btn-warm:hover {
	background: linear-gradient(135deg, #ff8b61, var(--ta-coral));
}

/* -------- Navbar -------- */
.navbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.9) !important;
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--ta-sep) !important;
}
.navbar-brand {
	font-weight: 800;
	letter-spacing: 0.25px;
}
.nav-link {
	color: var(--ta-text);
	padding: 0.6rem 0.9rem;
	border-radius: 12px;
}
.nav-link:hover {
	color: var(--ta-teal);
	background: rgba(14, 165, 168, 0.08);
}

/* -------- Hero (рваный край + боковой штамп) -------- */
.hero {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ta-border);
	border-radius: var(--ta-radius-lg);
	background: linear-gradient(
			180deg,
			rgba(14, 165, 168, 0.06),
			rgba(14, 165, 168, 0.02)
		),
		var(--ta-surface);
	box-shadow: var(--ta-shadow-md);
	padding: 56px;
}
.hero::after {
	content: '';
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(
		closest-side,
		rgba(233, 106, 58, 0.16),
		rgba(233, 106, 58, 0) 70%
	);
	filter: blur(8px);
}
.hero::before {
	/* «рваный» низ секции */
	content: '';
	position: absolute;
	left: -5%;
	right: -5%;
	bottom: -1px;
	height: 22px;
	background:
		radial-gradient(
				18px 12px at 10px 12px,
				transparent 12px,
				var(--ta-surface) 12px
			)
			repeat-x,
		radial-gradient(
				18px 12px at 28px -1px,
				transparent 12px,
				var(--ta-surface) 12px
			)
			repeat-x;
	background-size:
		36px 22px,
		36px 22px;
	background-position:
		0 0,
		18px 0;
	opacity: 0.55;
}
.list-unstyled .fa-check {
	color: #22c55e;
}

/* -------- Cards (журнальный бордюр) -------- */
.card-soft {
	position: relative;
	background: #fff;

	border-radius: var(--ta-radius);
	padding: 24px;
	box-shadow: var(--ta-shadow-xs);
	transition:
		transform 0.16s ease,
		box-shadow 0.22s ease,
		border-color 0.16s ease;
}

.card-soft:hover {
	transform: translateY(-3px);
	box-shadow: var(--ta-shadow-sm);
	border-color: rgba(27, 31, 36, 0.18);
}
.card-soft img {
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(27, 31, 36, 0.12);
}

/* -------- Section surfaces -------- */
section {
	scroll-margin-top: 90px;
}
section.bg-white {
	background: var(--ta-surface) !important;
	box-shadow: inset 0 1px 0 var(--ta-sep);
}

/* -------- Per-block styling (позиция) -------- */
/* 1) Problém → Řešení */
header + section {
	background: linear-gradient(180deg, #fff, #fffdf9);
}
header + section .col-lg-6:first-child {
	border-right: 1px dashed var(--ta-sep);
}
@media (max-width: 991.98px) {
	header + section .col-lg-6:first-child {
		border-right: none;
		border-bottom: 1px dashed var(--ta-sep);
		padding-bottom: 1rem;
	}
}

/* 2) Moduly produktu — бейдж-икон + плитка */
header + section + section .card-soft h5 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
header + section + section .card-soft h5::before {
	content: '';
	width: 34px;
	height: 34px;
	border-radius: 9px;
	display: inline-block;
	background: linear-gradient(135deg, var(--ta-teal-ink), var(--ta-teal));
	box-shadow: 0 8px 16px rgba(14, 165, 168, 0.25);
}

/* 3) Integrace & Kanály — «полосатая» таблица */
header + section + section + section .table {
	background-image: var(--ta-stripe);
	background-size: 29px 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--ta-shadow-xs);
}
header + section + section + section thead th {
	background: linear-gradient(
		90deg,
		rgba(14, 165, 168, 0.12),
		rgba(14, 165, 168, 0.06)
	);
	border-bottom: 2px solid var(--ta-border) !important;
}
header + section + section + section tbody tr:hover > * {
	background: rgba(14, 165, 168, 0.06);
}

/* 4) Proces — таймлайн */
header + section + section + section + section {
	background: linear-gradient(180deg, #fffdf9, #fff);
}
header + section + section + section + section ol {
	list-style: none;
	padding-left: 0;
	position: relative;
}
header + section + section + section + section ol::before {
	content: '';
	position: absolute;
	left: 10px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--ta-sep);
	border-radius: 2px;
}
header + section + section + section + section li {
	position: relative;
	padding-left: 40px;
	margin-bottom: 1rem;
}
header + section + section + section + section li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.25rem;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--ta-teal);
	box-shadow: 0 0 0 4px rgba(14, 165, 168, 0.18);
}

/* 5) KPI — карточка вывода */
#impact-out {
	background: linear-gradient(180deg, #fff, #f6fbfb);
	border: 1px solid var(--ta-border);
	border-radius: 12px;
	padding: 14px;
	box-shadow: var(--ta-shadow-xs);
}
#impact-form .form-label {
	font-weight: 700;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
	background: rgba(14, 165, 168, 0.05);
}

/* 6) FAQ — бока с лентой */
section:last-of-type .accordion-item {
	border: 1px solid var(--ta-border);
	border-radius: 16px !important;
	overflow: hidden;
	box-shadow: var(--ta-shadow-xs);
}
section:last-of-type .accordion-item::before {
	content: '';
	position: absolute;
	left: -1px;
	top: 0;
	bottom: 0;
	width: 6px;
	background: linear-gradient(180deg, var(--ta-coral), var(--ta-amber));
}
.accordion-button {
	/* background: #fff; */
	color: var(--ta-teal-ink);
}
.accordion-button:not(.collapsed) {
	background: rgba(14, 165, 168, 0.08);
	color: var(--ta-teal-ink);
}

/* -------- Dark gradient sections (тёплые, без синего/чёрного) -------- */
.section-deep-warm {
	color: #f4efe8;
	background: radial-gradient(
			900px 420px at 90% 0%,
			rgba(242, 178, 84, 0.2),
			transparent 60%
		),
		linear-gradient(180deg, #3b2f2a, #2f2723 60%, #3b2f2a);
	border-top: 1px solid rgba(242, 178, 84, 0.22) !important;
	border-bottom: 1px solid rgba(242, 178, 84, 0.18) !important;
}
.section-deep-warm .h4::before {
	background: var(--ta-amber);
}
.section-deep-warm .text-muted {
	color: #efe7dc !important;
}
.section-deep-warm .card-soft {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.06),
		rgba(255, 255, 255, 0.03)
	);
	color: #f4efe8;
	border-color: rgba(242, 178, 84, 0.24);
}
.section-deep-warm .btn-outline-secondary {
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}
.section-deep-warm .btn-outline-secondary:hover {
	border-color: #ffd8a2;
	color: #ffd8a2;
	background: rgba(255, 216, 162, 0.12);
}

.section-deep-olive {
	color: #eef5ef;
	background: radial-gradient(
			1000px 520px at 12% -10%,
			rgba(127, 191, 142, 0.18),
			transparent 60%
		),
		linear-gradient(180deg, #26332b, #1f2a24 62%, #26332b);
	border-top: 1px solid rgba(127, 191, 142, 0.22) !important;
	border-bottom: 1px solid rgba(127, 191, 142, 0.18) !important;
}
.section-deep-olive .h4::before {
	background: #7fbf8e;
}
.section-deep-olive .text-muted {
	color: #dfe9e1 !important;
}
.section-deep-olive .card-soft {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.06),
		rgba(255, 255, 255, 0.03)
	);
	color: #eef5ef;
	border-color: rgba(191, 231, 201, 0.24);
}

/* -------- Tables (generic) -------- */
.table {
	--bs-table-color: var(--ta-text);
	--bs-table-bg: transparent;
	--bs-table-border-color: var(--ta-border);
}
.table thead th {
	font-weight: 700;
	border-bottom: 2px solid var(--ta-border) !important;
}

/* -------- Forms -------- */
form .form-control {
	background: #fff;
	border: 1px solid black;
	color: var(--ta-text);
	border-radius: 12px;
}
form .form-control:focus {
	border-color: var(--ta-teal);
	box-shadow: 0 0 0 0.25rem rgba(14, 165, 168, 0.18);
}
:focus-visible {
	outline: 2px solid rgba(14, 165, 168, 0.45);
	outline-offset: 2px;
}

/* -------- Cookie Banner -------- */
.cookie-banner {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 2000;
	background: #fff;
	border-top: 1px solid var(--ta-border);
	box-shadow: 0 -12px 28px rgba(27, 31, 36, 0.12);
	padding: 14px 0;
	display: none;
}
.cookie-banner.show {
	display: block;
}

/* -------- Footer -------- */
.footer {
	background: #0f1724;
	color: #e6eefc;
	padding: 30px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer a {
	color: #e6eefc;
}
.footer a:hover {
	color: #fff;
}
/* ===== FAQ: крупнее вопрос, спокойнее ответ ===== */
#faq .accordion-button,
#faq-mini .accordion-button {
	font-size: 1.22rem; /* ~22px при базе 18px */
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.2px;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

#faq .accordion-button.collapsed,
#faq-mini .accordion-button.collapsed {
	color: var(--ta-teal-ink);
	background: #fff;
}

#faq .accordion-body,
#faq-mini .accordion-body {
	font-size: 1rem; /* ровно базовые ~18px */
	line-height: 1.64;
	color: var(--ta-muted);
}

/* Убираем влияние .small, если где-то проставлен класс */
#faq .accordion-body.small,
#faq-mini .accordion-body.small {
	font-size: 1rem !important;
}

/* Небольшой визуальный акцент для открытого вопроса */
.accordion-button:not(.collapsed) {
	background: rgba(14, 165, 168, 0.08); /* в тон теме */
	color: var(--ta-teal-ink);
	box-shadow: inset 0 -1px 0 var(--ta-sep);
}

/* Больше воздуха между пунктами FAQ */
#faq .accordion-item,
#faq-mini .accordion-item {
	margin-bottom: 0.75rem;
	border-radius: 16px !important;
}
