/*
Theme Name: VKTarget Ru
Theme URI: https://vktarget.help
Author: VKTarget Ru
Author URI: https://vktarget.help
Description: Брендовая тема VKTarget Ru — биржа заданий: накрутка и заработок в соцсетях. Дизайн-язык «терминал заданий».
Version: 1.0.0
Requires PHP: 7.4
Text Domain: vt-theme
*/

/* ============================================================
   ДИЗАЙН-СИСТЕМА «ТЕРМИНАЛ ЗАДАНИЙ»
   Светлая тема. Палитра с офсайта vktarget.ru: синий #187adf,
   тёмно-синий #0f3989. Один акцент. Радиус единый 8px.
   Шрифты: Tektur (дисплей) + IBM Plex Sans (текст) + IBM Plex Mono (цифры).
   ============================================================ */

:root {
  --bg: #f4f7fa;
  --bg-deep: #eaf1f7;
  --surface: #ffffff;
  --ink: #10233b;
  --ink-soft: #43566e;
  --ink-muted: #6b7d92;
  --line: #d8e2ec;
  --line-strong: #b9c9d8;
  --accent: #187adf;
  --accent-deep: #0f3989;
  --accent-tint: #e3effc;
  --accent-tint-2: #cfe4f9;
  --ok: #067647;
  --ok-tint: #e4f3ec;
  --warn: #b54708;
  --warn-tint: #fdf1e3;
  --bad: #b42318;
  --bad-tint: #fbeae9;
  --star: #e8a010;

  --font-display: "Tektur", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --r: 8px;
  --pad-x: clamp(16px, 5vw, 80px);
  --shadow-1: 0 1px 2px rgba(16, 35, 59, 0.06), 0 4px 16px rgba(16, 35, 59, 0.05);
  --shadow-2: 0 2px 6px rgba(16, 35, 59, 0.08), 0 12px 32px rgba(15, 57, 137, 0.10);

  --z-header: 50;
  --z-modal: 80;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Скринридерный текст */
.vt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Секции: full-width, паддинги clamp; текст держит меру ── */
.vt-section { padding: clamp(44px, 7vw, 96px) var(--pad-x); }
.vt-section--tight { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.vt-section--deep { background: var(--bg-deep); }
.vt-section--panel { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vt-section--ink { background: var(--accent-deep); color: #dbe8f7; }
.vt-section--ink h2, .vt-section--ink h3 { color: #ffffff; }
.vt-prose { max-width: 68ch; }
.vt-prose--center { margin-inline: auto; }
.vt-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

/* ── Хедер ── */
.vt-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.vt-header__in {
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad-x); height: 66px;
}
.vt-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; color: var(--ink); text-decoration: none; }
.vt-logo:hover { text-decoration: none; }
.vt-logo__mark { width: 34px; height: 34px; border-radius: var(--r); background: linear-gradient(135deg, var(--accent), var(--accent-deep)); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.vt-logo__mark svg { width: 20px; height: 20px; }
.vt-logo__ru { color: var(--accent); }
.vt-nav { display: flex; gap: 4px; margin-left: auto; }
.vt-nav a {
  padding: 8px 13px; border-radius: var(--r);
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 500;
}
.vt-nav a:hover { background: var(--accent-tint); color: var(--accent-deep); text-decoration: none; }
.vt-header__cta { margin-left: 8px; }
.vt-burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink); align-items: center; justify-content: center;
}
.vt-burger svg { width: 22px; height: 22px; }

/* Мобильное меню */
.vt-mobmenu { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: 10px var(--pad-x) 18px; }
.vt-mobmenu.is-open { display: block; }
.vt-mobmenu a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.vt-mobmenu a:last-child { border-bottom: 0; }

@media (max-width: 940px) {
  .vt-nav { display: none; }
  .vt-burger { display: inline-flex; }
  .vt-header__cta { margin-left: auto; }
  .vt-burger { margin-left: 0; }
}
@media (max-width: 640px) {
  .vt-cta-tail { display: none; }
  .vt-header__cta { padding: 10px 14px; font-size: 0.92rem; }
}
@media (max-width: 400px) {
  .vt-logo__text { display: none; }
  .vt-header__in { gap: 10px; }
}

/* ── Кнопки ── */
.vt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.vt-btn:hover { text-decoration: none; }
.vt-btn:active { transform: translateY(1px); }
.vt-btn--primary { background: var(--accent); color: #ffffff; box-shadow: var(--shadow-1); }
.vt-btn--primary:hover { background: #1069c4; box-shadow: var(--shadow-2); }
.vt-btn--ghost { background: var(--surface); color: var(--accent-deep); border-color: var(--line-strong); }
.vt-btn--ghost:hover { border-color: var(--accent); }
.vt-btn--onink { background: #ffffff; color: var(--accent-deep); }
.vt-btn--lg { padding: 15px 28px; font-size: 1.06rem; }
.vt-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .vt-btn--lg { white-space: normal; }
}

/* ── Хлебные крошки ── */
.vt-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px var(--pad-x) 0; font-size: 0.86rem; font-family: var(--font-mono); }
.vt-breadcrumb__link { color: var(--ink-muted); }
.vt-breadcrumb__current { color: var(--ink-soft); }
.vt-breadcrumb__sep { color: var(--line-strong); }

/* ── Терминальная строка задания (фирменный элемент) ── */
.vt-tape { display: grid; gap: 8px; }
.vt-task {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.vt-task:hover { border-color: var(--accent); transform: translateX(2px); }
.vt-task__net {
  width: 38px; height: 38px; border-radius: var(--r); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-deep);
}
.vt-task__net svg { width: 20px; height: 20px; }
.vt-task__name { font-weight: 600; font-size: 0.98rem; }
.vt-task__meta { font-size: 0.84rem; color: var(--ink-muted); font-family: var(--font-mono); }
.vt-task__sum { font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem; color: var(--ok); white-space: nowrap; }
.vt-task__sum--out { color: var(--ink); }

/* ── Табло-счётчики ── */
.vt-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vt-board__cell { background: var(--surface); padding: 20px 22px; }
.vt-board__num { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--accent-deep); letter-spacing: -0.01em; }
.vt-board__label { font-size: 0.9rem; color: var(--ink-muted); margin-top: 2px; }
.vt-board__note { font-size: 0.8rem; font-family: var(--font-mono); color: var(--ink-muted); margin-top: 6px; }

/* ── Чипы соцсетей ── */
.vt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
}
.vt-chip svg { width: 15px; height: 15px; color: var(--accent); }
.vt-chip--off { opacity: 0.55; text-decoration: line-through; }

/* ── Карточки ── */
.vt-grid { display: grid; gap: 18px; }
.vt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vt-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .vt-grid--3, .vt-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vt-grid--2, .vt-grid--3, .vt-grid--4 { grid-template-columns: 1fr; } }
.vt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.vt-card__icon { width: 42px; height: 42px; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.vt-card__icon svg { width: 22px; height: 22px; }
.vt-card h3 { margin-bottom: 0.35em; }
.vt-card p:last-child { margin-bottom: 0; }

/* ── Таблицы данных ── */
.vt-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.vt-table th, .vt-table td { padding: 12px 16px; text-align: left; font-size: 0.95rem; }
.vt-table th { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); border-bottom: 1px solid var(--line-strong); background: var(--bg); }
.vt-table tbody tr:nth-child(even) { background: var(--bg); }
.vt-table td.num { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.vt-table .is-yes { color: var(--ok); font-weight: 600; }
.vt-table .is-no { color: var(--bad); }

/* ── TL;DR-плашка: «квитанция» терминала ── */
.vt-tldr {
  background: var(--surface); border: 1px solid var(--line-strong); border-top-style: dashed;
  border-radius: var(--r); padding: 18px 22px; margin: 0 0 28px; max-width: 74ch;
}
.vt-tldr__tag { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-deep); margin-bottom: 6px; }
.vt-tldr p { margin: 0; font-size: 1.02rem; }

/* ── Шаги ── */
.vt-steps { counter-reset: vtstep; display: grid; gap: 14px; padding: 0; margin: 0 0 1em; list-style: none; }
.vt-steps > li {
  counter-increment: vtstep; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px 18px 64px; margin: 0;
}
.vt-steps > li::before {
  content: counter(vtstep, decimal-leading-zero);
  position: absolute; left: 18px; top: 18px;
  font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--accent);
}
.vt-steps h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.vt-steps p:last-child { margin-bottom: 0; }

/* ── FAQ-аккордеон ── */
.vt-faq { display: grid; gap: 10px; }
.vt-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.vt-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; background: none; border: 0; text-align: left;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.vt-faq__q svg { width: 18px; height: 18px; flex: none; color: var(--accent); transition: transform 0.2s ease; }
.vt-faq__item.is-open .vt-faq__q svg { transform: rotate(180deg); }
.vt-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.vt-faq__item.is-open .vt-faq__a { grid-template-rows: 1fr; }
.vt-faq__a-in { overflow: hidden; }
.vt-faq__a-in > div { padding: 0 20px 18px; color: var(--ink-soft); }

/* ── Отзывы ── */
.vt-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.vt-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.vt-review__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.vt-review__name { font-weight: 600; }
.vt-review__date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
.vt-review p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* Звёзды: два наложенных ряда, процентная заливка */
.star-rating { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.star-rating__bg, .star-rating__fg { display: flex; gap: 2px; }
.star-rating__bg { color: var(--ink-muted); opacity: 0.35; }
.star-rating__fg { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; color: var(--star); width: max-content; }
.star-rating svg { width: var(--star-size, 20px); height: var(--star-size, 20px); flex: none; fill: currentColor; stroke: currentColor; }

/* ── Калькуляторы ── */
.vt-calc { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); }
.vt-calc__head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.vt-calc__head svg { width: 16px; height: 16px; color: var(--accent); }
.vt-calc__body { padding: 22px; display: grid; gap: 18px; }
.vt-calc__row { display: grid; gap: 6px; }
.vt-calc__label { font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 10px; }
.vt-calc__val { font-family: var(--font-mono); color: var(--accent-deep); }
.vt-calc input[type="range"] { width: 100%; accent-color: var(--accent); }
.vt-calc__checks { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-calc__check { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9rem; cursor: pointer; user-select: none; background: var(--surface); }
.vt-calc__check input { accent-color: var(--accent); margin: 0; }
.vt-calc__check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); }
.vt-calc__total { border-top: 1px dashed var(--line-strong); padding: 18px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg); }
.vt-calc__total-label { font-size: 0.95rem; color: var(--ink-soft); }
.vt-calc__total-num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--accent-deep); }
.vt-calc__note { padding: 0 22px 18px; font-size: 0.84rem; color: var(--ink-muted); margin: 0; }

/* ── Плюсы/минусы ── */
.vt-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .vt-pm { grid-template-columns: 1fr; } }
.vt-pm__col { border-radius: var(--r); padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); }
.vt-pm__col--plus h3, .vt-pm__col--minus h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vt-pm__col h3 { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; }
.vt-pm__col h3 svg { width: 19px; height: 19px; }
.vt-pm__col--plus h3 svg { color: var(--ok); }
.vt-pm__col--minus h3 svg { color: var(--warn); }
.vt-pm__col ul { margin-bottom: 0; }

/* ── Плашки-статусы ── */
.vt-note { border-radius: var(--r); padding: 14px 18px; margin: 0 0 1.2em; font-size: 0.96rem; border: 1px solid; max-width: 74ch; }
.vt-note--ok { background: var(--ok-tint); border-color: #b5dcc8; color: #054f30; }
.vt-note--warn { background: var(--warn-tint); border-color: #ecd2ab; color: #7a3005; }
.vt-note--info { background: var(--accent-tint); border-color: var(--accent-tint-2); color: var(--accent-deep); }
.vt-note p:last-child, .vt-note ul:last-child { margin-bottom: 0; }

/* ── Hero главной: сплит с лентой заданий ── */
.vt-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) var(--pad-x); }
@media (max-width: 900px) { .vt-hero { grid-template-columns: 1fr; padding-top: 28px; } }
.vt-hero__title { margin-bottom: 0.45em; }
.vt-hero__title em { font-style: normal; color: var(--accent); }
.vt-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.vt-hero__tape { position: relative; }
.vt-hero__tape .vt-task { box-shadow: var(--shadow-1); }
.vt-hero__tape .vt-task:nth-child(2) { margin-left: clamp(0px, 3vw, 34px); }
.vt-hero__tape .vt-task:nth-child(3) { margin-left: clamp(0px, 1.5vw, 14px); }
.vt-hero__tape .vt-task:nth-child(4) { margin-left: clamp(0px, 4vw, 48px); }
.vt-hero__tick {
  position: absolute; top: -14px; right: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--ok-tint); color: var(--ok); border: 1px solid #b5dcc8;
  border-radius: 999px; padding: 4px 12px;
}

/* ── Сплит-секции внутренних страниц ── */
.vt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .vt-split { grid-template-columns: 1fr; } }

/* ── Футер ── */
.vt-footer { background: var(--accent-deep); color: #b9cde8; padding: clamp(36px, 5vw, 64px) var(--pad-x) 28px; }
.vt-footer a { color: #dbe8f7; }
.vt-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 34px; }
@media (max-width: 900px) { .vt-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .vt-footer__grid { grid-template-columns: 1fr; } }
.vt-footer__title { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8fb0d8; margin-bottom: 12px; }
.vt-footer__col ul { list-style: none; padding: 0; margin: 0; }
.vt-footer__col li { margin-bottom: 8px; }
.vt-footer__col a { font-size: 0.94rem; }
.vt-footer__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #ffffff; margin-bottom: 12px; }
.vt-footer__about { font-size: 0.9rem; max-width: 40ch; }
.vt-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; font-size: 0.82rem; color: #8fb0d8; }
.vt-footer__bottom p { margin-bottom: 6px; }

/* ── Разное ── */
.vt-kicker { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 10px; }
.vt-related { border-top: 1px solid var(--line); }
.vt-related__list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.vt-related__list a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.vt-related__list a:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.vt-related__list svg { width: 15px; height: 15px; color: var(--accent); }
.vt-updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }

/* Reveal-анимация (без неё при reduced-motion) */
.vt-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.vt-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vt-reveal { opacity: 1; transform: none; transition: none; }
  .vt-task:hover { transform: none; }
  * { animation-duration: 0.01ms !important; }
}

/* 404 */
.vt-404 { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 60px var(--pad-x); }
.vt-404 .num { font-family: var(--font-mono); font-size: clamp(3rem, 9vw, 5rem); font-weight: 700; color: var(--accent); }
