/*
Theme Name: WebSansay Hub
Theme URI: https://hub.websansay.com
Author: Николай Калинин (WebSansay)
Author URI: https://hub.websansay.com
Description: Премиальная тема WebSansay Hub на дизайн-системе Anthropic Warm Dark Tech (#141413, #1e1e1c, #d97757, #ea4b71). Разработана специально для AI-автоматизаций, n8n-схем, базы знаний и закрытого клуба.
Version: 2.4.6
License: GNU General Public License v2 or later
Text Domain: websansay-hub
Tags: dark, blog, two-columns, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И ДИЗАЙН-СИСТЕМА (Anthropic Warm Dark Tech)
   ========================================================================== */
:root {
  /* Фон и поверхности */
  --bg: #141413;
  --bg-2: #191918;
  --surface: #1e1e1c;
  --surface-2: #262625;
  --code-bg: #0d0d0c;

  /* Линии и рамки */
  --line: #34332f;
  --line-bright: #46443e;
  --line-soft: #232220;

  /* Акценты */
  --clay: #d97757;        /* Главный акцент — Claude Clay */
  --clay-hover: #e58768;
  --clay-glow: rgba(217, 119, 87, 0.25);
  --pink: #ea4b71;        /* Вторичный технический акцент — n8n Pink */
  --sand: #c9bfa5;        /* Разметка и подписи схем */
  --green: #25d366;       /* WhatsApp */
  --wa: #25d366;
  --wa-hover: #1ebc59;
  --tg: #229ed9;          /* Telegram */
  --tg-hover: #1d8ec4;
  --max: #5b6cf9;         /* MAX */
  --max-hover: #4857e8;

  /* Совместимость с компонентами лендингов */
  --lime: var(--clay);
  --lime-bright: var(--clay-hover);
  --accent-gradient: linear-gradient(135deg, #d97757 0%, #ea4b71 100%);

  /* Текст */
  --text: #f0eee6;        /* Кремовый основной текст */
  --text-strong: #ffffff; /* Заголовки, жирный */
  --text-muted: #8f8b80;  /* Метаданные */
  --text-dim: #6e6a61;
  --on-clay: #141413;

  /* Шрифты */
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Сетка и геометрия */
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --gutter: 24px;
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Гарантия: ни один элемент не распирает экран вбок на смартфонах */
img, svg, video, iframe, pre, table, .table-wrap, .term, .widget-card, .article-card {
  max-width: 100% !important;
  box-sizing: border-box;
}


a { color: var(--clay); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
a:hover { color: var(--clay-hover); }

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

/* Фоновая сетка чертежа */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, black 25%, transparent 100%);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   2. ШАПКА И НАВИГАЦИЯ (Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  text-decoration: none;
}
.mark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 10px var(--clay);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  position: relative;
  transition: color .15s ease;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--text-strong);
}
.nav-menu a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-btn-account {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .15s ease;
}
.nav-btn-account:hover {
  color: var(--text-strong);
  border-color: var(--line-bright);
  background: var(--surface);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clay);
  color: var(--on-clay);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover {
  background: var(--clay-hover);
  color: var(--on-clay);
  transform: translateY(-1px);
}
.nav-cta svg { width: 16px; height: 16px; }

.nav-burger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover {
  background: var(--surface-2);
  border-color: var(--clay);
  color: var(--text-strong);
}
.nav-burger:active {
  transform: scale(0.96);
}
.nav-burger svg {
  display: block;
}
.nav-burger .i-close {
  display: none;
}
.nav-burger[aria-expanded="true"] .i-bars {
  display: none;
}
.nav-burger[aria-expanded="true"] .i-close {
  display: block;
}

/* ==========================================================================
   3. ГЛАВНАЯ СТРАНИЦА (Front Page Hero & Sections)
   ========================================================================== */
.hero {
  padding: 64px 0 54px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 22px;
}
.hero h1 .hl {
  color: var(--clay);
  background: linear-gradient(135deg, var(--clay) 0%, #f29a7c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--sand);
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--clay);
  color: var(--on-clay);
}
.btn-primary:hover {
  background: var(--clay-hover);
  color: var(--on-clay);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--clay-glow);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--line-bright);
  color: var(--text-strong);
  background: var(--surface-2);
}
.btn-club {
  background: linear-gradient(135deg, #ea4b71 0%, #d97757 100%);
  color: #fff;
}
.btn-club:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 75, 113, 0.35);
  color: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s ease;
}
.tag:hover {
  color: var(--clay);
  border-color: var(--clay);
}

/* Терминал в Hero */
.hero-visual {
  position: relative;
}

.term {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.term-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.term-head .dots {
  display: flex;
  gap: 6px;
}
.term-head .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--line-bright);
}
.term-head .dots i:first-child { background: #ff5f56; }
.term-head .dots i:nth-child(2) { background: #ffbd2e; }
.term-head .dots i:last-child { background: #27c93f; }

.term-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--sand);
}
.term-body .ln { display: block; }
.term-body .p { color: var(--clay); }
.term-body .w { color: var(--text-strong); font-weight: 600; }
.term-body .d { color: var(--text-muted); margin-right: 6px; }
.term-body .ok { color: #5af78e; font-weight: 600; margin-left: 8px; }
.term-body .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--clay);
  vertical-align: middle;
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
}
.fc-1 {
  top: -20px;
  right: -10px;
}
.fc-2 {
  bottom: -24px;
  left: -20px;
}
.fc-label {
  display: block;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.fc-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--clay);
}

/* ==========================================================================
   4. СЕКЦИИ И КАРТОЧКИ СТАТЕЙ (Article Grid)
   ========================================================================== */
.section {
  padding: 54px 0;
  border-top: 1px solid var(--line-soft);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.section-title span { color: var(--pink); font-family: var(--font-mono); font-size: 0.6em; margin-right: 8px; vertical-align: middle; }
.section-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
  text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), border-color .2s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.card-thumb {
  position: relative;
  aspect-ratio: 1200 / 630;
  background: var(--surface-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.article-card:hover .card-thumb img {
  transform: scale(1.03);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.card-meta .date { color: var(--text-muted); }

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-strong);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--sand);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clay);
}

/* ==========================================================================
   5. ДВУХКОЛОНОЧНЫЙ МАКЕТ СТАТЬИ (Single Post Layout)
   ========================================================================== */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 44px 0 60px;
  align-items: start;
}

.article-main {
  min-width: 0;
  max-width: 780px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  list-style: none;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--clay); }
.crumbs li+li::before { content: '/'; margin-right: 8px; opacity: 0.4; }

.post-header {
  margin-bottom: 28px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 16px;
}
.post-cat {
  color: var(--pink);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 20px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  object-fit: cover;
}

.post-cover {
  margin: 24px 0 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Контент статьи: премиальная редакционная верстка */
.entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.entry-content .lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--sand);
  margin-bottom: 28px;
  border-left: 3px solid var(--clay);
  padding-left: 18px;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 48px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 32px 0 14px;
}

.entry-content p { margin-bottom: 20px; }

.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.entry-content li { margin-bottom: 8px; }
.entry-content li::marker { color: var(--clay); }

.entry-content hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 36px 0;
}

.entry-content a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover {
  color: var(--clay-hover);
}

/* Врезки и цитаты */
.entry-content .note,
.entry-content .callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 16px;
  color: var(--sand);
}
.entry-content .note b,
.entry-content .callout b {
  color: var(--text-strong);
}

.entry-content blockquote {
  border-left: 3px solid var(--clay);
  padding: 8px 0 8px 20px;
  margin: 28px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--sand);
}

/* Код */
.entry-content pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
}
.entry-content code {
  background: var(--surface-2);
  color: var(--clay);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Таблицы */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  font-size: 14.5px;
}
.entry-content th {
  background: var(--surface-2);
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.entry-content td {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}

/* Карточка автора внизу статьи */
.author-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 48px 0 24px;
}
.author-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.author-box p {
  font-size: 15px;
  color: var(--sand);
  margin-bottom: 12px;
}

/* ==========================================================================
   5.1. СТРАНИЦЫ ПРОДУКТОВ ВИТРИНЫ И СТАТЕЙ (Store Landings & Unified Standards)
   ========================================================================== */
.store-landing-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  box-sizing: border-box;
}
.store-landing-article {
  width: 100%;
}
.entry-content--store {
  width: 100%;
}

/* ==========================================================================
   5.2. ЕДИНЫЙ ДИЗАЙН-СТАНДАРТ КНОПОК (Unified Button System)
   ========================================================================== */
/* Исключить перенос строк <br> внутри любых кнопок */
a[class*="btn"] br,
a[class*="cta"] br,
.btn br,
.cta-btn br,
.tariff-btn br,
.price-btn br {
  display: none !important;
}

/* 1. СТАНДАРТ ДЛЯ ВСЕХ КНОПОК TELEGRAM (На витрине и в контенте, исключая подвал) */
.entry-content a[href*="t.me"].btn,
.entry-content a[href*="t.me"].cta-btn,
.entry-content a[href*="t.me"][class*="btn"],
.store-landing-wrap a[href*="t.me"][class*="btn"],
.store-landing-wrap a[href^="tg://"],
.hero-actions a[href*="t.me"],
.tariff-actions a[href*="t.me"],
a[href*="t.me"].btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="t.me"].cta-btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="t.me"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href^="tg://"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
.btn-tg,
.btn-tg-buy,
.btn-tg-main,
.btn-tg-primary,
.tg-btn,
.tariff-btn[href*="t.me"]:not(.tariff-btn-outline),
.btn-demo-proxy[href*="t.me"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #24a1de !important;
  color: #ffffff !important;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 13px 24px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.32) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.entry-content a[href*="t.me"].btn:hover,
.entry-content a[href*="t.me"].cta-btn:hover,
.entry-content a[href*="t.me"][class*="btn"]:hover,
.store-landing-wrap a[href*="t.me"][class*="btn"]:hover,
.store-landing-wrap a[href^="tg://"]:hover,
.hero-actions a[href*="t.me"]:hover,
.tariff-actions a[href*="t.me"]:hover,
a[href*="t.me"].btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="t.me"].cta-btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="t.me"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href^="tg://"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
.btn-tg:hover,
.btn-tg-buy:hover,
.btn-tg-main:hover,
.btn-tg-primary:hover,
.tg-btn:hover,
.tariff-btn[href*="t.me"]:not(.tariff-btn-outline):hover,
.btn-demo-proxy[href*="t.me"]:hover {
  background: #1d8ec4 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 22px rgba(36, 161, 222, 0.48) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Вариант Telegram Outline / Secondary */
.entry-content a[href*="t.me"].btn-secondary,
.entry-content a[href*="t.me"].tariff-btn-outline,
.store-landing-wrap a[href*="t.me"].tariff-btn-outline,
.store-landing-wrap a[href*="t.me"].price-btn-ghost,
.tariff-btn-outline[href*="t.me"],
.price-btn-ghost[href*="t.me"],
a[href*="t.me"].btn-secondary:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="t.me"].tariff-btn-outline:not(.site-footer a),
a[href*="t.me"].price-btn-ghost:not(.site-footer a),
a[href*="t.me"].btn-outline:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a) {
  background: rgba(36, 161, 222, 0.1) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: none !important;
}
.entry-content a[href*="t.me"].btn-secondary:hover,
.entry-content a[href*="t.me"].tariff-btn-outline:hover,
.store-landing-wrap a[href*="t.me"].tariff-btn-outline:hover,
.store-landing-wrap a[href*="t.me"].price-btn-ghost:hover,
.tariff-btn-outline[href*="t.me"]:hover,
.price-btn-ghost[href*="t.me"]:hover,
a[href*="t.me"].btn-secondary:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="t.me"].tariff-btn-outline:not(.site-footer a):hover,
a[href*="t.me"].price-btn-ghost:not(.site-footer a):hover,
a[href*="t.me"].btn-outline:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover {
  background: rgba(36, 161, 222, 0.22) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   1.1. СТАНДАРТ ДЛЯ ВСЕХ КНОПОК MAX (В статьях, на витрине и в блоках заказа)
   ========================================================================== */
.entry-content a[href*="max.ru"].btn,
.entry-content a[href*="max.ru"].cta-btn,
.entry-content a[href*="max.ru"][class*="btn"],
.entry-content a[href*="max.im"][class*="btn"],
.store-landing-wrap a[href*="max.ru"][class*="btn"],
.store-landing-wrap a[href*="max.im"][class*="btn"],
.hero-actions a[href*="max.ru"],
.hero-actions a[href*="max.im"],
.tariff-actions a[href*="max.ru"],
.tariff-actions a[href*="max.im"],
.order-buttons-grid a[href*="max.ru"],
.order-buttons-grid a[href*="max.im"],
a[href*="max.ru"].btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="max.ru"].cta-btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="max.ru"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="max.im"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
.btn-max,
.btn-max-buy,
.btn-max-main,
.btn-max-primary,
.max-btn,
.tariff-btn[href*="max.ru"]:not(.tariff-btn-outline),
.tariff-btn[href*="max.im"]:not(.tariff-btn-outline) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #5b6cf9 !important;
  color: #ffffff !important;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 13px 24px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(91, 108, 249, 0.35) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.entry-content a[href*="max.ru"].btn:hover,
.entry-content a[href*="max.ru"].cta-btn:hover,
.entry-content a[href*="max.ru"][class*="btn"]:hover,
.entry-content a[href*="max.im"][class*="btn"]:hover,
.store-landing-wrap a[href*="max.ru"][class*="btn"]:hover,
.store-landing-wrap a[href*="max.im"][class*="btn"]:hover,
.hero-actions a[href*="max.ru"]:hover,
.hero-actions a[href*="max.im"]:hover,
.tariff-actions a[href*="max.ru"]:hover,
.tariff-actions a[href*="max.im"]:hover,
.order-buttons-grid a[href*="max.ru"]:hover,
.order-buttons-grid a[href*="max.im"]:hover,
a[href*="max.ru"].btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="max.ru"].cta-btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="max.ru"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="max.im"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
.btn-max:hover,
.btn-max-buy:hover,
.btn-max-main:hover,
.btn-max-primary:hover,
.max-btn:hover,
.tariff-btn[href*="max.ru"]:not(.tariff-btn-outline):hover,
.tariff-btn[href*="max.im"]:not(.tariff-btn-outline):hover {
  background: #4857e8 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 22px rgba(91, 108, 249, 0.48) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Вариант MAX Outline / Secondary */
.entry-content a[href*="max.ru"].btn-secondary,
.entry-content a[href*="max.ru"].tariff-btn-outline,
.store-landing-wrap a[href*="max.ru"].tariff-btn-outline,
.store-landing-wrap a[href*="max.ru"].price-btn-ghost,
.tariff-btn-outline[href*="max.ru"],
.price-btn-ghost[href*="max.ru"],
a[href*="max.ru"].btn-secondary:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="max.ru"].tariff-btn-outline:not(.site-footer a),
a[href*="max.ru"].price-btn-ghost:not(.site-footer a),
a[href*="max.ru"].btn-outline:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a) {
  background: rgba(91, 108, 249, 0.12) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(129, 140, 248, 0.4) !important;
  box-shadow: none !important;
}

.entry-content a[href*="max.ru"].btn-secondary:hover,
.entry-content a[href*="max.ru"].tariff-btn-outline:hover,
.store-landing-wrap a[href*="max.ru"].tariff-btn-outline:hover,
.store-landing-wrap a[href*="max.ru"].price-btn-ghost:hover,
.tariff-btn-outline[href*="max.ru"]:hover,
.price-btn-ghost[href*="max.ru"]:hover,
a[href*="max.ru"].btn-secondary:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="max.ru"].tariff-btn-outline:not(.site-footer a):hover,
a[href*="max.ru"].price-btn-ghost:not(.site-footer a):hover,
a[href*="max.ru"].btn-outline:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover {
  background: rgba(91, 108, 249, 0.24) !important;
  color: #ffffff !important;
  border-color: #818cf8 !important;
  box-shadow: 0 4px 14px rgba(91, 108, 249, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   1.2. СТАНДАРТ ДЛЯ ВСЕХ КНОПОК WHATSAPP (В статьях, на витрине и в блоках заказа)
   ========================================================================== */
.entry-content a[href*="wa.me"].btn,
.entry-content a[href*="wa.me"].cta-btn,
.entry-content a[href*="wa.me"][class*="btn"],
.entry-content a[href*="whatsapp.com"][class*="btn"],
.store-landing-wrap a[href*="wa.me"][class*="btn"],
.store-landing-wrap a[href*="whatsapp.com"][class*="btn"],
.hero-actions a[href*="wa.me"],
.hero-actions a[href*="whatsapp.com"],
.tariff-actions a[href*="wa.me"],
.tariff-actions a[href*="whatsapp.com"],
.order-buttons-grid a[href*="wa.me"],
.order-buttons-grid a[href*="whatsapp.com"],
a[href*="wa.me"].btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="wa.me"].cta-btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="wa.me"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="whatsapp.com"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href^="https://api.whatsapp.com"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
.btn-wa,
.btn-wa-buy,
.btn-wa-main,
.btn-wa-primary,
.wa-btn,
.btn-whatsapp,
.tariff-btn[href*="wa.me"]:not(.tariff-btn-outline),
.tariff-btn[href*="whatsapp.com"]:not(.tariff-btn-outline) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 13px 24px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.entry-content a[href*="wa.me"].btn:hover,
.entry-content a[href*="wa.me"].cta-btn:hover,
.entry-content a[href*="wa.me"][class*="btn"]:hover,
.entry-content a[href*="whatsapp.com"][class*="btn"]:hover,
.store-landing-wrap a[href*="wa.me"][class*="btn"]:hover,
.store-landing-wrap a[href*="whatsapp.com"][class*="btn"]:hover,
.hero-actions a[href*="wa.me"]:hover,
.hero-actions a[href*="whatsapp.com"]:hover,
.tariff-actions a[href*="wa.me"]:hover,
.tariff-actions a[href*="whatsapp.com"]:hover,
.order-buttons-grid a[href*="wa.me"]:hover,
.order-buttons-grid a[href*="whatsapp.com"]:hover,
a[href*="wa.me"].btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="wa.me"].cta-btn:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="wa.me"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="whatsapp.com"][class*="btn"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href^="https://api.whatsapp.com"]:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
.btn-wa:hover,
.btn-wa-buy:hover,
.btn-wa-main:hover,
.btn-wa-primary:hover,
.wa-btn:hover,
.btn-whatsapp:hover,
.tariff-btn[href*="wa.me"]:not(.tariff-btn-outline):hover,
.tariff-btn[href*="whatsapp.com"]:not(.tariff-btn-outline):hover {
  background: #1ebc59 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.48) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Вариант WhatsApp Outline / Secondary */
.entry-content a[href*="wa.me"].btn-secondary,
.entry-content a[href*="wa.me"].tariff-btn-outline,
.store-landing-wrap a[href*="wa.me"].tariff-btn-outline,
.store-landing-wrap a[href*="wa.me"].price-btn-ghost,
.tariff-btn-outline[href*="wa.me"],
.price-btn-ghost[href*="wa.me"],
a[href*="wa.me"].btn-secondary:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a),
a[href*="wa.me"].tariff-btn-outline:not(.site-footer a),
a[href*="wa.me"].price-btn-ghost:not(.site-footer a),
a[href*="wa.me"].btn-outline:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a) {
  background: rgba(37, 211, 102, 0.12) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.4) !important;
  box-shadow: none !important;
}

.entry-content a[href*="wa.me"].btn-secondary:hover,
.entry-content a[href*="wa.me"].tariff-btn-outline:hover,
.store-landing-wrap a[href*="wa.me"].tariff-btn-outline:hover,
.store-landing-wrap a[href*="wa.me"].price-btn-ghost:hover,
.tariff-btn-outline[href*="wa.me"]:hover,
.price-btn-ghost[href*="wa.me"]:hover,
a[href*="wa.me"].btn-secondary:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover,
a[href*="wa.me"].tariff-btn-outline:not(.site-footer a):hover,
a[href*="wa.me"].price-btn-ghost:not(.site-footer a):hover,
a[href*="wa.me"].btn-outline:not(.social-sq-btn):not(.footer-contact-link):not(.site-footer a):hover {
  background: rgba(37, 211, 102, 0.24) !important;
  color: #ffffff !important;
  border-color: #4ade80 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   1.3. СТАНДАРТ ИКОНОК И ТЕКСТА ВНУТРИ ВСЕХ МЕССЕНДЖЕР-КНОПОК
   ========================================================================== */
.btn-tg-buy svg, .btn-tg-buy img,
.btn-max-buy svg, .btn-max-buy img,
.btn-wa-buy svg, .btn-wa-buy img,
.btn-tg svg, .btn-tg img,
.btn-max svg, .btn-max img,
.btn-wa svg, .btn-wa img,
a[href*="t.me"][class*="btn"] svg, a[href*="t.me"][class*="btn"] img,
a[href*="max.ru"][class*="btn"] svg, a[href*="max.ru"][class*="btn"] img,
a[href*="max.im"][class*="btn"] svg, a[href*="max.im"][class*="btn"] img,
a[href*="wa.me"][class*="btn"] svg, a[href*="wa.me"][class*="btn"] img,
a[href*="whatsapp.com"][class*="btn"] svg, a[href*="whatsapp.com"][class*="btn"] img,
.order-buttons-grid a svg, .order-buttons-grid a img {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex-shrink: 0 !important;
  border-radius: 4px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.btn-tg-buy span, .btn-max-buy span, .btn-wa-buy span,
a[href*="t.me"][class*="btn"] span,
a[href*="max.ru"][class*="btn"] span,
a[href*="max.im"][class*="btn"] span,
a[href*="wa.me"][class*="btn"] span,
a[href*="whatsapp.com"][class*="btn"] span {
  text-decoration: none !important;
}

/* ==========================================================================
   1.4. СЕТКА КНОПОК ЗАКАЗА И СВЯЗИ (.order-buttons-grid)
   ========================================================================== */
.order-buttons-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  max-width: 640px !important;
  margin: 20px auto 0 !important;
}

.order-buttons-grid > a {
  flex: 1 1 240px !important;
  max-width: 300px !important;
  width: auto !important;
  text-align: center !important;
  padding: 16px 22px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

@media (max-width: 640px) {
  .order-buttons-grid {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .order-buttons-grid > a {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* 2. ГЛАВНЫЕ ДЕЙСТВИЯ (Primary Action — Claude Clay #d97757) */
.btn-primary,
.cta-btn:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]),
.tariff-btn-main:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]),
.price-btn-primary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]),
.btn-action-primary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: var(--clay, #d97757) !important;
  color: #ffffff !important;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 13px 24px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.32) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.btn-primary:hover,
.cta-btn:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover,
.tariff-btn-main:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover,
.price-btn-primary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover,
.btn-action-primary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover {
  background: #e58869 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.45) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* 3. ВТОРОСТЕПЕННЫЕ ДЕЙСТВИЯ (Secondary / Surface Outline) */
.btn-secondary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]),
.btn-scroll-tariffs,
.tariff-btn-outline:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]),
.btn-action-secondary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]),
.price-btn-ghost:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]),
.btn-demo-proxy:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: var(--surface-2, #161b22) !important;
  color: var(--text-strong, #f0f6fc) !important;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 13px 22px !important;
  border-radius: 10px !important;
  border: 1px solid var(--line, #30363d) !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.btn-secondary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover,
.btn-scroll-tariffs:hover,
.tariff-btn-outline:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover,
.btn-action-secondary:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover,
.price-btn-ghost:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover,
.btn-demo-proxy:not([href*="t.me"]):not([href*="max.ru"]):not([href*="max.im"]):not([href*="wa.me"]):not([href*="whatsapp.com"]):hover {
  background: var(--surface-3, #21262d) !important;
  border-color: var(--line-bright, #484f58) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Кнопка "Назад на витрину" */
.back-link,
a.back-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-muted, #8b949e) !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  transition: all 0.2s ease !important;
}
.back-link:hover,
a.back-link:hover {
  color: var(--text-strong, #ffffff) !important;
  border-color: var(--line-bright) !important;
  background: var(--surface-2) !important;
}

/* ==========================================================================
   5.3. СТРОГИЙ СТАНДАРТ 9:16 ДЛЯ ВЕРТИКАЛЬНЫХ ВИДЕО / РИЛСОВ (Strict 9:16 Video)
   ========================================================================== */
.video-player-box {
  position: relative !important;
  background: #000000 !important;
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.video-player-box video {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
  display: block !important;
  background: #05070a !important;
}

/* Фичерные видео во всю ширину статьи: оформляются как вертикальный смартфон */
.feature-video-embed,
div[class*="video-embed"] {
  max-width: 360px !important;
  width: 100% !important;
  margin: 28px auto !important;
  aspect-ratio: 9 / 16 !important;
  border: 1px solid var(--line, #30363d) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #000000 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

.feature-video-embed video,
div[class*="video-embed"] video {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
  display: block !important;
  background: #000000 !important;
}

/* Сетка демонстраций видео (3 колонки на десктопе, 2 на планшете, 1 на мобильном) */
.video-showcase-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-top: 24px !important;
}

@media (max-width: 960px) {
  .video-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 600px) {
  .video-showcase-grid {
    grid-template-columns: 1fr !important;
    max-width: 360px !important;
    margin: 24px auto !important;
  }
}

/* Карточки с видео */
.video-example-card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.video-example-card:hover {
  transform: translateY(-3px) !important;
  border-color: var(--line-bright) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

/* Видео в статьях блога (.video-card-wrap) */
.entry-content .video-card-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 32px auto;
  max-width: 480px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.entry-content .video-card-wrap video {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* ==========================================================================
   5.4. СТАБИЛИЗАЦИЯ ТИПОГРАФИКИ, ЭМОДЗИ И ОТСТУПОВ (Typography & Rhythm)
   ========================================================================== */
.entry-content,
.store-landing-wrap,
.article-body {
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
}

/* Предотвращение скачков высоты строк из-за эмодзи */
.entry-content p,
.store-landing-wrap p,
.entry-content li,
.store-landing-wrap li {
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Удаление мусорных пустых параграфов, генерируемых визуальными редакторами */
.entry-content p:empty,
.store-landing-wrap p:empty,
.entry-content > p:only-child:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Удаление сдвоенных <br> */
.entry-content br + br,
.store-landing-wrap br + br {
  display: none !important;
}

/* Контейнеры кнопок */
.hero-actions,
.tariff-actions,
.cta-box-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 20px !important;
}

@media (max-width: 600px) {
  .hero-actions,
  .tariff-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-actions .btn,
  .hero-actions a[class*="btn"],
  .tariff-actions a[class*="btn"],
  .tariff-btn {
    width: 100% !important;
    text-align: center !important;
  }
}


/* ==========================================================================
   6. САЙДБАР СПРАВА (Sticky Sidebar & Widgets)
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Карточка автора в сайдбаре */
.author-widget {
  text-align: center;
}
.author-widget-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 0 18px var(--clay-glow);
}
.author-widget-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.author-widget-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.author-widget-bio {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sand);
  margin-bottom: 18px;
  text-align: left;
}

.author-contact-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
}
.btn-contact svg { width: 18px; height: 18px; }

.btn-contact-tg {
  background: #229ed9;
  color: #ffffff;
}
.btn-contact-tg:hover {
  background: #2bb2f4;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
}

.btn-contact-wa {
  background: #25d366;
  color: #141413;
}
.btn-contact-wa:hover {
  background: #2fe774;
  color: #141413;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-contact-max {
  background: linear-gradient(135deg, #2b7fff 0%, #8c3df5 100%);
  color: #ffffff;
}
.btn-contact-max:hover {
  background: linear-gradient(135deg, #3b8fff 0%, #9c4df5 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(140, 61, 245, 0.4);
}

/* Баннеры каналов в сайдбаре */
.channel-banner {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: all .2s var(--ease);
}
.channel-banner:last-child { margin-bottom: 0; }
.channel-banner:hover {
  border-color: var(--clay);
  transform: translateY(-2px);
}
.banner-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.banner-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.banner-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Баннер клуба */
.club-widget {
  background: linear-gradient(180deg, rgba(234, 75, 113, 0.08) 0%, rgba(217, 119, 87, 0.08) 100%), var(--surface);
  border: 1px solid var(--line);
}
.club-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--clay);
  margin: 10px 0 14px;
}
.club-price small { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   7. ПОДВАЛ САЙТА (4-Column Footer)
   ========================================================================== */
.site-footer {
  margin-top: 80px;
  background: #0e0e0d;
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-mark { margin-bottom: 16px; }
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 320px;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clay);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--sand);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-col a:hover {
  color: var(--clay);
}

/* Квадратные иконки соцсетей со скруглёнными углами */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social-sq-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.social-sq-btn svg {
  display: block;
  transition: transform .2s ease;
}
.social-sq-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.social-sq-btn:hover svg {
  transform: scale(1.1);
}
.social-sq-btn--ig:hover {
  background: #e1306c;
  border-color: #e1306c;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.45);
}
.social-sq-btn--tg:hover {
  background: #229ed9;
  border-color: #229ed9;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.45);
}
.social-sq-btn--max:hover {
  background: #5b6cf9;
  border-color: #5b6cf9;
  box-shadow: 0 4px 14px rgba(91, 108, 249, 0.45);
}
.social-sq-btn--yt:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
}
.social-sq-btn--tt:hover {
  background: #000000;
  border-color: #00f2fe;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

/* Список прямых контактов (Telegram, WhatsApp, MAX) */
.footer-contacts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--sand);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.footer-contact-link:hover {
  color: var(--text-strong);
  transform: translateX(2px);
}
.contact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.contact-dot--tg { background: #229ed9; box-shadow: 0 0 6px #229ed9; }
.contact-dot--wa { background: #25d366; box-shadow: 0 0 6px #25d366; }
.contact-dot--max { background: #5b6cf9; box-shadow: 0 0 6px #5b6cf9; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom-copy {
  display: flex;
  align-items: center;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-legal-links a:hover {
  color: var(--clay);
  text-decoration: underline;
}
.footer-dot {
  color: var(--line);
}

/* ==========================================================================
   8. WOOCOMMERCE & ЛИЧНЫЙ КАБИНЕТ (Dark Styling)
   ========================================================================== */
.woocommerce, .woocommerce-page {
  color: var(--text);
}
.woocommerce h2, .woocommerce h3, .woocommerce h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-input-wrapper input {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}
.woocommerce button.button,
.woocommerce a.button {
  background: var(--clay) !important;
  color: var(--on-clay) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 12px 22px !important;
  border: none !important;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background: var(--clay-hover) !important;
}
.woocommerce-checkout #order_review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

/* WooCommerce Auth Card (Вход / Регистрация в едином окне) */
.woocommerce-account #customer_login {
  max-width: 460px;
  margin: 36px auto 60px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-account #customer_login h2 {
  display: none;
}

.auth-tabs {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.auth-tab:hover {
  color: var(--text-strong);
}
.auth-tab.is-active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.woocommerce-account #customer_login:not(.show-register) .u-column2 {
  display: none !important;
}
.woocommerce-account #customer_login:not(.show-register) .u-column1 {
  display: block !important;
}

.woocommerce-account #customer_login.show-register .u-column1 {
  display: none !important;
}
.woocommerce-account #customer_login.show-register .u-column2 {
  display: block !important;
}

.auth-switch-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}
.auth-switch-btn {
  background: none;
  border: none;
  color: var(--clay);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.auth-switch-btn:hover {
  color: var(--clay-hover);
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
  margin-bottom: 16px;
}
.woocommerce-form-login label,
.woocommerce-form-register label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text {
  width: 100% !important;
  box-sizing: border-box !important;
}
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 12px !important;
}
.woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 6px 0 12px !important;
  cursor: pointer;
  color: var(--text-muted) !important;
  font-size: 13px !important;
}
.woocommerce-form-login__rememberme input[type="checkbox"] {
  accent-color: var(--clay);
  width: 16px;
  height: 16px;
}
.woocommerce-LostPassword {
  margin-top: 12px;
  text-align: center;
}
.woocommerce-LostPassword a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s ease;
}
.woocommerce-LostPassword a:hover {
  color: var(--clay);
}

/* ==========================================================================
   9.1 СОЦИАЛЬНАЯ АВТОРИЗАЦИЯ (Telegram, Яндекс ID, VK ID)
   ========================================================================== */
.wsh-social-auth-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.wsh-social-auth-divider {
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}
.wsh-social-auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--line);
  z-index: 1;
}
.wsh-social-auth-divider span {
  position: relative;
  z-index: 2;
  background: var(--surface);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wsh-social-auth-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wsh-social-btn,
.entry-content .wsh-social-btn,
.entry-content a.wsh-social-btn,
.woocommerce .wsh-social-btn,
.woocommerce a.wsh-social-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  user-select: none !important;
}
.wsh-social-btn span,
.entry-content a.wsh-social-btn span,
.woocommerce a.wsh-social-btn span {
  color: #ffffff !important;
  text-decoration: none !important;
}
.wsh-social-btn:hover,
.entry-content a.wsh-social-btn:hover,
.woocommerce a.wsh-social-btn:hover {
  text-decoration: none !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  filter: brightness(1.08);
}
.wsh-social-btn:active,
.entry-content a.wsh-social-btn:active,
.woocommerce a.wsh-social-btn:active {
  transform: translateY(0);
}

/* Telegram */
.wsh-social-btn--tg {
  background: #24a1de;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(36, 161, 222, 0.25);
}
.wsh-social-btn--tg:hover {
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.4);
}

/* Яндекс ID */
.wsh-social-btn--ya {
  background: #181716;
  color: #ffffff;
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.wsh-social-btn--ya:hover {
  background: #222120;
  border-color: var(--clay);
}
.wsh-ya-badge {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: #fc3f1d;
  color: #ffffff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* VK ID */
.wsh-social-btn--vk {
  background: #0077ff;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 119, 255, 0.25);
}
.wsh-social-btn--vk:hover {
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.4);
}

/* Модальное окно подсказки для ненастроенных сервисов */
.wsh-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wsh-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 9, 0.75);
  backdrop-filter: blur(4px);
}
.wsh-auth-modal__content {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: wshModalPop .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wshModalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.wsh-auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.wsh-auth-modal__close:hover {
  color: var(--text-strong);
}
.wsh-auth-modal__icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.wsh-auth-modal__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.wsh-auth-modal__text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 520px) {
  .wsh-social-auth-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wsh-social-btn {
    height: 48px;
    font-size: 14px;
  }
}

/* ==========================================================================
   10. ПЛАВАЮЩИЕ ВИДЖЕТЫ (Кнопка "Наверх" и Виджет поддержки)
   ========================================================================== */

/* 1. Кнопка "Наверх" (слева внизу) */
.btn-scroll-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s linear, border-color .15s ease, color .15s ease, background .15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  -webkit-tap-highlight-color: transparent;
}
.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-scroll-top:hover {
  color: var(--clay);
  border-color: var(--clay);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .6), 0 0 20px var(--clay-glow);
}
.btn-scroll-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* 2. Плавающий аутентичный виджет поддержки (справа внизу) */
.support-widget {
  --sw-bg: rgba(20, 20, 19, 0.96);
  --sw-surface: #1e1e1c;
  --sw-surface-hover: #262625;
  --sw-line: var(--line, #34332f);
  --sw-line-bright: var(--line-bright, #46443e);
  --sw-accent: var(--clay, #d97757);
  --sw-accent-hover: var(--clay-hover, #e58768);
  --sw-text: var(--text, #f0eee6);
  --sw-text-strong: var(--text-strong, #ffffff);
  --sw-text-muted: var(--text-muted, #8f8b80);
  --sw-text-dim: var(--text-dim, #6e6a61);
  --sw-ease: var(--ease, cubic-bezier(.16, 1, .3, 1));

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  font-family: var(--font-body);
}

/* FAB Кнопка */
.support-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: var(--surface);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55), 0 0 20px rgba(0, 0, 0, .4);
  transition: transform .25s var(--sw-ease), box-shadow .25s var(--sw-ease);
  -webkit-tap-highlight-color: transparent;
  z-index: 100;
}

@media (hover: hover) {
  .support-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .65);
  }
}
.support-fab:active { transform: scale(0.96); }
.support-fab:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Онлайн-точка на FAB */
.support-fab__online-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ecf6f;
  border: 2px solid #141413;
  box-shadow: 0 0 8px #2ecf6f;
  z-index: 10;
  pointer-events: none;
  transition: opacity .2s ease;
}
.support-fab__online-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid #2ecf6f;
  animation: ping-dot 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping-dot {
  0%   { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}
.support-widget.is-open .support-fab__online-dot {
  opacity: 0;
}

/* Ротирующиеся грани на весь размер кнопки (Аватар, TG, MAX, WA) */
.fab-faces {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.fab-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease;
  border-radius: 50%;
}
.fab-face.is-active {
  opacity: 1;
  transform: scale(1);
}
.fab-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.fab-face svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}
.fab-face.face-tg {
  background: #229ED9;
}
.fab-face.face-wa {
  background: #25D366;
}
.fab-face.face-max {
  background: #5b6cf9;
}

/* Крестик при открытом попапе */
.support-fab__close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-90deg) scale(.6);
  transition: opacity .2s var(--sw-ease), transform .2s var(--sw-ease);
  z-index: 5;
  pointer-events: none;
}
.support-widget.is-open .fab-faces {
  opacity: 0;
}
.support-widget.is-open .support-fab__close {
  opacity: 1;
  transform: rotate(0) scale(1);
  pointer-events: auto;
}

/* Попап */
.support-popup {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--sw-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--sw-line);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .75), 0 0 30px var(--clay-glow);
  padding: 18px 18px 16px;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(10px) scale(.95);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s var(--sw-ease), transform .22s var(--sw-ease), visibility 0s linear .22s;
}

.support-widget.is-open .support-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity .22s var(--sw-ease), transform .22s var(--sw-ease), visibility 0s linear 0s;
}

.support-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--sw-text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .15s ease, color .15s ease;
}
@media (hover: hover) {
  .support-popup__close:hover {
    background: var(--sw-surface);
    color: var(--sw-text-strong);
  }
}
.support-popup__close:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Шапка попапа */
.support-popup__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
  margin-bottom: 16px;
}
.support-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--sw-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.support-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.support-avatar__dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ecf6f;
  border: 2px solid #141413;
  box-shadow: 0 0 8px rgba(46, 207, 111, .6);
}

.support-popup__heading { min-width: 0; }
.support-popup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--sw-text-strong);
  margin: 0 0 3px;
}
.support-popup__subtitle {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--sw-text-muted);
  margin: 0;
}

/* Строки способов связи */
.support-popup__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--sw-line);
  border-radius: 12px;
  background: var(--sw-surface);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

@media (hover: hover) {
  .support-row:hover {
    border-color: var(--clay);
    background: var(--sw-surface-hover);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 12px var(--clay-glow);
    transform: translateY(-1px);
  }
}
.support-row:active { transform: scale(.99); }
.support-row:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

.support-row__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.support-row__icon--tg {
  background: rgba(42, 171, 238, .12);
  color: #2aabee;
}
.support-row__icon--wa {
  background: rgba(37, 211, 102, .12);
  color: #25d366;
}
.support-row__icon--max {
  background: rgba(140, 61, 245, .14);
  color: #a366ff;
}
.support-row__icon--max svg {
  width: 22px;
  height: 22px;
  display: block;
}

@media (hover: hover) {
  .support-row:hover .support-row__icon--tg {
    background: rgba(42, 171, 238, .22);
  }
  .support-row:hover .support-row__icon--wa {
    background: rgba(37, 211, 102, .22);
  }
  .support-row:hover .support-row__icon--max {
    background: rgba(140, 61, 245, .25);
    color: #bf8aff;
  }
}

.support-row__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.support-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: var(--sw-text-strong);
}
.support-row__sub {
  font-size: 12px;
  line-height: 1.25;
  color: var(--sw-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-row__chev {
  flex: 0 0 auto;
  color: var(--sw-text-dim);
  transition: transform .15s ease, color .15s ease;
}
@media (hover: hover) {
  .support-row:hover .support-row__chev {
    color: var(--clay);
    transform: translateX(2px);
  }
}

.support-popup__note {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--sw-text-dim);
}

/* ==========================================================================
   11. АДАПТИВНОСТЬ И ANTI-WOBBLE (Mobile Media Queries)
   ========================================================================== */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-width: 100%; margin-top: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-inner {
    position: relative;
  }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-burger .i-close { display: none; }
  .nav-burger[aria-expanded="true"] .i-bars { display: none; }
  .nav-burger[aria-expanded="true"] .i-close { display: block; }

  /* Выпадающий список меню: единая аккуратная карточка под шапкой */
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 8px;
    background: rgba(26, 26, 24, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
  }
  .nav-menu.open {
    display: flex !important;
    animation: menu-in .2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* Весь список ссылок БЕЗ кнопок и рамок */
  .nav-menu a {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    padding: 12px 14px;
    border-radius: 8px;
    background: transparent !important;
    border: none !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
  }
  .nav-menu a:hover,
  .nav-menu a:active {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-strong);
  }
  .nav-menu a[aria-current="page"] {
    background: rgba(217, 119, 87, 0.12) !important;
    color: var(--clay) !important;
    font-weight: 700;
  }
  .nav-menu a[aria-current="page"]::after {
    display: none !important;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  pre, .entry-content pre {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    max-width: 100% !important;
  }
  .entry-content code, code {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  /* Предотвращение зума на iPhone при тапе в поле ввода */
  input, textarea, select, .woocommerce input {
    font-size: 16px !important;
  }
  .wrap {
    padding: 0 16px !important;
  }
  .hero {
    padding: 28px 0 !important;
  }
  .hero-actions {
    flex-direction: column !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .term-body {
    padding: 14px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
    overflow-x: hidden !important;
    word-break: break-all !important;
  }
  /* Скрываем плавающие бейджи в Hero на узких экранах, чтобы не распирали экран */
  .float-card {
    display: none !important;
  }
  .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .author-widget-avatar {
    width: 72px !important;
    height: 72px !important;
  }
  .post-title {
    font-size: 24px !important;
  }
  .entry-content h2 {
    font-size: 22px !important;
    margin-top: 32px !important;
  }
  .entry-content h3 {
    font-size: 18px !important;
  }
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .site-footer {
    padding-bottom: 74px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .footer-legal-links {
    justify-content: center !important;
    gap: 8px 12px !important;
  }
  .btn-scroll-top {
    left: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .btn-scroll-top svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .support-widget {
    right: 16px;
    bottom: 16px;
  }
  .support-fab {
    width: 52px;
    height: 52px;
  }
  .support-popup {
    width: calc(100vw - 32px);
    bottom: 68px;
    padding: 16px 14px 14px;
    right: 0;
  }
  .nav-btn-account {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 38px;
  }
  .author-contact-btns {
    flex-direction: column;
  }
  .btn-contact {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-fab,
  .support-fab__chat,
  .support-fab__close,
  .support-popup,
  .support-row,
  .support-row__chev,
  .btn-scroll-top {
    transition: opacity .15s linear !important;
    transform: none !important;
  }
}

/* ==========================================================================
   ПОЛНАЯ ИЗОЛЯЦИЯ ПОДВАЛА (Footer Elements Protection)
   ========================================================================== */
.site-footer .social-sq-btn,
.site-footer a.social-sq-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  transform: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
}

.site-footer .social-sq-btn svg,
.site-footer a.social-sq-btn svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  transition: transform .2s ease !important;
}

.site-footer .social-sq-btn:hover,
.site-footer a.social-sq-btn:hover {
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.site-footer .social-sq-btn:hover svg,
.site-footer a.social-sq-btn:hover svg {
  transform: scale(1.1) !important;
}

.site-footer .social-sq-btn--ig:hover {
  background: #e1306c !important;
  border-color: #e1306c !important;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.45) !important;
}

.site-footer .social-sq-btn--tg:hover {
  background: #229ed9 !important;
  border-color: #229ed9 !important;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.45) !important;
}

.site-footer .social-sq-btn--max:hover {
  background: #5b6cf9 !important;
  border-color: #5b6cf9 !important;
  box-shadow: 0 4px 14px rgba(91, 108, 249, 0.45) !important;
}

.site-footer .social-sq-btn--yt:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45) !important;
}

.site-footer .social-sq-btn--tt:hover {
  background: #000000 !important;
  border-color: #00f2fe !important;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4) !important;
}

.site-footer .footer-contact-link,
.site-footer a.footer-contact-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  font-size: 13.5px !important;
  color: var(--sand) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 500 !important;
}

.site-footer .footer-contact-link:hover,
.site-footer a.footer-contact-link:hover {
  color: var(--text-strong) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(2px) !important;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (152-ФЗ)
   ========================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 40px);
  max-width: 900px;
  background: rgba(30, 30, 28, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-bright, #484f58);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 9998;
  padding: 16px 22px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-consent-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sand, #c5c2b8);
}

.cookie-consent-text .cookie-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-consent-text a {
  color: var(--clay, #d97757);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cookie-consent-text a:hover {
  color: #e58869;
}

.cookie-consent-actions {
  flex-shrink: 0;
}

.cookie-accept-btn {
  background: var(--clay, #d97757);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
  transition: all 0.2s ease;
}

.cookie-accept-btn:hover {
  background: #e58869;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 87, 0.45);
}

@media (max-width: 768px) {
  .cookie-consent-bar {
    bottom: 14px;
    width: calc(100% - 24px);
    padding: 14px 16px;
    border-radius: 14px;
  }
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-accept-btn {
    width: 100%;
    padding: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   16. КОМПОНЕНТЫ ВИТРИНЫ И ЛЕНДИНГОВ STORE (Store Landing & Product Design)
   ========================================================================== */
.buy-wrapper,
.store-landing-wrap,
.entry-content--store {
  max-width: 920px;
  margin: 0 auto;
}

/* Hero Section & Badges */
.hero-banner {
  text-align: center;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-radius: 30px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--clay, #d97757);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-badge .fire {
  display: inline-block;
  animation: wshPulse 1.5s infinite alternate;
}

@keyframes wshPulse {
  from { transform: scale(1); }
  to { transform: scale(1.25); }
}

.hero-h1 {
  font-family: var(--font-display, inherit);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-strong);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

@media (max-width: 640px) {
  .hero-h1 {
    font-size: 26px;
  }
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--sand, #c9bfa5);
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero-sub strong {
  color: var(--text-strong);
}

/* Highlights Chips */
.highlights-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: var(--surface-2, #262625);
  border: 1px solid var(--line, #34332f);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--line-bright);
  background: var(--surface);
  transform: translateY(-1px);
}

.chip-check {
  color: #10b981;
  font-weight: 800;
}

/* Features Grid (Сетка преимуществ) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.feat-card {
  background: var(--surface, #1e1e1c);
  border: 1px solid var(--line, #34332f);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.feat-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright, #46443e);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.feat-card.highlight-card {
  border: 2px solid var(--clay, #d97757);
  background: linear-gradient(180deg, rgba(217, 119, 87, 0.08) 0%, var(--surface) 100%);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: var(--surface-2, #262625);
  border: 1px solid var(--line, #34332f);
  flex-shrink: 0;
}

.feat-title {
  font-family: var(--font-display, inherit);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
  line-height: 1.35;
}

.feat-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Карточка заказа (Checkout Section) */
.checkout-section {
  background: var(--surface, #1e1e1c);
  border: 2px solid var(--clay, #d97757);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(217, 119, 87, 0.15);
  margin-bottom: 48px;
  position: relative;
  text-align: center;
}

@media (max-width: 640px) {
  .checkout-section {
    padding: 24px 18px;
    border-radius: 14px;
  }
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

@media (max-width: 640px) {
  .checkout-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.offer-title {
  font-family: var(--font-display, inherit);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.offer-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.actual-price {
  font-family: var(--font-display, inherit);
  font-size: 38px;
  font-weight: 900;
  color: var(--clay, #d97757);
  line-height: 1;
}

/* Пошаговый процесс заказа (Order Steps) */
.order-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px auto 20px;
  text-align: left;
}

.order-step-item {
  background: var(--surface, #1e1e1c);
  border: 1px solid var(--line, #34332f);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s;
}

.order-step-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright);
}

.order-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--clay, #d97757);
  color: #ffffff;
  border-radius: 50%;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.35);
}

.order-step-title {
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
}

.order-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* VPN Guide Box */
.vpn-guide-box {
  background: var(--surface, #1e1e1c);
  border: 1px solid var(--line, #34332f);
  border-radius: 16px;
  padding: 28px;
  margin: 32px 0 36px;
}

.vpn-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

/* FAQ Accordion & Section Headings */
.section-heading {
  font-family: var(--font-display, inherit);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 36px 0 20px;
  letter-spacing: -0.3px;
}

.faq-section {
  margin: 36px 0 48px;
}

.faq-item {
  background: var(--surface, #1e1e1c);
  border: 1px solid var(--line, #34332f);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--line-bright);
}

.faq-q {
  font-family: var(--font-display, inherit);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Blocks: Section Block, Pain Grid, Solution List, Stats Grid, Pricing Grid */
.section-block {
  background: var(--surface, #1e1e1c);
  border: 1px solid var(--line, #34332f);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .section-block {
    padding: 20px;
  }
}

.section-title {
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pain-card {
  background: var(--surface-2, #262625);
  border: 1px solid var(--line, #34332f);
  border-radius: 12px;
  padding: 18px;
}

.pain-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.solution-num {
  background: var(--clay, #d97757);
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat-card {
  background: var(--surface-2, #262625);
  border: 1px solid var(--line, #34332f);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display, inherit);
  font-size: 26px;
  font-weight: 900;
  color: var(--clay, #d97757);
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pricing-card {
  background: var(--surface, #1e1e1c);
  border: 1px solid var(--line, #34332f);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright);
}

.pricing-card.featured {
  border: 2px solid var(--clay, #d97757);
  box-shadow: 0 0 30px rgba(217, 119, 87, 0.15);
  background: linear-gradient(180deg, rgba(217, 119, 87, 0.05) 0%, var(--surface) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--clay, #d97757);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.pricing-price {
  font-family: var(--font-display, inherit);
  font-size: 28px;
  font-weight: 900;
  color: var(--clay, #d97757);
  margin-bottom: 16px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--sand, #c9bfa5);
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
  flex-shrink: 0;
}

/* Дополнительные компоненты PinShop и др. */
.pipeline-visualizer,
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.pipe-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.pipe-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: var(--clay);
  color: #fff;
  margin-bottom: 8px;
}

.comp-table,
.table-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.comp-table th, .comp-table td,
.table-box th, .table-box td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.comp-table th, .table-box th {
  background: var(--surface-2);
  color: var(--text-strong);
  font-weight: 700;
}
.cell-good {
  color: #10b981 !important;
  font-weight: 600;
}
.cell-bad {
  color: #ef4444 !important;
}

.niches-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.niche-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.niche-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.niche-list {
  padding-left: 18px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ==========================================================================
   22. ЗАГРУЗЧИК ВИДЕО (/download) - Anthropic Dark Tech
   ========================================================================== */
.download-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  min-height: 70vh;
}

.dl-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.28);
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dl-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-strong);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.dl-title span {
  color: var(--clay);
}

.dl-desc {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 640px;
}

.dl-form-wrapper {
  max-width: 700px;
  margin: 0 auto 32px;
}

.dl-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.dl-input-box:focus-within {
  border-color: var(--clay);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(217, 119, 87, 0.2);
}

.dl-input-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-strong);
  padding: 10px 0;
}

.dl-input-field::placeholder {
  color: rgba(201, 191, 165, 0.45);
}

.dl-form-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dl-btn-paste {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--sand);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.dl-btn-paste:hover {
  background: rgba(217, 119, 87, 0.1);
  border-color: var(--clay);
  color: var(--text-strong);
}

.dl-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 10px;
  background: var(--clay);
  border: 1px solid var(--clay);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
}

.dl-btn-submit:hover:not(:disabled) {
  background: #c56547;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.45);
}

.dl-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 580px) {
  .dl-input-box {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .dl-input-field {
    width: 100%;
    padding: 6px 4px;
  }
  .dl-form-btns {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.dl-tg-sublink-wrap {
  margin-top: 14px;
  text-align: center;
}

.dl-tg-sublink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--clay);
  text-decoration: none;
  line-height: 1.4;
  text-align: center;
  transition: opacity .15s ease;
  max-width: 100%;
}

.dl-tg-sublink svg {
  flex-shrink: 0;
}

.dl-tg-sublink span {
  display: inline-block;
}

.dl-tg-sublink:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.dl-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 740px;
  margin: 0 auto 36px;
}

.dl-plat-item {
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all .2s ease;
  cursor: default;
  user-select: none;
}

.dl-plat-item.active {
  background: rgba(217, 119, 87, 0.15);
  border-color: var(--clay);
  color: var(--clay);
  font-weight: 700;
  transform: scale(1.05);
}

.dl-status {
  display: none;
  margin: 28px auto;
  text-align: center;
}

.dl-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(217, 119, 87, 0.2);
  border-top-color: var(--clay);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: dlSpin 0.9s linear infinite;
}

@keyframes dlSpin {
  to { transform: rotate(360deg); }
}

.dl-status-text {
  font-size: 14px;
  color: var(--sand);
  font-weight: 500;
}

.dl-error {
  display: none;
  max-width: 600px;
  margin: 20px auto;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 14px;
  text-align: center;
}

.dl-result {
  display: none;
  max-width: 720px;
  margin: 30px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.dl-result-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

@media (max-width: 580px) {
  .dl-result-header {
    flex-direction: column;
  }
}

.dl-thumb-wrap {
  position: relative;
  width: 140px;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

@media (max-width: 580px) {
  .dl-thumb-wrap {
    width: 100%;
    aspect-ratio: 16/9;
  }
}

.dl-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dl-thumb-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.dl-info {
  flex: 1;
  min-width: 0;
}

.dl-info-platform {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(217, 119, 87, 0.15);
  color: var(--clay);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.dl-info-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-strong);
  margin: 0 0 6px;
  word-break: break-word;
}

.dl-info-author {
  font-size: 13px;
  color: var(--text-muted);
}

.dl-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.dl-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-strong);
  text-align: center;
}

.dl-btn-download.primary {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
}

.dl-btn-download.primary:hover {
  background: #c56547;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.45);
}

.dl-btn-download.tg-bot {
  background: rgba(36, 161, 222, 0.12);
  border-color: rgba(36, 161, 222, 0.4);
  color: #50bbf5;
}

.dl-btn-download.tg-bot:hover {
  background: #24a1de;
  border-color: #24a1de;
  color: #fff;
  transform: translateY(-1px);
}

.dl-btn-download:hover:not(.primary):not(.tg-bot) {
  border-color: var(--clay);
  background: rgba(217, 119, 87, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.dl-promo-banner {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.dl-promo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.12) 0%, rgba(234, 75, 113, 0.08) 100%);
  border: 1px solid rgba(217, 119, 87, 0.3);
  text-decoration: none;
  transition: all .2s ease;
}

.dl-promo-card:hover {
  border-color: var(--clay);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.25);
}

@media (max-width: 580px) {
  .dl-promo-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.dl-promo-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-pink, #ea4b71);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.dl-promo-info {
  flex: 1;
  min-width: 0;
}

.dl-promo-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.dl-promo-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.dl-promo-cta {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--clay);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.dl-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 40px auto 0;
}

.dl-feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease;
}

.dl-feat-card:hover {
  border-color: rgba(217, 119, 87, 0.35);
  transform: translateY(-2px);
}

.dl-feat-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.dl-feat-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 8px;
}

.dl-feat-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.dl-download-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dl-download-progress {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.dl-download-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(217, 119, 87, 0.25);
  border-top-color: var(--clay);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: dlSpin 0.9s linear infinite;
}

.dl-download-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}

/* ==========================================================================
   23. УНИВЕРСАЛЬНЫЙ СТАНДАРТ ОФОРМЛЕНИЯ СТАТЕЙ И ПУБЛИКАЦИЙ
   (Для всех существующих и любых новых публикаций WordPress без ручного CSS)
   ========================================================================== */

/* Адаптивные таблицы со скроллом и аккуратным контрастом */
.entry-content table,
figure.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.entry-content table th,
figure.wp-block-table th {
  background: var(--surface-2);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.entry-content table td,
figure.wp-block-table td {
  padding: 13px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--sand);
  line-height: 1.5;
}

.entry-content table tr:last-child td,
figure.wp-block-table tr:last-child td {
  border-bottom: none;
}

.entry-content table tr:nth-child(even),
figure.wp-block-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Автоматическая мобильная прокрутка для любых таблиц */
figure.wp-block-table,
.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

/* Выделенные блоки внимания (Колл-ауты) */
.entry-content .callout,
.entry-content blockquote {
  position: relative;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 26px 0;
  background: var(--surface-2);
  border-left: 4px solid var(--clay);
  color: var(--sand);
  font-size: 15px;
  line-height: 1.6;
}

.entry-content .callout-tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.07);
}

.entry-content .callout-info {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.07);
}

.entry-content .callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.07);
}

.entry-content .callout-danger {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.07);
}

.entry-content blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: normal;
}

/* Кодовые блоки и инлайн код */
.entry-content pre,
.entry-content pre.wp-block-code {
  background: #0d0d0c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #f0eee6;
  margin: 24px 0;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--clay);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Списки и абзацы */
.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin: 18px 0;
  line-height: 1.65;
  color: var(--sand);
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content li::marker {
  color: var(--clay);
}

.entry-content p {
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--sand);
}

/* Заголовки */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.entry-content h2 { font-size: clamp(22px, 3.2vw, 28px); }
.entry-content h3 { font-size: clamp(18px, 2.5vw, 22px); }
.entry-content h4 { font-size: clamp(16px, 2vw, 18px); }

/* Изображения и подписи */
.entry-content figure,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.entry-content figure img {
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.entry-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Вертикальные видео и рилсы (соотношение 9:16) */
.entry-content .video-vertical,
.entry-content .video-reel,
.entry-content .video-shorts,
.entry-content iframe[src*="tiktok.com"],
.entry-content iframe[src*="shorts"],
.entry-content .reel-container {
  aspect-ratio: 9/16;
  max-width: 380px;
  max-height: 680px;
  margin: 24px auto;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Автоматическая стилизация одиночных ссылок-кнопок в тексте статьи */
/* Если автор вставил ссылку на TG/MAX/WA отдельной строкой или параграфом */
.entry-content p > a[href*="t.me"]:only-child:not(.btn-telegram),
.entry-content p > a[href*="telegram.me"]:only-child:not(.btn-telegram) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: #24a1de;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.35);
  transition: all .2s ease;
  margin: 10px 0;
}
.entry-content p > a[href*="t.me"]:only-child:not(.btn-telegram):hover,
.entry-content p > a[href*="telegram.me"]:only-child:not(.btn-telegram):hover {
  background: #1b8ec5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 161, 222, 0.45);
  color: #fff;
}

.entry-content p > a[href*="max.ru"]:only-child:not(.btn-max) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: #5b6cf9;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(91, 108, 249, 0.35);
  transition: all .2s ease;
  margin: 10px 0;
}
.entry-content p > a[href*="max.ru"]:only-child:not(.btn-max):hover {
  background: #4a5be6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 108, 249, 0.45);
  color: #fff;
}

.entry-content p > a[href*="wa.me"]:only-child:not(.btn-whatsapp),
.entry-content p > a[href*="whatsapp.com"]:only-child:not(.btn-whatsapp) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all .2s ease;
  margin: 10px 0;
}
.entry-content p > a[href*="wa.me"]:only-child:not(.btn-whatsapp):hover,
.entry-content p > a[href*="whatsapp.com"]:only-child:not(.btn-whatsapp):hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
}
