/* ============================================================
   Живи в Городе — шаблон sunshine-psy, версия 2.0
   Палитра: ночной фиолет, золото, орхидея.
   Шрифты: Lora (текст), Cormorant Garamond (заголовки) — локальные.
   ============================================================ */

/* ---------- 1. Переменные ---------- */
:root {
  --bg-0: #08030f;
  --bg-1: #0d0620;
  --surface: rgba(21, 11, 46, 0.72);
  --surface-solid: #150b2e;
  --line: rgba(177, 156, 217, 0.26);
  --line-soft: rgba(177, 156, 217, 0.14);
  --gold: #ffd700;
  --gold-soft: #f0c85a;
  --orchid: #ba55d3;
  --violet: #7c3aed;
  --violet-deep: #4c1d95;
  --text: #f6f1ff;
  --muted: #bfb0dc;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --container: 1360px;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-head: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- 2. База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.psych-theme {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.93rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
  overflow-wrap: break-word;
}

body.psych-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(106, 17, 203, 0.28), transparent 45%),
    radial-gradient(circle at 85% 8%, rgba(186, 85, 211, 0.22), transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(255, 215, 0, 0.10), transparent 48%),
    linear-gradient(180deg, rgba(13, 6, 32, 0.92), rgba(8, 3, 15, 0.96)),
    var(--bg-image, none);
  background-size: auto, auto, auto, auto, cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Звёздное поле — легче, чем в v1 */
body.psych-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 78% 14%, rgba(224, 192, 255, 0.8), transparent),
    radial-gradient(1px 1px at 32% 68%, rgba(255, 215, 0, 0.7), transparent),
    radial-gradient(1px 1px at 68% 52%, rgba(177, 156, 217, 0.7), transparent),
    radial-gradient(1px 1px at 90% 78%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 45% 32%, rgba(255, 255, 255, 0.5), transparent);
  background-repeat: repeat;
  background-size: 340px 340px;
  opacity: 0.55;
  pointer-events: none;
}

.psych-aurora {
  position: fixed;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  z-index: -2;
  opacity: 0.45;
  filter: blur(70px);
  background:
    radial-gradient(circle at 25% 35%, rgba(106, 17, 203, 0.35), transparent 42%),
    radial-gradient(circle at 75% 20%, rgba(186, 85, 211, 0.28), transparent 46%),
    radial-gradient(circle at 55% 70%, rgba(255, 215, 0, 0.16), transparent 40%);
  animation: psychAuroraDrift 42s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes psychAuroraDrift {
  0%   { transform: translate3d(-2%, 1%, 0) scale(1.02); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.08); }
}

/* ---------- 3. Типографика ---------- */
.psych-theme h1,
.psych-theme h2,
.psych-theme h3,
.psych-theme h4,
.psych-theme h5,
.psych-theme h6 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

.psych-theme h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem);
  font-weight: 700;
  text-wrap: balance;
}

.psych-theme h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  text-wrap: balance;
}

.psych-theme h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); text-wrap: balance; }
.psych-theme h4 { font-size: 1.1rem; }
.psych-theme h5 { font-size: 1rem; }
.psych-theme h6 { font-size: 0.95rem; }

/* Длинные русские слова: переносы и запрет вылезания за колонку */
.psych-theme h1,
.psych-theme h2,
.psych-theme h3,
.psych-theme h4,
.psych-theme p,
.psych-theme li,
.psych-theme td,
.psych-theme th,
.psych-theme a {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
}

.psych-theme p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
  max-width: 70ch;
}

/* Абзацы в карточках и боковых колонках не ограничиваем — там своя ширина */
#left-col p,
#right-col p,
#footer p,
.psych-module p {
  max-width: none;
}

.psych-theme a {
  color: var(--gold-soft);
  text-decoration: none;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.psych-theme a:hover,
.psych-theme a:focus {
  color: var(--gold);
  text-decoration: underline;
}

.psych-theme strong,
.psych-theme b {
  color: #fff;
  font-weight: 700;
}

.psych-theme em,
.psych-theme i {
  color: var(--muted);
}

.psych-theme ul,
.psych-theme ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.psych-theme li {
  margin-bottom: 0.45em;
}

.psych-theme ul > li::marker {
  color: var(--gold);
}

.psych-theme ol > li::marker {
  color: var(--orchid);
  font-weight: 600;
}

.psych-theme blockquote {
  margin: 1.6em 0;
  padding: 0.9em 1.3em;
  border-left: 3px solid var(--gold);
  background: rgba(255, 215, 0, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #efe6ff;
  font-style: italic;
}

.psych-theme blockquote p:last-child {
  margin-bottom: 0;
}

.psych-theme hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

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

.psych-theme img {
  border-radius: var(--radius-sm);
}

.psych-theme figure {
  margin: 1.5em 0;
}

.psych-theme figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5em;
  text-align: center;
}

.psych-theme code,
.psych-theme pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.psych-theme code {
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: #f3e8ff;
}

.psych-theme pre {
  background: rgba(8, 3, 15, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  overflow-x: auto;
}

.psych-theme pre code {
  background: none;
  border: 0;
  padding: 0;
}

.psych-theme table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.97rem;
}

.psych-theme th,
.psych-theme td {
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.psych-theme th {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom-color: var(--line);
}

.psych-theme tbody tr:hover {
  background: rgba(124, 58, 237, 0.08);
}

/* ---------- 4. Сетка ---------- */
#content-wrapper {
  display: grid;
  grid-template-columns:
    clamp(170px, var(--col-left-width, 17%), 250px)
    minmax(0, 1fr)
    clamp(160px, var(--col-right-width, 13%), 230px);
  grid-template-areas: "left center right";
  gap: 1.6rem;
  align-items: start;
  width: 100%;
  max-width: var(--container);
  margin: 1.6rem auto 2.4rem;
  padding: 0 1.25rem;
}

#left-col  { grid-area: left; }
#center-col { grid-area: center; min-width: 0; }
#right-col { grid-area: right; }

@media (min-width: 1100px) {
  #left-col,
  #right-col {
    position: sticky;
    top: 88px;
  }

  /* Карточка контента уже колонки: строка не растягивается на 90+ символов */
  #center-col .component-content {
    max-width: 760px;
    margin-inline: auto;
  }

  #center-col #header {
    max-width: 760px;
    margin-inline: auto;
  }
}

/* Боковые колонки: компактнее и мельче, иначе строки ломаются в узкой колонке */
#left-col .psych-module,
#right-col .psych-module {
  padding: 1rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.6;
}

#left-col .psych-module h3,
#right-col .psych-module h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

#left-col .psych-module p,
#right-col .psych-module p,
#left-col .psych-module li,
#right-col .psych-module li {
  margin-bottom: 0.5rem;
}

@media (min-width: 860px) and (max-width: 1099.98px) {
  #content-wrapper {
    grid-template-columns: clamp(170px, 17%, 250px) minmax(0, 1fr);
    grid-template-areas: "left center";
    gap: 1.25rem;
  }
}

@media (max-width: 859.98px) {
  #content-wrapper {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "center";
    margin-top: 1rem;
    padding: 0 0.9rem;
  }
}

/* ---------- 4б. Сворачиваемые боковые панели ---------- */
.side-toggles,
.side-backdrop {
  display: none;
}

@media (max-width: 1099.98px) {
  .side-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: var(--container);
    margin: 0.7rem auto 0;
    padding: 0 1.25rem;
  }

  .side-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(12, 6, 28, 0.7);
    color: #e6ddf7;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  }

  .side-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  .side-toggle[aria-expanded="true"] {
    background: rgba(255, 215, 0, 0.14);
    border-color: rgba(255, 215, 0, 0.5);
    color: var(--gold);
  }

  .side-toggle svg {
    width: 16px;
    height: 16px;
  }

  #right-col {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(380px, 90vw);
    margin: 0;
    padding: 1.1rem 1rem 2rem;
    overflow-y: auto;
    background: #100728;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    z-index: 95;
  }

  #right-col.is-open {
    transform: none;
  }

  .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 2, 10, 0.62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .side-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 859.98px) {
  #left-col {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(360px, 90vw);
    margin: 0;
    padding: 1.1rem 1rem 2rem;
    overflow-y: auto;
    background: #100728;
    border-right: 1px solid var(--line);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 95;
  }

  #left-col.is-open {
    transform: none;
  }
}

@media (min-width: 860px) and (max-width: 1099.98px) {
  .side-toggle[data-side="left"] {
    display: none;
  }
}

body.side-open {
  overflow: hidden;
}

.side-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.2rem 0 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b19cd9;
}

.side-close button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: #e6ddf7;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.side-close button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Таблицы в контенте не должны рвать колонку */
@media (max-width: 767.98px) {
  .psych-theme table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Меню на средних экранах: теснее, чтобы не переносилось рывком */
@media (min-width: 1000px) and (max-width: 1199.98px) {
  #mainmenu ul.nav .nav-link,
  #mainmenu ul.nav li > a {
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }
}

#mainmenu ul.nav {
  min-width: 0;
}

/* ---------- 5. Верхняя полоса и меню ---------- */
#topbar {
  background: rgba(8, 3, 15, 0.75);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--muted);
}

#topbar .top-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
}

#topbar #date {
  letter-spacing: 0.03em;
  color: var(--muted);
}

#topbar a {
  color: var(--muted);
}

#topbar a:hover {
  color: var(--gold);
}

#mainmenu {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 3, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

#mainmenu .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
}

#mainmenu ul.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#mainmenu ul.nav .nav-item {
  margin: 0;
}

#mainmenu ul.nav .nav-link,
#mainmenu ul.nav li > a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: #e9e0fb;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#mainmenu ul.nav .nav-link:hover,
#mainmenu ul.nav li > a:hover {
  color: var(--gold);
  background: rgba(124, 58, 237, 0.22);
  border-color: var(--line);
}

#mainmenu ul.nav .current > a,
#mainmenu ul.nav .active > a,
#mainmenu ul.nav li.current > a {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.10);
  border-color: rgba(255, 215, 0, 0.35);
}

#mainmenu ul.nav .nav-link:focus-visible,
#mainmenu ul.nav li > a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.home-btn-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--gold);
  border: 1px solid var(--line);
}

.home-btn-mobile svg {
  width: 20px;
  height: 20px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#mainmenu.menu-open .hamburger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#mainmenu.menu-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

#mainmenu.menu-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 999.98px) {
  .home-btn-mobile { display: inline-flex; }
  .hamburger-btn { display: flex; }

  #mainmenu ul.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    background: rgba(10, 4, 26, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  #mainmenu.menu-open ul.nav {
    display: flex;
  }

  #mainmenu ul.nav .nav-link,
  #mainmenu ul.nav li > a {
    display: block;
    padding: 0.75rem 0.9rem;
    font-size: 1.05rem;
    border-radius: 10px;
  }
}

/* ---------- 6. Карточки ---------- */
.psych-module,
.component-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(1.15rem, 2.6vw, 2.1rem);
  margin-bottom: 1.6rem;
  overflow: hidden;
}

.psych-module::before,
.component-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orchid), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.psych-module-glow {
  display: none;
}

.psych-module h1,
.psych-module h2,
.psych-module h3 {
  margin-top: 0;
}

.psych-module h3 {
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.psych-module p:last-child,
.component-content > *:last-child {
  margin-bottom: 0;
}

/* ---------- 7. Шапка: бренд слева, баннер справа ---------- */
#brandrow {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
}

#brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 0 0 max(1.25rem, calc((100% - var(--container)) / 2 + 1.25rem));
  border: 0;
  background: none;
}

#brand .brand-inner {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

#brand .header-content {
  min-width: 0;
}

#brand .header-text {
  min-width: 0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-logo img {
  display: block;
  height: 96px;
  width: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8, 3, 15, 0.5);
  padding: 3px;
}

.site-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.15rem;
  background: linear-gradient(100deg, #fff 0%, #e9d5ff 45%, var(--gold) 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  text-wrap: balance;
}

.site-slogan {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

@media (max-width: 575.98px) {
  #brand {
    padding: 0.8rem 0;
  }

  .header-logo img {
    height: 64px;
    width: 64px;
  }

  .site-slogan {
    font-size: 0.9rem;
  }
}

/* ---------- 7б. Баннер: от середины экрана до правого края ---------- */
#banner-top {
  flex: 0 0 50%;
  margin: 0;
  display: flex;
  padding: 0;
}

/* Joomla оборачивает модуль в свой контейнер — он тоже должен тянуться */
#banner-top > div {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

#banner-top .psych-module {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.75rem 1.35rem 0.75rem 1.5rem !important;
  border-right: 0 !important;
  border-radius: 18px 0 0 18px !important;
  text-align: left !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "sub button"
    "h1  button";
  align-items: center;
  column-gap: 1.4rem;
}

#banner-top .psych-module > p:first-of-type {
  grid-area: sub;
  font-size: 0.78rem !important;
  margin: 0 0 0.1rem !important;
  letter-spacing: 0.04em;
  text-align: left !important;
  color: var(--gold) !important;
}

#banner-top .psych-module h1 {
  grid-area: h1;
  font-size: clamp(0.98rem, 0.88rem + 0.3vw, 1.15rem) !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-wrap: balance;
}

/* в строке длинный абзац не нужен */
#banner-top .psych-module > p:not(:first-of-type) {
  display: none !important;
}

#banner-top .psych-module > div[style] {
  grid-area: button;
  margin: 0 !important;
  text-align: right !important;
}

#banner-top .psych-btn {
  padding: 0.45rem 1.05rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}

/* узкие экраны: бренд сверху, баннер под ним с полным текстом */
@media (max-width: 859.98px) {
  #brandrow {
    display: block;
    padding: 0;
  }

  #brand {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line-soft);
  }

  #brand .brand-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
  }

  #banner-top {
    display: block;
    flex: none;
    width: auto;
    margin: 0;
    padding: 0.9rem 1.25rem 0;
  }

  #banner-top .psych-module {
    display: block;
    max-width: 880px !important;
    margin: 0 auto 1rem !important;
    padding: 1.2rem 1.3rem 1.3rem !important;
    border-radius: var(--radius) !important;
  }

  #banner-top .psych-module > p:first-of-type {
    font-size: 1rem !important;
  }

  #banner-top .psych-module h1 {
    font-size: 1.5rem !important;
    margin: 0 0 0.7rem !important;
  }

  #banner-top .psych-module > p:not(:first-of-type) {
    display: block !important;
    max-width: 620px !important;
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    margin: 0 auto 0.8rem !important;
  }

  #banner-top .psych-module > div[style] {
    margin-top: 0.5rem !important;
    text-align: center !important;
  }

  .header-logo img {
    height: 72px;
    width: 72px;
  }
}

@media (max-width: 575.98px) {
  #banner-top {
    padding: 0.6rem 0.9rem 0;
  }

  #banner-top .psych-module {
    padding: 1rem 1.05rem !important;
  }

  #banner-top .psych-module h1 {
    font-size: 1.3rem !important;
  }

  .header-logo img {
    height: 56px;
    width: 56px;
  }

  .site-slogan {
    font-size: 0.9rem;
  }
}

/* ритм между смысловыми блоками статьи */
.abyssal-section + .abyssal-section,
.booking-section {
  margin-top: 2.2rem;
}

.abyssal-section > h2 {
  margin: 0 0 0.9rem;
}

/* карточки услуг и отзывов на главной */
.services-grid,
.testimonials-grid {
  display: grid;
  gap: 1.15rem;
  margin: 1.4rem 0 0;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card,
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--gold);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.testimonial {
  display: flex;
  flex-direction: column;
}

.testimonial p {
  margin: 0 0 1rem;
  font-size: 0.97rem;
  line-height: 1.65;
}

.testimonial .author {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
  color: var(--gold-soft);
  font-weight: 600;
}

.testimonial .author small {
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 575.98px) {
  .service-card,
  .testimonial {
    padding: 1rem;
  }
}

/* фото в статье «О себе»: обтекание справа */
.component-content .profile-photo {
  float: right;
  width: min(240px, 40%);
  margin: 0.25rem 0 1.25rem 1.75rem;
}

.component-content .profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 575.98px) {
  .component-content .profile-photo {
    float: none;
    width: 200px;
    margin: 0 auto 1.25rem;
  }
}

/* ---------- 8. Контент: статьи, блог ---------- */
.component-content .com-content-article__body > p:first-of-type {
  font-size: 1.08rem;
}

.article-info,
.com-content-article__meta,
.published {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.category-desc {
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  margin-bottom: 1.6rem;
}

/* Карточки блога */
.com-content-category-blog__items,
.blog-items {
  display: grid;
  gap: 1.1rem;
}

.com-content-category-blog__item,
.blog-item {
  background: rgba(12, 6, 28, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.3rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.com-content-category-blog__item:hover,
.blog-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.blog-item h2,
.com-content-category-blog__item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.blog-item h2 a,
.com-content-category-blog__item h2 a {
  color: var(--text);
}

.blog-item h2 a:hover,
.com-content-category-blog__item h2 a:hover {
  color: var(--gold);
  text-decoration: none;
}

.readmore {
  margin-top: 0.6rem;
}

.readmore a,
.btn.btn-primary,
.psych-btn {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--orchid));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.readmore a:hover,
.btn.btn-primary:hover,
.psych-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
  color: #fff;
  text-decoration: none;
}

.btn.btn-light,
.btn.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(8, 3, 15, 0.6);
  border: 1px solid var(--line);
  color: #e9e0fb;
  text-decoration: none;
}

/* Пагинация */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.6rem 0 0.4rem;
  padding: 0;
  list-style: none;
}

.pagination .page-item .page-link {
  display: inline-block;
  min-width: 40px;
  padding: 0.45rem 0.7rem;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 3, 15, 0.55);
  color: var(--muted);
  text-decoration: none;
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.08);
}

/* Сообщения */
.alert {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  background: rgba(124, 58, 237, 0.12);
  color: #eee6ff;
}

.alert-info {
  border-color: rgba(177, 156, 217, 0.4);
}

/* Формы */
.psych-theme input[type="text"],
.psych-theme input[type="email"],
.psych-theme input[type="tel"],
.psych-theme input[type="password"],
.psych-theme input[type="search"],
.psych-theme input[type="number"],
.psych-theme select,
.psych-theme textarea,
.psych-theme .form-control,
.psych-theme .form-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: rgba(8, 3, 15, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.psych-theme input:focus,
.psych-theme select:focus,
.psych-theme textarea:focus,
.psych-theme .form-control:focus,
.psych-theme .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14);
}

.psych-theme label,
.psych-theme .form-label {
  color: #e9e0fb;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.psych-theme ::placeholder {
  color: rgba(191, 176, 220, 0.6);
}

/* Хлебные крошки (кастомный модуль шаблона) */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
  background: none;
}

.mod-breadcrumbs-wrapper {
  display: flex;
  align-items: center;
}

.breadcrumbs-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.breadcrumbs-items .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
}

.breadcrumbs-items .breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs-items .breadcrumb-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumbs-items .breadcrumb-current {
  color: var(--gold);
  font-weight: 600;
}

.breadcrumbs-items .breadcrumb-separator {
  color: rgba(177, 156, 217, 0.45);
  font-size: 0.9em;
}

/* Разделитель рисует сам модуль — ::before не нужен */
.breadcrumbs-items .breadcrumb-item + .breadcrumb-item::before {
  content: none;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .active,
.breadcrumb-item.active {
  color: var(--gold);
}

/* ---------- 8б. Контентные блоки статей ---------- */
.component-content h2 {
  margin-top: 2.2rem;
}

.component-content h3 {
  margin-top: 1.6rem;
}

.component-content h2:first-child,
.component-content h3:first-child {
  margin-top: 0;
}

.safety-checklist .header h2 {
  margin-top: 0;
}

.safety-checklist .subtitle {
  color: var(--muted);
  margin-top: -0.3rem;
  font-size: 0.95rem;
}

/* Шаги чек-листа */
.step {
  border-left: 3px solid var(--gold);
  background: rgba(255, 215, 0, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}

.step h2 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.step .icon {
  margin-right: 0.3rem;
}

.step-why {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0.8rem 0 0.25rem;
}

.psychologist-quote {
  border-left: 3px solid var(--orchid);
  padding: 0.8rem 1.1rem;
  margin: 1.5rem 0;
  color: #efe6ff;
  font-style: italic;
  background: rgba(186, 85, 211, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.bonus-section {
  border: 1px dashed rgba(255, 215, 0, 0.45);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  background: rgba(255, 215, 0, 0.05);
}

.cta-button,
.btn-gradient {
  display: inline-block;
  margin: 0.6rem 0;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--orchid));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-button:hover,
.btn-gradient:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}

/* ---------- 8в. Контакты ---------- */
.com-contact__container {
  margin: 0 0 1.6rem;
}

.com-contact__container > h2 {
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.com-contact__position,
.com-contact__address {
  margin: 0 0 1rem;
}

.com-contact__position dt,
.com-contact__address dt {
  color: #b19cd9;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.com-contact__position dd,
.com-contact__address dd {
  color: #f6f1ff;
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.com-contact__address dd .contact-street {
  display: inline;
}

.com-contact__info {
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}

/* иконки контакта — убираем пустые квадраты */
.com-contact .icon-address,
.com-contact .icon-phone,
.com-contact .icon-mail,
.com-contact .jicons-icons {
  display: none;
}

/* форма обратной связи */
.contact-form h2,
.com-contact > h2 {
  font-size: 1.35rem;
  color: var(--gold);
  margin: 1.8rem 0 0.9rem;
}

.contact-form fieldset {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.contact-form legend {
  color: #b19cd9;
  font-size: 0.9rem;
  padding: 0 0.4rem;
}

.contact-form .control-group {
  margin-bottom: 0.85rem;
}

.contact-form .control-label label {
  color: #e6ddf7;
  font-size: 0.92rem;
}

.contact-form .form-control {
  width: 100%;
}

/* ---------- Карта позиций шаблона (?tpmap=1) ---------- */
.tp-note {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  padding: 0.6rem 1.25rem;
  background: #ffd700;
  color: #241033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.tp-note strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-note code {
  background: rgba(36, 16, 51, 0.12);
  border-radius: 3px;
  padding: 1px 4px;
  color: #241033;
}

body.tpmap [data-tp] {
  position: relative;
  outline: 2px dashed rgba(255, 215, 0, 0.6);
  outline-offset: 4px;
  min-height: 38px;
  margin: 10px 0;
}

body.tpmap [data-tp]::before {
  content: attr(data-tp);
  position: absolute;
  top: -12px;
  left: 6px;
  z-index: 20;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ffd700;
  color: #241033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: lowercase;
}

body.tpmap [data-tp]:empty::after {
  content: "пусто";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 215, 0, 0.45);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* в режиме карты пустые позиции тоже показываем */
body.tpmap #header:empty,
body.tpmap #brand:empty,
body.tpmap #banner-top:empty,
body.tpmap #banner-bottom:empty,
body.tpmap #left-col:empty,
body.tpmap #right-col:empty,
body.tpmap #footer:empty,
body.tpmap #debug-position:empty {
  display: block;
  min-height: 44px;
}

body.tpmap #mainmenu {
  position: static;
}

/* ---------- 9. Подвал ---------- */
#footer {
  margin-top: 3rem;
  padding: 2.6rem 0 1.4rem;
  background: rgba(8, 3, 15, 0.82);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

#footer .mod-custom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer-col p,
.footer-col li {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0.45rem;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacts-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contacts-list svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.3em;
  color: var(--gold);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 0.86rem;
  color: rgba(191, 176, 220, 0.8);
}

@media (max-width: 767.98px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
}

/* --- Телефоны --- */
@media (max-width: 575.98px) {
  body.psych-theme {
    font-size: 1rem;
    line-height: 1.68;
  }

  #topbar .top-content {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
  }

  #mainmenu .container-fluid {
    padding: 0.45rem 0.9rem;
    gap: 0.5rem;
  }

  .header-content {
    gap: 0.8rem;
  }

  .header-logo img {
    height: 52px;
  }

  .site-slogan {
    font-size: 0.92rem;
  }

  .component-content,
  .psych-module {
    padding: 1rem 1.05rem;
    border-radius: 16px;
  }

  #content-wrapper {
    gap: 1rem;
    margin-top: 0.8rem;
    margin-bottom: 1.4rem;
  }

  .psych-theme h1 {
    font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.8rem);
  }

  .psych-theme h2 {
    font-size: 1.25rem;
  }

  .breadcrumbs-items {
    font-size: 0.8rem;
  }

  /* В верхней полосе на телефоне крошки не помещаются — прячем, заголовок и так виден */
  #topbar .mod-breadcrumbs-wrapper {
    display: none;
  }
}

/* ---------- 10. Доступность и мелочи ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: #1a0f2e;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.psych-theme :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#header:empty,
#brand:empty {
  display: none;
}

#banner-top:empty,
#banner-bottom:empty,
#left-col:empty,
#right-col:empty {
  display: none;
}

/* Кнопка «наверх» не нужна — оставляем место под будущее */
.psych-theme .btn {
  font-family: var(--font-body);
}

/* ---------- 11. Анимации: уважение к настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .psych-aurora {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 12. Печать ---------- */
@media print {
  body.psych-theme {
    background: #fff;
    color: #000;
  }

  body.psych-theme::before,
  body.psych-theme::after,
  .psych-aurora,
  #topbar,
  #mainmenu,
  #footer,
  #left-col,
  #right-col,
  #banner-top,
  #banner-bottom {
    display: none !important;
  }

  #content-wrapper {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .component-content {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .psych-theme a {
    color: #000;
    text-decoration: underline;
  }
}

/* ---------- блок «О себе» на главной: текст слева, фото справа ---------- */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 2rem;
  align-items: start;
}

.about-text h3 {
  margin-top: 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-position: center top;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .about-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .about-photo {
    max-width: 240px;
    margin: 0 auto;
    order: -1;
  }
}


/* ---------- 16. Согласие в форме контактов: свой чекбокс со ссылками ---------- */
.com-contact__form .control-group:has(.pcb-consent-input) {
  display: none;
}

.pcb-consent-visible {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.pcb-consent-visible input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--gold);
}

.pcb-consent-visible a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
/* ---------- 17. Защита форм ---------- */
.pcb-hp,
input[name="jform[contact][contact_website]"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pcb-captcha {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.2rem 0 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #ffe680;
}

.pcb-captcha input {
  max-width: 120px;
}
/* ---------- 18. Верхняя строка: ровно по центру, без пустого баннера ---------- */
#topbar .top-content {
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}

#topbar #date {
  white-space: nowrap;
  line-height: 1.2;
}

#topbar .mod-breadcrumbs-wrapper {
  min-width: 0;
}

#topbar .breadcrumbs-items {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  flex-wrap: wrap;
}

#banner-top:not(:has(*)) {
  display: none;
}
/* ---------- 19. Календарь: рабочее время и занятые блоки ---------- */
.pcb-chip-work {
  background: rgba(255, 255, 255, 0.04);
  border-style: dashed;
  border-color: rgba(177, 156, 217, 0.35);
  color: #b9a9d9;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.pcb-chip-busy {
  background: rgba(160, 160, 175, 0.12);
  border-color: rgba(190, 190, 205, 0.3);
  color: #c9c4d6;
  font-size: 0.8rem;
}
/* ---------- 20. Баннер раздела «Ляка Софт» ---------- */
.soft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.6rem 0 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(124, 58, 237, 0.22), rgba(255, 215, 0, 0.12));
}

.soft-banner__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.soft-banner__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
  margin: 0.15rem 0 0.35rem;
}

.soft-banner__desc {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.soft-banner__btn {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), #f5b942);
  color: #1a0b2e;
  font-weight: 600;
  text-decoration: none;
}

.soft-banner__btn:hover,
.soft-banner__btn:focus-visible {
  filter: brightness(1.07);
}
/* ---------- 21. Страницы оплаты ---------- */
.pay-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
}

.pay-card {
  margin: 1.4rem 0 1.8rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
}

.pay-amount__sum {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
}

.pay-amount__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pay-qr {
  text-align: center;
}

.pay-qr img {
  display: block;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.pay-qr--empty {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.8rem;
}

.pay-qr__hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 220px;
}

.pay-meta {
  grid-column: 1 / -1;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.pay-note {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .pay-card { grid-template-columns: minmax(0, 1fr); }
  .pay-qr, .pay-qr--empty { margin: 0 auto; }
}
/* ---------- 22. Таблица сумм на страницах оплаты ---------- */
.pay-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1.2rem;
  font-size: 0.95rem;
}

.pay-table th,
.pay-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.pay-table th {
  font-weight: 600;
  color: var(--text);
  width: 45%;
}

.pay-table td {
  color: var(--muted);
}

.pay-card--donate {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.16), rgba(255, 215, 0, 0.08));
}
/* ---------- 23. Рубрики блога ---------- */
.blog-rubrics__title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--gold);
}

.blog-rubrics__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blog-rubrics__list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.4;
}

.blog-rubrics__list a:hover,
.blog-rubrics__list a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}
/* ---------- 24. Читаемость баннеров ---------- */
#banner-top .psych-module > p:first-of-type {
  font-size: 0.85rem !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffdf4d !important;
}

#banner-top .psych-module h1 {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.32rem) !important;
  line-height: 1.28 !important;
  color: #fdfbff !important;
  -webkit-text-fill-color: #fdfbff !important;
}

/* кнопка: тёмный текст на золоте вместо золота на фиолетовом */
#banner-top .psych-btn {
  color: #1a0b2e !important;
  background: linear-gradient(120deg, #ffd700, #f7c949) !important;
  border: 0 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-shadow: none !important;
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

#banner-top .psych-btn:hover,
#banner-top .psych-btn:focus-visible {
  filter: brightness(1.06);
  color: #1a0b2e !important;
}

/* баннер «Ляка Софт» */
.soft-banner__title {
  font-weight: 600;
}

.soft-banner__desc {
  font-size: 0.95rem;
  color: #cfc0e8;
}

.soft-banner__kicker {
  font-weight: 600;
}
/* ---------- 25. Кнопка баннера софта и метки-рубрики ---------- */
body.psych-theme .soft-banner__btn,
body.psych-theme a.soft-banner__btn {
  color: #1a0b2e !important;
  -webkit-text-fill-color: #1a0b2e !important;
  background: linear-gradient(120deg, var(--gold), #f5b942) !important;
  text-shadow: none !important;
  font-weight: 700;
}

body.psych-theme .soft-banner__btn:hover,
body.psych-theme .soft-banner__btn:focus-visible {
  color: #1a0b2e !important;
  -webkit-text-fill-color: #1a0b2e !important;
  filter: brightness(1.05);
}

/* метки-рубрики под заголовком статьи */
.tags.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.7rem;
  padding: 0;
  list-style: none;
}

.tags.list-inline .btn,
.tags.list-inline .btn-info {
  background: rgba(255, 215, 0, 0.1) !important;
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
  color: #ffdb8a !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 0.15rem 0.6rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tags.list-inline .btn:hover,
.tags.list-inline .btn-info:hover {
  background: rgba(255, 215, 0, 0.18) !important;
  color: #ffe9b0 !important;
}
/* ---------- 17. Блог: карточки ленты ---------- */
.com-content-category-blog__items.blog-items {
  gap: 1.4rem;
}

@media (min-width: 1000px) {
  .com-content-category-blog__items.blog-items.masonry-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* карточка */
.com-content-category-blog__item.blog-item {
  padding: 0;
  overflow: hidden;
  display: flex;
  background: rgba(12, 6, 28, 0.62);
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-1);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blog-item:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem 1.35rem 1.35rem;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.blog-card__date {
  color: var(--muted);
}

.blog-card__meta:has(.blog-card__rubric) .blog-card__date::after {
  content: "·";
  margin-left: 0.55rem;
  color: var(--line);
}

.blog-card__rubric {
  display: inline-block;
  padding: 0.16rem 0.6rem;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.blog-card__rubric:hover,
.blog-card__rubric:focus-visible {
  background: rgba(255, 215, 0, 0.18);
  color: #ffe9b0;
  text-decoration: none;
}

.blog-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.55rem);
  line-height: 1.24;
  margin: 0;
  text-wrap: balance;
  hyphens: auto;
}

.blog-card__title a {
  color: var(--text);
  text-decoration: none;
}

.blog-card__title a:hover,
.blog-card__title a:focus-visible {
  color: var(--gold);
  text-decoration: none;
}

.blog-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__text p {
  margin: 0 0 0.55rem;
}

.blog-card__text p:last-child {
  margin-bottom: 0;
}

.blog-card__more {
  margin-top: auto;
  padding-top: 0.35rem;
  align-self: flex-start;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.blog-card__more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.blog-card__more:hover,
.blog-card__more:focus-visible {
  color: #ffe9b0;
  text-decoration: none;
}

.blog-card__more:hover span {
  transform: translateX(4px);
}

/* ведущая статья — крупнее и в две колонки на десктопе */
.blog-items.items-leading .blog-card__title {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
}

.blog-items.items-leading .blog-card__text {
  -webkit-line-clamp: 7;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .blog-items.items-leading .blog-card {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  }

  .blog-items.items-leading .blog-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
  }

  .blog-items.items-leading .blog-card__body {
    padding: 1.5rem 1.7rem;
  }
}

/* пустая обложка у карточки без картинки */
.blog-card__body > .blog-card__title:first-child {
  margin-top: 0.2rem;
}

/* ---------- 18. Статья: метаданные и обложка ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--muted);
}

.article-meta__date::after {
  content: "·";
  margin-left: 0.6rem;
  color: var(--line);
}

.article-meta__rubric {
  display: inline-block;
  padding: 0.16rem 0.65rem;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.article-meta__rubric:hover,
.article-meta__rubric:focus-visible {
  background: rgba(255, 215, 0, 0.18);
  color: #ffe9b0;
  text-decoration: none;
}

.article-hero {
  margin: 0 0 1.7rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-1);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

/* ---------- 19. Страницы рубрик (метки) ---------- */
.blog-items.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-back {
  margin: 0 0 1.3rem;
  font-size: 0.9rem;
}

.category-back a {
  color: var(--gold-soft);
  text-decoration: none;
}

.category-back a:hover,
.category-back a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.tag-category .category-desc {
  margin-bottom: 1.4rem;
}

/* ---------- 20. Левая колонка: рубрики и направления ---------- */
#left-col .mod-custom {
  margin: 0 0 1rem;
}

#left-col .mod-custom:last-of-type {
  margin-bottom: 0;
}

#left-col .blog-rubrics,
#left-col .psych-module,
#right-col .psych-module {
  position: relative;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

#left-col .blog-rubrics::before,
#left-col .psych-module::before,
#right-col .psych-module::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orchid), transparent);
  opacity: 0.55;
  pointer-events: none;
}

#left-col .blog-rubrics__title,
#left-col .psych-module h3,
#right-col .psych-module h3 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  -webkit-text-fill-color: currentColor;
  hyphens: none;
}

/* рубрики */
#left-col .blog-rubrics__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.12rem;
}

#left-col .blog-rubrics__list li {
  margin: 0;
}

#left-col .blog-rubrics__list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 -0.3rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  hyphens: none;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

#left-col .blog-rubrics__list a::before {
  content: "◆";
  flex: 0 0 auto;
  font-size: 0.5rem;
  line-height: 2;
  color: var(--gold);
  opacity: 0.75;
}

#left-col .blog-rubrics__list a:hover,
#left-col .blog-rubrics__list a:focus-visible {
  background: rgba(255, 215, 0, 0.09);
  color: var(--gold);
  text-decoration: none;
  padding-left: 0.7rem;
}

/* направления практики */
#left-col .psych-module ul {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

#left-col .psych-module li {
  position: relative;
  margin: 0 0 0.55rem;
  padding-left: 0.95rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  hyphens: none;
  overflow-wrap: break-word;
}

#left-col .psych-module li:last-child {
  margin-bottom: 0;
}

#left-col .psych-module li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
}

#left-col .psych-module li strong {
  color: var(--text);
  font-weight: 600;
}

#left-col .psych-side__note {
  margin: 0.8rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--muted);
}

#left-col .psych-side .psych-module-glow {
  display: none;
}

/* ---------- 25. Страницы оплаты: выбор суммы ---------- */
.pay-amount__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.pay-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
}

.pay-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 3, 15, 0.45);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pay-chip small {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.pay-chip:hover,
.pay-chip:focus-visible {
  border-color: rgba(255, 215, 0, 0.45);
  color: var(--gold);
  outline: none;
}

.pay-chip.is-active {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
}

.pay-chip.is-active small {
  color: var(--gold-soft);
}

.pay-custom-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.pay-custom-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-custom {
  width: 190px;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 3, 15, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.pay-custom::placeholder {
  color: rgba(191, 176, 220, 0.7);
}

.pay-custom:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.pay-copy {
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  cursor: pointer;
}

.pay-copy:hover,
.pay-copy:focus-visible {
  border-color: rgba(255, 215, 0, 0.45);
  color: var(--gold);
  outline: none;
}

.pay-copy.is-done {
  border-color: rgba(120, 220, 150, 0.5);
  color: #9ce7b0;
}

.pay-card__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .pay-amount__sum {
    font-size: 2rem;
  }

  .pay-custom {
    width: 100%;
  }
}

/* ---------- 26. Страница «Оплата»: карточки-ссылки ---------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.3rem 0 1.8rem;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: rgba(12, 6, 28, 0.62);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orchid), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.link-card__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.link-card__title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

.link-card__text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.link-card__more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 27. Код клиента перед оплатой ---------- */
.pay-gate {
  margin: 1.4rem 0 1.8rem;
}

.pay-gate__form {
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pay-gate__label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--text);
}

.pay-gate__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.pay-gate__input {
  width: 150px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 3, 15, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.pay-gate__input:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.pay-gate__btn {
  padding: 0.55rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd700, #f7c949);
  color: #1a0b2e;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.pay-gate__btn:hover,
.pay-gate__btn:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.pay-gate__msg {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: #f0a3a3;
}

.pay-gate__msg.is-ok {
  color: #9ce7b0;
}

.pay-gate__hint {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.pay-gate__info {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(120, 220, 150, 0.35);
  border-radius: 12px;
  background: rgba(120, 220, 150, 0.08);
  font-size: 0.9rem;
  color: #cdf3d8;
}

[hidden] {
  display: none !important;
}

/* ---------- 28. Магазин в основном шаблоне ---------- */
/* Карточки товаров, детальная страница, демо-позиции.
   Отдельный стиль шаблона «Софт» (id 23) остаётся в резерве. */

/* в основном шаблоне есть боковые колонки: 3 карточки только на широких экранах */
.blog-items.masonry-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1700px) {
  .blog-items.masonry-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719.98px) {
  .blog-items.masonry-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* карточка товара сама себе карточка — обёртка блога не нужна */
.blog-card--product {
  display: block;
  height: 100%;
}

.blog-item:has(.product-card) {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.blog-item:has(.product-card):hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.35rem 1.4rem;
  background: rgba(21, 11, 46, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(3, 1, 8, 0.55);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orchid), transparent);
  opacity: 0.6;
}

.blog-item:hover .product-card {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 22px 48px rgba(3, 1, 8, 0.65);
}

.product-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  line-height: 1.25;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  hyphens: none;
}

.blog-item:hover .product-card__title {
  color: var(--gold);
}

.product-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.product-card__features {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
}

.product-badge {
  display: inline-block;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 184, 217, 0.35);
  background: rgba(0, 184, 217, 0.1);
  color: #8fe3f2;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.product-badge--ver {
  border-color: rgba(186, 85, 211, 0.4);
  background: rgba(186, 85, 211, 0.14);
  color: #e3b6f5;
}

.product-badge--demo {
  border-color: rgba(255, 128, 128, 0.45);
  background: rgba(255, 96, 96, 0.12);
  color: #ffb9b9;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.product-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.product-card__more {
  font-size: 0.88rem;
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 0, 0.35);
  text-underline-offset: 0.18em;
}

.product-card__more:hover,
.product-card__more:focus-visible {
  color: var(--gold);
}

.product-card__buy {
  display: inline-block;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd700, #f7c949);
  color: #1a0b2e !important;
  -webkit-text-fill-color: #1a0b2e;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.product-card__buy:hover,
.product-card__buy:focus-visible {
  filter: brightness(1.07);
  color: #1a0b2e !important;
  text-decoration: none;
}

.product-card__buy.is-disabled {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted);
  font-weight: 500;
  cursor: default;
  filter: none;
}

.product-note {
  margin: 0.75rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(191, 176, 220, 0.85);
}

.product-card--demo {
  border-style: dashed;
  border-color: rgba(255, 128, 128, 0.3);
}

.product-card--demo:hover {
  transform: none;
}

/* детальная страница товара */
.product-detail {
  padding: 1.6rem 1.6rem 1.4rem;
  background: rgba(21, 11, 46, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(3, 1, 8, 0.55);
}

.product-detail__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.product-detail h2 {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.product-detail ul {
  color: var(--muted);
  line-height: 1.75;
}

.product-detail a:not(.product-card__buy) {
  color: var(--gold-soft);
}

.product-detail__meta {
  margin: 1.3rem 0 0;
}

.product-detail__meta-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.product-detail__buy {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 0.6rem;
  padding: 1rem 1.1rem;
  background: rgba(8, 3, 15, 0.45);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.product-detail__buy .product-card__price {
  font-size: 1.45rem;
}

.product-detail__buy .product-card__buy {
  margin-left: auto;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
}

/* ---------- 29. Контраст и блок «как получить» ---------- */
.pcb-row-empty,
.pcb-day-empty {
  color: #b7a9d0 !important;
}

.product-howto {
  margin: 1.6rem 0 0;
  padding: 1.4rem 1.5rem;
  background: rgba(21, 11, 46, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.product-howto h2 {
  margin-top: 0;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.product-howto ol {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.product-howto li {
  margin-bottom: 0.5rem;
}

.product-howto li::marker {
  color: var(--gold);
}

/* ---------- 30. Форма заказа: галочки и итог ---------- */
.order-form {
  margin: 1.4rem 0 1.8rem;
}

.order-items {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.order-items__legend {
  padding: 0;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(12, 6, 28, 0.55);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.order-item:hover {
  border-color: rgba(255, 215, 0, 0.35);
}

.order-item:has(input:checked) {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.order-item input {
  width: 20px;
  height: 20px;
  accent-color: #ffd700;
  margin: 0;
  cursor: pointer;
}

.order-item__title {
  font-size: 0.98rem;
  color: var(--text);
}

.order-item__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.order-item--pack .order-item__price small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}

.order-total {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line-soft);
}

.order-total__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-total__sum {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
}

.order-pay {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  margin: 0.6rem 0 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(12, 6, 28, 0.55);
}

.order-pay .pay-meta {
  grid-column: auto;
  border-top: 0;
  padding-top: 0;
}

.order-contact {
  display: grid;
  gap: 0.6rem;
  max-width: 460px;
}

.order-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.order-field input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 3, 15, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.order-field input:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.order-submit {
  justify-self: start;
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd700, #f7c949);
  color: #1a0b2e;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.order-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.order-msg {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #f0a3a3;
}

.order-msg.is-ok {
  color: #9ce7b0;
}

@media (max-width: 719.98px) {
  .order-pay {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-pay .pay-qr {
    margin: 0 auto;
  }
}

/* ---------- 31. Боковые колонки: длинные строки ---------- */
#right-col .psych-module,
#left-col .psych-module {
  font-size: 0.88rem;
  line-height: 1.55;
}

#right-col .psych-module p,
#right-col .psych-module li,
#left-col .psych-module p,
#left-col .psych-module li {
  overflow-wrap: break-word;
}

#right-col .psych-module a[href^="mailto"],
#right-col .psych-module a[href^="tel"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}
