:root {
  /* Фирменный градиент — точные значения из логотипа */
  --grad-1: #F81FAF;   /* маджента */
  --grad-2: #734EE0;   /* фиолетовый, позиция 56% */
  --grad-3: #06D2FE;   /* голубой */

  --brand-gradient: linear-gradient(58deg, var(--grad-1) 0%, var(--grad-2) 56%, var(--grad-3) 100%);

  /* Цвета тарифов — каждому свой, для свечения и акцентов */
  --tier-base:   #06D2FE;   /* голубой */
  --tier-start:  #8FE614;   /* лаймовый */
  --tier-market: #F81FAF;   /* маджента */

  /* Тёмная тема */
  --bg-0:    #05060D;   /* самый глубокий фон */
  --bg-1:    #0A0C18;   /* фон секции */
  --surface: rgba(18, 21, 38, 0.72);   /* карточки */
  --border:  rgba(255, 255, 255, 0.10);

  /* Текст на тёмном */
  --tx-hi:  #FFFFFF;
  --tx:     #C8CEE0;
  --tx-lo:  #8590AD;

  /* Светлая шапка */
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-tx: #0F172A;

  /* Отступы (шкала 4px) */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-6:24px;
  --s-8:32px; --s-10:40px; --s-12:48px; --s-16:64px; --s-20:80px; --s-24:96px;

  /* Радиусы */
  --r-btn: 9px;      /* 20.6% от высоты 44px — из button_in.svg */
  --r-card: 16px;
  --r-pill: 999px;

  /* Тени и свечения */
  --sh-card:   0 1px 3px rgba(0,0,0,.36), 0 12px 32px rgba(0,0,0,.30);
  --sh-header: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.07);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 200ms;
  --container: 1200px;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/library/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/library/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/library/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/library/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/library/Montserrat-Black.ttf') format('truetype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/library/Montserrat-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/library/Montserrat-BlackItalic.ttf') format('truetype');
  font-weight: 800 900;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(circle at 80% 15%, rgba(115, 78, 224, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 50%, rgba(6, 210, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(248, 31, 175, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--tx);
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: var(--sh-header);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 72px;
  padding: 0 var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform var(--dur) var(--ease);
}

.site-header__logo:hover img {
  transform: scale(1.04);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--header-tx);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  -webkit-text-stroke: 0 currentColor;
  transition: -webkit-text-stroke var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Утолщение — через text-stroke, а не font-weight: у шрифта другая ширина под каждый вес,
   и переключение веса на hover сдвигало соседние пункты меню. Stroke толщину не меняет. */
.site-header__nav a:hover:not(.is-current) {
  -webkit-text-stroke: 0.5px currentColor;
}

.site-header__nav a.is-current {
  color: #4B5568;
  -webkit-text-stroke: 0.5px currentColor;
}

.btn-login {
  display: inline-flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 38px;
  padding: 0 var(--s-3);
  border: none;
  border-radius: var(--r-btn);
  background: var(--brand-gradient);
  color: #FEFEFE;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}

.btn-login:hover {
  opacity: 0.92;
}

.btn-login svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Вид шапки для уже вошедшего пользователя — скрыт по умолчанию (реальной
   авторизации ещё нет), включается классом is-logged-in на <html> только
   внутри редактора (переключатель предпросмотра), на живом сайте не появляется. */
.account-chip {
  display: none;
  align-items: center;
  gap: var(--s-2);
  height: 38px;
  padding: 0 var(--s-3) 0 var(--s-1);
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.06);
  color: var(--header-tx);
  text-decoration: none;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease);
}
.account-chip:hover { background: rgba(15, 23, 42, 0.1); }
.account-chip__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.account-chip__caret { width: 10px; height: 10px; opacity: .6; }
html.is-logged-in .btn-login { display: none; }
html.is-logged-in .account-chip { display: inline-flex; }

/* Заглушки будущих страниц — минимальный каркас, чтобы страница была реальным
   редактируемым файлом уже сейчас; полноценный дизайн — отдельная задача. */
.stub-page {
  padding: var(--s-24) 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}
.stub-page h1 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--tx-hi);
  margin: 0;
}
.stub-page p {
  font-size: 16px;
  color: var(--tx);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

.login-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-16) 0;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-8);
  box-shadow: var(--sh-card);
}
.login-card h1 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 26px;
  color: var(--tx-hi);
  margin: 0 0 var(--s-6);
}
.login-card label {
  display: block;
  font-size: 13px;
  color: var(--tx-lo);
  margin-bottom: var(--s-1);
}
.login-card input {
  width: 100%;
  height: 44px;
  padding: 0 var(--s-3);
  margin-bottom: var(--s-4);
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx-hi);
  font-size: 15px;
  font-family: system-ui, sans-serif;
}
.login-card input:focus { outline: 2px solid var(--tier-base); outline-offset: 1px; }
.login-card__submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--r-btn);
  background: var(--brand-gradient);
  color: #fff;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  cursor: pointer;
  margin-top: var(--s-2);
}
.login-card__foot {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--tx-lo);
  text-align: center;
}
.login-card__foot a { color: var(--tier-base); text-decoration: none; }

/* ===== Контентные страницы (Каталог/Продвижение/Опции/FAQ/Контакты) ===== */
.content-page {
  padding: var(--s-16) 0 var(--s-24);
  max-width: 74ch;
}
.content-page__eyebrow {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tier-base);
  margin: 0 0 var(--s-2);
}
.content-page h1 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  color: var(--tx-hi);
  margin: 0 0 var(--s-4);
}
.content-page__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--tx);
  margin: 0 0 var(--s-12);
  max-width: 60ch;
}
.content-page h2 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--tx-hi);
  margin: var(--s-12) 0 var(--s-4);
}
.content-page p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tx);
  margin: 0 0 var(--s-4);
}
.content-page ul {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-6);
  color: var(--tx);
  font-size: 16px;
  line-height: 1.7;
}
.content-page a { color: var(--tier-base); }

/* Сетка карточек — каталог ниш, опции */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
  margin: var(--s-6) 0 var(--s-12);
}
.card-grid__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-4);
}
.card-grid__item h3 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--tx-hi);
  margin: 0 0 var(--s-1);
}
.card-grid__item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tx-lo);
  margin: 0;
}

/* Компактная строка над каталогом: хлебные крошки слева, поиск справа —
   на одной линии, отступ сверху (от шапки) РАВЕН отступу снизу (до сайдбара/сетки). */
/* Составной селектор .container.catalog-page — чтобы перебить .padding(.container),
   который обнуляет padding-top (оба класса висят на одном div, .container объявлен
   ниже по каскаду и как раз зануляет верхний отступ одинаковой специфичностью). */
.container.catalog-page { max-width: 1200px; padding-top: var(--s-6); }
.catalog-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin: 0 0 var(--s-6);
}
.breadcrumbs {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 13px; font-weight: 400;
  color: var(--tx-lo); margin: 0;
}
.breadcrumbs a { color: var(--tx-lo); }
.breadcrumbs a:hover { color: var(--tx-hi); }
.breadcrumbs__sep { opacity: .5; }
.breadcrumbs__current { color: var(--tx); }

.catalog-search {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 14px; width: 100%; max-width: 480px;
}
.catalog-search svg { width: 16px; height: 16px; color: var(--tx-lo); flex: none; }
.catalog-search input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--tx-hi); font-size: 14px; font-family: inherit;
}
.catalog-search input::placeholder { color: var(--tx-lo); }
@media (max-width: 760px) {
  .catalog-topbar { flex-direction: column; align-items: stretch; }
  .catalog-search { max-width: none; }
}

/* ===== Каталог шаблонов: рубрики слева + карточки справа ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-8);
  margin: 0 0 var(--s-12);
  align-items: start;
}
@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: 1fr; }
}
.catalog-sidebar {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  position: sticky;
  top: calc(var(--s-8) + 60px);
}
/* Аккуратный список рубрик: мелкая иконка + подпись + счётчик справа,
   у активного пункта — сплошная плоская подсветка (без градиентов/увеличения). */
.catalog-sidebar__reset,
.catalog-sidebar__group summary {
  position: relative;
  display: flex; align-items: center; gap: var(--s-2); width: 100%; box-sizing: border-box;
  font-family: 'Montserrat', system-ui, sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: normal; text-transform: none; cursor: pointer; list-style: none;
  border: none; border-radius: var(--r-btn); padding: 9px 10px; margin-bottom: 2px;
  color: var(--tx); background: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.catalog-sidebar__group summary::-webkit-details-marker { display: none; }
.catalog-sidebar__icon { width: 18px; height: 18px; flex: none; color: var(--tx-lo); transition: color var(--dur) var(--ease); }
.catalog-sidebar__label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-sidebar__count { font-size: 12px; color: var(--tx-lo); font-variant-numeric: tabular-nums; flex: none; }

.catalog-sidebar__reset:hover,
.catalog-sidebar__group summary:hover {
  background: rgba(255,255,255,0.05);
}

.catalog-sidebar__reset.is-active,
.catalog-sidebar__group summary.is-active {
  background: var(--grad-2);
  color: #fff;
}
.catalog-sidebar__reset.is-active .catalog-sidebar__icon,
.catalog-sidebar__group summary.is-active .catalog-sidebar__icon,
.catalog-sidebar__reset.is-active .catalog-sidebar__count,
.catalog-sidebar__group summary.is-active .catalog-sidebar__count {
  color: #fff;
}
.catalog-sidebar__sub { display: flex; flex-direction: column; padding: 0 0 4px 34px; }
.catalog-sidebar__sub a {
  display: flex; justify-content: space-between; gap: var(--s-2);
  color: var(--tx-lo); text-decoration: none; font-size: 13px; padding: 6px 8px; border-radius: 6px;
}
.catalog-sidebar__sub a:hover { background: rgba(255,255,255,0.05); color: var(--tx-hi); }
.catalog-sidebar__sub a.is-active { background: rgba(115,78,224,0.22); color: var(--tx-hi); font-weight: 600; }

.catalog-empty {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--s-6); color: var(--tx-lo); font-size: 15px;
}

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-6); }
.tpl-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card); }
/* Превью карточки — рамка монитора и телефона раздельно, без пересечения
   (Монитор+смартфон.png, прислан Виктором 01.10.2026), используется ЦЕЛИКОМ,
   без разрезания. Оба скриншота — простые <img>, позиционированные внутри
   неё по вычисленным процентам (пиксель-в-пиксель от исходного PNG). */
.tpl-card__preview {
  position: relative; aspect-ratio: 1.5;
  /* ?v=2 обязателен: /assets/* кэшируется браузером на 30 дней (Caddy), а файл
     device-frame.png был перезаписан новым содержимым под тем же именем —
     без версии в URL старые клиенты продолжали бы получать старую (отклонённую,
     пересекающуюся) картинку из кэша ещё почти месяц. */
  background: var(--bg-0) center/contain no-repeat url('/assets/device-mockups/device-frame.png?v=2');
  border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden;
}
.tpl-card__desktop {
  position: absolute; left: 7.552%; top: 13.184%; width: 65.755%; height: 53.027%;
  object-fit: cover; object-position: top; display: block;
}
.tpl-card__mobile {
  position: absolute; left: 80.404%; top: 39.160%; width: 15.234%; height: 48.047%;
  object-fit: cover; display: block;
}
.tpl-card__body { padding: var(--s-4); }
.tpl-card__title {
  font-family: 'Montserrat', system-ui, sans-serif; font-weight: 400; font-size: 16px; color: var(--tx-hi);
  margin: 0 0 var(--s-2);
}
.tpl-card__btn { font-size: 13px; color: var(--tier-base); font-weight: 400; }

/* FAQ — нативный accordion (details/summary), доступно и без JS */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--s-4) 0;
}
.faq-item summary {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 17px;
  color: var(--tx-hi);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--tier-base);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: var(--s-3);
  padding-right: var(--s-8);
}

/* Контактная форма */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-8);
  margin-top: var(--s-6);
  max-width: 480px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--tx-lo);
  margin-bottom: var(--s-1);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--s-3);
  margin-bottom: var(--s-4);
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx-hi);
  font-size: 15px;
  font-family: system-ui, sans-serif;
  box-sizing: border-box;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--tier-base); outline-offset: 1px; }
.contact-form__submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--r-btn);
  background: var(--brand-gradient);
  color: #fff;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  cursor: pointer;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: var(--s-6) 0;
}
.contact-info a { color: var(--tier-base); font-size: 16px; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ===== Подвал сайта ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #20232D;
  padding: var(--s-8) 0;
  margin-top: var(--s-16);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: center;
  text-align: center;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-1) var(--s-4);
  font-size: 14px;
}
.site-footer__nav a {
  color: var(--tx);
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--tx-hi); text-decoration: underline; }
.site-footer__messengers {
  display: flex;
  gap: var(--s-3);
}
.site-footer__msg {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: #fff; transition: opacity var(--dur) var(--ease);
}
.site-footer__msg:hover { opacity: .85; }
.site-footer__msg svg { width: 18px; height: 18px; }
.site-footer__msg--telegram { background: #26A5E4; }
.site-footer__msg--max { background: #7C4DFF; }
.site-footer__msg--vk { background: #0077FF; }
/* WhatsApp сознательно не используется — с конца 2025/начала 2026 РКН поэтапно
   замедляет и блокирует сервис в России, не вопрос "экстремизма" (тот статус на
   WhatsApp не распространяется, только на Facebook/Instagram), а то, что канал
   всё менее доступен обычным пользователям без VPN. Вместо него — группа VK. */
/* Юридические ссылки и реквизиты — приглушённо, но читаемо: не должны бросаться
   в глаза, но и не должны выглядеть как намеренно спрятанные (нулевой контраст). */
.site-footer__legal {
  font-size: 11px;
  color: var(--tx-lo);
  opacity: .55;
}
.site-footer__legal a {
  color: inherit;
  text-decoration: none;
}
.site-footer__legal a:hover { text-decoration: underline; }
.site-footer__bottom {
  font-size: 11px;
  color: var(--tx-lo);
  opacity: .55;
}
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }

/* ===== Баннер согласия на cookie (js/cookie-consent.js) =====
   Компактная плавающая карточка в правом нижнем углу — не полноширинная плашка
   поперёк экрана. Не требует отступа под неё: не перекрывает контент, просто
   лежит поверх в углу, как на большинстве современных сайтов. */
#cookie-banner {
  position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 2000;
  width: 320px; max-width: calc(100vw - var(--s-6));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  padding: var(--s-4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cookie-banner__text { font-size: 12.5px; line-height: 1.55; color: var(--tx); margin: 0 0 var(--s-3); }
.cookie-banner__text a { color: var(--tier-base); }
.cookie-banner__toggles { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-3); }
.cookie-banner__toggle {
  display: flex; align-items: center; gap: var(--s-2); font-size: 12.5px; color: var(--tx);
  cursor: pointer;
}
.cookie-banner__toggle input { width: 15px; height: 15px; accent-color: var(--tier-market); flex-shrink: 0; }
.cookie-banner__actions { display: flex; gap: var(--s-2); }
.cookie-banner__btn {
  flex: 1; border-radius: var(--r-pill); height: 36px; padding: 0 var(--s-3); font-size: 12.5px;
  font-family: 'Montserrat', system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); background: transparent; color: var(--tx);
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cookie-banner__btn:hover { border-color: var(--tx-lo); color: var(--tx-hi); }
.cookie-banner__btn--accept {
  background: var(--brand-gradient); border: none; color: #fff; font-weight: 600;
}
.cookie-banner__btn--accept:hover { opacity: .88; }

/* ===== Юридические страницы (/legal/*) ===== */
.legal-page {
  padding: var(--s-16) 0 var(--s-24);
  max-width: 74ch;
}
.legal-page__meta {
  font-size: 14px;
  color: var(--tx-lo);
  margin: 0 0 var(--s-6);
}
.legal-page__meta a { color: var(--tier-base); }
.legal-page h1 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--tx-hi);
  margin: 0 0 var(--s-4);
}
.legal-page__toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-4) var(--s-6);
  margin: 0 0 var(--s-8);
}
.legal-page__toc summary {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  color: var(--tx-hi);
  cursor: pointer;
}
.legal-page__toc ol {
  margin: var(--s-3) 0 0;
  padding-left: var(--s-6);
  font-size: 14px;
  line-height: 1.9;
}
.legal-page__toc a { color: var(--tx); text-decoration: none; }
.legal-page__toc a:hover { color: var(--tier-base); }
.legal-page h2 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--tx-hi);
  margin: var(--s-8) 0 var(--s-3);
  scroll-margin-top: var(--s-8);
}
.legal-page p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tx);
  margin: 0 0 var(--s-3);
}
.legal-page ul {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tx);
  padding-left: var(--s-6);
  margin: 0 0 var(--s-3);
}
.legal-page a { color: var(--tier-base); }

@media (max-width: 760px) {
  .site-header__nav {
    display: none;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-6) 0;
}

.hero__container {
  position: relative;
  text-align: left;
  padding-top: var(--s-2);
  padding-bottom: var(--s-8);
}

/* Декоративная 3D-иллюстрация — левый край зафиксирован, сжата на 25% с правого края, поднята под шапку */
.hero__visual {
  position: absolute;
  top: -32px;
  left: 462px;
  width: 843.75px;
  max-width: 58.5vw;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to right, black 60%, transparent 96%);
  mask-image: linear-gradient(to right, black 60%, transparent 96%);
}

.hero__visual .hero__art {
  width: 100%;
  height: auto;
  display: block;
}

.hero__header,
.hero__grid {
  position: relative;
  z-index: 2;
}

.hero__header {
  text-align: left;
  max-width: 100%;
}

.hero__title-main,
.hero__title-accent {
  white-space: nowrap;
}

/* Ряд из 3 слов над заголовком — по осям колонок BASE/START/MARKET, без разделителей */
.hero__topwords {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-4);
  transform: translateY(-50%);
}

.hero__topword {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(12px, 1.5vw, 18px);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.55), 0 0 16px rgba(255, 255, 255, 0.35), 0 0 30px rgba(255, 255, 255, 0.2);
  filter: blur(0.5px);
}

.hero__title {
  margin: 0;
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__title-main {
  display: block;
  color: var(--tx-hi);
}

.hero__title-accent {
  display: block;
  margin-left: clamp(24px, 4vw, 64px);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(115, 78, 224, 0.4);
}

/* Сетка карточек тарифов */
.hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: calc(var(--s-6) + 34px);
  align-items: stretch;
}

/* Строка пояснений под карточками — по осям тех же колонок */
.hero__footnotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-4);
}

.hero__footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}

.hero__footnote-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.hero__footnote-icon--gift {
  width: 28px;
  height: 28px;
}

.hero__footnote span {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.02em;
}

.hero__footnote--base span { color: var(--tier-base); }
.hero__footnote--start span { color: var(--tier-start); }
.hero__footnote--market span { color: var(--tier-market); }

.hero__footnote--base .hero__footnote-icon { filter: drop-shadow(0 0 5px var(--tier-base)); }
.hero__footnote--start .hero__footnote-icon { filter: drop-shadow(0 0 5px var(--tier-start)); }
.hero__footnote--market .hero__footnote-icon { filter: drop-shadow(0 0 5px var(--tier-market)); }

.tier-card {
  background: rgba(8, 10, 20, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--r-card);
  padding: 22px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), border-width var(--dur) var(--ease);
}

.tier-card--base {
  border: 2.25px solid rgba(6, 210, 254, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(6, 210, 254, 0.08);
}

.tier-card--base:hover {
  transform: translateY(-4px) scale(1.015);
  border-width: 2.8125px;
  box-shadow: 0 15px 40px rgba(6, 210, 254, 0.25), inset 0 0 20px rgba(6, 210, 254, 0.15);
  border-color: var(--tier-base);
}

.tier-card--base .tier-card__title {
  background-image:
    linear-gradient(45deg, transparent 34%, rgba(255,255,255,0.71) 50%, transparent 66%),
    linear-gradient(180deg, #05B3D8 0%, var(--tier-base) 50%, #2BD9FE 100%);
  background-size: 220% 220%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat, no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--tier-base);
  text-shadow: 0 0 20px var(--tier-base);
}

.tier-card--start {
  border: 2.25px solid rgba(143, 230, 20, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(143, 230, 20, 0.08);
}

.tier-card--start:hover {
  transform: translateY(-4px) scale(1.015);
  border-width: 2.8125px;
  box-shadow: 0 15px 40px rgba(143, 230, 20, 0.25), inset 0 0 20px rgba(143, 230, 20, 0.15);
  border-color: var(--tier-start);
}

.tier-card--start .tier-card__title {
  background-image:
    linear-gradient(45deg, transparent 34%, rgba(255,255,255,0.99) 50%, transparent 66%),
    linear-gradient(180deg, #7AC411 0%, var(--tier-start) 50%, #A0EA37 100%);
  background-size: 220% 220%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat, no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--tier-start);
  text-shadow: 0 0 20px var(--tier-start);
}

.tier-card--market {
  border: 2.25px solid rgba(248, 31, 175, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(248, 31, 175, 0.08);
}

.tier-card--market:hover {
  transform: translateY(-4px) scale(1.015);
  border-width: 2.8125px;
  box-shadow: 0 15px 40px rgba(248, 31, 175, 0.25), inset 0 0 20px rgba(248, 31, 175, 0.15);
  border-color: var(--tier-market);
}

.tier-card--market .tier-card__title {
  background-image:
    linear-gradient(45deg, transparent 34%, rgba(255,255,255,0.44) 50%, transparent 66%),
    linear-gradient(180deg, #D31A95 0%, var(--tier-market) 50%, #F941BB 100%);
  background-size: 220% 220%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat, no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--tier-market);
  text-shadow: 0 0 20px var(--tier-market);
}

.tier-card:hover .tier-card__title,
.tier-card:hover .tier-card__btn {
  animation: shine-sweep 7.5s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% { background-position: 160% 0, 0 0; }
  20%, 100% { background-position: -60% 0, 0 0; }
}

.tier-card__label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--tx-lo);
  margin-bottom: 2px;
  font-weight: 400;
}

.tier-card__title {
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  font-size: 56px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  transition: transform var(--dur) var(--ease);
}

.tier-card__title:hover {
  transform: scale(1.06);
}

.tier-card__features {
  font-family: 'Montserrat', system-ui, sans-serif;
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  width: 100%;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.125;
  color: var(--tx);
}

.tier-card__features li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.tier-card__features li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--tx-lo);
}

.tier-card__btn {
  display: inline-block;
  width: 100%;
  max-width: 220px;
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  font-size: 36px;
  font-weight: 900;
  border-radius: 12px;
  text-decoration: none;
  margin-top: auto;
  background-size: 220% 220%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat, no-repeat;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.tier-card__btn:hover {
  transform: scale(1.06);
}

.tier-card__btn-period {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.75;
  margin-left: 2px;
}

.tier-card__btn--base {
  background-image:
    linear-gradient(45deg, transparent 34%, rgba(255,255,255,0.71) 50%, transparent 66%),
    linear-gradient(180deg, #05B3D8 0%, #06D2FE 50%, #2BD9FE 100%);
  color: #05060D;
  box-shadow: 0 0 25px rgba(6, 210, 254, 0.65);
}

.tier-card__btn--start {
  background-image:
    linear-gradient(45deg, transparent 34%, rgba(255,255,255,0.99) 50%, transparent 66%),
    linear-gradient(180deg, #7AC411 0%, #A2F818 50%, #A0EA37 100%);
  color: #05060D;
  box-shadow: 0 0 25px rgba(143, 230, 20, 0.65);
}

.tier-card__btn--market {
  background-image:
    linear-gradient(45deg, transparent 34%, rgba(255,255,255,0.44) 50%, transparent 66%),
    linear-gradient(180deg, #D31A95 0%, #F81FAF 50%, #F941BB 100%);
  color: #05060D;
  box-shadow: 0 0 25px rgba(248, 31, 175, 0.65);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    left: 0;
    width: 100%;
    max-width: 100%;
    opacity: 0.4;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--s-8);
  border: none;
  border-radius: var(--r-btn);
  background: var(--brand-gradient);
  color: #FEFEFE;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--tx-hi);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.btn-secondary:hover {
  border-color: var(--tx);
}

/* ===================== Каталог: карточка + ссылка на бриф ===================== */
.tpl-card-wrap { display: flex; flex-direction: column; }
.tpl-card__brief-link {
  display: block; text-align: center; margin-top: var(--s-2);
  font-size: 13px; color: var(--tx-lo); text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--r-btn); padding: var(--s-2) 0;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tpl-card__brief-link:hover { color: var(--tier-market); border-color: var(--tier-market); }

/* ===================== Бриф ===================== */
.brief-root { margin-top: var(--s-8); }

.brief-topbar {
  display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--s-6); margin-bottom: var(--s-6);
}
.brief-topbar__group { display: flex; flex-direction: column; gap: var(--s-2); min-width: 220px; }
.brief-topbar__label { font-size: 13px; color: var(--tx-lo); text-transform: uppercase; letter-spacing: .04em; }
.brief-topbar__select {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-btn);
  color: var(--tx-hi); padding: var(--s-3) var(--s-4); font-size: 15px; min-width: 280px;
}

.brief-tier-picker { display: flex; gap: var(--s-2); }
.brief-tier-picker__btn {
  padding: var(--s-2) var(--s-6); border-radius: var(--r-pill); border: 1px solid var(--border);
  background: transparent; color: var(--tx); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brief-tier-picker__btn--base.is-active { background: var(--tier-base); color: #05060D; border-color: var(--tier-base); }
.brief-tier-picker__btn--start.is-active { background: var(--tier-start); color: #05060D; border-color: var(--tier-start); transform: scale(1.06); }
.brief-tier-picker__btn--market.is-active { background: var(--tier-market); color: #fff; border-color: var(--tier-market); transform: scale(1.08); box-shadow: 0 0 18px rgba(248,31,175,.4); }

.brief-tier-note {
  font-size: 14px; color: var(--tx-lo); background: var(--bg-1); border: 1px dashed var(--border);
  border-radius: var(--r-card); padding: var(--s-4) var(--s-6); margin-bottom: var(--s-8);
}
.brief-tier-note strong { color: var(--tx-hi); }

.brief-empty-hint { color: var(--tx-lo); font-size: 15px; padding: var(--s-8) 0; text-align: center; }

.brief-group {
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface);
  padding: var(--s-6) var(--s-8); margin-bottom: var(--s-6);
}
.brief-group__title {
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 19px; color: var(--tx-hi);
  margin: 0 0 var(--s-6);
}

.brief-field { margin-bottom: var(--s-6); }
.brief-field:last-child { margin-bottom: 0; }
.brief-field__label { display: block; font-size: 14px; color: var(--tx); margin-bottom: var(--s-2); }
.brief-field__req { color: var(--tier-market); }
.brief-field__input {
  width: 100%; max-width: 480px; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-btn); color: var(--tx-hi); padding: var(--s-3) var(--s-4); font-size: 15px;
  font-family: inherit;
}
textarea.brief-field__input { max-width: 640px; resize: vertical; }
.brief-field__hint { font-size: 12.5px; color: var(--tx-lo); margin: var(--s-2) 0 0; }
.brief-field--inline { display: flex; align-items: center; }
.brief-field__checkbox-label { display: flex; align-items: center; gap: var(--s-3); font-size: 14px; color: var(--tx); cursor: pointer; }
.brief-field__checkbox-label input { width: 18px; height: 18px; }
.brief-field--color input { width: 60px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-btn); background: none; cursor: pointer; }

.brief-file { display: flex; align-items: center; gap: var(--s-4); }
.brief-file__preview {
  width: 72px; height: 72px; border-radius: var(--r-btn); overflow: hidden; flex-shrink: 0;
  background: var(--bg-1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--tx-lo); text-align: center;
}
.brief-file__preview img { width: 100%; height: 100%; object-fit: cover; }
.brief-file__preview--empty { padding: var(--s-2); }
.brief-file__remove {
  border: 1px solid var(--border); background: transparent; color: var(--tx-lo);
  border-radius: 50%; width: 28px; height: 28px; cursor: pointer; flex-shrink: 0;
}
.brief-file__remove:hover { color: var(--tier-market); border-color: var(--tier-market); }

.brief-file-multi__grid { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.brief-file-multi__item {
  position: relative; width: 90px; height: 90px; border-radius: var(--r-btn); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-1);
}
.brief-file-multi__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brief-file-multi__remove {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px;
}
.brief-file-multi__add {
  width: 90px; height: 90px; border-radius: var(--r-btn); border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px;
  color: var(--tx-lo); cursor: pointer; padding: var(--s-2);
}
.brief-file-multi__add:hover { border-color: var(--tier-start); color: var(--tx-hi); }

.brief-repeat__card {
  border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg-1);
  padding: var(--s-4) var(--s-6); margin-bottom: var(--s-4); position: relative;
}
.brief-repeat__num { font-size: 12px; color: var(--tx-lo); margin-bottom: var(--s-3); }
.brief-repeat__remove {
  border: 1px solid var(--border); background: transparent; color: var(--tx-lo);
  border-radius: var(--r-btn); padding: var(--s-2) var(--s-4); font-size: 13px; cursor: pointer;
}
.brief-repeat__remove:hover { color: var(--tier-market); border-color: var(--tier-market); }
.brief-repeat__add {
  border: 1px dashed var(--border); background: transparent; color: var(--tx);
  border-radius: var(--r-btn); padding: var(--s-3) var(--s-6); font-size: 14px; cursor: pointer;
}
.brief-repeat__add:hover { border-color: var(--tier-start); color: var(--tx-hi); }

.brief-group--summary { border-color: var(--tier-market); }
.brief-summary__errors { color: #ff8fb8; font-size: 14px; }
.brief-summary__errors ul { margin: var(--s-2) 0 0 var(--s-6); }
.brief-summary__ok { color: var(--tier-start); font-size: 14px; }
.brief-summary__actions { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-4); }
.brief-summary__json {
  margin-top: var(--s-4); background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--r-btn);
  padding: var(--s-4); font-size: 12px; color: var(--tx); max-height: 400px; overflow: auto; white-space: pre-wrap;
}

@media (max-width: 640px) {
  .brief-topbar { flex-direction: column; }
  .brief-topbar__select { min-width: 0; width: 100%; }
  .brief-tier-picker { width: 100%; }
  .brief-tier-picker__btn { flex: 1; padding: var(--s-2) 0; }
  .brief-group { padding: var(--s-5); }
  .brief-field__input { max-width: 100%; }
}
