/*
  Programmatic SEO Engine — фронтенд-стили
  Дизайн привязан к теме "ремонт электроники/асиков": тёмный корпус + медь дорожек
  для hero-блока, светлая "синька" (бланк схемы) для контента, отзывы — в виде
  квитанций мастерской.
  Все селекторы скопированы через .pseo-page, чтобы не конфликтовать со стилями темы.
*/

.pseo-page {
	--pseo-ink: #1b211f;
	--pseo-casing: #242b2a;
	--pseo-casing-2: #2f3735;
	--pseo-pcb: #0e5c43;
	--pseo-copper: #bd7340;
	--pseo-copper-light: #d99568;
	--pseo-blueprint: #e7ecec;
	--pseo-amber: #e8a33d;
	--pseo-paper: #fbfbfa;

	font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--pseo-ink);
	max-width: 100%;
	line-height: 1.55;
}

.pseo-page h1,
.pseo-page h2,
.pseo-page h3,
.pseo-page .pseo-mono {
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	letter-spacing: -0.01em;
}

/* ---------- HERO ---------- */

.pseo-hero {
	background: linear-gradient(160deg, var(--pseo-casing) 0%, var(--pseo-casing-2) 100%);
	border-radius: 14px;
	padding: 44px 40px;
	margin: 0 0 28px;
	position: relative;
	overflow: hidden;
}

.pseo-hero::after {
	/* тонкий узор "дорожек платы" в углу — декоративный, не мешает тексту */
	content: "";
	position: absolute;
	top: -20%;
	right: -10%;
	width: 260px;
	height: 260px;
	background-image:
		linear-gradient(90deg, transparent 48%, rgba(189,115,64,0.18) 48%, rgba(189,115,64,0.18) 50%, transparent 50%),
		linear-gradient(0deg, transparent 68%, rgba(189,115,64,0.14) 68%, rgba(189,115,64,0.14) 70%, transparent 70%);
	background-size: 40px 40px, 60px 60px;
	pointer-events: none;
	opacity: 0.7;
}

.pseo-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--pseo-copper-light);
	margin: 0 0 18px;
}

.pseo-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
	flex-shrink: 0;
}

.pseo-page .pseo-hero h1 {
	color: #fff;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.12;
	margin: 0 0 16px;
	font-weight: 600;
}

.pseo-hero-intro {
	color: #cdd3d1;
	font-size: 16px;
	max-width: 620px;
	margin: 0 0 28px;
}

.pseo-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--pseo-copper);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 26px;
	border-radius: 8px;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.pseo-cta:hover {
	background: var(--pseo-copper-light);
	color: #fff;
	transform: translateY(-1px);
}
.pseo-cta:focus-visible {
	outline: 2px solid var(--pseo-amber);
	outline-offset: 3px;
}

/* ---------- ДОВЕРИЕ / ПРЕИМУЩЕСТВА ---------- */

.pseo-trust-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	background: var(--pseo-blueprint);
	border-radius: 12px;
	margin: 0 0 32px;
	overflow: hidden;
}
.pseo-trust-item {
	padding: 20px 22px;
	border-right: 1px solid rgba(27, 33, 31, 0.1);
}
.pseo-trust-item:last-child { border-right: none; }
.pseo-trust-item .pseo-mono {
	display: block;
	font-size: 20px;
	font-weight: 600;
	color: var(--pseo-pcb);
	margin-bottom: 4px;
}
.pseo-trust-item span.pseo-trust-label {
	font-size: 13px;
	color: #55605c;
}

/* ---------- ОСНОВНОЙ ТЕКСТ ---------- */

.pseo-content {
	font-size: 16px;
	color: var(--pseo-ink);
	margin: 0 0 36px;
	max-width: 700px;
}

/* ---------- FAQ (аккордеон без JS, на <details>) ---------- */

.pseo-faq { margin: 0 0 36px; }
.pseo-faq h2 { font-size: 22px; margin: 0 0 16px; }

.pseo-faq-item {
	border-bottom: 1px solid rgba(27, 33, 31, 0.12);
}
.pseo-faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 4px;
	font-weight: 600;
	font-size: 15px;
}
.pseo-faq-item summary::-webkit-details-marker { display: none; }
.pseo-faq-item summary::after {
	content: "+";
	font-family: 'JetBrains Mono', monospace;
	font-size: 20px;
	color: var(--pseo-copper);
	flex-shrink: 0;
	transition: transform 0.15s ease;
}
.pseo-faq-item[open] summary::after { transform: rotate(45deg); }
.pseo-faq-item p {
	margin: 0 0 18px;
	padding-right: 30px;
	color: #414b47;
	font-size: 15px;
}

/* ---------- ОТЗЫВЫ: карточка-квитанция ---------- */

.pseo-testimonials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin: 0 0 12px;
}

.pseo-testimonial {
	position: relative;
	background: var(--pseo-paper);
	border: 1px dashed rgba(27, 33, 31, 0.3);
	border-radius: 4px;
	padding: 22px 22px 26px;
	margin: 0;
}

.pseo-testimonial::before {
	/* перфорация квитанции сверху */
	content: "";
	position: absolute;
	top: -1px;
	left: 16px;
	right: 16px;
	height: 1px;
	background-image: linear-gradient(90deg, rgba(27,33,31,0.35) 50%, transparent 50%);
	background-size: 8px 1px;
}

.pseo-testimonial-stamp {
	position: absolute;
	top: 14px;
	right: 16px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--pseo-pcb);
	border: 1.5px solid var(--pseo-pcb);
	border-radius: 3px;
	padding: 3px 7px;
	transform: rotate(-6deg);
	opacity: 0.85;
}

.pseo-testimonial p {
	font-size: 15px;
	margin: 6px 0 14px;
	color: var(--pseo-ink);
}

.pseo-testimonial cite {
	font-style: normal;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: #55605c;
}

/* ---------- АДАПТИВ ---------- */

@media (max-width: 640px) {
	.pseo-hero { padding: 32px 24px; }
	.pseo-trust-strip { grid-template-columns: 1fr; }
	.pseo-trust-item { border-right: none; border-bottom: 1px solid rgba(27,33,31,0.1); }
	.pseo-trust-item:last-child { border-bottom: none; }
	.pseo-testimonials { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.pseo-cta, .pseo-faq-item summary::after { transition: none; }
}
