/* =========================================
   ДИДО СПОРТ — editorial + warm tactility
   Direction: editorial warm; accent hue 28° (amber/ochre);
   type: Unbounded (display) + PT Serif (body)
   ========================================= */

:root {
  --bg: #f3ecde;
  --surface: #ece2cd;
  --fg: #1d1814;
  --muted: #6b5b46;
  --border: #d6c8a8;
  --accent: #b8651a;
  --accent-deep: #8a4810;
  --accent-on: #fff7e8;
  --invert-bg: #161210;
  --invert-fg: #f3ecde;
  --invert-muted: #b7a98e;

  --font-display: 'Unbounded', 'PT Serif', Georgia, serif;
  --font-body: 'PT Serif', Georgia, 'Times New Roman', serif;

  --radius: 2px;
  --space-section: 96px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-deep); }
button { font-family: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-on);
  padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* =========== TOPBAR =========== */
.topbar {
  position: sticky; top: 0; z-index: 1100;
  background: rgba(243,236,222,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
/* Когда открыта модалка новостей — html имеет класс news-modal-open, у body overflow:hidden,
   который ломает position:sticky. Переводим шапку в position:fixed и поднимаем z-index,
   чтобы она всегда была видна поверх iframe. */
html.news-modal-open .topbar,
html.news-modal-open .megamenu {
  position: fixed !important;
  left: 0; right: 0;
}
html.news-modal-open .topbar { top: 0; z-index: 9999 !important; }
html.news-modal-open .megamenu { top: 64px; z-index: 9998 !important; }
.topbar__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--fg); text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__words { display: flex; flex-direction: column; line-height: 1.1; }
.brand__line1 {
  font-family: var(--font-display);
  font-weight: 900; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: 0.14em;
  color: #000;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.25),
    0 2px 0 rgba(0,0,0,0.22),
    0 3px 0 rgba(0,0,0,0.20),
    0 4px 0 rgba(0,0,0,0.18),
    0 5px 0 rgba(0,0,0,0.15),
    0 6px 1px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.55);
}
.brand__line2 { display: none; }
.nav {
  display: flex; gap: 22px; margin-left: auto;
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.nav a { color: var(--fg); }
.nav a:hover { color: var(--accent); }

/* Hamburger — visible only on small screens */
.hamburger {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.hamburger__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.hamburger__bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger__label {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--fg);
}
.hamburger__lang { display: inline-flex; gap: 4px; }
.hamburger__lang .lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--fg);
}
.hamburger__lang .lang-btn.is-active {
  background: var(--accent);
  color: var(--accent-on, #fff);
  border-color: var(--accent);
}
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Off-canvas mobile menu */
.mobile-nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(22, 18, 16, 0.55);
  z-index: 39;
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; }

.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -10px 0 30px rgba(22, 18, 16, 0.18);
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mobile-nav__close {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--fg);
  border-radius: var(--radius);
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}
.mobile-nav__list a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border-left: 3px solid transparent;
}
.mobile-nav__list a:hover,
.mobile-nav__list a:active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(184, 101, 26, 0.06);
}
.mobile-nav__lang {
  display: flex;
  gap: 8px;
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
}
.mobile-nav__lang .lang-btn {
  flex: 1;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  min-width: 44px;
  min-height: 36px;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }
.lang-btn:hover { color: var(--fg); }
.lang-btn.is-active { background: var(--fg); color: var(--bg); }

.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: var(--accent); color: var(--accent-on);
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: var(--radius);
  border: 1px solid var(--accent);
  transition: background .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.cta:hover { background: var(--accent-deep); color: var(--accent-on); transform: translateY(-1px); }

/* =========== HERO =========== */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-bottom: 1px solid var(--invert-bg);
}
@media (max-width: 768px) {
  .hero { min-height: auto; }
}
@media (min-width: 901px) {
  .hero { min-height: 62vh; }
  .hero__copy { padding: 24px 28px 36px; }
}
.hero__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(40,16,10,0.55) 0%, rgba(8,5,4,0.95) 75%, #050302 100%),
    #0a0807;
}
.hero__media-img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: contrast(1.06) saturate(1.1) brightness(0.95);
  opacity: 0;
  transition: opacity .7s ease;
}
.hero__media-img.is-ready { opacity: 1; }
@media (min-width: 900px) {
  .hero__media-img {
    object-position: center 25%;
  }
}
@media (max-width: 768px) {
  .hero__media-img {
    object-position: center 55%;
  }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 50% 55%, rgba(22,18,16,0) 0%, rgba(22,18,16,0.35) 60%, rgba(22,18,16,0.85) 100%),
    linear-gradient(180deg, rgba(22,18,16,0.55) 0%, rgba(22,18,16,0.25) 30%, rgba(22,18,16,0.45) 65%, rgba(22,18,16,0.95) 100%);
  pointer-events: none;
}
.hero__copy {
  position: relative; z-index: 2;
  align-self: end;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px 48px;
}
.kicker {
  font-family: var(--font-display);
  font-weight: 700; font-style: normal;
  font-size: clamp(15px, 1.7vw, 22px);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffd089;
  margin: 0 0 6px;
  text-align: center;
  text-shadow:
    0 1px 0 #d4954a,
    0 2px 0 #c47a32,
    0 3px 0 #a96220,
    0 4px 0 #8d4f17,
    0 5px 0 #733f10,
    0 6px 0 #5d350c,
    0 7px 1px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.55);
}
.kicker b, .kicker strong {
  font-weight: 900; font-style: normal;
  font-size: 1.18em;
  letter-spacing: 0.16em;
  color: #ffe2a8;
  text-shadow:
    0 1px 0 #d4954a,
    0 2px 0 #c47a32,
    0 3px 0 #a96220,
    0 4px 0 #8d4f17,
    0 5px 0 #733f10,
    0 6px 0 #5d350c,
    0 7px 0 #48280a,
    0 8px 1px rgba(0, 0, 0, 0.25),
    0 9px 2px rgba(0, 0, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.6);
}
.kicker::before {
  content: 'Сайт';
  display: block;
  font-weight: 900; font-style: normal;
  font-size: clamp(26px, 4vw, 50px);
  color: #ffe2a8;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-shadow:
    0 1px 0 #d4954a,
    0 2px 0 #c47a32,
    0 3px 0 #a96220,
    0 4px 0 #8d4f17,
    0 5px 0 #733f10,
    0 6px 0 #5d350c,
    0 7px 0 #48280a,
    0 8px 1px rgba(0, 0, 0, 0.25),
    0 9px 2px rgba(0, 0, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.6);
}
.kicker::after {
  content: '';
  display: block;
  width: clamp(140px, 50%, 280px);
  height: 5px;
  margin: 18px auto 0;
  background: linear-gradient(90deg,
    transparent 0%,
    #ff3a00 8%,
    #ff8a1a 28%,
    #ffd84a 50%,
    #ff8a1a 72%,
    #ff3a00 92%,
    transparent 100%);
  border-radius: 3px;
  box-shadow:
    0 0 14px rgba(255, 122, 26, 0.85),
    0 0 28px rgba(255, 58, 0, 0.6),
    0 0 50px rgba(255, 90, 0, 0.4),
    0 -1px 8px rgba(255, 200, 80, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.45);
  position: relative;
  filter: saturate(1.2);
}
@media (min-width: 900px) {
  .kicker { margin-bottom: 8px; }
}
.kicker b,
.kicker strong {
  color: #ffd089;
  font-style: normal;
  text-shadow:
    0 1px 0 #d4954a,
    0 2px 0 #c47a32,
    0 3px 0 #a96220,
    0 4px 0 #8d4f17,
    0 5px 0 #733f10,
    0 6px 1px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.5);
}
.kicker--invert { color: #e6a85a; }
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: normal;
  font-size: clamp(54px, 10vw, 160px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 14px 0 6px;
  text-transform: uppercase;
  text-align: center;
  color: #ffe5b8;
  text-shadow:
    0 1px 0 #d4954a,
    0 2px 0 #c47a32,
    0 3px 0 #a96220,
    0 4px 0 #8d4f17,
    0 5px 0 #733f10,
    0 6px 0 #5d350c,
    0 7px 0 #48280a,
    0 8px 1px rgba(0, 0, 0, 0.25),
    0 9px 2px rgba(0, 0, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.6);
}
.display em {
  font-style: normal;
  color: #ffd089;
  text-shadow:
    0 1px 0 #d4954a,
    0 2px 0 #c47a32,
    0 3px 0 #a96220,
    0 4px 0 #8d4f17,
    0 5px 0 #733f10,
    0 6px 0 #5d350c,
    0 7px 0 #48280a,
    0 8px 1px rgba(0, 0, 0, 0.25),
    0 9px 2px rgba(0, 0, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.6);
}
.display .dot { display: none; }
.lede {
  max-width: 720px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  font-weight: 800; font-style: normal;
  color: #fff3d6;
  margin: 4px auto 0;
  text-align: center;
  padding-top: 0;
  position: relative;
  text-shadow:
    0 1px 0 rgba(212, 149, 74, 0.7),
    0 2px 0 rgba(196, 122, 50, 0.55),
    0 3px 1px rgba(0, 0, 0, 0.25),
    0 1px 4px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.45);
}
.lede::before { display: none; }
.lede::after {
  content: '';
  display: block;
  width: clamp(180px, 70%, 420px);
  height: 6px;
  margin: 24px auto 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(255, 58, 0, 0.6) 6%,
      rgba(255, 138, 26, 0.95) 22%,
      rgba(255, 216, 74, 1) 50%,
      rgba(255, 138, 26, 0.95) 78%,
      rgba(255, 58, 0, 0.6) 94%,
      transparent 100%),
    radial-gradient(ellipse at 50% 100%,
      rgba(255, 200, 80, 0.9) 0%,
      rgba(255, 138, 26, 0.7) 30%,
      rgba(255, 58, 0, 0.4) 60%,
      transparent 80%);
  background-blend-mode: screen;
  border-radius: 50% 50% 8px 8px / 80% 80% 6px 6px;
  box-shadow:
    0 0 14px rgba(255, 138, 26, 0.9),
    0 0 28px rgba(255, 90, 0, 0.7),
    0 0 50px rgba(255, 58, 0, 0.5),
    0 0 90px rgba(255, 130, 30, 0.4),
    inset 0 -2px 6px rgba(255, 220, 100, 0.9),
    inset 0 2px 4px rgba(180, 30, 0, 0.6);
  filter: saturate(1.3);
  animation: flameFlicker 1.6s ease-in-out infinite;
}
@keyframes flameFlicker {
  0%, 100% { opacity: 0.95; transform: scaleY(1); }
  35%      { opacity: 1;    transform: scaleY(1.08) translateY(-1px); }
  65%      { opacity: 0.92; transform: scaleY(0.96); }
}
.lede::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 184, 85, 0.8) 50%, transparent 100%);
}
.lede--invert { color: rgba(243,236,222,0.78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); color: var(--accent-on); transform: translateY(-1px); }
.btn--ghost { color: var(--invert-fg); border-color: rgba(243,236,222,0.6); }
.btn--ghost:hover { background: rgba(243,236,222,0.1); color: var(--invert-fg); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
  margin: 0;
  padding-top: 26px;
  position: relative;
  text-align: center;
}
.hero__stats::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: clamp(220px, 70%, 460px);
  height: 5px;
  background: linear-gradient(90deg,
    transparent 0%,
    #ff3a00 8%,
    #ff8a1a 28%,
    #ffd84a 50%,
    #ff8a1a 72%,
    #ff3a00 92%,
    transparent 100%);
  border-radius: 3px;
  box-shadow:
    0 0 14px rgba(255, 122, 26, 0.85),
    0 0 28px rgba(255, 58, 0, 0.6),
    0 0 50px rgba(255, 90, 0, 0.4),
    0 -1px 8px rgba(255, 200, 80, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.45);
  filter: saturate(1.2);
}
.hero__stats > div { display: flex; flex-direction: column; align-items: center; }
.hero__stats dt {
  font-family: var(--font-display);
  font-weight: 800; font-style: normal;
  font-size: clamp(22px, 2.4vw, 32px);
  color: #ffd089;
  letter-spacing: -0.01em;
  text-shadow:
    0 1px 0 #d4954a,
    0 2px 0 #c47a32,
    0 3px 0 #a96220,
    0 4px 0 #8d4f17,
    0 5px 1px rgba(0,0,0,0.25),
    0 1px 4px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.5);
}
.hero__stats dd {
  margin: 0;
  font-size: 13px;
  font-style: normal; font-weight: 700;
  color: rgba(243,236,222,0.85);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4);
}

.hero__ticker {
  position: relative; z-index: 2;
  background: var(--accent);
  color: var(--accent-on);
  border-top: 1px solid var(--accent-deep);
  overflow: hidden;
}
.ticker__track {
  display: flex; gap: 28px;
  white-space: nowrap;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}
.ticker__btn,
.ticker__track span:not(.ticker__sep) {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color .2s ease;
}
.ticker__btn:hover,
.ticker__btn:focus-visible {
  color: var(--accent);
  outline: none;
}
.ticker__sep { opacity: 0.6; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========== SECTION HEADS =========== */
.section-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 56px;
}
.section-head__sub {
  max-width: 640px;
  font-size: 17px;
  color: var(--muted);
  margin: 16px 0 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
.h2--invert { color: var(--invert-fg); }

/* =========== ABOUT =========== */
.about {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.about--compact {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.about__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.about--compact .about__num { position: static; font-size: clamp(80px, 10vw, 140px); }
.about__lead { margin: 0; font-size: 18px; line-height: 1.55; max-width: 880px; color: var(--fg); }
.about__lead strong { color: var(--fg); font-weight: 700; }
@media (max-width: 720px) {
  .about__inner { grid-template-columns: 1fr; gap: 16px; }
  .about--compact .about__num { font-size: 72px; }
}

/* =========== ATHLETES =========== */
.cards {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 1280px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__media {
  aspect-ratio: 4/3;
  background: var(--invert-bg);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; }
.card__tag {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.card__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.card__body p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* =========== INSTAGRAM FEED =========== */
.feed {
  padding: var(--space-section) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.ig-loader {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex; gap: 10px; align-items: center;
  color: var(--muted);
}
.ig-loader p { margin: 0 0 0 12px; font-size: 14px; }
.ig-loader[hidden] { display: none; }
.ig-loader__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: igPulse 1.2s infinite ease-in-out;
}
.ig-loader__dot:nth-child(2) { animation-delay: .15s; }
.ig-loader__dot:nth-child(3) { animation-delay: .3s; }
@keyframes igPulse {
  0%, 80%, 100% { opacity: .25; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1.1); }
}
.ig-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ig-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease;
  /* <button> reset — cards stay link-styled, no native button chrome. */
  appearance: none;
  font: inherit;
  text-align: left;
  width: 100%;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ig-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.ig-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.ig-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--invert-bg);
  overflow: hidden;
}
.ig-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.ig-card:hover .ig-card__media img { transform: scale(1.04); }
.ig-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.6); color: #fff7e8;
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.ig-card__video {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff7e8;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding-left: 3px;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ig-card__duration {
  position: absolute;
  bottom: 8px; right: 8px;
  padding: 3px 7px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.ig-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--invert-fg);
  font-family: var(--font-display); letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 12px;
}
.ig-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.ig-card__tag {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.ig-card__date {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.ig-card__caption {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-card__open {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.ig-card__cat {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(255, 247, 232, 0.92);
  color: var(--invert-bg);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-card__heart {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 247, 232, 0.95);
  color: var(--accent);
  font-size: 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 2;
  animation: heartPop 0.4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes heartPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.feed__cta {
  display: table;
  margin: 56px auto 0;
}

/* =========== FEED FILTERS =========== */
.feed__filters {
  max-width: 1280px; margin: 0 auto 24px;
  padding: 0 28px;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  appearance: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.filter-pill:hover { color: var(--fg); border-color: var(--fg); }
.filter-pill.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.filter-pill__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px;
  border-radius: 999px;
  background: rgba(184, 101, 26, 0.14);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.filter-pill.is-active .filter-pill__count {
  background: rgba(255, 247, 232, 0.2);
  color: var(--bg);
}
.filter-pill--videos {
  background: linear-gradient(135deg, #ffe4c2 0%, #ffd089 100%);
  border-color: #e0a96a;
  color: #7a3d0a;
}
.filter-pill--videos:hover { color: #4a2500; border-color: #c97f3a; }
.filter-pill--videos.is-active {
  background: linear-gradient(135deg, #d24c4c 0%, #b71f1f 100%);
  color: #fff;
  border-color: #b71f1f;
}
.filter-pill--videos .filter-pill__count {
  background: rgba(122, 61, 10, 0.18);
  color: #7a3d0a;
}
.filter-pill--videos.is-active .filter-pill__count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.megamenu__icon { display:inline-block; margin-right:4px; }

.ig-empty {
  max-width: 1280px; margin: 0 auto;
  padding: 32px 28px 48px;
  text-align: center;
  color: var(--muted);
}
.ig-empty p { margin: 0 0 6px; }
.ig-empty p:first-child {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.04em;
}

/* =========== SECTIONS GRID =========== */
.sections {
  padding: var(--space-section) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* =========== LATEST (top 2) =========== */
.latest {
  padding: var(--space-section) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.latest__wrap {
  max-width: var(--max-w, 1180px);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
#latest-grid.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  align-items: start;
  justify-content: center; /* center the row when there are fewer than track-count */
}
.latest__main { min-width: 0; }
.latest__aside { display: none; }
@media (min-width: 1024px) {
  .latest__wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .latest__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 180px;
    align-self: start;
    max-height: calc(100vh - 200px);
    overflow: auto;
  }
}
.latest__grid {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.latest-card {
  appearance: none;
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
}
.latest-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -16px rgba(29, 24, 20, 0.4);
}
.latest-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.latest-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--invert-bg);
  overflow: hidden;
}
.latest-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.latest-card:hover .latest-card__media img { transform: scale(1.04); }
.latest-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.3);
}
.latest-card__video {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff7e8;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding-left: 3px;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.latest-card__duration {
  position: absolute;
  bottom: 10px; right: 10px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.latest-card__body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.latest-card__meta {
  display: flex; align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-card__cat {
  background: rgba(184, 101, 26, 0.12);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.latest-card__date {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.latest-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.latest-card__open {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.sections__grid {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.section-card {
  appearance: none;
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.section-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -16px rgba(29, 24, 20, 0.4);
}
.section-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.section-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--invert-bg);
  overflow: hidden;
}
.section-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.section-card:hover .section-card__media img { transform: scale(1.04); }
.section-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--invert-fg);
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-card__body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.section-card__count {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.section-card__desc {
  margin: 0;
  font-size: 14px; line-height: 1.5;
  color: var(--muted);
  flex: 1;
}
.section-card__open {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* POST MODAL */
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 8, 6, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.post-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
body.post-modal-open { overflow: hidden; }
body.post-modal-open .topbar,
body.post-modal-open .megamenu { pointer-events: none; }
body.post-modal-open .post-modal__action--share,
body.post-modal-open .post-modal__action--heart,
body.post-modal-open .post-modal__nav,
body.post-modal-open .post-modal__nav-arrow { pointer-events: auto; }

.post-modal__panel {
  position: relative;
  width: 100%;
  max-width: 1024px;
  max-height: 92vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(10px) scale(0.99);
  transition: transform .25s ease;
}
.post-modal[aria-hidden="false"] .post-modal__panel {
  transform: translateY(0) scale(1);
}

.post-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 14, 0.7);
  color: #fff7e8;
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background .15s ease, transform .15s ease;
}
.post-modal__close:hover { background: rgba(40, 32, 22, 0.95); transform: rotate(90deg); }
.post-modal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.post-modal__back {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 5;
  height: 40px;
  padding: 0 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 14, 0.7);
  color: #fff7e8;
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .15s ease, transform .15s ease;
}
.post-modal__back:hover { background: rgba(40, 32, 22, 0.95); }
.post-modal__back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .post-modal__back { top: 8px; left: 8px; height: 36px; font-size: 13px; padding: 0 12px; }
}

.post-modal__viewer {
  position: relative;
  background: #000;
  min-height: 360px;
  max-height: 92vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.post-modal__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.post-modal__track::-webkit-scrollbar { display: none; }
.post-modal__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.post-modal__slide img,
.post-modal__slide video {
  max-width: 100%;
  max-height: 92vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.post-modal__placeholder {
  width: 100%;
  min-height: 360px;
  background: linear-gradient(135deg, #1a1410 0%, #2a221a 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
}
.post-modal__placeholder-icon { font-size: 64px; opacity: 0.4; }
.post-modal__placeholder-text { font-size: 14px; color: var(--muted); }
.post-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.7);
  color: #fff7e8;
  border: 1px solid rgba(255, 247, 232, 0.18);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.post-modal__nav:hover { background: rgba(40, 32, 22, 0.95); }
.post-modal__nav[hidden] { display: none; }
.post-modal__nav--prev { left: 12px; }
.post-modal__nav--next { right: 12px; }
.post-modal__counter {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(20, 18, 14, 0.7);
  color: #fff7e8;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.post-modal__counter[hidden] { display: none; }

.post-modal__info {
  padding: 0;
  border-top: 0;
  border-left: 1px solid var(--border);
  max-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.post-modal__info::-webkit-scrollbar { width: 0; }

/* Author header (Instagram-style) */
.post-modal__author {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.post-modal__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.post-modal__name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  flex: 1;
}
.post-modal__name a { color: var(--fg); text-decoration: none; }
.post-modal__name a:hover { color: var(--accent); }
.post-modal__loc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.post-modal__chip {
  display: inline-block;
  background: rgba(184, 101, 26, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--font-display);
}

/* Scrollable content (caption, comments) */
.post-modal__content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 0;
}

/* Caption with "ещё" */
.post-modal__caption {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.post-modal__caption.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-modal__caption a { color: var(--accent); text-decoration: none; }
.post-modal__caption a:hover { text-decoration: underline; }
.post-modal__more {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: -4px 0 12px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.post-modal__more:hover { color: var(--fg); }

/* Meta stats (likes, views, date) */
.post-modal__meta-stats {
  padding: 0 0 8px;
  margin: 0 0 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.post-modal__like-count {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--fg);
}
.post-modal__views {
  font-size: 12px;
  color: var(--muted);
}
.post-modal__date-short {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Prev/Next post navigation (in info panel) */
.post-modal__nav-arrows {
  display: flex;
  gap: 8px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
.post-modal__nav-arrow {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}
.post-modal__nav-arrow:hover:not(:disabled) { background: var(--surface); }
.post-modal__nav-arrow:disabled { opacity: 0.4; cursor: default; }
.post-modal__nav-arrow--prev { text-align: left; }
.post-modal__nav-arrow--next { text-align: right; }

/* Action bar (Instagram-style icons) */
.post-modal__actions {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 8px 8px 8px 4px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.post-modal__action {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background .15s ease, transform .1s ease;
}
.post-modal__action:hover { background: rgba(184, 101, 26, 0.08); }
.post-modal__action:active { transform: scale(0.92); }
.post-modal__action svg { display: block; }
.post-modal__action.is-on.post-modal__action--heart svg path { fill: #ed4956; stroke: #ed4956; }
.post-modal__action.is-on.post-modal__action--save svg path { fill: var(--fg); stroke: var(--fg); }
.post-modal__actions-spacer { flex: 1; }

/* Share popover */
.share-menu__pop {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 220px;
  z-index: 10;
}
.share-menu__pop.is-open { display: flex; }
.post-modal__info { position: relative; }
.post-modal__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--fg);
}
.reaction-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}
.reaction-summary__total {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  min-width: 22px;
}
.reaction-summary__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.reaction-picker {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 12px;
}
.reaction-picker__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.reaction-picker__row {
  display: inline-flex;
  gap: 6px;
}
.reaction-picker__btn {
  appearance: none;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.reaction-picker__btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.reaction-picker__btn.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.reaction-picker__emoji { font-size: 18px; line-height: 1; }
.reaction-picker__cnt {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  min-width: 12px;
  text-align: left;
}
.reaction-picker__btn.is-on .reaction-picker__cnt { color: #fff; opacity: 1; }
.share-menu { position: relative; display: inline-block; }
.share-menu__pop {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 240px;
  max-width: 360px;
  z-index: 1300;
}
.share-menu__pop.is-open { display: flex; }
.share-menu__close {
  appearance: none;
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.04);
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.share-menu__close:hover { background: rgba(0,0,0,0.12); }
.share-menu__item {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 12px 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  text-align: left;
  transition: background 0.15s ease;
}
.share-menu__item:hover { background: rgba(184, 101, 26, 0.12); }
.share-menu__icon {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.share-menu__label { font-weight: 500; }
.comments {
  margin-top: 0;
  padding-top: 8px;
}
.comments__counter {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  padding: 4px 0 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.comments__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.comment {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}
.comment__head {
  display: flex; gap: 10px;
  align-items: center;
  min-width: 0;
}
.comment__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.comment__avatar img.comment__avatar-img { width:100%; height:100%; object-fit:cover; display:block; }
.comment__avatar.comment__avatar--default { background: linear-gradient(135deg, #b8651a 0%, #8a4a14 100%); }
.comment__head-text { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.comment__author-wrap { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment__author {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--fg);
}
.comment__role-badge {
  font-size: 9px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
}
.comment__time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.comment__body {
  font-family: var(--font-body, 'PT Serif', serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-left: 42px;
}
.comment__body a { color: var(--accent); text-decoration: none; }
.comment__body a:hover { text-decoration: underline; }
.comment__actions {
  display: flex;
  gap: 12px;
  margin-left: 42px;
  margin-top: 2px;
}
.comment__like {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-family: var(--font-body, 'PT Serif', serif);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s;
}
.comment__like:hover { color: var(--accent); }
.comment__like.is-liked { color: #ed4956; }
.comment__like.is-liked .comment__like-icon { color: #ed4956; }
.comment__like-icon { font-size: 14px; line-height: 1; }
.comment__like-count { font-weight: 600; }

/* --- Reaction summary chips below comment body --- */
.comment__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 2px;
}
.comment__reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 12px;
  line-height: 1.2;
  color: var(--text, #262626);
  cursor: default;
  user-select: none;
}
.comment__reaction-emoji { font-size: 13px; line-height: 1; }
.comment__reaction-count { font-weight: 600; font-size: 11px; opacity: 0.8; }

/* --- Floating reaction picker (Instagram-style anchored popup) --- */
div.reaction-picker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 9999;
  animation: reactionPickerIn 0.18s ease-out;
}
@keyframes reactionPickerIn {
  from { transform: translateY(4px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
div.reaction-picker .reaction-picker__item {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 6px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.12s, background 0.12s;
}
div.reaction-picker .reaction-picker__item:hover,
div.reaction-picker .reaction-picker__item:active {
  transform: translateY(-2px) scale(1.15);
  background: rgba(0,0,0,0.06);
}
div.reaction-picker .reaction-picker__item.is-selected {
  background: rgba(237,73,86,0.12);
}
.comments__controls { padding: 6px 0; }
.comments__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: left;
  transition: color 0.15s;
}
.comments__toggle:hover { color: var(--fg); }

/* Hashtags and @mentions in captions: visible but not clickable to Instagram */
.dido-tag {
  color: var(--accent);
  font-weight: 600;
}
.dido-mention {
  color: var(--accent);
  font-weight: 600;
}
.comments__form {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0 16px;
  border-top: 1px solid var(--border);
}
.comments__form-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.comments__form-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.comments__name {
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
}
.comments__text {
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
  resize: none;
  min-height: 36px;
  max-height: 100px;
  font-family: inherit;
}
.comments__name:focus,
.comments__text:focus {
  outline: none;
  border-color: var(--accent);
}
.comments__send {
  appearance: none;
  font: inherit;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 8px;
  align-self: flex-end;
}
.comments__send:hover { color: var(--accent-deep); }
.comments__send:disabled { opacity: 0.5; cursor: wait; }
.post-modal__meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.post-modal__tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.post-modal__cat {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(184, 101, 26, 0.12);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.post-modal__date {
  font-size: 12px;
  color: var(--muted);
}
.post-modal__stats {
  display: flex; gap: 16px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.post-modal__stats span { display: inline-flex; align-items: center; gap: 6px; }
.post-modal__reactions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-left: auto;
  align-items: center;
}
.reaction-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit;
  font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.reaction-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.reaction-btn:active { transform: translateY(0); }
.reaction-btn__icon { font-size: 16px; line-height: 1; }
.reaction-btn--like.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.reaction-btn--like.is-on .reaction-btn__icon { color: #fff; }
.reaction-btn--tg {
  background: #2AABEE;
  border-color: #2AABEE;
  color: #fff;
}
.reaction-btn--tg:hover { background: #229ED9; border-color: #229ED9; }
.reaction-btn--share {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}
.post-modal__react-hint {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 600px) {
  .post-modal__reactions { margin-left: 0; }
  .reaction-btn { padding: 7px 12px; font-size: 12.5px; }
  .post-modal__react-hint { font-size: 11.5px; }
}
.post-modal__caption {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.post-modal__caption a {
  color: var(--accent);
  text-decoration: none;
}
.post-modal__caption a:hover { text-decoration: underline; }

/* Native reactions + comments + share */

@media (max-width: 720px) {
  .post-modal { padding: 0; }
  .post-modal__panel {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .post-modal__viewer {
    flex: 0 0 auto;
    max-height: min(62vh, calc(100dvh - 340px));
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }
  .post-modal__slide { aspect-ratio: var(--video-aspect, 9/16); height: 100% !important; max-height: inherit; }
  .post-modal__slide img,
  .post-modal__slide video { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
  .post-modal__info {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .post-modal__author {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
  }
  .post-modal__actions {
    flex: 0 0 auto;
    padding: 6px 6px 6px 2px;
    border-bottom: 1px solid var(--border);
  }
  .post-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 14px 90px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .post-modal__nav--prev { left: 8px; }
  .post-modal__nav--next { right: 8px; }
  .post-modal__close { top: 8px; right: 8px; }
  /* On mobile: pop becomes bottom sheet — JS positions it above the action bar */
}
@media (max-width: 560px) {
  .post-modal__nav { width: 38px; height: 38px; }
  .post-modal__nav--prev { left: 8px; }
  .post-modal__nav--next { right: 8px; }
}

/* =========== HELP (donate) =========== */
.help {
  padding: var(--space-section) 0;
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-top: 4px solid var(--accent);
}
.help--top {
  padding: 64px 0 var(--space-section);
  position: relative;
}
.help--top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.help__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.help .kicker { color: var(--accent); }
.help .h2 { color: var(--invert-fg); margin: 0 0 20px; }
.help .lede { color: var(--invert-muted); max-width: 540px; }
.help__uses {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  max-width: 540px;
}
.help__uses li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15px;
  color: var(--invert-fg);
  border-top: 1px solid rgba(243, 236, 222, 0.18);
}
.help__uses li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 12px; height: 1px; background: var(--accent);
}
.help__panel {
  background: rgba(243, 236, 222, 0.04);
  border: 1px solid rgba(243, 236, 222, 0.18);
  border-radius: 4px;
  padding: 28px;
}
.help__card {
  background: var(--bg);
  color: var(--fg);
  padding: 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.help__pay-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  background: var(--accent);
  color: var(--accent-on);
  border: 0;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  margin-bottom: 8px;
}
.help__pay-btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.help__pay-btn svg { flex-shrink: 0; }
.help__pay-alt {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.help__pay-alt a {
  color: var(--accent);
  margin-left: 6px;
  border-bottom: 1px solid currentColor;
}
.help__label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.help__row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.help__row:first-of-type { border-top: none; padding-top: 0; }
.help__key {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.help__val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.help__val--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.help__copy {
  appearance: none;
  background: var(--accent);
  color: var(--accent-on);
  border: 0;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}
.help__copy:hover { background: var(--accent-deep); }
.help__copy.is-done { background: #2d6a3e; }
.help__hint {
  margin: 22px 0 0;
  padding: 0 4px;
  font-size: 14px;
  color: var(--invert-muted);
  line-height: 1.5;
}
.help__hint a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* =========== CONTACT =========== */
.contact {
  padding: var(--space-section) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.contact__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact .lede { color: var(--muted); margin-bottom: 0; }
.contact__list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--border);
}
.contact__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.contact__label {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.contact__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.contact__value:hover { color: var(--accent); }
.contact__value--plain { color: var(--fg); }

.contact__form {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  display: flex; flex-direction: column;
  gap: 14px;
}
.contact__field { display: flex; flex-direction: column; gap: 6px; }
.contact__field span {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.contact__field input,
.contact__field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  resize: vertical;
}
.contact__field input:focus,
.contact__field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.contact__send {
  appearance: none;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s ease;
  align-self: flex-start;
}
.contact__send:hover { background: var(--accent); }

/* Drop zone + file previews */
.contact__drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.contact__drop:hover,
.contact__drop.drag {
  border-color: var(--accent);
  background: rgba(184,101,26,.04);
  color: var(--fg);
}
.contact__drop-icon { display: inline-flex; color: var(--muted); }
.contact__drop:hover .contact__drop-icon,
.contact__drop.drag .contact__drop-icon { color: var(--accent); }
.contact__drop-hint {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.contact__drop-meta { font-size: 11px; opacity: .75; }

.contact__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.preview-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.preview-tile img,
.preview-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.preview-tile__x {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 14px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.preview-tile__x:hover { background: var(--accent); }
.preview-tile__type {
  position: absolute; bottom: 4px; left: 4px;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,.7); color: #fff;
  border-radius: 2px;
  text-transform: uppercase;
}
.preview-count {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.contact__hint {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: rgba(184,101,26,.08);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
}
.contact__hint strong { color: var(--accent); }

@media (max-width: 960px) {
  .help__inner { grid-template-columns: 1fr; gap: 32px; }
  .help__uses { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__item { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .help__panel { padding: 16px; }
  .help__card { padding: 18px; }
  .help__val--mono { font-size: 14px; }
  .help__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .help__key { font-size: 10px; }
  .help__copy { justify-self: start; padding: 6px 12px; }
}

/* =========== FOOTER =========== */
.footer {
  background: var(--invert-bg);
  color: var(--invert-fg);
  padding: 48px 0 56px;
  border-top: 4px solid var(--accent);
}
.footer__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand .brand__mark { background: var(--accent); color: var(--accent-on); }
.footer__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: 0.12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.footer__sub {
  margin: 0; font-size: 13px; color: var(--invert-muted);
}
.footer__copy {
  margin: 0; max-width: 460px;
  font-size: 14px; color: var(--invert-muted); line-height: 1.55;
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__legal {
  margin: 0; font-size: 12px; color: var(--invert-muted);
}
.footer__legal a {
  color: var(--invert-muted); text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__legal a:hover { color: var(--accent); }

/* legal pages (privacy / terms) */
.site-footer { background: var(--invert-bg); color: var(--invert-fg); padding: 36px 0; }
.site-footer__inner { display: flex; flex-direction: column; gap: 10px; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; margin: 0; }
.footer-brand em { color: var(--accent); font-style: normal; }
.footer-sub { margin: 0; font-size: 13px; color: var(--invert-muted); }
.footer-copy { margin: 0; font-size: 14px; color: var(--invert-muted); line-height: 1.55; }
.footer-legal { margin: 0; font-size: 12px; color: var(--invert-muted); }
.footer-legal a { color: var(--invert-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--accent); }

/* =========== RESPONSIVE =========== */
.topbar__inner--minimal { gap: 16px; }
.nav { display: none !important; }
@media (max-width: 1024px) {
  .nav { display: none !important; }
}
@media (max-width: 960px) {
  /* swap nav for hamburger */
  .lang-switch { display: none; }
  .hamburger { display: inline-flex; }
  /* compact mobile layout */
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__num { position: static; }
  .about__list { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tournaments__grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; gap: 8px; }
  .event:nth-child(odd) { border-right: none; padding-right: 0; }
  .event:nth-child(even) { padding-left: 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .sections__grid { grid-template-columns: repeat(2, 1fr); }
  .latest__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar__inner { padding: 10px 14px; gap: 8px; }
  .brand__mark { width: 38px; height: 38px; font-size: 13px; }
  .hero { min-height: 80vh; }
  .hero__copy { padding: 8px 18px 28px; }
  .hero h1 { font-size: 36px; }
  .hero__stats { gap: 10px; padding: 16px; }
  .help__inner { padding: 28px 18px; }
  .about__inner { padding: 0 18px; }
  .feed__inner { padding: 0 18px; }
  .contact__inner { padding: 0 18px; }
  .footer__inner { padding: 32px 18px; gap: 24px; }
  .tournaments__grid { gap: 14px; }
  .ig-grid { gap: 8px; padding: 0 18px; }
  .ig-loader { padding: 24px 18px; }
  .sections__grid { gap: 12px; padding: 0 18px; }
  .latest__grid { gap: 14px; padding: 0 18px; }
}
@media (max-width: 560px) {
  .topbar__inner { padding: 10px 12px; gap: 6px; }
  .brand__words { display: none; }
  .cta span { display: none; }
  .cta { padding: 9px 12px; }
  .hero__copy { padding: 6px 14px 24px; }
  .hero h1 { font-size: 30px; line-height: 1.05; }
  .hero__lead { font-size: 14px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
  .hero__stat-num { font-size: 26px; }
  .hero__stat-lbl { font-size: 10px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .about__list { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: 1fr; padding: 0 14px; gap: 10px; }
  .ig-loader { padding: 20px 14px; }
  .sections__grid { grid-template-columns: 1fr; padding: 0 14px; gap: 10px; }
  .latest__grid { grid-template-columns: 1fr; padding: 0 14px; gap: 12px; }
  .latest-card { padding: 14px; }
  .latest-card__title { font-size: 16px; }
  .help__inner { padding: 22px 14px; }
  .about__inner { padding: 0 14px; }
  .feed__inner { padding: 0 14px; }
  .contact__inner { padding: 0 14px; }
  .footer__inner { padding: 24px 14px; gap: 18px; }
  .section-head { padding: 0 14px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 14px; }
  .kicker { font-size: 11px; }
}


/* ============================================================
   Yandex.RTB ad slots (RSYA)
   ============================================================ */
.rsya-slot {
  max-width: var(--max-w, 1180px);
  margin: 32px auto;
  padding: 18px 20px;
  background: rgba(184, 101, 26, 0.04);
  border: 1px dashed rgba(184, 101, 26, 0.25);
  border-radius: 14px;
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rsya-slot__label {
  font-family: var(--font-sans, system-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 14, 8, 0.42);
  margin-bottom: 8px;
}
.rsya-slot > div[id^="yandex_rtb_"] {
  width: 100%;
  max-width: 728px;
  min-height: 200px;
}

/* In-page feed slot — sits between cards, full row width */
.rsya-slot--feed {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  padding: 16px;
  min-height: 220px;
  background: rgba(184, 101, 26, 0.05);
  border-radius: 16px;
}
.rsya-slot--feed::before {
  content: 'Реклама';
  font-family: var(--font-sans, system-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 14, 8, 0.38);
  margin-bottom: 10px;
}
.rsya-slot--feed > div[id^="yandex_rtb_"],
.rsya-slot--feed > [id^="yandex_rtb_"] {
  width: 100%;
  max-width: 100%;
  min-height: 200px;
}

/* Home page layout with sidebar */
.latest__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: var(--max-w, 1180px);
  margin: 0 auto;
}
.latest__main {
  min-width: 0; /* prevent grid overflow */
}
.latest__aside {
  display: none;
}
@media (min-width: 1024px) {
  .latest__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .latest__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 180px; /* sit just under sticky topbar(64) + dido-bar(64) + megamenu(68) */
    align-self: start;
    max-height: calc(100vh - 200px);
    overflow: visible;
  }
}
.latest__aside .rsya-slot {
  margin: 0;
  padding: 12px;
  min-height: 0;
  background: rgba(184, 101, 26, 0.04);
  border-radius: 14px;
}
.latest__aside .rsya-slot::before {
  content: 'Реклама';
  display: block;
  font-family: var(--font-sans, system-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 14, 8, 0.38);
  margin-bottom: 6px;
}
.latest__aside .rsya-slot > div[id^="yandex_rtb_"],
.latest__aside .rsya-slot > [id^="yandex_rtb_"] {
  min-height: 250px;
  max-width: 100%;
}
.latest__aside .rsya-slot--wide {
  min-height: 600px;
}
.latest__aside .rsya-slot--wide > div[id^="yandex_rtb_"],
.latest__aside .rsya-slot--wide > [id^="yandex_rtb_"] {
  min-height: 600px;
}

/* Hero banner above the feed */
.rsya-slot--hero {
  max-width: var(--max-w, 1180px);
  margin: 28px auto;
  padding: 20px;
  min-height: 140px;
  background: rgba(184, 101, 26, 0.04);
  border-radius: 16px;
}
.rsya-slot--hero::before {
  content: 'Реклама';
  display: block;
  font-family: var(--font-sans, system-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 14, 8, 0.38);
  margin-bottom: 8px;
}
.rsya-slot--hero > div[id^="yandex_rtb_"],
.rsya-slot--hero > [id^="yandex_rtb_"] {
  max-width: 100%;
  min-height: 120px;
}
@media (max-width: 720px) {
  .rsya-slot--hero {
    margin: 16px 12px;
    padding: 12px;
  }
}

@media (max-width: 720px) {
  .rsya-slot {
    margin: 20px 12px;
    padding: 14px 12px;
    min-height: 180px;
  }
  .rsya-slot--feed {
    margin: 18px 0;
    padding: 12px;
    min-height: 200px;
  }
}
@media (max-width: 480px) {
  .rsya-slot > div[id^="yandex_rtb_"] {
    min-height: 160px;
  }
}

/* Hide empty slots when Yandex returns no ad (e.g. during moderation) */
.rsya-slot:empty {
  display: none;
}

/* Nested archive menu inside mobile drawer */
.nav-archive {
  border-left: 3px solid transparent;
}
.nav-archive > summary {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 160ms ease, background 160ms ease;
}
.nav-archive > summary::-webkit-details-marker { display: none; }
.nav-archive > summary::after {
  content: '›';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 18px;
  color: var(--fg-soft);
  transition: transform 200ms ease;
}
.nav-archive[open] > summary {
  color: var(--accent);
  background: rgba(184, 101, 26, 0.06);
  border-left: 3px solid var(--accent);
  padding-left: 21px;
}
.nav-archive[open] > summary::after {
  transform: translateY(-50%) rotate(-90deg);
}
.nav-archive__years {
  padding: 4px 0 12px;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.02);
}
.nav-archive__year {
  border-top: 1px solid rgba(22, 18, 16, 0.06);
}
.nav-archive__year > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 10px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}
.nav-archive__year > summary::-webkit-details-marker { display: none; }
.nav-archive__year > summary::after {
  content: '+';
  color: var(--fg-soft);
  font-size: 18px;
  line-height: 1;
}
.nav-archive__year[open] > summary::after { content: '−'; }
.nav-archive__year > summary .count {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-soft);
  font-family: var(--font-body);
}
.nav-archive__months {
  padding: 4px 0 8px;
}
.nav-archive__months a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px 8px 48px;
  font-size: 13px;
  color: var(--fg-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.nav-archive__months a:hover,
.nav-archive__months a:active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(184, 101, 26, 0.05);
}
.nav-archive__months a .mname { font-family: var(--font-display); letter-spacing: 0.02em; }
.nav-archive__months a .mcount { font-size: 11px; opacity: 0.7; }

/* Day grouping inside archive posts */
.archive-day {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 101, 26, 0.2);
}
.archive-day:first-child { margin-top: 0; }

.comments__txt-row { display:flex; align-items:center; gap:6px; }
.comments__emoji-btn { background:none; border:none; font-size:22px; padding:6px; cursor:pointer; line-height:1; opacity:0.7; transition:opacity .15s; flex-shrink:0; }
.comments__emoji-btn:hover { opacity:1; transform:scale(1.1); }

.emoji-insert-picker__item:hover { background:rgba(0,0,0,0.05) !important; }

.reel-play { display:inline-flex;align-items:center;justify-content:center;width:78px;height:78px;border-radius:50%;background:rgba(255,255,255,0.95);color:#000;font-size:34px;padding-left:6px;box-shadow:0 8px 24px rgba(0,0,0,0.5); }
.reel-label { font-size:14px;font-weight:600;text-shadow:0 2px 6px rgba(0,0,0,0.6); }
.reel-processing-overlay .reel-play { background:rgba(255,255,255,0.85); }
/* On desktop the native share button (navigator.share) is useless, hide it */
@media (min-width: 769px) {
  .share-menu__item[data-share="native"] { display: none; }
}

/* Archive category badge */
.archive-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #b8651a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 16px;
  cursor: pointer;
  border: 2px solid #1a1a1a;
  box-shadow: 0 2px 8px rgba(184,101,26,.4);
  transition: transform .15s ease;
}
.archive-cat-badge:hover { transform: translateY(-1px); }
.archive-cat-badge::before { content: '✕'; opacity: 0.85; font-size: 12px; }

.archive-tile--empty {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== Fund (помочь) ===== */
.fund-card {
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 16px 0 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.fund-card--alert {
  background: #fff8e6;
  border-color: #b8651a;
  border-style: dashed;
}
.fund-card__label {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
}
.fund-card__phone {
  margin: 8px 0 8px;
  font-size: 28px;
  font-weight: 800;
}
.fund-card__phone a {
  color: #b8651a;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.fund-card__phone a:hover { text-decoration: underline; }
.fund-card__hint {
  margin: 0;
  color: #555;
  font-size: 14px;
}
.fund-req {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.fund-req td {
  padding: 10px 8px;
  border-bottom: 1px solid #e0d0bb;
  vertical-align: top;
}
.fund-req td:first-child {
  color: #555;
  width: 200px;
  font-weight: 600;
}
.fund-req td:last-child {
  color: #1a1a1a;
}
.fund-footnote {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 13px;
  font-style: normal;
}
@media (max-width: 640px) {
  .fund-card { padding: 18px 18px; }
  .fund-card__phone { font-size: 22px; }
  .fund-req td:first-child { width: 130px; font-size: 14px; }
  .fund-req td:last-child { font-size: 14px; }
}

/* === contact form v44 === */
.contact-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 48px;
}
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 24px;
  background: var(--bg);
  border: 2px solid var(--fg);
  border-radius: 12px;
  padding: 24px 24px 28px;
  font-family: var(--font-body, inherit);
}
.contact-form__row { display: flex; flex-direction: column; gap: 6px; }
.contact-form__label {
  font-family: var(--font-display, inherit);
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg);
}
.contact-form__label .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; margin-left: 6px; }
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--fg);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(184,101,26,.04);
}
.contact-form__textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.contact-form__send {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  padding: 12px 28px;
  border: 2px solid var(--fg);
  border-radius: 8px;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-display, inherit);
  font-size: 15px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
  min-height: 48px;
  min-width: 200px;
}
.contact-form__send:hover:not(:disabled) {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-1px);
}
.contact-form__send:disabled {
  opacity: .65; cursor: progress;
}
.contact-form__send.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: cf-spin .8s linear infinite;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }
.contact-hint {
  margin: 0; padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 14px; line-height: 1.5;
  background: rgba(184,101,26,.08);
  color: var(--fg);
}
.contact-hint strong { color: var(--accent); }
.contact-hint--ok { background: rgba(46,160,67,.12); border-left-color: #2ea043; }
.contact-hint--ok strong { color: #2ea043; }
.contact-hint--err { background: rgba(217,45,45,.08); border-left-color: #d92d2d; }
.contact-hint--err strong { color: #d92d2d; }
.contact-form__hp {
  position: absolute !important;
  left: -10000px !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}
@media (max-width: 600px) {
  .contact-page { padding: 16px 0 32px; }
  .contact-form { padding: 18px 16px 22px; border-radius: 8px; }
  .contact-form__send { min-width: 100%; width: 100%; }
}
.contact-form__drop { cursor: pointer; }
.contact-form__pick {
  margin-top: 10px;
  padding: 8px 18px;
  border: 2px solid var(--fg);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display, inherit);
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.contact-form__pick:hover { background: var(--fg); color: var(--bg); border-color: var(--accent); }
.contact-form__drop.drag .contact-form__pick { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-page__note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--muted);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(0,0,0,.03);
}
.contact-page__note strong { color: var(--fg); }

/* ===== Visitor counter (dido-stats) ===== */
.dido-stats {
  margin: 18px 0 28px;
  padding: 16px 18px 14px;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  font-family: var(--font-display, inherit);
  color: #1a1a1a;
  box-shadow: 0 2px 0 #1a1a1a;
}
.dido-stats__head {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 15px; font-weight: 700;
  letter-spacing: .01em;
}
.dido-stats__title b { color: #b8651a; font-weight: 800; }
.dido-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #1a1a1a;
  flex: 0 0 auto;
  animation: dido-pulse 1.6s ease-in-out infinite;
}
.dido-dot--on  { background: #1fbf4a; box-shadow: 0 0 0 0 rgba(31,191,74,.55); }
.dido-dot--off { background: #d93b3b; animation: none; opacity: .85; }
.dido-dot--reg { background: #1fbf4a; box-shadow: 0 0 0 0 rgba(31,191,74,.55); animation: dido-pulse-reg 1.6s ease-in-out infinite; }
@keyframes dido-pulse-reg {
  0%   { box-shadow: 0 0 0 0 rgba(31,191,74,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(31,191,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,191,74,0); }
}
@keyframes dido-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,191,74,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(31,191,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,191,74,0); }
}
/* Мигающая плашка «Сейчас на сайте» — мягкий пульс зелёным */
.dido-bar__pair--online {
  animation: dido-pulse-bg 1.8s ease-in-out infinite;
  border-radius: 6px;
  padding: 2px 6px;
  margin: -2px -6px;
}
@keyframes dido-pulse-bg {
  0%   { background: rgba(31,191,74,0.00); }
  50%  { background: rgba(31,191,74,0.20); }
  100% { background: rgba(31,191,74,0.00); }
}
.dido-stats__grid {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.dido-stats__item {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  border: 1.5px solid #1a1a1a;
  border-radius: 8px;
  background: #fafafa;
  transition: transform .12s ease, background .12s ease;
}
.dido-stats__item:hover { background: #fff5ec; transform: translateY(-1px); }
.dido-stats__item--on  { background: #e9f9ed; }
.dido-stats__item--off { background: #fbe9e9; }
.dido-stats__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #6a6a6a;
}
.dido-stats__num {
  font-size: 22px; font-weight: 800;
  color: #1a1a1a; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.dido-stats__item--on .dido-stats__num  { color: #1f7a36; }
.dido-stats__item--off .dido-stats__num { color: #a52a2a; }

@media (max-width: 600px) {
  .dido-stats { padding: 14px 14px 12px; }
  .dido-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .dido-stats__num { font-size: 18px; }
}

/* ===== Visitor counter v3 — hero + bar ===== */

/* HERO-режим: внутри блока "Сила дидойского ковра", в стиле остальных чисел,
   без рамки, без белого фона, повторяет размер/жирность .hero__num */
.dido-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px 32px;
  margin-top: 8px;
}
.dido-hero__cell {
  display: flex; flex-direction: column;
  min-width: 0;
}
.dido-hero__num {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent, #b8651a);
  font-family: var(--font-display, inherit);
  font-variant-numeric: tabular-nums;
}
.dido-hero__cell--live .dido-hero__num { color: #1fbf4a; }
.dido-hero__num .dido-dot { width: 14px; height: 14px; }
.dido-hero__label {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}

/* BAR-режим: узкая полоска сразу под мегаменю.
   Sticky под шапкой, чтобы счётчик был виден всегда, как и меню. */
.dido-bar {
  position: sticky;
  top: 64px;            /* под .topbar (h=64 desktop) */
  z-index: 1098;        /* ниже megamenu (1099) и topbar (1100) */
  display: flex; align-items: center; gap: 8px 10px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #1a1a1a;
  color: #f4ece1;
  border-bottom: 1px solid #2a2a2a;
  font-family: var(--font-display, inherit);
  font-size: 13px;
  line-height: 1.2;
  justify-content: center;       /* центрируем строку */
}
@media (max-width: 720px) {
  .dido-bar { top: 56px; } /* topbar на мобиле ниже */
}
.dido-bar b {
  color: var(--accent, #b8651a);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dido-bar__main { font-weight: 600; }
.dido-bar__sep  { opacity: .35; }
.dido-bar__item { opacity: .95; white-space: nowrap; }
.dido-bar__group { display: inline-flex; align-items: center; gap: 6px; }
.dido-bar__pair  { display: inline-flex; align-items: center; }
.dido-bar__date { opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dido-bar .dido-dot {
  width: 10px; height: 10px;
  border-width: 0;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  /* На мобиле — все 8 полей видны, шрифт и gap уменьшаем.
     flex-wrap позволит перенести лишнее на вторую строку. */
  .dido-bar { font-size: 11.5px; padding: 7px 8px; gap: 5px 7px; }
}
@media (max-width: 460px) {
  /* На совсем узких — одна строка, без LIVE-меток и аватарок,
     чтобы полоска не разваливалась на 3-4 строки и всегда была видна. */
  .dido-bar { font-size: 12px; padding: 8px 10px; gap: 6px 8px; flex-wrap: nowrap; overflow-x: auto; }
  .dido-bar__pair--registered [data-click] { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
  .dido-bar .dido-live { display: none; }      /* «● live» — только на десктопе */
}
@media (max-width: 360px) {
  .dido-bar { font-size: 11px; padding: 6px 8px; gap: 4px 6px; }
  .dido-bar__sep { display: none; }
}

/* dot — общий стиль, перекрывает старую версию */
.dido-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor;
  flex: 0 0 auto;
  animation: dido-pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
.dido-dot--on  { background: #1fbf4a; border-color: #1fbf4a; box-shadow: 0 0 0 0 rgba(31,191,74,.55); color: transparent; }
.dido-dot--off { background: #d93b3b; border-color: #d93b3b; animation: none; opacity: .85; color: transparent; }
@keyframes dido-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,191,74,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(31,191,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,191,74,0); }
}

/* ===== Skeleton loaders для latest-grid ===== */
@keyframes skel-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Dido-bar live-индикатор и подсветка при изменении числа */
.dido-live {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #1fbf4a;
  text-transform: uppercase;
  animation: dido-blink 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes dido-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.dido-bar__item b.is-bump {
  animation: dido-num-bump .8s ease-out;
}
@keyframes dido-num-bump {
  0%   { color: inherit; background: transparent; }
  20%  { background: #fff3a8; color: #6b4a00; border-radius: 4px; padding: 0 4px; transform: translateY(-1px); }
  100% { background: transparent; color: inherit; transform: translateY(0); }
}
.latest-card--skeleton {
  pointer-events: none;
  border-color: rgba(0,0,0,.05);
}
.skel, .skel-line {
  background-color: #ece6dc;
  background-image: linear-gradient(90deg, #ece6dc 0, #f6f1e7 50%, #ece6dc 100%);
  background-size: 400px 100%;
  background-repeat: no-repeat;
  animation: skel-shimmer 1.4s linear infinite;
}
.skel { width: 100%; aspect-ratio: 4/5; border-radius: 8px; }
.skel-line { height: 12px; border-radius: 6px; margin: 8px 12px; }
.skel-line--l { width: 70%; }
.skel-line--m { width: 90%; }
.skel-line--s { width: 40%; }

/* Авто-fallback sticky-бар поверх шапки, когда страница без data-dido-stats */
.dido-auto-bar {
  position: sticky;
  top: 0;
  z-index: 65;
  background: #1a1a1a;
  color: #f4ece1;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 13px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #b8651a;
  flex-wrap: wrap;
}
.dido-auto-bar .dido-bar__main { font-weight: 600; }
.dido-auto-bar.is-loaded { box-shadow: 0 2px 0 #b8651a inset; }
@media (max-width: 600px) {
  .dido-auto-bar { font-size: 12px; padding: 8px 12px; gap: 8px; }
}

/* Живые ячейки в hero__stats: встроены в существующий dl */
.dido-live-cell { display: contents; }
.hero__stats .dido-hero__cell { display: flex; flex-direction: column; }
.hero__stats .dido-hero__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  color: #e6a85a;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.hero__stats .dido-hero__label {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(243,236,222,0.72);
  letter-spacing: 0.02em;
}
.hero__stats .dido-hero__cell--live .dido-hero__num {
  color: #1fbf4a;
  text-shadow: 0 0 16px rgba(31,191,74,0.25);
}

/* ===== about page ===== */
.about-owner {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 28px;
  align-items: start;
  background: #0d0d0d;
  border: 1.5px solid #b8651a;
  border-radius: 16px;
  color: #f4ece1;
}
.about-owner__photo {
  width: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  border: 2px solid #b8651a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  gap: 10px;
}
.about-owner__photo img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #fafafa;
}
.about-owner__info {
  color: #f4ece1;
  font-family: system-ui, -apple-system, "Segoe UI", Inter, Arial, sans-serif;
}
.about-owner__cap {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}
.about-owner__name {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.18;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.about-owner__name b.about-owner__name-accent {
  color: #e63946;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(230, 57, 70, 0.45);
}
.about-owner__contact {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
  color: #f4ece1;
  text-transform: uppercase;
}
.about-owner__contact b {
  color: #e6a85a;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.about-owner__contact a { color: inherit; text-decoration: none; }

.about-carousel {
  position: relative;
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 60px;
}
.about-carousel__title {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(29,24,20,0.55);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.about-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b8651a #1a1a1a;
}
.about-carousel__track::-webkit-scrollbar { height: 8px; }
.about-carousel__track::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 4px; }
.about-carousel__track::-webkit-scrollbar-thumb { background: #b8651a; border-radius: 4px; }
.about-carousel__item {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(184,101,26,0.4);
}
.about-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15,15,15,0.85);
  color: #f4ece1;
  border: 1.5px solid #b8651a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-carousel__nav:hover { background: #b8651a; color: #1a1a1a; }
.about-carousel__nav--prev { left: 8px; }
.about-carousel__nav--next { right: 8px; }

.about-section {
  max-width: 880px;
  margin: 32px auto 36px;
  padding: 32px 28px 28px;
  color: var(--fg);
  background: #fff7e8;
  border: 1px solid rgba(184,101,26,0.35);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.about-section__h {
  text-align: center;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b8651a;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.about-section__lead {
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(29,24,20,0.78);
  max-width: 700px;
  margin: 0 auto 24px;
}
.about-section__h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8a4810;
  text-transform: uppercase;
  margin: 22px 0 10px;
  border-left: 3px solid #b8651a;
  padding-left: 12px;
}
.about-section__p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: var(--fg);
}
.about-section__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.about-section__list li {
  position: relative;
  padding: 10px 14px 10px 36px;
  margin-bottom: 8px;
  background: rgba(184,101,26,0.12);
  border-left: 3px solid #b8651a;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}
.about-section__list li::before {
  content: "◆";
  position: absolute;
  left: 14px;
  top: 11px;
  color: #b8651a;
  font-size: 13px;
}
.about-section__cta {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 32px;
  background: #b8651a;
  color: #1a1a1a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}
.about-section__cta:hover { background: #d4831f; transform: translateY(-2px); }

@media (max-width: 720px) {
  .about-owner { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .about-owner__photo { max-width: 360px; margin: 0 auto; }
  .about-owner__photo img { max-height: 560px; }
  .about-carousel { padding: 0 38px; }
  .about-carousel__item { flex-basis: calc((100% - 16px) / 2); }
  .about-carousel__nav { width: 36px; height: 36px; font-size: 18px; }
  .about-section { padding: 24px 16px 8px; }
}
@media (max-width: 480px) {
  .about-carousel__item { flex-basis: 82%; }
}

/* =========== SEARCH BUTTON + FORM IN TOPBAR =========== */
.topbar__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-left: auto;        /* прижать к правому краю, рядом с hamburger */
  padding: 0;
  background: transparent;
  color: #f4ece1;
  border: 1px solid rgba(244, 236, 225, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.topbar__search-btn:hover {
  background: rgba(244, 236, 225, 0.08);
  border-color: rgba(244, 236, 225, 0.35);
  transform: scale(1.04);
}
.topbar__search-btn[aria-expanded="true"] {
  background: rgba(184, 101, 26, 0.18);
  border-color: var(--accent, #b8651a);
  color: #f4ece1;
}

.topbar__search {
  display: none;             /* по умолчанию скрыта */
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1 1 220px;
  max-width: 360px;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.topbar__search.is-open {
  display: inline-flex;
}
.topbar__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #1d1814;
  padding: 6px 4px;
}
.topbar__search-input::placeholder {
  color: rgba(29, 24, 20, 0.55);
}
.topbar__search-input::-webkit-search-cancel-button { display: none; }
.topbar__search-submit,
.topbar__search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1d1814;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.topbar__search-submit { color: var(--accent, #b8651a); }
.topbar__search-submit:hover { background: rgba(184, 101, 26, 0.12); }
.topbar__search-close { color: rgba(29, 24, 20, 0.55); }
.topbar__search-close:hover { background: rgba(0, 0, 0, 0.06); color: #1d1814; }

@media (max-width: 720px) {
  .topbar__search { padding: 3px 4px 3px 12px; max-width: none; }
  .topbar__search-input { font-size: 13px; padding: 5px 2px; }
  .topbar__search-btn {
    width: 38px; height: 38px;
    color: #1d1814;
    background: rgba(184, 101, 26, 0.16);
    border: 1.5px solid var(--accent, #b8651a);
  }
  .topbar__search-btn svg { width: 19px; height: 19px; }
}
@media (max-width: 560px) {
  /* Лупа — сразу после логотипа, перед МЕНЮ (DOM-порядок сохраняется) */
  .topbar__search-btn {
    margin-left: 0;
    width: 40px; height: 40px;
    background: var(--accent, #b8651a);
    border: none;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(184, 101, 26, 0.35);
  }
  .topbar__search-btn svg { width: 20px; height: 20px; stroke: #ffffff; }
  .topbar__search-btn:hover { background: #a35a16; }
  .topbar__search {
    position: absolute;
    left: 8px; right: 60px; top: 6px;
    max-width: none;
    width: auto;
    z-index: 1110;
  }
  .topbar__search-btn[aria-expanded="true"] {
    background: #ffffff;
    color: var(--accent, #b8651a);
  }
  .topbar__search-btn[aria-expanded="true"] svg { stroke: var(--accent, #b8651a); }
}

/* =========== SEARCH RESULTS GRID ON HOMEPAGE =========== */
.dido-search-banner {
  margin: 16px auto 8px;
  padding: 12px 18px;
  max-width: 1280px;
  background: #1a1a1a;
  color: #f4ece1;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dido-search-banner strong { color: var(--accent, #b8651a); font-weight: 800; }
.dido-search-banner__close {
  background: transparent;
  border: 1px solid rgba(244, 236, 225, 0.3);
  color: #f4ece1;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.dido-search-banner__close:hover { background: rgba(244, 236, 225, 0.08); }

/* ===== AUTH (login / register / forgot) ===== */
.auth-wrap {
  max-width: 460px;
  margin: 36px auto 80px;
  padding: 0 16px;
  font-family: var(--font-body, system-ui, sans-serif);
  color: #1d1814;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 2px solid rgba(184, 101, 26, 0.25);
}
.auth-tab {
  flex: 1;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
  color: #6b5a48;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s, background .15s;
}
.auth-tab.is-active {
  color: #1a1a1a;
  border-bottom-color: #b8651a;
  background: rgba(184, 101, 26, 0.06);
}
.auth-tab:hover {
  color: #1a1a1a;
  border-bottom-color: #b8651a;
}
.auth-card {
  background: #fff;
  padding: 30px 28px 28px;
  border: 2px solid #1a1a1a;
  border-radius: 14px;
  box-shadow: 6px 6px 0 rgba(184, 101, 26, 0.18);
}
.auth-h {
  margin: 0 0 8px;
  font-family: var(--font-display, serif);
  font-size: 26px;
  color: #1a1a1a;
}
.auth-lead {
  color: #4a3f33;
  line-height: 1.5;
  margin: 0 0 18px;
  font-size: 14px;
}
.providers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  background: #fff;
  border: 2px solid #d8cfc0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  font-family: inherit;
}
.provider-btn:hover {
  border-color: #1a1a1a;
  box-shadow: 0 2px 0 rgba(184, 101, 26, 0.25);
  transform: translateY(-1px);
}
.provider-btn:focus-visible {
  outline: 3px solid rgba(184, 101, 26, 0.4);
  outline-offset: 2px;
}
.provider-icon { flex: none; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
  color: #8a7866;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(184, 101, 26, 0.25);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
}
.auth-row__label {
  font-weight: 800;
  font-size: 13px;
  color: #1a1a1a;
  text-align: right;
}
.auth-row__input {
  padding: 11px 14px;
  border: 2px solid #d4c7b3;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  color: #1d1814;
}
.auth-row__input:focus {
  outline: none;
  border-color: #b8651a;
  box-shadow: 0 0 0 3px rgba(184, 101, 26, 0.18);
}
.auth-row__input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #c95b3a;
}
.auth-row__field {
  position: relative;
  display: block;
}
.auth-row__field .auth-row__input {
  padding-right: 44px;
}
.auth-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #8a7866;
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.auth-eye:hover {
  color: #1a1a1a;
  background: rgba(184, 101, 26, 0.10);
}
.auth-eye[aria-pressed="true"] {
  color: #b8651a;
  background: rgba(184, 101, 26, 0.12);
}
.auth-submit {
  margin-top: 4px;
  padding: 13px 18px;
  background: #b8651a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  font-family: inherit;
}
.auth-submit:hover {
  background: #a05712;
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.18);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.auth-msg {
  margin: 4px 0 0;
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.auth-msg[data-state="ok"] { color: #1f7a3a; }
.auth-msg[data-state="error"] { color: #c44a2c; }
.auth-msg[data-state="info"] { color: #6b4a1d; }
.auth-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #fff4dc;
  border: 1px solid #f0d28c;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b4a1d;
  text-align: left;
}
.auth-hint b { color: #a86b00; }
.auth-foot {
  text-align: center;
  margin: 18px 0 0;
  color: #555;
  font-size: 14px;
}
.auth-foot a {
  color: #b8651a;
  font-weight: 700;
  text-decoration: none;
}
.auth-foot a:hover { text-decoration: underline; }
.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 1200;
  max-width: 90vw;
  text-align: center;
  line-height: 1.4;
}
.auth-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.auth-toast--ok { background: #1f7a3a; }
.auth-toast--err { background: #c44a2c; }

@media (max-width: 560px) {
  .auth-card { padding: 22px 18px; }
  .auth-wrap { margin: 18px auto 50px; }
  .auth-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .auth-row__label {
    text-align: left;
  }
  .providers {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== COMMENTS — зарегистрированный пользователь ===== */
.comments__name--readonly {
  background: rgba(184, 101, 26, 0.06);
  color: #6b4a1d;
  font-weight: 800;
  cursor: default;
  border-color: rgba(184, 101, 26, 0.3);
}
.comments__form-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ===== USER CHIP в topbar ===== */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(244, 236, 225, 0.08);
  border: 1.5px solid rgba(244, 236, 225, 0.18);
  border-radius: 999px;
  color: #f4ece1;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.user-chip:hover {
  background: rgba(244, 236, 225, 0.16);
  border-color: rgba(244, 236, 225, 0.32);
}
.user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #b8651a;
}
.user-chip__name {
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip__caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  opacity: 0.7;
}
.user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #1a1a1a;
  border: 1.5px solid rgba(244, 236, 225, 0.18);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 1100;
}
.user-menu.is-open { display: block; }
.user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #f4ece1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.user-menu__item:hover {
  background: rgba(184, 101, 26, 0.22);
  color: #fff;
}
.user-menu__sep {
  height: 1px;
  background: rgba(244, 236, 225, 0.15);
  margin: 4px 0;
}
.user-menu__icon { flex: none; }
.user-chip-wrap { position: relative; }
@media (max-width: 720px) {
  .user-chip__name { display: none; }
  .user-chip { padding: 2px; }
}

/* ===== USER AVATARS в dido-bar ===== */
.dido-bar__avatars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dido-bar__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #1a1a1a;
  flex: none;
  background: #b8651a;
}
.dido-bar__avatar--more {
  background: rgba(244, 236, 225, 0.18);
  color: #f4ece1;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  border: 1.5px solid rgba(244, 236, 225, 0.25);
}
@media (max-width: 720px) {
  .dido-bar__avatar { width: 18px; height: 18px; border-width: 1px; }
}

/* ===== Account page (выбор аватара) ===== */
.account-wrap {
  max-width: 520px;
  margin: 36px auto 80px;
  padding: 0 16px;
  color: #1d1814;
  font-family: var(--font-body, system-ui, sans-serif);
}
.account-card {
  background: #fff;
  padding: 28px 26px;
  border: 2px solid #1a1a1a;
  border-radius: 14px;
  box-shadow: 6px 6px 0 rgba(184, 101, 26, 0.18);
}
.account-h {
  margin: 0 0 6px;
  font-family: var(--font-display, serif);
  font-size: 26px;
}
.account-lead {
  margin: 0 0 18px;
  color: #4a3f33;
  font-size: 14px;
  line-height: 1.5;
}
.account-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(184, 101, 26, 0.08);
  border: 1.5px solid rgba(184, 101, 26, 0.25);
  border-radius: 12px;
  margin-bottom: 18px;
}
.account-current__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #b8651a;
  flex: none;
}
.account-current__info { flex: 1; min-width: 0; }
.account-current__name {
  font-weight: 800;
  font-size: 16px;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-current__email {
  font-size: 13px;
  color: #6b5a48;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-h2 {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.avatar-pick {
  aspect-ratio: 1 / 1;
  border: 2px solid #d8cfc0;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  padding: 6px;
  transition: border-color .15s, transform .1s;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.avatar-pick__label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-weight: 800;
  font-size: 18px;
  color: #b8651a;
  background: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  z-index: 2;
}
.avatar-pick__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.avatar-pick:hover {
  border-color: #1a1a1a;
  transform: translateY(-1px);
}
.avatar-pick.is-selected {
  border-color: #b8651a;
  box-shadow: 0 0 0 3px rgba(184, 101, 26, 0.2);
}
.avatar-pick.is-selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: #b8651a;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.account-upload {
  border: 2px dashed rgba(184, 101, 26, 0.4);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: rgba(184, 101, 26, 0.04);
  cursor: pointer;
  margin-bottom: 18px;
  transition: background .15s, border-color .15s;
}
.account-upload:hover {
  background: rgba(184, 101, 26, 0.08);
  border-color: #b8651a;
}
.account-upload input { display: none; }
.account-upload__label {
  font-weight: 800;
  color: #b8651a;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.account-upload__hint {
  color: #6b5a48;
  font-size: 12px;
}
.account-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.account-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #1a1a1a;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .1s;
}
.account-btn--primary {
  background: #b8651a;
  color: #fff;
}
.account-btn--primary:hover { background: #a05712; transform: translateY(-1px); }
.account-btn--ghost {
  background: #fff;
  color: #1a1a1a;
}
.account-btn--ghost:hover {
  background: #f3ecde;
  transform: translateY(-1px);
}
.account-btn--danger {
  display: inline-block;
  background: #fff;
  color: #b03030;
  border: 1px solid #b03030;
  margin: 8px 0 0;
}
.account-btn--danger:hover {
  background: #b03030;
  color: #fff;
}
.account-btn[disabled], .account-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.4);
}

/* Readonly inputs */
.account-fields-row input[readonly],
.account-fields-row textarea[readonly],
.account-fields-row select[disabled],
input.account-field[readonly],
textarea.account-field[readonly],
select.account-field[disabled] {
  background: #faf7f0;
  color: #6e604c;
  border-color: #e7dfca;
  cursor: default;
}

/* Галерея */

.gallery-empty {
  padding: 24px;
  background: #fffaf0;
  border: 2px dashed #e7d8b3;
  border-radius: 10px;
  text-align: center;
  color: #6b4a1d;
  font-size: 14px;
}

.gallery-item:hover { transform: scale(1.02); }

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


.gallery-item:hover 




@media (max-width: 560px) {
  
  
}
.account-hint {
  margin: 12px 0;
  padding: 10px 12px;
  background: #fff4dc;
  border: 1px solid #f0d28c;
  border-radius: 8px;
  font-size: 13px;
  color: #6b4a1d;
}
.account-hint b { color: #a86b00; }
.account-current__avatar.is-custom {
  border: 2px solid #b8651a;
  box-shadow: 0 0 0 3px rgba(184,101,26,0.18);
}
.account-msg {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  min-height: 20px;
}
.account-msg[data-state="ok"] { color: #1f7a3a; }
.account-msg[data-state="error"] { color: #c44a2c; }
.account-msg[data-state="info"] { color: #6b4a1d; }

/* ===== TOPBAR SEARCH BUTTON — скрыть на мобиле, перенесён в dido-bar ===== */
@media (max-width: 720px) {
  .topbar__search-btn { display: none; }
}

/* ===== DIDO-BAR — кнопка поиска внутри bar ===== */
.dido-bar__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(184, 101, 26, 0.15);
  border: 1.5px solid rgba(184, 101, 26, 0.45);
  border-radius: 50%;
  color: #f4ece1;
  cursor: pointer;
  margin-left: 4px;
  flex: none;
  transition: background .15s, transform .1s;
  text-decoration: none;
}
.dido-bar__search-btn:hover {
  background: rgba(184, 101, 26, 0.32);
  transform: scale(1.05);
}
.dido-bar__search-btn:focus-visible {
  outline: 2px solid rgba(184, 101, 26, 0.6);
  outline-offset: 2px;
}
.dido-bar__search-btn svg { display: block; }

/* ===== DIDO-BAR — inline search panel ===== */
.dido-bar__inner {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  transition: opacity .15s;
}
.dido-bar.is-searching .dido-bar__inner { display: none; }
.dido-bar__search-panel {
  display: none;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  gap: 6px;
  padding: 2px 4px;
}
.dido-bar.is-searching .dido-bar__search-panel { display: inline-flex; }
.dido-bar__search-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1.5px solid rgba(244, 236, 225, 0.35);
  border-radius: 50%;
  color: #f4ece1;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.dido-bar__search-close:hover {
  background: rgba(244, 236, 225, 0.12);
  border-color: rgba(244, 236, 225, 0.6);
  transform: scale(1.05);
}
.dido-bar__search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(244, 236, 225, 0.25);
  border-radius: 18px;
  color: #f4ece1;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.dido-bar__search-input::placeholder { color: rgba(244, 236, 225, 0.55); }
.dido-bar__search-input:focus {
  border-color: rgba(184, 101, 26, 0.85);
  background: rgba(0, 0, 0, 0.5);
}
.dido-bar__search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  background: var(--accent, #b8651a);
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.dido-bar__search-submit:hover {
  background: #cd7823;
  transform: scale(1.05);
}
@media (max-width: 720px) {
  .dido-bar__search-panel { max-width: 100%; gap: 4px; }
  .dido-bar__search-input { font-size: 12px; padding: 5px 12px; }
  .dido-bar__search-close { width: 26px; height: 26px; }
  .dido-bar__search-submit { width: 28px; height: 26px; }
  .dido-bar__search-btn { width: 26px; height: 26px; margin-left: 4px; }
}
@media (max-width: 460px) {
  .dido-bar__search-input { font-size: 11px; padding: 4px 10px; }
}

/* ---------- account.html ---------- */
.account-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.account-wrap > .account-card + .account-card { margin-top: 18px; }
.account-card {
  background: #fff7e8;
  border: 1px solid rgba(184, 101, 26, 0.25);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}
.account-h {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  color: #1d1814;
  margin: 0 0 10px;
}
.account-lead {
  color: rgba(29, 24, 20, 0.7);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.account-current {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(184, 101, 26, 0.18);
  border-radius: 14px;
  margin-bottom: 28px;
}
.account-current__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #b8651a;
  background: #f4ece1;
  object-fit: cover;
  flex-shrink: 0;
}
.account-current__avatar.is-custom { border-style: dashed; }
.account-current__info { min-width: 0; flex: 1; }
.account-current__name {
  font-weight: 800;
  font-size: 18px;
  color: #1d1814;
  margin-bottom: 4px;
}
.account-current__email {
  font-size: 13px;
  color: rgba(29, 24, 20, 0.6);
  word-break: break-all;
}
.account-h2 {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: #b8651a;
  margin: 24px 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.avatar-pick {
  padding: 4px;
  background: #fff;
  border: 2px solid rgba(184, 101, 26, 0.2);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, transform .12s;
  position: relative;
}
.avatar-pick:hover { border-color: rgba(184, 101, 26, 0.6); transform: translateY(-2px); }
.avatar-pick.is-active {
  border-color: #b8651a;
  background: rgba(184, 101, 26, 0.08);
  box-shadow: 0 0 0 3px rgba(184, 101, 26, 0.2);
}
.avatar-pick img {
  width: 100%;
  aspect-ratio: 1/1;
  display: block;
  border-radius: 10px;
}
.account-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #fff;
  border: 2px dashed rgba(184, 101, 26, 0.4);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.account-upload:hover { border-color: #b8651a; background: rgba(184, 101, 26, 0.04); }
.account-upload input { display: none; }
.account-upload__label {
  font-weight: 700;
  color: #b8651a;
  font-size: 15px;
  margin-bottom: 4px;
}
.account-upload__hint {
  font-size: 12px;
  color: rgba(29, 24, 20, 0.55);
}
.account-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.account-btn {
  flex: 1;
  min-width: 140px;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .1s, background .15s;
  border: 2px solid transparent;
}
.account-btn:active { transform: translateY(1px); }
.account-btn--primary {
  background: #b8651a;
  color: #fff;
}
.account-btn--primary:hover { background: #d4831f; }
.account-btn--ghost {
  background: transparent;
  border-color: rgba(184, 101, 26, 0.45);
  color: #b8651a;
}
.account-btn--ghost:hover { background: rgba(184, 101, 26, 0.08); }
.account-msg {
  margin: 16px 0 0;
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(29, 24, 20, 0.6);
}
.account-msg--ok { color: #1fbf4a; }
.account-msg--error { color: #e63946; }
.account-msg--loading { color: #b8651a; }

@media (max-width: 560px) {
  .account-wrap { padding: 20px 12px 60px; }
  .account-card { padding: 20px 14px; border-radius: 14px; }
  .account-wrap > .account-card + .account-card { margin-top: 12px; }
  .account-h { font-size: 22px; margin-bottom: 6px; }
  .account-lead { font-size: 13px; margin-bottom: 14px; }
  .account-current { gap: 12px; padding: 12px; margin-bottom: 14px; }
  .account-current__avatar { width: 56px; height: 56px; }
  .account-current__name { font-size: 15px; }
  .account-current__email { font-size: 12px; }
  .account-h2 { font-size: 14px; margin: 16px 0 8px; letter-spacing: 0.04em; }
  .avatar-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .avatar-pick { border-radius: 10px; }
  .avatar-pick img { border-radius: 8px; }
  .account-upload { padding: 16px 12px; }
  .account-upload__label { font-size: 14px; }
  .account-actions { flex-direction: column; gap: 8px; margin-top: 14px; }
  .account-btn { width: 100%; padding: 12px 14px; font-size: 13px; }
  .account-field { margin: 8px 0 4px; }
  .account-field > input, .account-field > select, .account-field > textarea { padding: 10px 12px; font-size: 14px; }
  .account-fields-row { gap: 8px; margin: 8px 0 6px; }
}

/* ---------- user-chip in topbar ---------- */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 10px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(184, 101, 26, 0.55);
  border-radius: 999px;
  text-decoration: none;
  color: #1d1814;
  font-weight: 700;
  font-size: 13px;
  transition: background .15s, transform .1s;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
}
.user-chip:hover { background: #fff; transform: translateY(-1px); }
.user-chip__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #b8651a;
  background: #f4ece1;
  object-fit: cover;
  flex-shrink: 0;
}
.user-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .user-chip { margin-right: 6px; padding: 3px 10px 3px 3px; }
  .user-chip__avatar { width: 26px; height: 26px; }
  .user-chip__name { display: none; }
  .user-chip { max-width: 36px; padding: 3px; }
}

/* ---------- dido-bar avatars + search button ---------- */
.dido-bar__avatars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.dido-bar__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(244, 236, 225, 0.7);
  background: #f4ece1;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(31, 191, 74, 0.5);
}
.dido-bar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dido-bar__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 236, 225, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #f4ece1;
  cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.dido-bar__search-btn:hover {
  background: rgba(184, 101, 26, 0.45);
  transform: scale(1.06);
}
.dido-bar__search-btn:focus-visible {
  outline: 2px solid #b8651a;
  outline-offset: 2px;
}
.dido-bar__search-btn svg { display: block; }
@media (max-width: 460px) {
  .dido-bar__avatars { display: none; }
}

.dido-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(184, 101, 26, 0.06);
  border: 1px dashed rgba(184, 101, 26, 0.3);
  border-radius: 16px;
  margin: 20px 0;
}
.dido-no-results p {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1d1814;
}
.dido-no-results__hint {
  font-size: 14px;
  font-weight: 400;
  color: rgba(29, 24, 20, 0.6);
}

/* ============= LIVE BANNER ============= */
.live-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px 0 20px;
  background: linear-gradient(90deg, #d92020 0%, #b01515 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(217, 32, 32, 0.35), 0 1px 0 rgba(0, 0, 0, 0.15);
  animation: live-banner-pulse 1.6s ease-in-out infinite;
}
.live-banner[hidden] { display: none !important; }

@keyframes live-banner-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(217, 32, 32, 0.35), 0 1px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(90deg, #d92020 0%, #b01515 100%);
  }
  50% {
    box-shadow: 0 6px 28px rgba(255, 60, 60, 0.85), 0 0 0 2px rgba(255, 90, 90, 0.55), 0 1px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(90deg, #ff3030 0%, #d61818 100%);
  }
}
@keyframes live-banner-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.25; transform: scale(0.7); }
  55% { opacity: 0.25; transform: scale(0.7); }
}
.live-banner__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 80, 80, 0.7);
  animation: live-banner-dot 0.9s ease-in-out infinite;
  flex-shrink: 0;
}
.live-banner__label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  flex-shrink: 0;
}
.live-banner__title {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
  transition: opacity 0.15s;
}
.live-banner__title:hover { opacity: 0.85; text-decoration: underline; }
.live-banner__views {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  flex-shrink: 0;
}
.live-banner__views:empty { display: none; }
.live-banner__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-banner__close:hover { background: rgba(0, 0, 0, 0.45); }

/* When banner is visible, push topbar down */
body.has-live-banner .topbar { top: 44px; }
body.has-live-banner .dido-bar { top: calc(44px + 64px); }
body.has-live-banner .megamenu { top: calc(44px + 64px); }

@media (max-width: 720px) {
  .live-banner { height: 40px; padding: 0 12px 0 14px; gap: 8px; font-size: 12.5px; }
  .live-banner__label { font-size: 10.5px; padding: 2px 7px; }
  .live-banner__title { font-size: 12.5px; max-width: 56vw; }
  .live-banner__close { right: 8px; width: 24px; height: 24px; }
  body.has-live-banner .topbar { top: 40px; }
  body.has-live-banner .dido-bar { top: calc(40px + 56px); }
  body.has-live-banner .megamenu { top: calc(40px + 56px); }
}

/* === Live broadcast card in Личный кабинет === */
.account-card--live {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255, 60, 60, 0.06), transparent);
  border: 1px solid rgba(220, 60, 60, 0.18);
}
.account-field {
  display: block;
  margin: 12px 0 6px;
}
.account-field > span {
  display: block;
  font-size: 12px;
  color: #6b5a45;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-field > input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e0d3bf;
  background: #fffaf2;
  font-size: 14px;
  color: #2c1f12;
  outline: none;
  transition: border-color .15s;
}
.account-field > input:focus {
  border-color: #d24c4c;
  background: #fff;
}

/* password toggle (глазик) для account.html */
.account-field > .pw-wrap {
  position: relative;
  display: block;
}
.account-field > .pw-wrap > input {
  padding-right: 44px;
}
.account-field > .pw-wrap > .pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #8a7866;
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s, background .15s;
  padding: 0;
}
.account-field > .pw-wrap > .pw-eye:hover {
  color: #d24c4c;
  background: rgba(210, 76, 76, 0.10);
}
.account-field > .pw-wrap > .pw-eye[aria-pressed="true"] {
  color: #d24c4c;
  background: rgba(210, 76, 76, 0.12);
}

/* ============================================================
   LIVE PAGE (/live.html) — Instagram Live embed
   ============================================================ */
.live-page {
  max-width: 980px;
  margin: 24px auto 80px;
  padding: 0 16px;
  color: var(--ink, #1a1a1a);
}
.live-page__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.live-page__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0203a;
  box-shadow: 0 0 0 6px rgba(224, 32, 58, 0.25);
  animation: live-banner-dot 0.9s ease-in-out infinite;
}
.live-page__label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e0203a;
  text-transform: uppercase;
}
.live-page__title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 900;
}
.live-page__sub {
  margin: 0 0 22px;
  font-size: 16px;
  opacity: 0.7;
}
.live-page__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  margin-top: 20px;
}
.live-page__player iframe,
.live-page__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.live-page__state {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.live-page__state.live-state-on {
  background: linear-gradient(90deg, #ff2e2e, #b70000);
  animation: live-state-pulse 1.2s ease-in-out infinite;
}
@keyframes live-state-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 46, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(255, 46, 46, 0); }
}
.live-page__placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: linear-gradient(180deg, #14141a 0%, #0a0a0a 100%);
  color: #fff;
  gap: 12px;
  border-radius: 16px;
  margin-top: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.live-page__placeholder-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0203a;
  box-shadow: 0 0 0 10px rgba(224, 32, 58, 0.25);
  animation: live-banner-dot 0.9s ease-in-out infinite;
}
.live-page__placeholder-h {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
}
.live-page__placeholder-p {
  margin: 0;
  max-width: 460px;
  opacity: 0.7;
  font-size: 15px;
  line-height: 1.5;
}
.live-page__placeholder-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #ff3041 0%, #e0203a 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(224, 32, 58, 0.4);
}
.live-page__placeholder-btn:hover { transform: translateY(-1px); }
.live-page__info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.live-page__info p { margin: 0; opacity: 0.75; }
.live-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #ff3041 0%, #e0203a 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  max-width: 320px;
  box-shadow: 0 6px 18px rgba(224, 32, 58, 0.3);
}
.live-page__btn:hover { transform: translateY(-1px); }
.live-page__btn--ghost {
  background: transparent;
  color: var(--ink, #1a1a1a);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: none;
  max-width: 320px;
}
@media (max-width: 720px) {
  .live-page { margin-top: 16px; padding: 0 12px; }
  .live-page__player { aspect-ratio: 9 / 14; max-height: 70vh; }
  .live-page__info { font-size: 14px; }
}

/* === Live broadcast: friend-instruction block === */
.account-live-info {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.04), rgba(40, 40, 40, 0.02));
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}
.account-h3 {
  margin: 0 0 8px;
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #2c1f12;
  letter-spacing: 0.02em;
}
.account-live-info__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.account-live-info__label {
  flex: 0 0 90px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b5a45;
  font-weight: 700;
}
.account-live-info__code {
  flex: 1 1 auto;
  min-width: 160px;
  padding: 8px 10px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}
.account-btn--small {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.account-btn--block {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}
.account-live-info__msg {
  margin-top: 12px;
  font-size: 12px;
  color: #6b5a45;
}
.account-live-info__msg summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
}
.account-live-info__msg pre {
  background: #fffaf2;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e0d3bf;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}
@media (max-width: 720px) {
  .account-live-info__label { flex-basis: 100%; }
  .account-live-info__code { font-size: 12px; }
}

/* Live status pill (header within Live card) */
.account-live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.12);
  border: 2px solid rgba(220, 38, 38, 0.55);
  border-radius: 12px;
  margin-bottom: 16px;
}
.account-live-status.is-on {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.06));
  border-color: rgba(34, 197, 94, 0.6);
}
.account-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  flex: 0 0 12px;
}
.account-live-dot.is-on {
  background: #22c55e;
  animation: live-dot-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
}
@keyframes live-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); transform: scale(1.2); }
}
.account-live-status__text {
  font-size: 16px;
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: 0.01em;
}
.account-live-status.is-on .account-live-status__text {
  color: #15803d;
}

/* Live archive list */
.account-live-archive {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.account-live-archive__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.account-live-archive__item.is-published {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}
.account-live-archive__meta {
  flex: 1;
  min-width: 0;
}
.account-live-archive__title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-live-archive__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.account-live-archive__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.account-btn--small {
  padding: 6px 12px;
  font-size: 13px;
}
.account-btn--small:disabled {
  opacity: 0.6;
  cursor: default;
}
@media (max-width: 720px) {
  .account-live-archive__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-live-archive__actions {
    width: 100%;
  }
  .account-live-archive__actions .account-btn--small {
    flex: 1;
  }
}

/* === Live Streamer page === */
.streamer-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}
.streamer-page__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.streamer-page__label {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #b6bcd0;
  text-transform: uppercase;
}
.streamer-page__status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #2a2f42;
  color: #aab2c5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.streamer-page__status.is-live {
  background: #e23b3b;
  color: #fff;
  animation: streamer-status-pulse 1.4s ease-in-out infinite;
}
@keyframes streamer-status-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(226,59,59,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 10px rgba(226,59,59,0); }
}
.streamer-page__title {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 8px;
  color: #fff;
  line-height: 1.2;
}
.streamer-page__sub {
  font-size: 16px;
  line-height: 1.5;
  color: #b6bcd0;
  margin: 0 0 24px;
}
.streamer-page__device {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 2px solid #2a2f42;
}
.streamer-page__device video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.streamer-page__device-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  padding: 20px;
}
.streamer-page__device-overlay[hidden] { display: none !important; }
.streamer-page__device-overlay p {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
.streamer-page__hint {
  font-size: 13px !important;
  color: #aab2c5 !important;
}
.streamer-page__control {
  margin-top: 24px;
  padding: 20px;
  background: #1a1d2e;
  border-radius: 14px;
  border: 1px solid #2a2f42;
}
.streamer-page__label-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.streamer-page__label-row > span {
  font-size: 13px;
  color: #b6bcd0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.streamer-page__label-row input {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2f42;
  background: #0f111a;
  color: #fff;
}
.streamer-page__label-row input:focus {
  outline: 2px solid #3b6cff;
  outline-offset: -2px;
}
.streamer-page__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.streamer-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.streamer-page__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.streamer-page__btn--primary {
  background: linear-gradient(135deg, #e23b3b, #c91c1c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(226,59,59,0.35);
}
.streamer-page__btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(226,59,59,0.5);
}
.streamer-page__btn--stop {
  background: #2a2f42;
  color: #fff;
}
.streamer-page__btn--stop:hover:not(:disabled) {
  background: #383e55;
}
.streamer-page__btn--ghost {
  background: transparent;
  color: #b6bcd0;
  border: 1px solid #2a2f42;
}
.streamer-page__btn--ghost:hover {
  background: #1a1d2e;
  color: #fff;
}
.streamer-page__msg {
  font-size: 14px;
  color: #aab2c5;
  margin: 0 0 8px;
  min-height: 18px;
}
.streamer-page__msg.is-error { color: #ff7777; }
.streamer-page__msg.is-success { color: #5cffaa; }
.streamer-page__meta {
  font-size: 13px;
  color: #6b7385;
  margin: 0;
}
.streamer-page__info {
  margin-top: 24px;
  padding: 18px;
  background: #1a1d2e;
  border-radius: 14px;
  border: 1px solid #2a2f42;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.streamer-page__info p {
  flex: 1 1 280px;
  font-size: 14px;
  color: #b6bcd0;
  margin: 0;
}
@media (max-width: 720px) {
  .streamer-page { padding: 16px 12px; }
  .streamer-page__title { font-size: 22px; }
  .streamer-page__btn { font-size: 14px; padding: 12px 18px; }
}

/* === Live Archive page === */
.live-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}
.live-archive__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.live-archive__label {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #b6bcd0;
  text-transform: uppercase;
}
.live-archive__title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 8px;
}
.live-archive__sub {
  font-size: 16px;
  color: #b6bcd0;
  margin: 0 0 24px;
  max-width: 720px;
}
.live-archive__group {
  margin-top: 32px;
}
.live-archive__year {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2f42;
}
.live-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.live-archive__card {
  background: #1a1d2e;
  border: 1px solid #2a2f42;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.live-archive__card:hover {
  transform: translateY(-2px);
  border-color: #3b6cff;
}
.live-archive__card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
  display: block;
}
.live-archive__card-body {
  padding: 12px 14px;
}
.live-archive__card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-archive__card-meta {
  font-size: 13px;
  color: #aab2c5;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.live-archive__card-meta span {
  background: #0f111a;
  padding: 2px 8px;
  border-radius: 6px;
}
.live-archive__empty {
  padding: 60px 20px;
  text-align: center;
  background: #1a1d2e;
  border: 1px dashed #2a2f42;
  border-radius: 14px;
  color: #aab2c5;
}
.live-archive__empty h2 {
  font-size: 22px;
  color: #fff;
  margin: 0 0 12px;
}
@media (max-width: 720px) {
  .live-archive { padding: 16px 12px; }
  .live-archive__title { font-size: 22px; }
}

/* === Live page interactions (likes + chat) === */
.live-page__interact {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.live-page__interact[hidden] { display: none !important; }
.live-page__likes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #1a1d2e 0%, #232842 100%);
  border: 1px solid #2a2f42;
  border-radius: 12px;
  padding: 12px 18px;
}
.live-page__like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 75, 75, 0.08);
  border: 1px solid rgba(255, 75, 75, 0.35);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s, background 0.18s;
}
.live-page__like-btn:hover:not(:disabled) {
  background: rgba(255, 75, 75, 0.18);
  transform: translateY(-1px);
}
.live-page__like-btn:active:not(:disabled) { transform: scale(0.96); }
.live-page__like-btn:disabled { opacity: 0.6; cursor: wait; }
.live-page__like-btn.is-liked {
  background: linear-gradient(135deg, #ff4b4b 0%, #ff7676 100%);
  border-color: #ff4b4b;
  color: #fff;
}
.live-page__heart {
  font-size: 22px;
  line-height: 1;
  color: #ff4b4b;
  transition: transform 0.15s;
}
.live-page__like-btn.is-liked .live-page__heart {
  color: #fff;
  animation: like-pop 0.5s ease;
}
@keyframes like-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.live-page__like-count {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}
.live-page__like-label { color: #c8cee0; font-size: 14px; font-weight: 500; }
.live-page__viewers {
  color: #aab2c5;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.live-page__chat {
  background: linear-gradient(135deg, #1a1d2e 0%, #232842 100%);
  border: 1px solid #2a2f42;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  max-height: 380px;
}
.live-page__chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}
.live-page__chat-msg {
  font-size: 14px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 6px 10px;
  color: #e6e8f0;
  word-break: break-word;
}
.live-page__chat-name {
  font-weight: 700;
  color: #ff9b6a;
  margin-right: 4px;
}
.live-page__chat-text { color: #e6e8f0; }
.live-page__chat-form {
  display: flex;
  gap: 8px;
}
.live-page__chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #2a2f42;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.live-page__chat-input:focus {
  outline: none;
  border-color: #ff4b4b;
  background: rgba(0, 0, 0, 0.35);
}
.live-page__chat-send {
  background: linear-gradient(135deg, #ff4b4b 0%, #ff7676 100%);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  min-width: 48px;
}
.live-page__chat-send:hover:not(:disabled) { filter: brightness(1.1); }
.live-page__chat-send:disabled { opacity: 0.5; cursor: wait; }
@media (max-width: 720px) {
  .live-page__likes { flex-direction: column; align-items: stretch; gap: 10px; }
  .live-page__viewers { text-align: right; }
  .live-page__chat { min-height: 180px; max-height: 280px; }
}

/* === Share buttons === */
.live-page__share {
  margin-top: 24px;
  background: linear-gradient(135deg, #1a1d2e 0%, #232842 100%);
  border: 1px solid #2a2f42;
  border-radius: 12px;
  padding: 14px 18px;
}
.live-page__share-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #aab2c5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.live-page__share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.live-page__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.12s, background 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.live-page__share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.live-page__share-btn:active { transform: scale(0.96); }
.live-page__share-btn--wa { background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%); }
.live-page__share-btn--tg { background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%); }
.live-page__share-btn--mx { background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%); }
.live-page__share-btn--copy { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }
.live-page__share-btn--native { background: linear-gradient(135deg, #845ef7 0%, #5f3dc4 100%); }
.live-page__share-btn[hidden] { display: none !important; }
.live-page__share-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6dd57e;
  min-height: 18px;
}
@media (max-width: 720px) {
  .live-page__share-row { flex-direction: column; }
  .live-page__share-btn { justify-content: center; padding: 11px 14px; }
}

/* ===== Account: со-админы эфира ===== */
.account-card--streamers {
  border: 1px solid #2a3350;
  background: linear-gradient(135deg, #1a1f33 0%, #232842 100%);
}
.account-fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 8px;
  align-items: flex-start;
}
.account-fields-row .account-field {
  flex: 1 1 200px;
  min-width: 180px;
}
.account-field--full { flex: 1 1 100%; min-width: 100%; }
.account-field > textarea {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid #d6d2c8;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #1d2538;
  box-sizing: border-box;
  font-family: inherit;
}
.account-field > textarea:focus {
  outline: none;
  border-color: #d24c4c;
  box-shadow: 0 0 0 3px rgba(210,76,76,0.18);
}
.account-field > select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6d2c8;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #1d2538;
  box-sizing: border-box;
  cursor: pointer;
}
.account-field > input:disabled {
  background: #f4f1ea;
  color: #6b6b6b;
  cursor: not-allowed;
}
.account-field > span > i {
  color: #8a8a8a;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}
.account-counter {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 2px;
}
.account-counter.warn { color: #c46200; }
.account-counter.over { color: #c44a2c; font-weight: 700; }
.account-streamers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.account-streamer-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2f42;
  border-radius: 10px;
  padding: 12px 14px;
}
.account-streamer-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: #f0f4ff;
  font-size: 15px;
}
.account-streamer-item__meta {
  font-size: 13px;
  color: #aab2c5;
  margin: 2px 0;
}
.account-streamer-item__meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.account-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}
.account-badge--admin {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1f33;
}
.account-badge--streamer {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
}
.account-hint-block {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed #2a3350;
  border-radius: 10px;
}
.account-hint-block summary {
  cursor: pointer;
  color: #ffb84d;
  font-weight: 600;
  font-size: 14px;
}
.account-hint-block summary:hover {
  color: #ffd699;
}
.account-ol {
  margin: 10px 0 6px;
  padding-left: 20px;
  color: #c8cee0;
  font-size: 14px;
  line-height: 1.6;
}
.account-ol li {
  margin-bottom: 6px;
}
.account-ol code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}
@media (max-width: 720px) {
  .account-fields-row {
    flex-direction: column;
  }
  .account-fields-row .account-field {
    min-width: 0;
  }
}


.account-card--streamers .account-h3 {
  color: #f0f4ff;
}


/* Switch camera buttons */
.streamer-page__switch {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s, background 0.15s;
}
.streamer-page__switch:hover {
  background: rgba(0,0,0,0.75);
  transform: scale(1.05);
}
.streamer-page__switch:active {
  transform: scale(0.95);
}
.streamer-page__switch[hidden] { display: none !important; }

@media (max-width: 720px) {
  .streamer-page__btns {
    flex-direction: column;
  }
  .streamer-page__btns .streamer-page__btn {
    width: 100%;
  }
}

/* ===== STUDIO (режим ведущего во время эфира) ===== */
.studio {
  position: fixed;
  inset: 0;
  background: #050608;
  z-index: 9999;
  display: flex;
  overflow: hidden;
}
.studio[hidden] { display: none !important; }
.studio__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
}
/* Зеркалим превью для ведущего (как в зеркале) */
.studio__video {
  transform: scaleX(-1);
}

/* Верхняя панель */
.studio__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
}
.studio__top > * { pointer-events: auto; }

.studio__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(220,38,38,0.92);
  color: #fff;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(220,38,38,0.4);
}
.studio__live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: studio-live-pulse 1.4s infinite;
}
@keyframes studio-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.studio__timer {
  font-variant-numeric: tabular-nums;
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.4);
  font-weight: 600;
  font-size: 13px;
  opacity: 0.95;
}

.studio__top-right {
  display: flex;
  gap: 10px;
}
.studio__icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 70px;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s, background 0.15s;
}
.studio__icon-btn:hover { background: rgba(0,0,0,0.78); transform: translateY(-1px); }
.studio__icon-btn:active { transform: scale(0.96); }
.studio__icon-btn--danger { border-color: rgba(220,38,38,0.5); }
.studio__icon-btn--danger:hover { background: rgba(220,38,38,0.7); }
.studio__icon { font-size: 22px; line-height: 1; }
.studio__icon-label { font-size: 10.5px; opacity: 0.92; text-transform: uppercase; letter-spacing: 0.05em; }

/* Боковая панель */
.studio__side {
  position: absolute;
  top: 80px;
  right: 18px;
  bottom: 70px;
  width: 280px;
  z-index: 4;
  background: rgba(15,17,26,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.studio__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.studio__stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.studio__stat-icon { display: block; font-size: 20px; margin-bottom: 4px; }
.studio__stat-label { display: block; font-size: 10.5px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.studio__stat-val { display: block; font-size: 22px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }

.studio__panel-title {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.studio__share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.studio__share-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.12s, box-shadow 0.12s;
}
.studio__share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.studio__share-btn:active { transform: scale(0.96); }
.studio__share-btn--wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.studio__share-btn--tg { background: linear-gradient(135deg, #2aabee, #1c7fc7); }
.studio__share-btn--mx { background: linear-gradient(135deg, #ff6b35, #d44e1a); }
.studio__share-btn--copy { background: linear-gradient(135deg, #6c757d, #495057); }

.studio__comments {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  min-height: 80px;
}
.studio__comments-empty {
  font-size: 12px;
  opacity: 0.6;
  text-align: center;
  padding: 20px 6px;
  margin: 0;
  line-height: 1.4;
}
.studio__comment {
  background: rgba(255,255,255,0.06);
  border-left: 2px solid #f59f00;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  animation: studio-msg-in 0.3s ease-out;
}
@keyframes studio-msg-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.studio__comment-name {
  display: block;
  font-weight: 700;
  color: #f59f00;
  font-size: 11px;
  margin-bottom: 2px;
}
.studio__comment-text {
  word-break: break-word;
  color: #f3f4f6;
}

.studio__stop-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.studio__stop-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(220,38,38,0.5); }
.studio__stop-btn:active { transform: scale(0.97); }

.studio__hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 8px 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
  white-space: nowrap;
}

/* Мобила: боковая панель становится нижним тулбаром */
@media (max-width: 720px) {
  .studio__side {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: 56px;
    width: auto;
    max-height: 45vh;
    padding: 10px;
  }
  .studio__top { padding: 10px 12px; }
  .studio__icon-btn { min-width: 56px; padding: 6px 8px; }
  .studio__icon { font-size: 18px; }
  .studio__icon-label { font-size: 9.5px; }
  .studio__hint { font-size: 11px; bottom: 8px; }
  .studio__share { grid-template-columns: 1fr 1fr; }
}

/* ===== RTMP-блок в ЛК ===== */
.account-rtmp {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 152, 0, 0.35);
  border-radius: 12px;
  background: rgba(255, 152, 0, 0.06);
}
.account-rtmp summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #ff9800;
  padding: 6px 0;
  user-select: none;
}
.account-rtmp summary:hover { color: #ffb74d; }
.account-rtmp[open] summary { margin-bottom: 12px; }
.account-rtmp-steps {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #2c1f12;
}
.account-rtmp-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  flex-wrap: wrap;
}
.account-rtmp-url code {
  background: #1e1e1e;
  color: #ffeb3b;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  user-select: all;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
.account-btn--mini {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.account-btn--danger {
  background: linear-gradient(135deg, #c62828, #b71c1c);
  color: #fff;
  border: none;
}
.account-btn--danger:hover { filter: brightness(1.1); }
@media (max-width: 720px) {
  .account-rtmp-url { flex-direction: column; align-items: stretch; }
  .account-rtmp-url .account-btn { width: 100%; }
}

/* RSYA footer banner — desktop wide */
.rsya-footer-banner {
  max-width: 1200px;
  margin: 24px auto;
  padding: 12px 16px;
  min-height: 100px;
  background: rgba(184, 101, 26, 0.04);
  border-radius: 14px;
  text-align: center;
}
.rsya-footer-banner > div[id^="yandex_rtb_"],
.rsya-footer-banner > [id^="yandex_rtb_"] {
  min-height: 90px;
  max-width: 100%;
}
.rsya-footer-banner::before {
  content: 'Реклама';
  display: block;
  font-family: var(--font-sans, system-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 14, 8, 0.38);
  margin-bottom: 6px;
  text-align: left;
}

/* RSYA in-feed mobile banner */
.rsya-mobile-banner {
  max-width: 360px;
  margin: 16px auto;
  padding: 10px;
  min-height: 60px;
  background: rgba(184, 101, 26, 0.04);
  border-radius: 12px;
  text-align: center;
}
.rsya-mobile-banner > div[id^="yandex_rtb_"],
.rsya-mobile-banner > [id^="yandex_rtb_"] {
  min-height: 50px;
  max-width: 100%;
}
.rsya-mobile-banner::before {
  content: 'Реклама';
  display: block;
  font-family: var(--font-sans, system-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 14, 8, 0.38);
  margin-bottom: 4px;
}
@media (min-width: 769px) {
  .rsya-mobile-banner { display: none; }
}
@media (max-width: 768px) {
  .rsya-footer-banner { display: none; }
}


/* ===== role badge ===== */
.role-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; line-height: 1; vertical-align: middle; }
.role-badge--admin { background: linear-gradient(135deg, #ffd66b 0%, #f7a928 100%); color: #5a2a00; box-shadow: 0 2px 6px rgba(247,169,40,0.4); border: 1px solid #d48a1e; }
.role-badge--coadmin { background: linear-gradient(135deg, #b9d6ff 0%, #6f9ee8 100%); color: #1a3a6a; box-shadow: 0 2px 6px rgba(111,158,232,0.35); border: 1px solid #4a7dca; }
.role-badge--user { background: #f1ead9; color: #6e604c; border: 1px solid #d6cbb1; }

/* ===== ЛК шапка — бейдж рядом с именем ===== */
.account-current__name { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-current__name .role-badge { font-size: 13px; padding: 4px 12px; }

/* ===== Редактировать — такая же красивая как Сохранить ===== */
.account-btn--edit {
  background: linear-gradient(135deg, #fff7e0 0%, #ffd66b 60%, #f7a928 100%);
  color: #5a2a00;
  border: 1px solid #d48a1e;
  box-shadow: 0 3px 10px rgba(247,169,40,0.25);
}
.account-btn--edit:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(247,169,40,0.45); filter: brightness(1.05); }
.account-btn--edit.is-locked { background: linear-gradient(135deg, #f5edd8 0%, #ead9a4 100%); color: #8c6d2a; border-color: #c4a85c; }

/* ===== Галерея-карусель ===== */
.gallery-carousel { position: relative; margin: 8px 0 12px; }
.gallery-carousel .swiper { width: 100%; padding: 6px 36px 56px; box-sizing: border-box; }
.gallery-carousel .swiper-slide {
  width: 220px !important; height: 220px;
  background: #f1ead9; border-radius: 12px; overflow: hidden;
  position: relative; box-shadow: 0 2px 8px rgba(80,55,25,0.10);
}
.gallery-carousel .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-carousel .gallery-item__badge {
  position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#ffd66b,#f7a928);
  color: #5a2a00; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.gallery-carousel .gallery-item__actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
  padding: 30px 10px 10px; display: flex; gap: 6px; justify-content: center;
}
.gallery-carousel .gallery-item__btn {
  background: rgba(255,255,255,0.92); border: none; color: #5a2a00;
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px;
  cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 4px;
}
.gallery-carousel .gallery-item__btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.gallery-carousel .gallery-item__btn--main { background: linear-gradient(135deg,#ffd66b,#f7a928); color: #5a2a00; }
.gallery-carousel .gallery-item__btn--del { background: rgba(255,210,210,0.95); color: #b03030; }
.gallery-carousel .gallery-item__btn--del:hover { background: #ffd0d0; }
.gallery-carousel .swiper-button-next, .gallery-carousel .swiper-button-prev {
  color: #c47a30; background: rgba(255,255,255,0.85); width: 36px; height: 36px;
  border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.gallery-carousel .swiper-button-next::after, .gallery-carousel .swiper-button-prev::after { font-size: 16px; font-weight: 900; }
.gallery-carousel .swiper-pagination-bullet-active { background: #c47a30; }

.gallery-empty { text-align: center; padding: 32px 20px; border: 2px dashed #d6cbb1; border-radius: 12px; color: #8c6d2a; display: none; }
.gallery-empty.is-visible { display: block; }
.gallery-empty__icon { display: block; font-size: 36px; margin-bottom: 8px; }
.gallery-empty__text { font-size: 14px; }

/* Мобилка — слайды меньше */
@media (max-width: 560px) {
  .gallery-carousel .swiper { padding: 6px 28px 50px; }
  .gallery-carousel .swiper-slide { width: 160px; height: 160px; }
  .gallery-carousel .swiper-button-next, .gallery-carousel .swiper-button-prev { width: 30px; height: 30px; }
}


/* ===== role badge ===== */
.role-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; line-height: 1; vertical-align: middle; }
.role-badge--admin { background: linear-gradient(135deg, #ffd66b 0%, #f7a928 100%); color: #5a2a00; box-shadow: 0 2px 6px rgba(247,169,40,0.4); border: 1px solid #d48a1e; }
.role-badge--coadmin { background: linear-gradient(135deg, #b9d6ff 0%, #6f9ee8 100%); color: #1a3a6a; box-shadow: 0 2px 6px rgba(111,158,232,0.35); border: 1px solid #4a7dca; }
.role-badge--user { background: #f1ead9; color: #6e604c; border: 1px solid #d6cbb1; }

/* ===== ЛК шапка — бейдж рядом с именем ===== */
.account-current__name { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-current__name .role-badge { font-size: 13px; padding: 4px 12px; }

/* ===== Редактировать — такая же красивая как Сохранить ===== */
.account-btn--edit {
  background: linear-gradient(135deg, #fff7e0 0%, #ffd66b 60%, #f7a928 100%);
  color: #5a2a00;
  border: 1px solid #d48a1e;
  box-shadow: 0 3px 10px rgba(247,169,40,0.25);
}
.account-btn--edit:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(247,169,40,0.45); filter: brightness(1.05); }
.account-btn--edit.is-locked { background: linear-gradient(135deg, #f5edd8 0%, #ead9a4 100%); color: #8c6d2a; border-color: #c4a85c; }

/* ===== Галерея-карусель ===== */
.gallery-carousel { position: relative; margin: 8px 0 12px; }
.gallery-carousel .swiper { width: 100%; padding: 6px 36px 56px; box-sizing: border-box; }
.gallery-carousel .swiper-slide {
  width: 220px !important; height: 220px;
  background: #f1ead9; border-radius: 12px; overflow: hidden;
  position: relative; box-shadow: 0 2px 8px rgba(80,55,25,0.10);
}
.gallery-carousel .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-carousel .gallery-item__badge {
  position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#ffd66b,#f7a928);
  color: #5a2a00; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.gallery-carousel .gallery-item__actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
  padding: 30px 10px 10px; display: flex; gap: 6px; justify-content: center;
}
.gallery-carousel .gallery-item__btn {
  background: rgba(255,255,255,0.92); border: none; color: #5a2a00;
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px;
  cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 4px;
}
.gallery-carousel .gallery-item__btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.gallery-carousel .gallery-item__btn--main { background: linear-gradient(135deg,#ffd66b,#f7a928); color: #5a2a00; }
.gallery-carousel .gallery-item__btn--del { background: rgba(255,210,210,0.95); color: #b03030; }
.gallery-carousel .gallery-item__btn--del:hover { background: #ffd0d0; }
.gallery-carousel .swiper-button-next, .gallery-carousel .swiper-button-prev {
  color: #c47a30; background: rgba(255,255,255,0.85); width: 36px; height: 36px;
  border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.gallery-carousel .swiper-button-next::after, .gallery-carousel .swiper-button-prev::after { font-size: 16px; font-weight: 900; }
.gallery-carousel .swiper-pagination-bullet-active { background: #c47a30; }

.gallery-empty { text-align: center; padding: 32px 20px; border: 2px dashed #d6cbb1; border-radius: 12px; color: #8c6d2a; display: none; }
.gallery-empty.is-visible { display: block; }
.gallery-empty__icon { display: block; font-size: 36px; margin-bottom: 8px; }
.gallery-empty__text { font-size: 14px; }

/* Мобилка — слайды меньше */
@media (max-width: 560px) {
  .gallery-carousel .swiper { padding: 6px 28px 50px; }
  .gallery-carousel .swiper-slide { width: 160px; height: 160px; }
  .gallery-carousel .swiper-button-next, .gallery-carousel .swiper-button-prev { width: 30px; height: 30px; }
}

/* ===== Бейджи ролей (для account-badge--coadmin / --user) ===== */
.account-badge--coadmin { background: linear-gradient(135deg, #b9d6ff 0%, #6f9ee8 100%); color: #1a3a6a; box-shadow: 0 2px 6px rgba(111,158,232,0.35); border: 1px solid #4a7dca; }
.account-badge--user { background: #f1ead9; color: #6e604c; border: 1px solid #d6cbb1; box-shadow: none; }
.account-badge--guest { background: linear-gradient(135deg, #e8e3d6 0%, #c9c1ad 100%); color: #4a4030; border: 1px solid #b3a98e; box-shadow: none; }

.comment__role-badge { margin-left: 6px; font-size: 10px !important; padding: 2px 7px !important; vertical-align: middle; }

/* ===== Swiper fix: горизонтальная карусель ===== */
.gallery-carousel .swiper-wrapper { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch !important; width: auto !important; }
.gallery-carousel .swiper { overflow: hidden !important; }
.gallery-carousel .swiper-slide { display: block !important; flex-shrink: 0 !important; }

/* ===== Избранные публикации в ЛК ===== */
.account-favorites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.account-fav {
  position: relative;
  display: block;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5dfd1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.account-fav:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.account-fav__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f3eee2;
}
.account-fav__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-fav__play {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.account-fav__title {
  padding: 8px 10px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.account-fav__meta {
  padding: 4px 10px 10px;
  font-size: 11px;
  color: var(--muted, #8a8270);
}
.account-fav__remove {
  position: absolute;
  top: 6px; left: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-fav__remove:hover { background: rgba(237,73,86,0.9); }
@media (max-width: 560px) {
  .account-favorites { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .account-fav__title { font-size: 12px; }
}

/* ===== USERS PAGE ===== */
.users-main { padding: 24px 16px 60px; max-width: 1200px; margin: 0 auto; color: #f4ece1; }
.users-head { margin-bottom: 18px; }
.users-h { font-size: 28px; margin: 0 0 6px; color: #ffd28a; }
.users-sub { color: #c4b9a9; font-size: 15px; margin: 0 0 16px; }
.users-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.users-search, .users-sort {
  background: #1a1612; border: 1px solid #b8651a; border-radius: 8px;
  color: #f4ece1; padding: 9px 12px; font-size: 14px;
}
.users-search { flex: 1 1 240px; }
.users-search:focus, .users-sort:focus { outline: 2px solid #d4831f; }
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.users-empty { color: #8c8276; padding: 30px; text-align: center; font-size: 15px; }
.users-loader { color: #8c8276; padding: 30px; text-align: center; }
.users-card {
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(180deg, #1a1612 0%, #14110d 100%);
  border: 1px solid #2a221a; border-radius: 12px;
  padding: 14px;
  text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  cursor: pointer;
  position: relative;
}
.users-card::after {
  content: '👤→'; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); font-size: 14px; opacity: 0; transition: opacity .15s, transform .15s;
}
.users-card:hover {
  transform: translateY(-2px);
  border-color: #b8651a;
  box-shadow: 0 8px 24px rgba(184,101,26,.18);
}
.users-card:hover::after { opacity: .7; transform: translateY(-50%) translateX(-4px); }
.users-card:active { transform: translateY(0); }
.users-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #b8651a, #d4831f);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px;
  overflow: hidden; border: 2px solid #b8651a;
}
.users-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.users-card__avatar--m1::before { content: '👨'; }
.users-card__avatar--f1::before { content: '👩'; }
.users-card__avatar--anime::before { content: '🦸'; }
.users-card__avatar--m2::before { content: '🧔'; }
.users-card__avatar--m3::before { content: '🧑'; }
.users-card__avatar--f2::before { content: '👧'; }
.users-card__body { min-width: 0; flex: 1; }
.users-card__name {
  font-weight: 700; font-size: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.users-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; }
.users-card__city { color: #c4b9a9; font-size: 12px; }
.users-card__sub { color: #8c8276; font-size: 11px; margin-top: 4px; }

.users-badge {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.users-badge.account-badge--admin    { background: linear-gradient(135deg,#b8651a,#d4831f); color:#fff; }
.users-badge.account-badge--coadmin  { background: linear-gradient(135deg,#1a8c8a,#2dbab8); color:#fff; }
.users-badge.account-badge--streamer { background: linear-gradient(135deg,#7a3aa6,#a35fd0); color:#fff; }
.users-badge.account-badge--user     { background: rgba(184,101,26,.18); color:#ffd28a; }

.users-online { color: #1fbf4a; display: inline-flex; align-items: center; gap: 4px; }
.users-online__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1fbf4a; box-shadow: 0 0 6px rgba(31,191,74,.7);
  animation: dido-pulse-reg 1.6s ease-in-out infinite;
}
@media (max-width: 540px) {
  .users-main { padding: 16px 12px 50px; }
  .users-h { font-size: 22px; }
  .users-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .users-card { padding: 10px; gap: 10px; }
  .users-card__avatar { width: 48px; height: 48px; font-size: 18px; }
  .users-card__name { font-size: 14px; }
}

/* ===== FORUM PAGE ===== */
.forum-main { padding: 24px 16px 60px; max-width: 1100px; margin: 0 auto; color: #f4ece1; }
.forum-head { margin-bottom: 20px; }
.forum-h { font-size: 28px; margin: 0 0 6px; color: #ffd28a; }
.forum-sub { color: #c4b9a9; font-size: 15px; margin: 0 0 16px; }
.forum-new-btn {
  background: linear-gradient(135deg, #b8651a, #d4831f);
  color: #fff; border: 0; padding: 11px 22px;
  font-size: 15px; font-weight: 700; border-radius: 8px;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.forum-new-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184,101,26,.4); }

.forum-cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid #2a221a;
}
.forum-cat-pill {
  background: #1a1612; border: 1px solid #2a221a;
  color: #c4b9a9; padding: 8px 14px;
  border-radius: 999px; font-size: 13px;
  cursor: pointer; transition: all .15s;
}
.forum-cat-pill:hover { border-color: #b8651a; color: #ffd28a; }
.forum-cat-pill.is-active { background: linear-gradient(135deg, #b8651a, #d4831f); color: #fff; border-color: transparent; }

.forum-list { display: flex; flex-direction: column; gap: 12px; }
.forum-empty { color: #8c8276; padding: 30px; text-align: center; }
.forum-loader { color: #8c8276; padding: 30px; text-align: center; }

.forum-topic {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #1a1612 0%, #14110d 100%);
  border: 1px solid #2a221a; border-radius: 12px;
  padding: 16px; transition: border-color .15s, transform .15s;
}
.forum-topic:hover { border-color: #b8651a; transform: translateY(-1px); }
.forum-topic__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.forum-topic__cat { font-size: 11px; background: rgba(184,101,26,.18); color: #ffd28a; padding: 3px 8px; border-radius: 4px; }
.forum-topic__title { font-size: 17px; font-weight: 700; color: #ffd28a; margin: 0 0 6px; }
.forum-topic__excerpt { color: #c4b9a9; font-size: 14px; margin: 0 0 10px; line-height: 1.5; }
.forum-topic__meta { display: flex; gap: 14px; color: #8c8276; font-size: 12px; flex-wrap: wrap; }
.forum-topic__photo { margin-top: 10px; max-width: 200px; border-radius: 8px; border: 1px solid #2a221a; }

.forum-posts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.forum-post {
  background: linear-gradient(180deg, #1a1612 0%, #14110d 100%);
  border: 1px solid #2a221a; border-radius: 12px; padding: 14px;
  display: flex; gap: 12px;
}
.forum-post__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg,#b8651a,#d4831f);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; overflow: hidden;
}
.forum-post__avatar img { width: 100%; height: 100%; object-fit: cover; }
.forum-post__avatar--f1::before { content: '👩'; }
.forum-post__avatar--anime::before { content: '🦸'; }
.forum-post__avatar--m2::before { content: '🧔'; }
.forum-post__avatar--m3::before { content: '🧑'; }
.forum-post__avatar--f2::before { content: '👧'; }
.forum-post__body { min-width: 0; flex: 1; }
.forum-post__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.forum-post__author { font-weight: 700; font-size: 14px; color: #ffd28a; }
.forum-post__time { color: #8c8276; font-size: 11px; }
.forum-post__text { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.6; color: #f4ece1; }
.forum-post__photo { max-width: 100%; max-height: 300px; border-radius: 8px; margin-top: 10px; display: block; }
.forum-post__actions { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: #8c8276; }
.forum-post__like {
  background: none; border: 0; color: #c4b9a9; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.forum-post__like:hover { color: #ffd28a; background: rgba(184,101,26,.12); }
.forum-post__like.is-on { color: #d93b3b; }

.forum-reply-form {
  margin-top: 16px;
  background: linear-gradient(180deg, #1a1612 0%, #14110d 100%);
  border: 1px solid #2a221a; border-radius: 12px; padding: 14px;
}
.forum-reply-form textarea {
  width: 100%; background: #0e0c09; border: 1px solid #2a221a; border-radius: 8px;
  color: #f4ece1; padding: 10px; font-size: 14px; resize: vertical; min-height: 80px;
  box-sizing: border-box;
}
.forum-reply-form textarea:focus { outline: 2px solid #d4831f; }
.forum-reply-form__actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; justify-content: flex-end; }
.forum-btn {
  background: #1a1612; color: #f4ece1; border: 1px solid #2a221a;
  padding: 9px 16px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.forum-btn--primary {
  background: linear-gradient(135deg, #b8651a, #d4831f);
  color: #fff; border-color: transparent;
}
.forum-btn--ghost { background: transparent; }

.forum-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 16px;
}
.forum-modal[hidden] { display: none; }
.forum-modal__panel {
  background: #14110d; border: 1px solid #b8651a; border-radius: 14px;
  padding: 22px; width: 100%; max-width: 540px; max-height: 90vh; overflow: auto;
  position: relative;
}
.forum-modal__close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; color: #c4b9a9; font-size: 28px; cursor: pointer; line-height: 1;
}
.forum-modal__h { margin: 0 0 16px; color: #ffd28a; font-size: 22px; }
.forum-form { display: flex; flex-direction: column; gap: 14px; }
.forum-form__label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #c4b9a9; }
.forum-form__label input,
.forum-form__label select,
.forum-form__label textarea {
  background: #0e0c09; border: 1px solid #2a221a; border-radius: 8px;
  color: #f4ece1; padding: 10px; font-size: 14px; font-family: inherit;
}
.forum-form__label input:focus,
.forum-form__label select:focus,
.forum-form__label textarea:focus { outline: 2px solid #d4831f; }
.forum-form__photo input { color: #c4b9a9; }
.forum-form__actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 540px) {
  .forum-main { padding: 16px 12px 50px; }
  .forum-h { font-size: 22px; }
  .forum-topic { padding: 12px; }
  .forum-topic__title { font-size: 15px; }
}

/* ===== VIDEO ARCHIVE ===== */
.va-crumbs { margin-bottom: 16px; }
.va-crumbs button {
  background: none; border: 0; padding: 0;
  color: var(--color-amber, #b8651a); cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.va-crumbs .crumb-current {
  color: var(--color-ink, #161210);
  font-weight: 600;
}
.va-crumbs .crumb-sep { color: var(--color-ink-soft, #6a5e4a); opacity: 0.5; margin: 0 2px; }

.archive-grid--days {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.va-tile--day {
  min-height: 92px;
  padding: 18px 20px;
  align-items: center;
  flex-direction: row;
  gap: 14px;
  background: linear-gradient(135deg, #f3ecde 0%, #ebe0cb 100%);
  border-color: rgba(184, 101, 26, 0.25);
}
.va-tile--day .va-tile__year--day {
  font-size: 42px; line-height: 1; min-width: 56px; text-align: center;
}
.va-tile--day .va-tile__meta { margin-top: 0; flex: 1; }

.va-tile--day:hover {
  border-color: var(--color-amber, #b8651a);
  background: linear-gradient(135deg, #fff 0%, #f3ecde 100%);
}
.va-tile--day.is-empty { opacity: 0.5; cursor: default; }
.va-tile--day.is-empty:hover { transform: none; box-shadow: none; }

.va-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.va-card {
  display: flex; flex-direction: column;
  background: var(--color-bg, #f3ecde);
  border: 1px solid rgba(22, 18, 16, 0.1);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.va-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 18, 16, 0.12);
}
.va-card__media {
  position: relative;
  aspect-ratio: 9/16;
  background: #1a1410;
  overflow: hidden;
}
.va-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 280ms ease;
}
.va-card:hover .va-card__media img { transform: scale(1.05); }
.va-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0.9;
}
.va-card__body { padding: 14px 16px 16px; }
.va-card__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px; font-weight: 700;
  line-height: 1.3;
  color: #161210;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.va-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-ink-soft, #6a5e4a);
  flex-wrap: wrap;
}
.va-card__date { font-weight: 500; }
.va-card__stats { display: inline-flex; gap: 8px; }
.va-card__stats span { display: inline-flex; align-items: center; gap: 3px; }

@media (max-width: 640px) {
  .va-posts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .va-card__title { font-size: 14px; min-height: 36px; }
  .archive-grid--days { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .va-tile--day { padding: 14px 16px; min-height: 76px; }
  .va-tile--day .va-tile__year--day { font-size: 32px; min-width: 42px; }
  .va-tile--day .va-tile__meta { font-size: 12px; }
}

/* ===== OWNER CARD (О нас) ===== */
.about-owner {
  max-width: var(--max-w, 1180px);
  margin: 36px auto;
  padding: 24px;
  background: linear-gradient(135deg, #fff8ec 0%, #fff3df 100%);
  border: 1px solid #f1d9a8;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}
.about-owner__photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e6c98a;
  display: block;
  object-fit: contain;
  background: #fafafa;
}
.about-owner__kicker {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b8651a;
  margin: 0 0 10px;
  font-weight: 700;
}
.about-owner__title {
  font-size: 22px;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 14px;
  font-weight: 600;
}
.about-owner__name {
  font-size: 26px;
  line-height: 1.2;
  color: #d40d0d;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.about-owner__contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.about-owner__contacts li {
  font-size: 15px;
  color: #2a2a2a;
}
.about-owner__lbl {
  color: #6a6a6a;
  margin-right: 6px;
  font-weight: 600;
}
.about-owner__contacts a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #d0d0d0;
  transition: color .15s, border-color .15s;
}
.about-owner__contacts a:hover {
  color: #b8651a;
  border-color: #b8651a;
}
@media (max-width: 720px) {
  .about-owner {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
    margin: 24px auto;
  }
  .about-owner__photo img { max-height: 360px; }
  .about-owner__title { font-size: 18px; }
  .about-owner__name { font-size: 22px; }
}

/* ===== ABOUT — fullscreen lightbox ===== */
.about-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-lightbox[hidden] { display: none; }
.about-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
}
.about-lightbox__close,
.about-lightbox__nav {
  position: absolute;
  background: rgba(20, 17, 13, 0.8);
  color: #ffd28a;
  border: 1px solid #b8651a;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.about-lightbox__close:hover,
.about-lightbox__nav:hover { background: #b8651a; color: #fff; }
.about-lightbox__close { top: 20px; right: 20px; }
.about-lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.about-lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .about-lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 18px; }
  .about-lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
  .about-lightbox__nav--prev { left: 8px; }
  .about-lightbox__nav--next { right: 8px; }
}

/* ===== ABOUT — clickable carousel ===== */
.about-carousel__item img { cursor: zoom-in; }

/* ===== ABOUT — bolder headings ===== */
.about-section__h {
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: 0.5px;
}
.about-section__h2 {
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0.3px;
}
.about-section__lead,
.about-section__list li {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
}
.about-section__p { font-weight: 500; font-size: 16px; line-height: 1.65; }
.about-carousel__title {
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.5px;
}
.about-owner__kicker { font-weight: 700; }
.about-owner__title { font-weight: 700; }
.about-owner__name { font-weight: 800; letter-spacing: 0.5px; }
.about-owner__contacts { font-weight: 500; }

/* ===== ABOUT OWNER — photo caption (desktop only) ===== */
.about-owner__photo { margin: 0; }
.about-owner__photo-cap {
  display: none;
  margin-top: 14px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #5b3a1a;
  text-align: center;
  text-transform: uppercase;
  border-top: 1px solid #e6c98a;
  padding-top: 12px;
}
@media (min-width: 721px) {
  .about-owner__photo-cap { display: block; }
}

/* ===== BOLDER, MORE PROMINENT HEADINGS ===== */
.about-section__h {
  font-weight: 900 !important;
  font-size: clamp(32px, 3.6vw, 46px) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  color: #5b3a1a;
  border-left: 6px solid #b8651a;
  padding-left: 16px;
  margin: 8px 0 18px;
  line-height: 1.15;
}
.about-section__h2 {
  font-weight: 900 !important;
  font-size: clamp(24px, 2.6vw, 32px) !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase;
  color: #5b3a1a;
  border-left: 5px solid #b8651a;
  padding-left: 12px;
  margin: 22px 0 12px;
  line-height: 1.2;
}
.about-section__lead { font-weight: 700 !important; font-size: 18px !important; }
.about-section__p { font-weight: 600; font-size: 17px; line-height: 1.7; }
.about-section__list li { font-weight: 700; font-size: 17px; line-height: 1.65; margin: 8px 0; }
.about-carousel__title {
  font-weight: 900 !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase;
  color: #5b3a1a;
  border-left: 6px solid #b8651a;
  padding-left: 14px;
}
.about-owner__kicker { font-weight: 800 !important; font-size: 14px !important; letter-spacing: 1.5px !important; color: #b8651a !important; }
.about-owner__title { font-weight: 700 !important; font-size: clamp(18px, 1.6vw, 22px) !important; }
.about-owner__name { font-weight: 900 !important; font-size: clamp(24px, 2.4vw, 32px) !important; letter-spacing: 0.8px !important; }
.about-owner__contacts { font-weight: 600; }

/* ===== DIDO HERO (homepage) ===== */
.dido-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d0807;
  color: #fbeacb;
  padding: 60px 16px;
  border-bottom: 4px solid #b8651a;
}
.dido-hero__bg {
  position: absolute; inset: 0;
  background-image: url('/uploads/home/hero-wrestlers.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}
.dido-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(13,8,7,0.55) 0%, rgba(13,8,7,0.78) 60%, rgba(13,8,7,0.92) 100%),
    linear-gradient(180deg, rgba(13,8,7,0.35) 0%, rgba(13,8,7,0.65) 50%, rgba(13,8,7,0.92) 100%);
  z-index: 1;
}
.dido-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  width: 100%;
  padding: 24px 8px;
}
.dido-hero__kicker {
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 76px);
  letter-spacing: 6px;
  line-height: 1.05;
  margin: 0 0 6px;
  color: #ffd28a;
  text-shadow: 0 4px 18px rgba(0,0,0,0.7), 0 0 28px rgba(184,101,26,0.55);
  text-transform: uppercase;
}
.dido-hero__title {
  font-weight: 800;
  font-size: clamp(16px, 1.9vw, 22px);
  letter-spacing: 4px;
  line-height: 1.4;
  margin: 0 0 28px;
  color: #fbeacb;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.dido-hero__slogan {
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 4px;
  line-height: 1.05;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffe5b0 0%, #ffb45a 50%, #ff7a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255,122,24,0.35);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.dido-hero__lead {
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: #fbeacb;
  margin: 0 auto 28px;
  max-width: 760px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.dido-hero__stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.dido-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
}
.dido-hero__stat-num {
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 40px);
  background: linear-gradient(180deg, #ffe5b0 0%, #ffb45a 50%, #ff7a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.dido-hero__stat-cap {
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  color: #ffd28a;
  text-transform: lowercase;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

@media (max-width: 720px) {
  .dido-hero { min-height: 480px; padding: 40px 14px; }
  .dido-hero__kicker { letter-spacing: 3px; }
  .dido-hero__title { letter-spacing: 2px; }
  .dido-hero__slogan { letter-spacing: 2px; }
  .dido-hero__stats { gap: 14px; }
  .dido-hero__stat { min-width: 140px; }
}

/* ===== DIDO HERO — refined: 3-line slogan, full-width stats, flame divider ===== */
.dido-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d0807;
  color: #fbeacb;
  padding: 70px 16px 30px;
  border-bottom: 4px solid #b8651a;
}
.dido-hero__bg {
  position: absolute; inset: 0;
  background-image: url('/uploads/home/hero-wrestlers.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}
.dido-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center 60%, rgba(13,8,7,0.05) 0%, rgba(13,8,7,0.40) 60%, rgba(13,8,7,0.78) 100%),
    linear-gradient(180deg, rgba(13,8,7,0.05) 0%, rgba(13,8,7,0.18) 35%, rgba(13,8,7,0.62) 80%, rgba(13,8,7,0.82) 100%);
  z-index: 1;
}
.dido-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1080px;
  width: 100%;
  padding: 20px 8px 14px;
}
.dido-hero__kicker {
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 68px);
  letter-spacing: 5px;
  line-height: 1.05;
  margin: 0 0 4px;
  color: #ffe5b0;
  text-shadow: 0 4px 16px rgba(0,0,0,0.75), 0 0 26px rgba(184,101,26,0.55);
  text-transform: uppercase;
}
.dido-hero__title {
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: 4px;
  line-height: 1.4;
  margin: 0 0 22px;
  color: #fbeacb;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.75);
}
.dido-hero__slogan {
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.5vh, 8px);
  line-height: 1;
}
.dido-hero__slogan span {
  font-weight: 900;
  font-size: clamp(56px, 9vw, 116px);
  letter-spacing: clamp(4px, 0.8vw, 12px);
  background: linear-gradient(180deg, #fff3d4 0%, #ffd28a 30%, #ffb14a 55%, #ff7a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 #6b3404,
    0 2px 0 #5b2a04,
    0 3px 0 #4a2203,
    0 4px 0 #391a03,
    0 5px 0 #2a1303,
    0 6px 1px rgba(0,0,0,0.55),
    0 0 32px rgba(255,122,24,0.55),
    0 0 60px rgba(184,101,26,0.35);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  display: block;
}
.dido-hero__lead {
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 21px);
  line-height: 1.5;
  color: #ffd49a;
  margin: 0 auto 22px;
  max-width: 880px;
  text-shadow:
    0 1px 0 #6b3a10,
    0 2px 0 #5b3210,
    0 3px 0 #4a290c,
    0 4px 1px rgba(0,0,0,0.7),
    0 0 16px rgba(255,160,60,0.5);
}
.dido-hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 18px 14px 4px;
  border-top: 1px solid rgba(255,180,90,0.22);
}
.dido-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dido-hero__stat-num {
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 44px);
  background: linear-gradient(180deg, #fff3d4 0%, #ffd28a 30%, #ffb14a 55%, #ff7a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 #5b3210,
    0 2px 0 #4a290c,
    0 3px 0 #3a200a,
    0 4px 0 #2a1708,
    0 5px 1px rgba(0,0,0,0.55),
    0 0 18px rgba(255,160,60,0.45);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55));
  line-height: 1.1;
}
.dido-hero__stat-cap {
  font-weight: 700;
  font-size: clamp(11px, 1vw, 14px);
  color: #ffd28a;
  text-transform: lowercase;
  margin-top: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
  letter-spacing: 0.5px;
}


/* ===== HERO 7D TEXT (volume) ===== */
.dido-7d {
  color: #ffd49a;
  text-shadow:
    0 1px 0 #6b3a10,
    0 2px 0 #5b3210,
    0 3px 0 #4a290c,
    0 4px 0 #3a200a,
    0 5px 0 #2a1708,
    0 6px 1px rgba(0,0,0,0.6),
    0 0 22px rgba(255,160,60,0.55),
    0 0 44px rgba(184,101,26,0.35);
}
.dido-7d--small {
  text-shadow:
    0 1px 0 #6b3a10,
    0 2px 0 #5b3210,
    0 3px 0 #4a290c,
    0 4px 1px rgba(0,0,0,0.7),
    0 0 16px rgba(255,160,60,0.5);
}

/* ===== INLINE FLAME (between hero blocks) ===== */
.dido-flame--inline {
  height: 14px;
  margin: 6px auto 14px;
  width: min(820px, 92%);
  background: transparent;
  border: 0;
}
.dido-flame--inline svg {
  height: 14px;
  filter: drop-shadow(0 0 8px rgba(255,90,26,0.55)) drop-shadow(0 0 18px rgba(255,122,24,0.35));
  animation: dido-flame-flicker 2.6s ease-in-out infinite;
}

/* ===== FIRE DIVIDER ===== */
.dido-flame {
  position: relative;
  width: 100%;
  height: 40px;
  background: #0d0807;
  overflow: hidden;
  margin: -1px 0 0;
}
.dido-flame svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(255,90,26,0.55)) drop-shadow(0 0 22px rgba(255,122,24,0.35));
  animation: dido-flame-flicker 3.2s ease-in-out infinite;
}
@keyframes dido-flame-flicker {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.95; }
  35% { transform: translateY(-1px) scaleY(1.06); opacity: 1; }
  60% { transform: translateY(1px) scaleY(0.96); opacity: 0.9; }
}

@media (max-width: 720px) {
  .dido-hero { min-height: 580px; padding: 50px 12px 24px; }
  .dido-hero__kicker { letter-spacing: 3px; }
  .dido-hero__title { letter-spacing: 2px; }
  .dido-hero__slogan span { letter-spacing: 1px; font-size: clamp(36px, 9vw, 84px); line-height: 0.95; }
  .dido-hero__lead { font-size: clamp(13px, 3.6vw, 17px); line-height: 1.45; }
  .dido-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 14px; }
  .dido-hero__stat-cap { font-size: 11px; }
  .dido-flame { height: 28px; }
}

/* === Brand logo image (replaces inline SVG in all topbars) === */
.brand__mark img.brand__logo {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: #0d0d0d;
}
@media (max-width: 720px) {
  .brand__mark img.brand__logo { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  .brand__mark img.brand__logo { width: 36px; height: 36px; }
}

/* === user page (profile) === */
.users-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #d4a548;
  text-decoration: none;
  font-size: 14px;
}
.users-back:hover { text-decoration: underline; }

.user-page__card {
  background: linear-gradient(180deg, #1c1814 0%, #15110d 100%);
  border: 1px solid #2a231c;
  border-radius: 14px;
  padding: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.user-page__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2a231c;
  margin-bottom: 18px;
}
.user-page__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2a231c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  overflow: hidden;
}
.user-page__avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-page__head-body { min-width: 0; flex: 1; }
.user-page__name {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #f5e9d0;
  margin: 0 0 8px 0;
  word-break: break-word;
}
.user-page__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.user-page__section { padding: 14px 0; border-top: 1px solid #2a231c; }
.user-page__section:first-of-type { border-top: 0; padding-top: 0; }
.user-page__section h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #d4a548;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}
.user-page__section p {
  margin: 0;
  color: #c4b9a9;
  line-height: 1.55;
  white-space: pre-wrap;
}
.user-page__rows { list-style: none; padding: 0; margin: 0; }
.user-page__row {
  display: flex;
  gap: 14px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed #2a231c;
}
.user-page__row:last-child { border-bottom: 0; }
.user-page__row-label {
  width: 130px;
  flex-shrink: 0;
  color: #8c8276;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.user-page__row-value {
  color: #f5e9d0;
  word-break: break-word;
}
.user-page__row-value a { color: #d4a548; text-decoration: none; }
.user-page__row-value a:hover { text-decoration: underline; }
.user-page__back { margin-top: 22px; padding-top: 18px; border-top: 1px solid #2a231c; text-align: center; }

@media (max-width: 640px) {
  .user-page__card { padding: 16px; }
  .user-page__avatar { width: 72px; height: 72px; font-size: 32px; }
  .user-page__name { font-size: 20px; }
  .user-page__row { flex-direction: column; gap: 2px; }
  .user-page__row-label { width: auto; }
}

/* ============ ADMIN PANEL (ap-) ============ */
.user-page__admin-trigger { margin-top: 14px; }
.ap-self-hint { font-size: 12px; color: #d4a548; }

.ap-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ap-status--user { background: rgba(140, 130, 118, .18); color: #b9ad99; }
.ap-status--coadmin { background: rgba(212, 165, 72, .22); color: #d4a548; }
.ap-status--friend { background: rgba(72, 165, 212, .22); color: #4ca5d4; }
.ap-status--blocked { background: rgba(220, 70, 70, .28); color: #ff8585; }

.ap-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #3a2f24; background: #1a1410; color: #f5e9d0; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; }
.ap-btn:hover { background: #221a13; border-color: #d4a548; }
.ap-btn--ghost { background: transparent; }
.ap-btn--primary { background: linear-gradient(135deg, #d4a548, #b8651a); color: #1a0e05; font-weight: 700; }
.ap-btn--primary:hover { background: linear-gradient(135deg, #e0b45a, #c4741f); border-color: #d4a548; }
.ap-btn--danger { background: rgba(220, 70, 70, .15); border-color: #8b3a3a; color: #ff8585; }
.ap-btn--danger:hover { background: rgba(220, 70, 70, .28); border-color: #d44a44; }

.ap-modal { position: fixed; inset: 0; z-index: 9000; display: none; align-items: flex-start; justify-content: center; padding: 4vh 16px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); overflow-y: auto; }
.ap-modal--open { display: flex; }
.ap-modal__panel { width: min(960px, 100%); background: #14110d; border: 1px solid #3a2f24; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ap-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid #2a231c; }
.ap-modal__head h2 { margin: 0; font-size: 18px; color: #f5e9d0; }
.ap-modal__close { background: transparent; border: 0; color: #b9ad99; font-size: 20px; cursor: pointer; padding: 4px 10px; border-radius: 6px; }
.ap-modal__close:hover { color: #f5e9d0; background: #221a13; }
.ap-modal__body { padding: 20px 22px; }

.ap-loading { text-align: center; padding: 40px 0; color: #b9ad99; }
.ap-error { text-align: center; padding: 30px 0; color: #ff8585; }

.ap-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ap-grid { grid-template-columns: 1fr 1fr; } }

.ap-section { background: #1a1410; border: 1px solid #2a231c; border-radius: 10px; padding: 16px 18px; }
.ap-section h3 { margin: 0 0 14px 0; font-size: 14px; color: #d4a548; text-transform: uppercase; letter-spacing: .05em; }
.ap-section h4 { margin: 0 0 8px 0; font-size: 12px; color: #b9ad99; text-transform: uppercase; letter-spacing: .04em; }

.ap-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ap-form__full { grid-column: 1 / -1; }
.ap-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #b9ad99; }
.ap-form input, .ap-form select, .ap-form textarea {
  background: #0f0a06; color: #f5e9d0; border: 1px solid #2a231c; border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus { outline: none; border-color: #d4a548; }
.ap-form input[readonly] { background: #0a0805; color: #8c8276; cursor: default; }
.ap-form input::placeholder { color: #5a4f43; }

.ap-access { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ap-access__row { display: flex; align-items: center; gap: 10px; }
.ap-access__label { font-size: 12px; color: #b9ad99; width: 80px; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; }
.ap-select { flex: 1; background: #0f0a06; color: #f5e9d0; border: 1px solid #2a231c; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.ap-select:focus { outline: none; border-color: #d4a548; }
.ap-banned-reason { color: #ff8585; font-size: 12px; font-style: italic; }

.ap-info ul { list-style: none; padding: 0; margin: 0; font-size: 12px; color: #c4b9a9; }
.ap-info li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #2a231c; }
.ap-info li:last-child { border-bottom: 0; }
.ap-info li span { color: #8c8276; width: 130px; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.ap-info li code { font-family: ui-monospace, Menlo, monospace; color: #d4a548; background: #0f0a06; padding: 2px 6px; border-radius: 4px; font-size: 11px; }

.ap-admin-pass { width: 100%; background: #0f0a06; color: #f5e9d0; border: 1px solid #2a231c; border-radius: 6px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px; }
.ap-admin-pass:focus { outline: none; border-color: #d4a548; }
.ap-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-msg { margin-top: 10px; padding: 8px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; min-height: 18px; }
.ap-msg--ok { background: rgba(80, 180, 110, .15); color: #6ed185; }
.ap-msg--error { background: rgba(220, 70, 70, .18); color: #ff8585; }
.ap-msg--info { background: rgba(212, 165, 72, .15); color: #d4a548; }

.ap-logs { list-style: none; padding: 0; margin: 0; max-height: 280px; overflow-y: auto; }
.ap-log-row { padding: 8px 10px; border: 1px solid #2a231c; border-radius: 6px; margin-bottom: 6px; background: #0f0a06; }
.ap-log-row__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ap-log-action { font-size: 12px; font-weight: 700; color: #d4a548; }
.ap-log-ts { font-size: 11px; color: #8c8276; }
.ap-log-row__body { font-size: 11px; color: #c4b9a9; word-break: break-word; }
.ap-log-row__body code { font-family: ui-monospace, Menlo, monospace; background: #1a1410; padding: 1px 4px; border-radius: 3px; color: #f5e9d0; font-size: 10px; }
.ap-log-empty { text-align: center; padding: 20px 0; color: #8c8276; font-size: 12px; font-style: italic; }

@media (max-width: 640px) {
  .ap-modal__head h2 { font-size: 15px; }
  .ap-modal__body { padding: 14px; }
  .ap-section { padding: 12px; }
  .ap-form { grid-template-columns: 1fr; }
  .ap-access__label { width: 70px; font-size: 11px; }
  .ap-actions { flex-direction: column; }
  .ap-actions .ap-btn { width: 100%; justify-content: center; }
}

/* ====== page-cta (кнопки на статичных страницах) ====== */
.page-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.page-cta {
  display: inline-block;
  background: #b8651a;
  color: #fff8ec;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #b8651a;
  transition: background 0.15s, transform 0.15s;
}
.page-cta:hover { background: #d47a2a; color: #fff8ec; transform: translateY(-1px); }
.page-cta--ghost {
  background: transparent;
  color: #b8651a;
  border: 1px solid #b8651a;
}
.page-cta--ghost:hover { background: rgba(184,101,26,0.1); color: #b8651a; }

.ap-hint { font-size: 11px; color: #8c8276; margin: 6px 0 0; font-style: italic; }

/* ====== Record Stream (live + offline) ====== */
.rec-card { max-width: 720px; margin: 24px auto; background: #161311; border: 1px solid #2a231c; border-radius: 14px; padding: 24px; color: #f6efe1; }
.rec-preview { width: 100%; aspect-ratio: 16/9; background: #0a0807; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; border: 1px solid #2a231c; }
.rec-preview video { width: 100%; height: 100%; object-fit: cover; }
.rec-placeholder { color: #8c8276; font-size: 14px; text-align: center; padding: 32px; }
.rec-timer { font-family: ui-monospace, Menlo, monospace; font-size: 36px; font-weight: 700; color: #d4a548; text-align: center; margin: 16px 0 8px; letter-spacing: .04em; }
.rec-timer.recording { color: #e35a4d; }
.rec-timer.recording::before { content: '● '; font-size: 24px; animation: recBlink 1.2s infinite; }
@keyframes recBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .2; } }
.rec-status { text-align: center; font-size: 13px; color: #c4b9a9; margin-bottom: 16px; }
.rec-status .net-on { color: #5fd97c; }
.rec-status .net-off { color: #e35a4d; }
.rec-mode { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.rec-mode button { background: #221c17; color: #c4b9a9; border: 1px solid #2a231c; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.rec-mode button.active { background: #b8651a; color: #fff8ec; border-color: #b8651a; }
.rec-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rec-btn { background: #b8651a; color: #fff8ec; border: 0; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.rec-btn:hover { background: #d47a2a; }
.rec-btn:disabled { background: #4a3f33; color: #8c8276; cursor: not-allowed; }
.rec-btn--danger { background: #8a2a1d; }
.rec-btn--danger:hover { background: #a83828; }
.rec-btn--ghost { background: transparent; color: #b8651a; border: 1px solid #b8651a; }
.rec-queue { margin-top: 20px; padding-top: 16px; border-top: 1px solid #2a231c; }
.rec-queue h4 { font-size: 13px; color: #8c8276; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.rec-queue-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0f0a06; border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.rec-queue-item .q-name { flex: 1; }
.rec-queue-item .q-state { color: #d4a548; font-size: 11px; }
.rec-queue-item .q-state.done { color: #5fd97c; }
