/*
Theme Name: GPTunnel Ru
Theme URI: https://gptunnel.info/
Description: Тема сайта GPTunnel Ru. Палитра снята с офсайта gptunnel.ru, язык дизайна собран под этот проект.
Version: 1.0.0
Text Domain: gptn-theme
*/

/* ============================================================
   1. Переменные. Палитра — с CSS-переменных офсайта gptunnel.ru
   (тёмная тема + экран цен), снято 01.09.2026.
   ============================================================ */
:root {
	--bg: #060606;
	--surface: #0e0e0e;
	--surface-2: #141414;
	--line: #232323;
	--line-soft: #1a1a1a;
	--text: #f7f7f7;
	--muted: #8a8a8a;
	--accent: #ff8a3d;
	--accent-deep: #d9610b;
	--accent-wash: rgba(255, 138, 61, 0.09);

	--f-display: "Science Gothic", "Segoe UI", Tahoma, sans-serif;
	--f-text: "Commissioner", "Segoe UI", Tahoma, sans-serif;
	--f-num: "Lilex", ui-monospace, Consolas, monospace;

	--wrap: 1240px;
	--r: 6px;
	--cut: 18px;

	--step: clamp(56px, 7vw, 104px);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-text);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffa367; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--accent); color: #120600; padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

.visually-hidden {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ============================================================
   2. Типографика. Дисплей / текст / числа — три уровня.
   ============================================================ */
h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 18px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #d8d8d8; max-width: 62ch; }
.muted { color: var(--muted); }

.num { font-family: var(--f-num); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================
   3. Хедер — конструкция как у офсайта: узкая липкая полоса,
   слева логотип, справа меню и оранжевая кнопка.
   ============================================================ */
.hdr {
	position: sticky; top: 0; z-index: 60;
	background: rgba(6, 6, 6, 0.86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark {
	width: 26px; height: 26px; flex: 0 0 26px;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.brand:hover { color: var(--text); }
.brand span i { color: var(--accent); font-style: normal; }

.nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: nowrap; }
.nav a {
	color: #c9c9c9; font-size: 14px; padding: 8px 9px; border-radius: var(--r);
	white-space: nowrap;
	transition: color .18s, background .18s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.burger {
	display: none; margin-left: auto; background: transparent; border: 1px solid var(--line);
	color: var(--text); width: 42px; height: 42px; border-radius: var(--r); cursor: pointer;
	align-items: center; justify-content: center;
}

/* ============================================================
   4. Кнопки. Реф-кнопка оранжевая, вторичная — контурная.
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--f-text); font-weight: 600; font-size: 15px;
	padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent;
	cursor: pointer; transition: transform .16s, background .18s, border-color .18s, color .18s;
	white-space: nowrap;
}
.btn i, .btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: #170800; }
.btn--primary:hover { background: #ffa367; color: #170800; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--wide { width: 100%; }

.hdr .btn--primary { padding: 10px 18px; font-size: 14.5px; }

/* ============================================================
   5. Полосы секций. Ритм — чередование фона, разделитель
   с оранжевым сегментом слева.
   ============================================================ */
.band { padding: var(--step) 0; position: relative; }
.band--alt { background: var(--surface); }
.band--tight { padding: calc(var(--step) * 0.62) 0; }
.band + .band { border-top: 1px solid var(--line-soft); }
.band + .band::before {
	content: ""; position: absolute; top: -1px; left: 0; width: 84px; height: 2px;
	background: var(--accent);
}

.band__head { max-width: 74ch; margin-bottom: 38px; }

/* ============================================================
   6. Панель — базовая поверхность. Срезанный верхний правый
   угол, тонкая рамка, малый радиус.
   ============================================================ */
.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 26px;
	position: relative;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
	transition: border-color .2s, background .2s;
}
.band--alt .panel { background: var(--surface-2); }

/* Ховер: заливка левой границы и сдвиг содержимого. */
.panel--link { display: block; color: inherit; overflow: hidden; }
.panel--link::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
	background: var(--accent); transform: scaleY(0); transform-origin: top;
	transition: transform .22s ease;
}
.panel--link > * { transition: transform .22s ease; }
.panel--link:hover { border-color: #2e2e2e; color: inherit; }
.panel--link:hover::before { transform: scaleY(1); }
.panel--link:hover > * { transform: translateX(4px); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.panel__icon {
	width: 40px; height: 40px; border-radius: var(--r);
	background: var(--accent-wash); color: var(--accent);
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.panel__icon i, .panel__icon svg { width: 20px; height: 20px; }
.panel h3 { margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }

/* ============================================================
   7. Первый экран. Асимметрия: текст слева, плитка цены справа,
   видео на фоне.
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
/* Подложка на случай, если ролик ещё не залит или не проигрался:
   первый экран обязан выглядеть законченным и без видеофайла. */
.hero__media {
	position: absolute; inset: 0; z-index: 0;
	background:
		radial-gradient(120% 90% at 78% 18%, rgba(255, 138, 61, .20) 0%, rgba(255, 138, 61, 0) 58%),
		radial-gradient(90% 70% at 12% 88%, rgba(217, 97, 11, .13) 0%, rgba(217, 97, 11, 0) 60%),
		var(--bg);
}
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Затемнение под текстом: слева плотнее, чтобы заголовок читался
   поверх любого кадра. */
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(6,6,6,.95) 0%, rgba(6,6,6,.86) 42%, rgba(6,6,6,.6) 100%),
		linear-gradient(0deg, var(--bg) 2%, rgba(6,6,6,.25) 55%);
}
.hero__in {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
	gap: 46px; align-items: center;
	padding: clamp(64px, 9vw, 118px) 0;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.hero__fact strong { display: block; font-family: var(--f-num); font-weight: 700; font-size: 25px; color: var(--accent); line-height: 1.1; }
.hero__fact span { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* Плитка цены справа. */
.pricecard { background: rgba(14,14,14,.92); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.pricecard__from { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pricecard__val { font-family: var(--f-num); font-weight: 700; font-size: 52px; line-height: 1; margin: 6px 0 4px; }
.pricecard__val em { font-style: normal; font-size: 26px; color: var(--accent); }
.pricecard ul { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 9px; }
.pricecard li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: #d0d0d0; }
.pricecard li i, .pricecard li svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 16px; margin-top: 4px; }

/* ============================================================
   8. Таблицы. Числа моноширинные, выравнивание по разряду.
   ============================================================ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15.5px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: #cfcfcf; background: var(--surface-2); letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,138,61,.035); }
td.n, th.n { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
td.model { font-weight: 600; color: var(--text); }

/* ============================================================
   9. Шаги, списки, чипы
   ============================================================ */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.step::before {
	content: counter(s, decimal-leading-zero);
	font-family: var(--f-num); font-weight: 700; font-size: 20px; color: var(--accent);
	border: 1px solid var(--line); border-radius: var(--r); height: 46px;
	display: flex; align-items: center; justify-content: center; background: var(--surface);
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
	font-size: 14px; padding: 6px 12px; border: 1px solid var(--line);
	border-radius: 999px; color: #d0d0d0; background: var(--surface-2);
}

.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; }
.ticks li i, .ticks li svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 18px; margin-top: 4px; }

/* ============================================================
   10. Звёзды и отзывы
   ============================================================ */
.stars { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.stars__bg, .stars__fg { display: flex; gap: 2px; }
.stars__bg { color: var(--muted); opacity: .35; }
.stars__fg { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
/* fill обязателен: иконки Lucide приходят с fill="none" и без него
   пустая звезда неотличима от закрашенной. */
.stars svg { width: var(--star-size, 18px); height: var(--star-size, 18px); flex-shrink: 0; fill: currentColor; stroke: currentColor; }

.score { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.score__val { font-family: var(--f-num); font-weight: 700; font-size: 46px; line-height: 1; }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.review__who { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.review__role { color: var(--muted); font-size: 13.5px; }
.review p { font-size: 15.5px; margin-bottom: 0; }

/* ============================================================
   11. Аккордеон FAQ
   ============================================================ */
.acc { display: grid; gap: 10px; }
.acc__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.acc__q {
	width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
	font-family: var(--f-display); font-weight: 600; font-size: 17px; padding: 18px 52px 18px 20px;
	cursor: pointer; position: relative;
}
.acc__q::after {
	content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
	border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
	transform: translateY(-70%) rotate(45deg); transition: transform .22s;
}
.acc__item.is-open .acc__q::after { transform: translateY(-30%) rotate(-135deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc__a > div { padding: 0 20px 20px; color: #cdcdcd; font-size: 15.5px; }

/* ============================================================
   12. Перелинковка и подвал
   ============================================================ */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related__item {
	display: flex; align-items: center; gap: 12px; padding: 18px 20px;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
	color: var(--text); transition: border-color .18s, transform .18s;
}
.related__item:hover { border-color: var(--accent); color: var(--text); transform: translateX(3px); }
.related__title { font-family: var(--f-display); font-weight: 600; }
.related__note { color: var(--muted); font-size: 13.5px; margin-left: auto; }
.related__item i, .related__item svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 17px; }

.ftr { background: var(--surface); border-top: 1px solid var(--line); padding: 54px 0 30px; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.ftr h4 { font-size: 15px; margin-bottom: 14px; color: var(--text); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { color: #b8b8b8; }
.ftr a:hover { color: var(--accent); }
.ftr__note { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 13.5px; }
.ftr__note p { margin-bottom: 8px; }

.crumbs { font-size: 13.5px; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { margin: 0 8px; opacity: .5; }

.pagehead { padding: 30px 0 var(--step); }
.pagehead h1 { margin-bottom: 16px; }

/* ============================================================
   13. Мобильная реф-кнопка — липкая полоса внизу.
   Первый экран на мобильном обязан показывать её без прокрутки.
   ============================================================ */
.mcta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(6,6,6,.95); border-top: 1px solid var(--line);
	backdrop-filter: blur(10px);
}

/* ============================================================
   14. Появление при попадании во вьюпорт.
   Первый экран не ждёт анимации — .hero не помечен .reveal.
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .07s; }
.reveal-d2 { transition-delay: .14s; }
.reveal-d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   15. Адаптив
   ============================================================ */
@media (max-width: 1000px) {
	.hero__in { grid-template-columns: 1fr; gap: 34px; padding: 72px 0 68px; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.related { grid-template-columns: 1fr; }
	.ftr__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.burger { display: inline-flex; }
	.nav {
		position: fixed; inset: 66px 0 auto 0; background: var(--bg);
		border-bottom: 1px solid var(--line); flex-direction: column; gap: 0;
		padding: 8px 16px 18px; display: none;
	}
	.nav.is-shown { display: flex; }
	.nav a { padding: 12px 6px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
	.hdr .btn--primary { display: none; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.ftr__grid { grid-template-columns: 1fr; }
	.mcta { display: block; }
	body { padding-bottom: 74px; }
	.step { grid-template-columns: 42px 1fr; gap: 13px; }
	.step::before { height: 38px; font-size: 16px; }
	.hero__facts { gap: 18px; }
	.pricecard__val { font-size: 44px; }
	.related__note { display: none; }
}

@media (max-width: 380px) {
	.wrap { padding: 0 13px; }
	h1 { font-size: 30px; }
	.hero__cta { flex-direction: column; align-items: stretch; }
	.hero__cta .btn { width: 100%; }
}
