/* ==========================================================================
   Govorun — отдельная страница продукта (page-govorun.php).
   Подключается только на этой странице. Всё ограничено .govorun-page,
   шапка и подвал сайта не затрагиваются.
   ========================================================================== */
.govorun-page {
	--g-primary: #3A7AFE;
	--g-light: #5AC8FF;
	--g-dark: #1F5AD8;
	--g-text: #1B2333;
	--g-muted: #5B6476;
	--g-line: rgba(31, 90, 216, 0.12);
	--g-card-shadow: 0 10px 30px -18px rgba(31, 90, 216, 0.35);
	--g-radius: 12px;

	/* Переопределяем акценты темы внутри страницы — кнопки и анимированная
	   схема из style.css автоматически становятся фирменно-синими. */
	--violet: var(--g-primary);
	--violet-dark: var(--g-dark);
	--turquoise: var(--g-light);
	--gradient: linear-gradient(120deg, var(--g-primary) 0%, var(--g-light) 100%);

	font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	color: var(--g-text);
}
.govorun-page h1,
.govorun-page h2,
.govorun-page h3 { color: var(--g-text); letter-spacing: -0.01em; }
.govorun-page a:not(.btn) { color: var(--g-primary); }
.govorun-page a:not(.btn):hover { color: var(--g-dark); }

.govorun-page .btn--primary {
	background: linear-gradient(120deg, var(--g-primary), var(--g-light), var(--g-primary));
	background-size: 220% 220%;
	box-shadow: 0 16px 32px -16px rgba(58, 122, 254, 0.6);
}
.govorun-page .btn--primary:hover { box-shadow: 0 20px 40px -16px rgba(58, 122, 254, 0.7); }
.govorun-page .btn--ghost { border-color: var(--g-primary); color: var(--g-primary); }
.govorun-page .btn--ghost:hover { background: var(--g-primary); color: #fff; border-color: var(--g-primary); }

.g-link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* ---------- 1. Герой ---------- */
.g-hero { padding: 72px 0 40px; text-align: center; }
.g-hero__logo {
	width: 96px;
	height: 96px;
	margin: 0 auto 24px;
	object-fit: contain;
	border-radius: 24px;
	background: #fff;
	padding: 10px;
	box-shadow: var(--g-card-shadow);
}
.g-hero h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 18px;
}
.g-hero__subtitle {
	max-width: 680px;
	margin: 0 auto 32px;
	font-size: 1.12rem;
	color: var(--g-muted);
}
.g-metrics {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 auto 32px;
	max-width: 760px;
}
.g-metrics li {
	flex: 1 1 200px;
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
	padding: 18px 16px;
	color: var(--g-muted);
	font-size: 0.95rem;
}
.g-metrics strong {
	display: block;
	font-size: 1.6rem;
	line-height: 1.2;
	font-weight: 700;
	background: linear-gradient(120deg, var(--g-dark), var(--g-primary), var(--g-light));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.g-hero__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}
.g-hero__meta { color: #8A92A3; font-size: 0.85rem; margin: 14px 0 0; }

/* ---------- Общие разделы ---------- */
.g-section { padding: 48px 0; }
.g-section h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	text-align: center;
	margin: 0 0 32px;
}
.g-center { text-align: center; margin-top: 32px; }

/* ---------- 2. Демо ---------- */
.g-demo__frame {
	max-width: 880px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
	overflow: hidden;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Макет документа с капсулой записи — пока нет видео */
.g-doc {
	position: relative;
	width: 100%;
	background: linear-gradient(180deg, #EEF3FB 0%, #E3EBF8 100%);
	padding: 0 0 72px;
}
.g-doc__bar {
	display: flex;
	gap: 6px;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid var(--g-line);
}
.g-doc__bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE8; }
.g-doc__page {
	max-width: 620px;
	margin: 28px auto 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 6px 20px -12px rgba(27, 35, 51, 0.35);
	padding: 36px 44px;
	font-family: 'Times New Roman', Georgia, serif;
	color: #1B2333;
	font-size: 1rem;
	line-height: 1.6;
	text-align: left;
}
.g-doc__page p { margin: 0 0 12px; }
.g-doc__title { font-weight: 700; text-align: center; }
.g-doc__typing { color: #1B2333; }
.g-doc__caret {
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 2px;
	vertical-align: text-bottom;
	background: var(--g-primary);
	animation: gCaret 1s step-end infinite;
}
@keyframes gCaret { 50% { opacity: 0; } }
/* Капсула по кругу проходит реальные состояния из приложения (8 с):
   запись с разной громкостью → обработка → капсула скрыта, строка вставлена. */
.g-doc__capsules {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	width: 160px;
	height: 30px;
}
.g-doc__capsule {
	position: absolute;
	inset: 0;
	width: 160px;
	height: 30px;
	opacity: 0;
	animation: 8s linear infinite;
}
.g-doc__capsule--loud  { animation-name: gCapLoud; }
.g-doc__capsule--mid   { animation-name: gCapMid; }
.g-doc__capsule--quiet { animation-name: gCapQuiet; }
.g-doc__capsule--busy  { animation-name: gCapBusy; }
@keyframes gCapLoud  { 0%, 14% { opacity: 1; } 14.01%, 25% { opacity: 0; } 25.01%, 39% { opacity: 1; } 39.01%, 100% { opacity: 0; } }
@keyframes gCapMid   { 0%, 14% { opacity: 0; } 14.01%, 25% { opacity: 1; } 25.01%, 49% { opacity: 0; } 49.01%, 61% { opacity: 1; } 61.01%, 100% { opacity: 0; } }
@keyframes gCapQuiet { 0%, 39% { opacity: 0; } 39.01%, 49% { opacity: 1; } 49.01%, 100% { opacity: 0; } }
@keyframes gCapBusy  { 0%, 61% { opacity: 0; } 61.01%, 78% { opacity: 1; } 78.01%, 100% { opacity: 0; } }

/* Надиктованная строка появляется после обработки */
.g-doc__dictated { animation: gDictated 8s linear infinite; }
@keyframes gDictated {
	0%, 78% { opacity: 0; }
	80%, 97% { opacity: 1; }
	100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.g-doc__caret,
	.g-doc__dictated,
	.g-doc__capsule { animation: none; }
	.g-doc__dictated,
	.g-doc__capsule--loud { opacity: 1; }
}
.g-demo__caption { text-align: center; color: var(--g-muted); font-size: 0.95rem; margin: 16px auto 0; max-width: 680px; }

.g-shots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
	justify-content: center;
	gap: 32px;
	margin: 40px auto 0;
}
.g-shot { margin: 0; }
.g-shot .screenshot-card__frame {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	cursor: zoom-in;
	filter: drop-shadow(0 12px 24px rgba(31, 90, 216, 0.18));
}
.g-shot img { width: 100%; height: auto; }
.g-shot figcaption { color: var(--g-muted); font-size: 0.9rem; margin-top: 10px; text-align: center; }

/* ---------- 3. Таблица сравнения ---------- */
.g-table-wrap {
	max-width: 900px;
	margin: 0 auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
}
.g-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.g-table th,
.g-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--g-line);
	vertical-align: top;
}
.g-table tbody tr:last-child th,
.g-table tbody tr:last-child td { border-bottom: none; }
.g-table thead th { font-weight: 700; color: var(--g-muted); font-size: 0.85rem; }
.g-table tbody th { font-weight: 600; color: var(--g-text); }
.g-table td { color: var(--g-muted); }
.g-table .g-table__own { background: rgba(58, 122, 254, 0.06); color: var(--g-dark); font-weight: 600; }
.g-table thead .g-table__own { color: var(--g-primary); }

/* ---------- 4/6. Карточки ---------- */
.g-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	max-width: 1040px;
	margin: 0 auto;
}
.g-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-card {
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
	padding: 24px;
}
.g-card h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; }
.g-card p { margin: 0; color: var(--g-muted); font-size: 0.95rem; }
.g-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	margin-bottom: 14px;
	color: #fff;
	background: linear-gradient(135deg, var(--g-primary), var(--g-light));
}
.g-card__icon svg { width: 24px; height: 24px; }

/* ---------- 5. Шаги ---------- */
.g-steps {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	max-width: 960px;
	margin: 0 auto;
}
.g-steps li {
	flex: 1 1 240px;
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
	padding: 20px;
}
.g-steps h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.g-steps__num {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--g-dark), var(--g-primary));
}

/* ---------- 7/8. Списки и заметка ---------- */
.g-list { max-width: 760px; margin: 0 auto; }
.g-list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 14px;
	color: var(--g-muted);
}
.g-list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.6em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--g-primary), var(--g-light));
}
.g-list strong { color: var(--g-text); }
.g-note {
	max-width: 760px;
	margin: 28px auto 0;
	background: #fff;
	border-left: 4px solid var(--g-primary);
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
	padding: 24px;
}
.g-note h3 { margin: 0 0 10px; font-size: 1.1rem; }
.g-note p { margin: 0 0 12px; color: var(--g-muted); }
.g-note__small { font-size: 0.88rem; }
.g-note code { font-family: Consolas, 'Courier New', monospace; font-size: 0.85rem; }
.g-hash {
	display: block;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #F3F6FD;
	border-radius: 8px;
	color: var(--g-text);
	word-break: break-all;
	user-select: all;
}

/* ---------- 9. Поддержать ---------- */
.g-support {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 40px;
	align-items: center;
	background: linear-gradient(135deg, rgba(58, 122, 254, 0.08), rgba(90, 200, 255, 0.12));
	border-radius: var(--g-radius);
	padding: 40px;
}
.g-support h2 { text-align: left; margin-bottom: 14px; }
.g-support p { color: var(--g-muted); margin: 0 0 24px; }
.g-support__img { width: 100%; height: auto; border-radius: var(--g-radius); }

/* Капсулы в карточке «Индикатор записи» */
.g-capsules { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.g-capsules img { width: 160px; height: 30px; }

/* ---------- 10. FAQ ---------- */
.g-faq { max-width: 800px; margin: 0 auto; }
.g-faq__item {
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
	margin-bottom: 12px;
	padding: 0 22px;
}
.g-faq__item summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 28px 18px 0;
	font-weight: 600;
	position: relative;
}
.g-faq__item summary::-webkit-details-marker { display: none; }
.g-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--g-primary);
}
.g-faq__item[open] summary::after { content: "–"; }
.g-faq__item p { margin: 0; padding: 0 0 18px; color: var(--g-muted); }

/* ---------- 11. История версий ---------- */
.g-history { max-width: 760px; margin: 0 auto; }
.g-history > li {
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: var(--g-card-shadow);
	padding: 20px 24px;
	margin-bottom: 14px;
}
.g-history__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.g-history__version {
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--g-dark), var(--g-primary));
	border-radius: 999px;
	padding: 2px 12px;
	font-size: 0.9rem;
}
.g-history__date { color: #8A92A3; font-size: 0.88rem; }
.g-history ul li {
	position: relative;
	padding-left: 18px;
	color: var(--g-muted);
	margin-bottom: 6px;
}
.g-history ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--g-light);
}
.g-history__links {
	max-width: 760px;
	margin: 20px auto 0;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
	font-size: 0.95rem;
}
.g-final { padding-top: 16px; }

/* ---------- Плашка «Скачивание началось» ---------- */
.g-thanks {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 300;
	max-width: 420px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: #fff;
	border-radius: var(--g-radius);
	box-shadow: 0 18px 40px -16px rgba(31, 90, 216, 0.45);
	border-top: 3px solid var(--g-primary);
	padding: 18px 18px 18px 20px;
}
.g-thanks[hidden] { display: none; }
.g-thanks p { margin: 0; font-size: 0.92rem; color: var(--g-muted); }
.g-thanks strong { color: var(--g-text); }
.g-thanks a { font-weight: 600; text-decoration: underline; }
.g-thanks__close {
	flex: none;
	background: none;
	border: none;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: var(--g-muted);
	padding: 0 2px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
	.g-cards,
	.g-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.g-support { grid-template-columns: 1fr; padding: 28px 20px; text-align: center; }
	.g-support h2 { text-align: center; }
	.g-support__img { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 600px) {
	.g-hero { padding: 48px 0 24px; }
	.g-doc__page { margin: 16px 12px 0; padding: 20px 18px; font-size: 0.9rem; }
	.g-metrics { flex-direction: column; }
	.g-metrics li { flex: none; }
	.g-hero__cta { flex-direction: column; gap: 16px; }
	.g-cards,
	.g-cards--four { grid-template-columns: 1fr; }
	.g-section { padding: 36px 0; }
	.g-steps li { flex: 1 1 100%; }
	.g-thanks { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Бренд над H1 и SEO-текст ---------- */
.g-hero__brand {
	margin: 0 0 10px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--g-primary);
}
.g-prose { max-width: 760px; }
.g-prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; }
.g-prose p { color: var(--g-muted); margin: 0 0 12px; }
