/*
 * id13dev Blog — шаблон статті блогу (blog/article_geo.twig) за зразком id13dev OCT Blog Plus.
 * Темна палітра сайту; усі правила обмежені .geo-page / .geo-*, решту теми не чіпають.
 * Типографіка тексту статті — штатна з custom.css (#description).
 */
.geo-page {
	--geo-accent: #22d3ee;
	--geo-accent-2: #2dd4bf;
	--geo-on-accent: #06141c;
	--geo-text: #e6edf3;
	--geo-muted: #9fb0bf;
	--geo-dim: #7d8b9a;
	--geo-surface: rgba(18, 26, 42, .55);
	--geo-surface-2: #0d1424;
	--geo-border: rgba(125, 200, 225, .16);
	--geo-border-hover: rgba(34, 211, 238, .42);
	--geo-radius: 14px;
	--geo-offset: 20px;
	color: var(--geo-text);
}

.geo-page *,
.geo-page *::before,
.geo-page *::after { box-sizing: border-box; }

.geo-preview-note {
	margin: 0 0 16px;
	padding: 8px 14px;
	border: 1px solid rgba(250, 204, 21, .45);
	border-radius: 10px;
	background: rgba(250, 204, 21, .08);
	color: #fde68a;
	font-size: 13px;
}

/* ---------- Сітка: зміст | текст | CTA ------------------------------------ */
.geo-grid { display: block; }
.geo-col--toc { display: none; }
.geo-col--aside .geo-cta-slot--aside { display: none; }
.geo-col--main { min-width: 0; }

@media (min-width: 1200px) {
	.geo-grid {
		display: grid;
		grid-template-columns: minmax(200px, 250px) minmax(0, 760px) minmax(260px, 300px);
		column-gap: 36px;
		justify-content: space-between;
		align-items: start;
	}

	.geo-article--no-toc .geo-grid { grid-template-columns: minmax(0, 800px) minmax(260px, 300px); }
	.geo-article--no-aside .geo-grid { grid-template-columns: minmax(200px, 250px) minmax(0, 800px); justify-content: start; }
	.geo-article--no-toc.geo-article--no-aside .geo-grid { grid-template-columns: minmax(0, 820px); }

	.geo-col--toc { display: block; height: 100%; }
	.geo-col--aside { height: 100%; }
	.geo-col--aside .geo-cta-slot--aside { display: block; }
	.geo-cta-slot--top,
	.geo-cta-slot--bottom,
	.geo-toc-mobile { display: none !important; }

	.geo-sticky {
		position: -webkit-sticky;
		position: sticky;
		top: var(--geo-offset);
		max-height: calc(100vh - var(--geo-offset) * 2);
		overflow: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
}

/* ---------- Зміст --------------------------------------------------------- */
.geo-toc { font-size: 14px; line-height: 1.45; padding-right: 4px; }
.geo-toc__title,
.geo-toc-mobile__summary {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--geo-accent);
}
.geo-toc__title { margin: 4px 0 12px; }
.geo-toc__list { list-style: none; margin: 0; padding: 0; }
.geo-toc__item { margin: 0; padding: 0; }
.geo-toc__item--h3 { padding-left: 14px; font-size: 13px; }
.geo-toc__link {
	display: block;
	padding: 6px 0 6px 12px;
	border-left: 2px solid var(--geo-border);
	color: #cdd9e3 !important;
	text-decoration: none !important;
	transition: color .15s, border-color .15s;
}
.geo-toc__item--h3 .geo-toc__link { color: var(--geo-muted) !important; }
.geo-toc__link:hover { color: var(--geo-accent) !important; }
.geo-toc__link.is-active { color: var(--geo-accent) !important; border-left-color: var(--geo-accent); font-weight: 600; }

.geo-toc-mobile {
	margin: 4px 0 18px;
	border: 1px solid var(--geo-border);
	border-radius: var(--geo-radius);
	background: var(--geo-surface);
}
.geo-toc-mobile__summary {
	position: relative;
	padding: 14px 44px 14px 18px;
	cursor: pointer;
	list-style: none;
}
.geo-toc-mobile__summary::-webkit-details-marker { display: none; }
.geo-toc-mobile__summary::after,
.geo-faq__q::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .2s;
}
.geo-toc-mobile[open] > .geo-toc-mobile__summary::after,
.geo-faq__item[open] > .geo-faq__q::after { transform: translateY(-25%) rotate(225deg); }
.geo-toc-mobile .geo-toc__list { padding: 0 14px 12px 6px; }

/* ---------- Шапка статті -------------------------------------------------- */
.geo-head { margin-bottom: 8px; }
.geo-title {
	margin: 4px 0 16px;
	font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
	line-height: 1.12;
	font-weight: 500;
	letter-spacing: -.025em;
	color: var(--geo-text);
	overflow-wrap: anywhere;
}
.geo-meta { margin: 10px 0 22px; font-size: 14px; }
.geo-meta__facts { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
.geo-meta__fact { min-width: 0; }
.geo-meta__fact dt,
.geo-meta__label { margin: 0 0 4px; font-size: 12px; font-weight: 400; color: var(--geo-dim); }
.geo-meta__fact dd { display: flex; align-items: center; margin: 0; font-weight: 600; color: var(--geo-text); white-space: nowrap; }
.geo-icon { flex: 0 0 auto; margin-right: 6px; color: var(--geo-accent); }
.geo-stars { display: inline-flex; margin-right: 8px; }
.geo-star { color: #3b4657; }
.geo-star.is-on { color: #fbbf24; }
.geo-meta__link { color: var(--geo-muted) !important; font-weight: 400; text-decoration: none !important; }
.geo-meta__link:hover { color: var(--geo-accent) !important; }
.geo-meta__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; margin-top: 18px; }
.geo-author__card { display: flex; align-items: center; gap: 12px; }
.geo-author__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; border: 1px solid var(--geo-border); }
.geo-author__info { display: flex; flex-direction: column; min-width: 0; }
.geo-author__name { font-weight: 700; color: var(--geo-text) !important; text-decoration: none !important; }
a.geo-author__name:hover { color: var(--geo-accent) !important; }
.geo-author__role { font-size: 13px; color: var(--geo-muted); }

.geo-share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.geo-share__list li { margin: 0; padding: 0; }
.geo-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--geo-border);
	border-radius: 50%;
	background: var(--geo-surface);
	color: #cdd9e3 !important;
	cursor: pointer;
	transition: color .15s, border-color .15s, background .15s;
}
.geo-share__btn:hover,
.geo-share__btn:focus-visible { color: var(--geo-accent) !important; border-color: var(--geo-border-hover); background: rgba(34, 211, 238, .08); outline: none; }
.geo-share__btn.is-copied::after {
	content: attr(data-geo-copied);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--geo-accent);
	color: var(--geo-on-accent);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.geo-cover { position: relative; margin: 0 0 8px; overflow: hidden; border: 1px solid var(--geo-border); border-radius: 24px; background: #0a101d; }
.geo-cover img { display: block; width: 100%; height: auto; }

/* ---------- TL;DR -------------------------------------------------------- */
.geo-tldr {
	margin: 24px 0;
	padding: 18px 22px;
	border: 1px solid var(--geo-border);
	border-left: 3px solid var(--geo-accent);
	border-radius: var(--geo-radius);
	background: var(--geo-surface);
	font-size: 16px;
	line-height: 1.65;
	scroll-margin-top: var(--geo-offset);
}
.geo-tldr__label {
	margin-bottom: 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--geo-accent);
}
.geo-tldr__body > :last-child { margin-bottom: 0; }
.geo-tldr__body ul,
.geo-tldr__body ol { margin: .4em 0 0; padding-left: 1.25em; }
.geo-tldr__body li { margin: .3em 0; }

/* ---------- Текст статті: доповнення до #description --------------------- */
.geo-body { max-width: none; }
.geo-body h2,
.geo-body h3,
.geo-body h4,
.geo-faq__title { scroll-margin-top: var(--geo-offset); }
.geo-body blockquote {
	margin: 1.6em 0;
	padding: 1.1em 1.4em;
	border-left: 3px solid var(--geo-accent);
	border-radius: 0 var(--geo-radius) var(--geo-radius) 0;
	background: var(--geo-surface);
	font-style: italic;
}
.geo-body blockquote > :last-child { margin-bottom: 0; }
.geo-body blockquote cite,
.geo-body blockquote footer { display: block; margin-top: .8em; font-style: normal; font-weight: 700; font-size: .92em; text-align: right; color: var(--geo-muted); }
.geo-body blockquote cite::before,
.geo-body blockquote footer::before { content: "— "; }

/* Таблиця: скрол на телефоні, заголовок (thead) додає сервер. */
.geo-table {
	margin: 1.6em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--geo-border);
	border-radius: var(--geo-radius);
	background:
		linear-gradient(to right, var(--geo-surface-2) 30%, rgba(13, 20, 36, 0)) left center / 32px 100% no-repeat local,
		linear-gradient(to left, var(--geo-surface-2) 30%, rgba(13, 20, 36, 0)) right center / 32px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(34, 211, 238, .25), rgba(34, 211, 238, 0)) left center / 12px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(34, 211, 238, .25), rgba(34, 211, 238, 0)) right center / 12px 100% no-repeat scroll,
		var(--geo-surface-2);
}
.geo-table:focus-visible { outline: 2px solid var(--geo-accent); outline-offset: 2px; }
.geo-body .geo-table table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse; font-size: .94em; line-height: 1.5; background: transparent; color: var(--geo-text); }
.geo-body .geo-table th,
.geo-body .geo-table td { padding: .7em 1em; border: 0 !important; border-top: 1px solid var(--geo-border) !important; text-align: left; vertical-align: top; background: transparent !important; }
.geo-body .geo-table thead th,
.geo-body .geo-table thead td { border-top: 0 !important; background: rgba(34, 211, 238, .07) !important; font-weight: 700; color: var(--geo-text); }
.geo-body .geo-table table:has(tr > :nth-child(3)) { min-width: 520px; }
@media (max-width: 767.98px) {
	.geo-body .geo-table table { font-size: .875em; }
	.geo-body .geo-table table:has(tr > :nth-child(3)) { min-width: 480px; }
	.geo-body .geo-table th,
	.geo-body .geo-table td { padding: .6em .75em; }
}

.geo-video { position: relative; margin: 1.6em 0; aspect-ratio: 16 / 9; border-radius: var(--geo-radius); overflow: hidden; background: #000; }
.geo-video iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }

/* ---------- Картки послуг у тексті ([product id=…]) ---------------------- */
.geo-products { margin: 1.6em 0; }
.geo-products--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.geo-product {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--geo-border);
	border-radius: var(--geo-radius);
	background: var(--geo-surface);
	font-size: 15px;
	line-height: 1.45;
	transition: border-color .2s;
}
.geo-product:hover { border-color: var(--geo-border-hover); }
.geo-products--grid .geo-product { grid-template-columns: 1fr; align-content: start; }
#description .geo-product a { background-image: none !important; padding-bottom: 0; }
.geo-product__media { display: block; position: relative; border-radius: 10px; overflow: hidden; }
.geo-product__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.geo-product__info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.geo-product__name { font-weight: 700; color: var(--geo-text) !important; text-decoration: none !important; }
.geo-product__name:hover { color: var(--geo-accent) !important; }
.geo-product__price { font-size: 15px; font-weight: 700; color: var(--geo-accent-2); }
.geo-product__more { font-size: 14px; font-weight: 600; color: var(--geo-accent) !important; text-decoration: none !important; }
@media (max-width: 575.98px) {
	.geo-products--grid { grid-template-columns: 1fr; }
	.geo-product,
	.geo-products--grid .geo-product { grid-template-columns: 112px minmax(0, 1fr); padding: 12px; gap: 12px; }
	.geo-product .id13-koala-copy { display: none; }
}

/* ---------- CTA повʼязаної послуги ---------------------------------------- */
.geo-cta-slot { margin: 24px 0; }
.geo-col--aside .geo-cta-slot { margin: 0; }
.geo-cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--geo-border-hover);
	border-radius: 18px;
	background:
		radial-gradient(120% 80% at 100% 0, rgba(34, 211, 238, .12), rgba(34, 211, 238, 0) 60%),
		var(--geo-surface);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.geo-cta__label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--geo-accent);
}
.geo-cta__title { display: block; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--geo-text) !important; text-decoration: none !important; }
a.geo-cta__title:hover { color: var(--geo-accent) !important; }
.geo-cta__price { font-size: 16px; font-weight: 700; color: var(--geo-accent-2); }
.geo-cta__text { font-size: 14px; line-height: 1.55; color: var(--geo-muted); }
.geo-cta__btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
/* Кнопка Telegram — як у блоці замовлення на сторінці послуги (там стиль обмежений .id13-order-cta). */
.geo-cta .id13-btn-tg { background: var(--tg, #187bb0); color: #fff !important; font-weight: 700; border: 0; border-radius: 10px; padding: 11px 12px; box-shadow: 0 6px 20px rgba(34, 158, 217, .35); }
.geo-cta .id13-btn-tg:hover { background: var(--tg-hover, #1572a3); color: #fff !important; }
.geo-tg-icon { flex: 0 0 auto; }
.geo-cta__more { margin-block: -5px; padding-block: 5px; font-size: 14px; font-weight: 600; color: var(--geo-accent) !important; text-decoration: none !important; }
.geo-cta__more:hover { text-decoration: underline !important; }
.geo-cta__note { font-size: 12px; line-height: 1.5; color: var(--geo-dim); }
.geo-aside-modules { margin-top: 24px; }

/* Телефон і планшет: CTA послуги стоїть у тексті з тією ж кнопкою Telegram, а плаваюча кнопка теми
   перекривала його, а на iPhone ще й тьмяніла над нижньою панеллю Safari. Як на сторінці послуги — ховаємо її.
   Кнопка «вгору» лишається на своєму місці, але зникає, поки CTA в нижній частині екрана (клас ставить скрипт). */
@media (max-width: 1199.98px) {
	body:has(.geo-cta-slot--top) .id13-float-tg { display: none; }
	html.geo-cta-in-view .id13-scroll-top { opacity: 0 !important; visibility: hidden !important; }
}

/* ---------- FAQ ---------------------------------------------------------- */
.geo-faq { margin: 40px 0 24px; max-width: 820px; }
.geo-faq__title { margin: 0 0 16px; font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--geo-text); }
.geo-faq__item { margin: 10px 0; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); background: var(--geo-surface); }
.geo-faq__item[open] { border-color: var(--geo-border-hover); }
.geo-faq__q {
	position: relative;
	padding: 16px 48px 16px 20px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--geo-text);
	cursor: pointer;
	list-style: none;
}
.geo-faq__q::-webkit-details-marker { display: none; }
.geo-faq__q:focus-visible { outline: 2px solid var(--geo-accent); outline-offset: 2px; border-radius: var(--geo-radius); }
.geo-faq__a { padding: 0 20px 16px; line-height: 1.7; color: #cdd9e3; }
.geo-faq__a > :last-child { margin-bottom: 0; }
.geo-faq__a a { color: var(--geo-accent); }

/* ---------- Теги --------------------------------------------------------- */
.geo-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; font-size: 13px; }
.geo-tags__label { color: var(--geo-dim); }
.geo-tags__item { padding: 4px 12px; border: 1px solid var(--geo-border); border-radius: 999px; background: var(--geo-surface); color: #cdd9e3; }

@media print {
	.geo-col--toc,
	.geo-col--aside,
	.geo-toc-mobile,
	.geo-share,
	.geo-cta-slot,
	#collapse-review,
	#review { display: none !important; }
	.geo-grid { display: block !important; }
	.geo-faq__item { break-inside: avoid; }
}
