/*
Theme Name: SessionHub
Theme URI: https://example.com/sessionhub
Author: SessionHub
Author URI: https://example.com
Description: Минималистичная тёмная тема-лендинг для витрины цифровых профилей и сессий. Товары, преимущества и FAQ редактируются в админке, а тексты, кнопки и ссылки — в настройках темы (Customizer).
Version: 4.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sessionhub
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/


/* ==========================================================================
   SessionHub — стили лендинга
   Тёмная технологичная тема, адаптивность (Flexbox/Grid), акцентные градиенты.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены дизайн-системы
   -------------------------------------------------------------------------- */
:root {
  /* --- Палитра в стиле Telegram --- */
  --bg: #0e1621;
  --bg-alt: #0b1119;
  --panel: #17212b;
  --panel-2: #1c2733;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --muted: #8fa3b8;
  --muted-2: #708499;

  --accent: #2481cc;
  --accent-2: #3390ec;
  --accent-soft: rgba(36, 129, 204, 0.16);
  --grad: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);

  --ok: #4fae4e;
  --warn: #e0a53b;
  --danger: #e5534b;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;

  --shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px rgba(42, 171, 238, 0.35), 0 20px 50px -24px rgba(42, 171, 238, 0.5);

  --container: 1180px;
  --header-h: 72px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Сброс и база
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1000px 600px at 85% -10%, rgba(36, 129, 204, 0.16), transparent 60%),
    radial-gradient(900px 520px at 8% 6%, rgba(42, 171, 238, 0.12), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Раскладка
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--alt {
  background: linear-gradient(180deg, rgba(11, 17, 25, 0.4), rgba(11, 17, 25, 0.9));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Заголовки секций, бейджи
   -------------------------------------------------------------------------- */
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0 0 8px;
}
.section__subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(23, 33, 43, 0.7);
  font-size: 0.82rem;
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.badge-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(79, 174, 78, 0.18);
}

/* --------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: 12px;
  --btn-pad-x: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 12px 30px -14px rgba(42, 171, 238, 0.8);
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(143, 163, 184, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(42, 171, 238, 0.08);
  transform: translateY(-1px);
}

.btn--sm { --btn-pad-y: 9px; --btn-pad-x: 16px; font-size: 0.88rem; }
.btn--lg { --btn-pad-y: 15px; --btn-pad-x: 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   6. Шапка и навигация
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 22, 33, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px -12px rgba(42, 171, 238, 0.9);
}
.logo__text strong { font-weight: 700; }
.logo__text { color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(143, 163, 184, 0.08); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* Кнопка-гамбургер */
.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(143, 163, 184, 0.06);
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 11, 18, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-backdrop.is-visible { opacity: 1; }

/* --------------------------------------------------------------------------
   7. Главный экран (Hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: min(760px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(36, 129, 204, 0.35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero__content { max-width: 640px; }
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}
.hero__text {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text);
}
.hero__stats span { font-size: 0.85rem; color: var(--muted-2); }

/* Визуальный блок с «кодом» */
.hero__visual { position: relative; }

.code-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(28, 39, 51, 0.95), rgba(11, 17, 25, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.hero__visual:hover .code-card { transform: perspective(1200px) rotateY(0) rotateX(0); }
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.code-card__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(143, 163, 184, 0.35);
}
.code-card__bar span:nth-child(1) { background: #e5534b; }
.code-card__bar span:nth-child(2) { background: #e0a53b; }
.code-card__bar span:nth-child(3) { background: #4fae4e; }
.code-card__bar em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--muted-2);
}
.code-card__body {
  margin: 0;
  padding: 20px 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: #9dc7e8;
  overflow-x: auto;
}
.code-card__body code { white-space: pre; }

.hero__chip {
  position: absolute;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(23, 33, 43, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero__chip--a { top: -16px; right: 12px; color: var(--ok); }
.hero__chip--b { bottom: -14px; left: -14px; color: var(--accent); animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   8. Поиск и фильтры
   -------------------------------------------------------------------------- */
.search { position: relative; display: block; min-width: min(320px, 100%); }
.search__input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(23, 33, 43, 0.8);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search__input::placeholder { color: var(--muted-2); }
.search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.14);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-bottom: 28px;
}
.filters__group { display: flex; flex-direction: column; gap: 10px; }
.filters__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(143, 163, 184, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.chip.is-active {
  color: #ffffff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 10px 24px -14px rgba(42, 171, 238, 0.9);
}

/* --------------------------------------------------------------------------
   9. Каталог
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 39, 51, 0.7), rgba(17, 28, 38, 0.9));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 171, 238, 0.45);
  box-shadow: var(--shadow-glow);
}
.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: 1.4rem;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid var(--border-strong);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status--in { color: var(--ok); background: rgba(79, 174, 78, 0.1); border-color: rgba(79, 174, 78, 0.3); }
.status--few { color: var(--warn); background: rgba(224, 165, 59, 0.1); border-color: rgba(224, 165, 59, 0.3); }
.status--order { color: var(--muted); background: rgba(143, 163, 184, 0.1); border-color: var(--border-strong); }

.product-card__title { font-size: 1.08rem; margin: 0; }
.product-card__text { font-size: 0.9rem; color: var(--muted); margin: 0; }

.product-card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(42, 171, 238, 0.08);
  border: 1px solid rgba(42, 171, 238, 0.22);
}
.tag--geo { color: var(--accent-2); background: rgba(36, 129, 204, 0.1); border-color: rgba(36, 129, 204, 0.28); }

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-card__price { display: flex; flex-direction: column; line-height: 1.2; }
.product-card__price strong { font-family: var(--font-head); font-size: 1.2rem; }
.product-card__price del { font-size: 0.8rem; color: var(--muted-2); }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(23, 33, 43, 0.4);
}

/* --------------------------------------------------------------------------
   10. Преимущества
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 39, 51, 0.55), rgba(17, 28, 38, 0.85));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-5px); border-color: rgba(36, 129, 204, 0.5); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 1.5rem;
  background: rgba(36, 129, 204, 0.12);
  border: 1px solid var(--border-strong);
}
.feature__title { font-size: 1.12rem; margin: 0 0 8px; }
.feature__text { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. Форматы
   -------------------------------------------------------------------------- */
.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.format-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 39, 51, 0.7), rgba(17, 28, 38, 0.9));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.format-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 171, 238, 0.4);
  box-shadow: var(--shadow-glow);
}
.format-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.format-card__tag {
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--grad);
}
.format-card__tag--alt { color: var(--accent); background: rgba(42, 171, 238, 0.12); border: 1px solid rgba(42, 171, 238, 0.3); }
.format-card__title { font-size: 1.15rem; margin: 0; }
.format-card__text { color: var(--muted); font-size: 0.92rem; }
.format-card__code {
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 16, 24, 0.85);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #9dc7e8;
  overflow-x: auto;
}
.format-card__code code { white-space: pre; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq__list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(23, 33, 43, 0.6);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq__item[open] { border-color: rgba(42, 171, 238, 0.4); }
.faq__item summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%; right: 20px;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   13. Контакты и форма
   -------------------------------------------------------------------------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(23, 33, 43, 0.6);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-item:hover { border-color: rgba(42, 171, 238, 0.4); transform: translateY(-3px); }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 1.3rem;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid var(--border-strong);
}
.contact-item div { display: flex; flex-direction: column; }
.contact-item strong { font-family: var(--font-head); font-size: 0.98rem; }
.contact-item a, .contact-item span { color: var(--muted); font-size: 0.9rem; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 39, 51, 0.75), rgba(17, 28, 38, 0.92));
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.86rem; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 22, 33, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.14);
}
.contact-form__note { margin: 12px 0 0; font-size: 0.78rem; color: var(--muted-2); }
.contact-form__status {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 500;
}
.contact-form__status.is-ok { color: var(--ok); }
.contact-form__status.is-error { color: var(--danger); }

/* --------------------------------------------------------------------------
   14. Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  background: rgba(10, 16, 24, 0.7);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}
.site-footer__brand p {
  margin: 14px 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__nav a,
.site-footer__contacts a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
  width: fit-content;
}
.site-footer__nav a:hover,
.site-footer__contacts a:hover { color: var(--accent); }
.site-footer__contacts { display: flex; flex-direction: column; gap: 10px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted-2);
}
.site-footer__legal { max-width: 62ch; }

/* --------------------------------------------------------------------------
   15. Всплывающее уведомление (toast)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 300;
  max-width: min(440px, calc(100vw - 40px));
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(23, 33, 43, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-ok { border-color: rgba(79, 174, 78, 0.5); }
.toast.is-error { border-color: rgba(229, 83, 75, 0.5); }

/* --------------------------------------------------------------------------
   16. Анимация появления при прокрутке
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Адаптивность
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .contacts { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__contacts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 820px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: calc(var(--header-h) + 16px) 20px 32px;
    background: rgba(14, 22, 33, 0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 60px -30px rgba(0, 0, 0, 0.9);
    transform: translateX(105%);
    transition: transform 0.34s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link {
    padding: 14px 16px;
    font-size: 1.02rem;
    border-radius: 12px;
  }
  .nav__link.is-active { background: rgba(42, 171, 238, 0.08); }
  .nav__link.is-active::after { display: none; }
}

@media (max-width: 620px) {
  .section__head { flex-direction: column; align-items: stretch; }
  .site-header__actions .btn { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__chip--a { top: -12px; right: 4px; }
  .hero__chip--b { left: 4px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .product-card__foot { flex-direction: column; align-items: stretch; }
  .product-card__foot .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   18. Доступность: уменьшенное движение
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   WordPress: интеграционные стили
   ========================================================================== */

/* Сдвиг липкой шапки под админ-бар */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Кастомный логотип */
.logo--image img { max-height: 44px; width: auto; display: block; }

/* Внутренние страницы и записи */
.entry { max-width: 840px; margin-inline: auto; }
.entry + .entry { margin-top: 40px; }
.entry__title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.entry__title a { color: inherit; }
.entry__title a:hover { color: var(--accent); }

.entry__content > * + * { margin-top: 1em; }
.entry__content h2,
.entry__content h3,
.entry__content h4 { margin-top: 1.6em; color: var(--text); }
.entry__content p,
.entry__content li { color: var(--muted); }
.entry__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry__content a:hover { color: var(--text); }
.entry__content ul { list-style: disc; padding-left: 1.4em; }
.entry__content ol { list-style: decimal; padding-left: 1.4em; }
.entry__content li { margin: 0.3em 0; }
.entry__content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(42, 171, 238, 0.06);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.entry__content img,
.entry__content .wp-block-image img { border-radius: 12px; }
.entry__content table { width: 100%; border-collapse: collapse; }
.entry__content th,
.entry__content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.entry__content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* Пагинация архивов */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination .page-numbers {
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--muted); font-size: 0.9rem;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { color: #ffffff; background: var(--grad); border-color: transparent; }

/* Утилиты ядра WordPress */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted-2); text-align: center; }
.sticky .entry__title::after { content: " ★"; color: var(--accent); }

/* Виджеты (если появятся) */
.widget { margin-bottom: 28px; }
.widget-title { font-size: 1.05rem; }

/* Фильтрация карточек использует атрибут hidden — гарантируем его приоритет */
[hidden] { display: none !important; }

/* Текст блока «Преимущества», загруженный из редактора WordPress */
.feature__text p { margin: 0 0 0.6em; }
.feature__text p:last-child { margin-bottom: 0; }

/* Миниатюра и контент внутренних страниц */
.entry__thumb { margin-bottom: 28px; }
.entry__thumb img { width: 100%; height: auto; border-radius: var(--radius); }

/* ==========================================================================
   Telegram-стиль: компоненты
   ========================================================================== */

/* Иконки (inline SVG) */
.icon { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* Точечный узор для «чат-стиля» */
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(42, 171, 238, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.45;
  pointer-events: none;
}
.section--alt > .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Селектор количества (пакеты)
   -------------------------------------------------------------------------- */
.qty-block { display: flex; flex-direction: column; gap: 8px; }
.qty-block__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.qty { display: flex; flex-wrap: wrap; gap: 6px; }
.qty__btn {
  flex: 1 1 auto;
  min-width: 56px;
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.qty__btn:hover { color: var(--text); border-color: var(--accent); }
.qty__btn.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 22px -14px rgba(36, 129, 204, 0.95);
}
.qty__btn small { display: block; font-size: 0.62rem; font-weight: 500; opacity: 0.85; }

/* Итог по выбранному количеству */
.product-card__total { display: flex; flex-direction: column; line-height: 1.15; }
.product-card__total strong { font-size: 1.25rem; color: var(--text); }
.product-card__total span { font-size: 0.72rem; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Кнопка корзины в шапке
   -------------------------------------------------------------------------- */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cart-button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.cart-button__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.cart-button__label { display: inline; }
@media (max-width: 820px) { .cart-button__label { display: none; } }

/* --------------------------------------------------------------------------
   Корзина: оверлей и боковая панель
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 11, 18, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.overlay.is-visible { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: var(--panel);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 70px -40px rgba(0, 0, 0, 0.9);
  transform: translateX(105%);
  transition: transform 0.34s var(--ease);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer__title { margin: 0; font-size: 1.15rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot {
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.drawer__total span { color: var(--muted); }
.drawer__total strong { font-size: 1.3rem; }

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-button:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Позиции корзины */
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.cart-item__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 1.3rem;
}
.cart-item__title { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; }
.cart-item__meta { font-size: 0.78rem; color: var(--muted-2); }
.cart-item__qty { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.cart-item__qty .qty__btn { flex: 0 0 auto; min-width: 46px; padding: 5px 8px; font-size: 0.75rem; }
.cart-item__line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-item__price { font-weight: 700; }
.cart-item__remove {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-2);
  font-size: 0.78rem;
  text-decoration: underline;
}
.cart-item__remove:hover { color: var(--danger); }

/* --------------------------------------------------------------------------
   Модальное окно оформления заказа
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 11, 18, 0.72); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal__title { margin: 0; font-size: 1.2rem; }
.checkout-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  margin: 6px 0 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(36, 129, 204, 0.35);
}
.checkout-summary span { color: var(--muted); }
.checkout-summary strong { font-size: 1.3rem; }
.checkout-note { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Блог: сетка записей в две колонки
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(42, 171, 238, 0.5); box-shadow: var(--shadow-glow); }
.post-card__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.76rem; color: var(--muted-2); }
.post-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-card__title { margin: 0; font-size: 1.15rem; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { flex: 1; margin: 0; font-size: 0.92rem; color: var(--muted); }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.post-card__more:hover { color: var(--accent-2); }

/* --------------------------------------------------------------------------
   База знаний
   -------------------------------------------------------------------------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 39, 51, 0.7), rgba(17, 28, 38, 0.9));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.doc-card:hover { transform: translateY(-6px); border-color: rgba(42, 171, 238, 0.45); }
.doc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-card__format {
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(42, 171, 238, 0.3);
}
.doc-card__title { margin: 0; font-size: 1.08rem; }
.doc-card__title a { color: var(--text); }
.doc-card__title a:hover { color: var(--accent); }
.doc-card__text { flex: 1; margin: 0; font-size: 0.9rem; color: var(--muted); }
.doc-card__level { font-size: 0.76rem; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Баннер (CTA)
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.18), rgba(36, 129, 204, 0.08));
  border: 1px solid rgba(42, 171, 238, 0.35);
}
.banner--split { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.banner__img { overflow: hidden; border-radius: var(--radius); }
.banner__img img { display: block; width: 100%; height: auto; }
.banner__title { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.banner__text { max-width: 56ch; margin: 0 0 20px; color: var(--muted); }

/* Заголовок страницы/архива */
.page-hero { padding-bottom: 0; }
.page-hero .section__head { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Дополнения: старая цена в карточке, изображение hero
   -------------------------------------------------------------------------- */
.tag--old {
  color: var(--muted-2);
  text-decoration: line-through;
  background: rgba(143, 163, 184, 0.06);
  border-color: var(--border-strong);
}

.hero__image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .post-grid { grid-template-columns: 1fr; }
  .banner--split { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Блог с сайдбаром
   -------------------------------------------------------------------------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-sidebar .widget {
  margin-bottom: 0;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.blog-sidebar .widget .search-form { display: flex; gap: 8px; }
.blog-sidebar .widget input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 22, 33, 0.8);
  color: var(--text);
}
.blog-sidebar .widget .search-submit {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.sidebar-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-list a { color: var(--muted); }
.sidebar-list a:hover { color: var(--accent); }
.sidebar-list ul,
.sidebar-list .children { margin-left: 0.9em; }

/* Селекты в формах */
.field select,
.checkout-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 22, 33, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Страница «Спасибо за заказ» */
.thank-you {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
}
.thank-you__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.thank-you__text { color: var(--muted); }
.thank-you__hint { color: var(--muted-2); font-size: 0.85rem; }
.thank-you__back { display: inline-block; margin-top: 20px; color: var(--accent); }
.thank-you__back:hover { color: var(--accent-2); }

@media (max-width: 820px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Светлая тема
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-alt: #eef1f5;
  --panel: #ffffff;
  --panel-2: #f1f4f8;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #0e1621;
  --muted: #5b6b7c;
  --muted-2: #7c8a99;
}
:root[data-theme="light"] body {
  background: var(--bg);
  background-image: none;
}

/* --------------------------------------------------------------------------
   Переключатель языка и темы
   -------------------------------------------------------------------------- */
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}
.theme-toggle .icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon--moon { display: block; }

/* --------------------------------------------------------------------------
   Детальная страница товара
   -------------------------------------------------------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.product-detail__media img,
.product-detail__placeholder {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.product-detail__placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  font-size: 4rem;
  background: var(--panel-2);
}
.product-detail__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.product-detail__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.product-buy {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  margin-bottom: 24px;
}
.product-buy .qty { margin-bottom: 16px; }
.product-buy .product-card__total { margin-bottom: 16px; }
.product-detail__content { max-width: none; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); }
.back-link:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Другие товары, Партнёры, Видео
   -------------------------------------------------------------------------- */
.other-grid,
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.other-card,
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(28, 39, 51, 0.7), rgba(17, 28, 38, 0.9));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.other-card:hover,
.partner-card:hover { transform: translateY(-5px); border-color: rgba(42, 171, 238, 0.45); }
.other-card__thumb img { width: 100%; border-radius: var(--radius); }
.other-card__icon { font-size: 2.5rem; }
.other-card__title,
.partner-card__title { font-size: 1.1rem; margin: 0; }
.other-card__text,
.partner-card__text { flex: 1; margin: 0; color: var(--muted); font-size: 0.92rem; }
.other-card__price { font-weight: 700; color: var(--accent); }
.partner-card__logo { width: 100%; max-height: 120px; object-fit: contain; }
.partner-card__promo { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2); }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.video-card__player {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-card__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__title { font-size: 1.05rem; margin: 12px 0 0; }

/* --------------------------------------------------------------------------
   Футер: правовые ссылки и соцсети
   -------------------------------------------------------------------------- */
.site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__legal-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-footer__legal-nav a { color: var(--muted); font-size: 0.86rem; }
.site-footer__legal-nav a:hover { color: var(--accent); }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-footer__social a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; }
}
