/* ============================================================
   SIBKARATE — Global Stylesheet
   Подключается на всех страницах сайта.
   Для страничных переопределений создавай отдельный файл:
   page-<name>.css и подключай после этого.
   ============================================================ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── DESIGN TOKENS ─── */
:root {
  --white:   #FFFFFF;
  --bg:      #F5F4F2;
  --bg2:     #EBEBEB;
  --text:    #111111;
  --text2:   #5A5A5A;
  --text3:   #999999;
  --red:     #8C1515;
  --red-h:   #6B0E0E;
  --red-pale:#FDF2F2;
  --red-mid: #F5DADA;
  --border:  #E2E2E2;
  --shadow:  0 2px 14px rgba(0,0,0,0.07);
  --shadow-h:0 8px 36px rgba(0,0,0,0.13);
  --radius:  16px;
  --trans:   0.22s ease;
  --max-w:   1320px;

  /* Category colour pairs (foreground / background-pale) */
  --c1:#8C1515; --c1b:#FDF2F2;
  --c2:#6B3FA0; --c2b:#F3EEFF;
  --c3:#9A6000; --c3b:#FFF8E6;
  --c4:#1555AA; --c4b:#EEF3FF;
  --c5:#1A7A50; --c5b:#EDFFF5;
  --c6:#A63A10; --c6b:#FFF1EC;
  --c7:#7A1A7A; --c7b:#F9E0FF;
  --c8:#136677; --c8b:#EEFAFD;
  --c9:#1E7A9A; --c9b:#EAFAFF;
  --c10:#4A7A10; --c10b:#F3FFEA;
  --c11:#9A1550; --c11b:#FFF0F5;
  --c12:#3E3AAA; --c12b:#F1F0FF;
}

/* ─── DARK THEME OVERRIDES ─── */
[data-theme="dark"] {
  --white:   #181818;
  --bg:      #0F0F0F;
  --bg2:     #1C1C1C;
  --text:    #EEEEEE;
  --text2:   #999999;
  --text3:   #555555;
  --red:     #B82020;
  --red-h:   #CC3333;
  --red-pale:#251010;
  --red-mid: #361616;
  --border:  #272727;
  --shadow:  0 2px 14px rgba(0,0,0,0.35);
  --shadow-h:0 8px 36px rgba(0,0,0,0.55);
  --c1b:#251010; --c2b:#1A1028; --c3b:#251A00;
  --c4b:#0C1825; --c5b:#0C1E14; --c6b:#251408;
  --c7b:#2A0D2A; --c8b:#0C1E22; --c9b:#0C1E25;
  --c10b:#141E00; --c11b:#250C18; --c12b:#141230;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip; /* clip не создаёт scroll container, fixed-позиционирование работает корректно */
  transition: background var(--trans), color var(--trans);
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ─── FLOATING KANJI BACKGROUND ─── */
#jp-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.jp-char {
  position: absolute;
  font-family: 'Hiragino Mincho Pro', 'Yu Mincho', 'MS Mincho', Georgia, serif;
  color: rgba(140,21,21,0.05);
  animation: jpFloat linear infinite;
  bottom: -10%; user-select: none; pointer-events: none;
}
[data-theme="dark"] .jp-char { color: rgba(184,32,32,0.065); }
@keyframes jpFloat {
  0%   { transform: translateY(0)   rotate(0deg);    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-115vh) rotate(12deg); opacity: 0; }
}
body > header,
body > main,
body > section,
body > footer {
  position: relative;
  z-index: 1;
}

/* ─── BACKGROUND DECORATIVE ELEMENTS ─── */
.bg-mandala {
  position: absolute; pointer-events: none; user-select: none;
  overflow: hidden;
}

/* ─── LAYOUT ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ─── HEADER ─── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  transition: background var(--trans), border-color var(--trans);
}
.hdr-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px; background: var(--red); color: var(--red); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.logo-word em { font-style: normal; color: var(--red); }
.logo-fist, .footer-logo-icon img { width: 78%; height: 78%; object-fit: contain; display: block; }

.rutube-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--trans), transform 0.15s;
}
.rutube-btn:hover { border-color: #12213C; transform: scale(1.08); }
.rutube-btn svg { width: 22px; height: 22px; }

.hdr-nav { display: flex; align-items: center; gap: 2px; }
.nav-a {
  font-size: 0.875rem; font-weight: 500; color: var(--text2);
  padding: 7px 12px; border-radius: 8px;
  transition: color var(--trans), background var(--trans); white-space: nowrap;
}
.nav-a:hover { color: var(--text); background: var(--bg); }

.hdr-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); transition: border-color var(--trans), color var(--trans);
}
.icon-btn:hover { border-color: var(--text2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.lang-btn { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; }
.burger-btn { display: none; }

.btn-suggest {
  height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 0.82rem; font-weight: 500; color: var(--text2);
  transition: border-color var(--trans), color var(--trans);
}
.btn-suggest:hover { border-color: var(--text); color: var(--text); }

.btn-donate {
  height: 36px; padding: 0 16px; border-radius: 10px;
  border: none; background: var(--red); color: #fff;
  font-size: 0.82rem; font-weight: 700;
  animation: pulseRing 2.8s ease infinite;
  transition: background var(--trans), transform 0.15s;
}
.btn-donate:hover { background: var(--red-h); transform: translateY(-1px); }
.btn-donate { display: inline-flex; align-items: center; gap: 6px; }
.btn-donate-icon { width: 14px; height: 14px; flex-shrink: 0; }
@keyframes pulseRing {
  0%,100%{ box-shadow: 0 0 0 0 rgba(140,21,21,0.45); }
  55%    { box-shadow: 0 0 0 8px rgba(140,21,21,0); }
}

/* ─── HERO ─── */
.hero {
  background: var(--white); padding: 72px 0 88px;
  transition: background var(--trans); overflow: hidden;
  position: relative;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-pale); color: var(--red);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.77rem; font-weight: 700; letter-spacing: 0.03em;
  margin-bottom: 22px; transition: background var(--trans);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
}
h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 12px;
}
h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  font-size: 1.05rem; color: var(--text2);
  line-height: 1.7; margin-bottom: 28px; max-width: 520px;
}
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 20px;
  font-size: 0.81rem; font-weight: 600; border: none; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.cat-pill:hover { opacity: 0.8; transform: translateY(-1px); }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  height: 50px; padding: 0 30px; border-radius: 12px;
  background: var(--red); color: #fff;
  font-size: 0.95rem; font-weight: 700; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--trans), transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--red-h); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140,21,21,0.35);
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-secondary {
  height: 50px; padding: 0 28px; border-radius: 12px;
  background: var(--bg); color: var(--text);
  font-size: 0.95rem; font-weight: 600; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color var(--trans), background var(--trans);
}
.btn-secondary:hover { border-color: var(--text2); }

.hero-right { position: relative; }
.hero-illus { width: 100%; max-width: 520px; position: relative; }
.hero-illus svg { width: 100%; height: auto; }

/* ─── SECTION COMMON ─── */
section { padding: 68px 0; max-width: 100%; }
.sec-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.sec-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 6px;
}
.sec-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
}
.sec-desc { font-size: 0.88rem; color: var(--text2); margin-top: 5px; }
.sec-link {
  height: 40px; padding: 0 20px; border-radius: 10px;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 0.84rem; font-weight: 600; color: var(--text2);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: border-color var(--trans), color var(--trans);
}
.sec-link:hover { border-color: var(--text); color: var(--text); }
.sec-link svg { width: 14px; height: 14px; }

/* ─── CATALOG ─── */
.catalog-bg { background: var(--bg); position: relative; overflow: hidden; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 100%; }

.cat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px 20px 18px; display: flex; flex-direction: column;
  border: 1.5px solid transparent; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: border-color var(--trans), box-shadow var(--trans), transform 0.22s, background var(--trans);
}
.cat-card::before {
  content: attr(data-kanji);
  position: absolute; bottom: -0.15em; right: -0.05em;
  font-family: 'Hiragino Mincho Pro', 'Yu Mincho', 'MS Mincho', Georgia, serif;
  font-size: 5.5rem; font-weight: 900; line-height: 1;
  color: transparent;
  transition: color 0.35s ease, transform 0.35s ease;
  pointer-events: none; user-select: none;
}
.cat-card::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--clr, var(--red));
  transform: scaleY(0); transform-origin: bottom; border-radius: 3px 0 0 3px;
  transition: transform 0.3s ease;
}
.cat-card:hover { border-color: var(--clr, var(--red)); box-shadow: var(--shadow-h); transform: translateY(-5px); }
.cat-card:hover::before { color: rgba(0,0,0,0.12); transform: rotate(-8deg) scale(1.08); }
.cat-card:hover::after { transform: scaleY(1); }
[data-theme="dark"] .cat-card:hover::before { color: rgba(255,255,255,0.12); }

.cat-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 14px; gap: 6px;
}
.cat-icon { font-size: 0; line-height: 0; flex-shrink: 0; color: var(--clr, #8C1515); }
.cat-icon svg { display: block; }
.cat-icon-k {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--clr-b, var(--red-pale));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Hiragino Mincho Pro','Yu Mincho','MS Mincho',Georgia,serif;
  font-size: 26px; font-weight: 900; line-height: 1;
  color: var(--clr, var(--red));
  transition: transform var(--trans), background var(--trans);
}
.cat-card:hover .cat-icon-k { transform: scale(1.1) rotate(-5deg); }
.cat-num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 4px 9px; border-radius: 20px; white-space: nowrap;
}
.cat-name { font-weight: 700; font-size: 0.93rem; margin-bottom: 14px; line-height: 1.3; }
.cat-read {
  font-size: 0.77rem; font-weight: 700; margin-top: auto;
  display: inline-flex; align-items: center; gap: 5px;
}
.cat-read svg { width: 12px; height: 12px; }
.cat-kanji { display: none; }

/* ─── ARTICLES ─── */
.articles-bg { background: var(--white); }

.art-featured {
  background: var(--bg); border-radius: var(--radius);
  display: grid; grid-template-columns: 42% 1fr;
  overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow);
  transition: box-shadow 0.22s, transform 0.22s, background var(--trans);
}
.art-featured:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.art-featured-thumb {
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.art-featured-body {
  padding: 34px 38px; display: flex; flex-direction: column; justify-content: center;
}
.art-featured-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.art-featured-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 800;
  line-height: 1.28; letter-spacing: -0.02em; margin-bottom: 10px;
}
.art-featured-desc { font-size: 0.9rem; color: var(--text2); line-height: 1.65; margin-bottom: 18px; }
.art-featured-meta { display: flex; align-items: center; gap: 16px; }
.art-meta-date { font-size: 0.77rem; color: var(--text3); }
.art-meta-likes {
  font-size: 0.77rem; color: var(--text3);
  display: flex; align-items: center; gap: 4px;
}
.art-meta-likes svg { width: 14px; height: 14px; }
.art-meta-comments { display: flex; align-items: center; gap: 4px; color: var(--text3); }
.art-meta-comments svg { width: 14px; height: 14px; }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 100%; }

.art-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1.5px solid transparent; position: relative;
  transition: border-color var(--trans), box-shadow 0.22s, transform 0.22s, background var(--trans);
}
.art-card:hover { border-color: var(--border); box-shadow: var(--shadow-h); transform: translateY(-4px); }

/* Thumbnail */
.art-card-thumb {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.thumb-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.thumb-photo[src]:not([src=""]) { opacity: 1; }
.art-card:hover .thumb-photo { transform: scale(1.05); }
.art-featured:hover .thumb-photo { transform: scale(1.04); }

/* Kanji watermark — fallback when no photo */
.art-thumb-kanji {
  position: absolute;
  font-family: 'Hiragino Mincho Pro', 'Yu Mincho', 'MS Mincho', Georgia, serif;
  font-size: 5rem; font-weight: 900; opacity: 0.14; line-height: 1;
  pointer-events: none; user-select: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 0;
}
.art-card:hover .art-thumb-kanji { transform: scale(1.1) rotate(-5deg); opacity: 0.2; }
.thumb-photo[src]:not([src=""]) ~ .art-thumb-kanji { opacity: 0; }

/* Slash shimmer on hover */


.art-card-body { padding: 14px 18px 18px; }
.art-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.badge { font-size: 0.67rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.02em; }
.badge-tag { color: var(--text3); background: var(--bg2); }
.art-card-title { font-size: 0.88rem; font-weight: 700; line-height: 1.4; margin-bottom: 7px; letter-spacing: -0.01em; }
.art-card-desc { font-size: 0.78rem; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.art-card-meta { display: flex; align-items: center; justify-content: space-between; }
.art-date { font-size: 0.71rem; color: var(--text3); }
.art-likes { font-size: 0.71rem; color: var(--text3); display: flex; align-items: center; gap: 3px; }
.art-likes svg { width: 12px; height: 12px; }
.art-comments { font-size: 0.71rem; color: var(--text3); display: flex; align-items: center; gap: 3px; }
.art-comments svg { width: 12px; height: 12px; }
.art-card-meta .art-date { margin-right: auto; }
.art-card-meta { gap: 10px; }
.articles-footer { text-align: center; margin-top: 44px; }

/* ─── SUBSCRIBE ─── */
.subscribe-bg { background: var(--bg); }
.subscribe-wrap {
  background: var(--white); border-radius: 24px;
  padding: 60px 56px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  transition: background var(--trans);
  max-width: 100%;
}
.subscribe-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(140,21,21,0.055) 0%, transparent 65%);
  pointer-events: none;
}
.subscribe-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900;
  letter-spacing: -0.02em; margin-bottom: 8px; position: relative;
}
.subscribe-desc { font-size: 0.95rem; color: var(--text2); margin-bottom: 32px; position: relative; }
.subscribe-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; position: relative; }
.subscribe-input {
  flex: 1; height: 52px; border-radius: 12px;
  border: 1.5px solid var(--border); padding: 0 18px;
  font-family: inherit; font-size: 0.95rem;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color var(--trans), background var(--trans);
}
.subscribe-input:focus { border-color: var(--red); }
.subscribe-input::placeholder { color: var(--text3); }
.subscribe-btn {
  height: 52px; padding: 0 28px; border-radius: 12px;
  border: none; background: var(--red); color: #fff;
  font-size: 0.95rem; font-weight: 700; white-space: nowrap;
  transition: background var(--trans), transform 0.15s;
}
.subscribe-btn:hover { background: var(--red-h); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer { background: #0E0E0E; color: #BBBBBB; padding: 56px 0 28px; }
[data-theme="dark"] footer { background: #070707; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 240px 1fr 1fr auto;
  gap: 48px; margin-bottom: 48px;
  padding-bottom: 40px; border-bottom: 1px solid #1E1E1E;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo-icon {
  width: 34px; height: 34px; background: var(--red); color: var(--red);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.footer-logo-text { font-weight: 800; font-size: 1.1rem; color: #FFF; letter-spacing: -0.02em; }
.footer-logo-text em { font-style: normal; color: #B82020; }
.footer-tagline { font-size: 0.82rem; color: #555; line-height: 1.65; }
.footer-col h4 {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: #3A3A3A; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.86rem; color: #BBBBBB; transition: color 0.2s; }
.footer-links a:hover { color: #B82020; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-icons { display: flex; gap: 8px; }
.f-icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid #252525; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #555; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.f-icon-btn:hover { border-color: #B82020; color: #B82020; }
.f-icon-btn svg { width: 16px; height: 16px; }
.f-icon-btn.lang { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.05em; }
.f-btn-donate, .f-btn-suggest {
  width: 168px; height: 36px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.f-btn-donate {
  border: none; background: var(--red); color: #fff; font-weight: 700;
  animation: pulseRing 2.8s ease infinite;
}
.f-btn-donate:hover { background: var(--red-h); }
.f-btn-suggest { border: 1.5px solid #252525; background: transparent; color: #666; }
.f-btn-suggest:hover { border-color: #444; color: #CCC; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.77rem; color: #333;
}
.footer-bottom a { color: #333; transition: color 0.2s; }
.footer-bottom a:hover { color: #B82020; }

/* ─── BURGER MENU ─── */
.burger-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 190;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, background var(--trans), border-color var(--trans);
}
.burger-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.burger-menu-inner {
  padding: 12px 16px 20px;
  max-width: var(--max-w); margin: 0 auto;
}
.burger-actions {
  display: flex; gap: 8px;
  padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.burger-action-btn {
  flex: 1; height: 40px; border-radius: 10px;
  font-size: 0.84rem; font-weight: 600; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--trans), border-color var(--trans), color var(--trans), transform 0.15s;
}
.burger-action-donate {
  border: none; background: var(--red); color: #fff;
  animation: pulseRing 2.8s ease infinite;
}
.burger-action-donate:hover { background: var(--red-h); transform: translateY(-1px); }
.burger-action-suggest {
  border: 1.5px solid var(--border); background: transparent; color: var(--text2);
}
.burger-action-suggest:hover { border-color: var(--text); color: var(--text); }
.burger-action-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.burger-nav { display: flex; flex-direction: column; gap: 0; }
.burger-link {
  display: block; padding: 11px 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--text2);
  border-radius: 8px;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans), background var(--trans);
}
.burger-link:last-child { border-bottom: none; }
.burger-link:hover { color: var(--red); background: var(--red-pale); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  :root { --max-w: 100%; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .art-featured { grid-template-columns: 1fr; }
  .art-featured-thumb { min-height: 200px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hdr-inner, .hero-inner, .container, .footer-inner { padding: 0 16px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: 1fr; }
  .art-featured { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hdr-nav { display: none; }
  .btn-suggest { display: none; }
  .btn-donate { display: none; }
  .burger-btn { display: flex !important; }
  .subscribe-wrap { padding: 36px 20px; }
  .footer-actions { align-items: flex-start; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .subscribe-form { flex-direction: column; }
  .subscribe-input, .subscribe-btn { width: 100%; }
  .subscribe-input { flex: none; }
  .bg-mandala { display: none; }
}

/* ─── POPUP «ПОБЛАГОДАРИТЬ» ─── */
.popup-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.popup-backdrop.open { opacity: 1; pointer-events: all; }
.popup {
  background: var(--white); border-radius: 24px;
  padding: 44px 40px 36px;
  max-width: 460px; width: 100%;
  position: relative; text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), background var(--trans);
}
.popup-backdrop.open .popup { transform: scale(1) translateY(0); }
.popup-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--bg2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text2); line-height: 1;
  transition: background var(--trans), color var(--trans);
}
.popup-close:hover { background: var(--border); color: var(--text); }
.popup-title {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.popup-desc {
  font-size: 0.88rem; color: var(--text2); line-height: 1.7; margin-bottom: 24px;
}
.popup-qr {
  width: 180px; height: 180px; margin: 0 auto 22px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
}
.popup-qr img { width: 100%; height: 100%; display: block; }
.popup-tbank {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 28px; border-radius: 12px;
  background: #FFDD2D; color: #1A1A1A;
  font-size: 0.95rem; font-weight: 700; border: none;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.popup-tbank:hover { opacity: 0.88; transform: translateY(-1px); }
@media (max-width: 480px) {
  .popup { padding: 40px 20px 28px; }
  .popup-title { font-size: 1.15rem; }
  .popup-qr { width: 150px; height: 150px; }
}

/* ─── BLOG / CATALOG PAGE ─── */
.blog-bg { background: var(--bg); }
.blog-search-wrap {
  display: flex; gap: 10px; width: 100%; margin-bottom: 32px;
}
.blog-search-input {
  flex: 1; width: 100%; height: 46px; border-radius: 10px;
  border: 1.5px solid var(--border); padding: 0 16px;
  font-family: inherit; font-size: 0.92rem;
  background: var(--white); color: var(--text); outline: none;
  transition: border-color var(--trans), background var(--trans);
}
.blog-search-input:focus { border-color: var(--red); }
.blog-search-input::placeholder { color: var(--text3); }
.blog-search-btn {
  height: 46px; padding: 0 20px; border-radius: 10px;
  border: none; background: var(--red); color: #fff;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: background var(--trans);
}
.blog-search-btn:hover { background: var(--red-h); }

.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.cat-tab {
  height: 36px; padding: 0 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.82rem; font-weight: 600; color: var(--text2);
  cursor: pointer; transition: all var(--trans); white-space: nowrap;
  display: inline-flex; align-items: center;
}
.cat-tab:hover, .cat-tab.active {
  border-color: var(--red); background: var(--red-pale); color: var(--red);
}

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 44px;
}
.page-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.88rem; font-weight: 600; color: var(--text2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { border-color: var(--red); background: var(--red); color: #fff; }
.page-btn.wide { width: auto; padding: 0 14px; }

/* ─── ARTICLE PAGE ─── */
.article-bg { background: var(--white); }
.article-wrap { max-width: 820px; margin: 0 auto; }

.article-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-size: 0.78rem; color: var(--text3); margin-bottom: 20px;
}
.article-breadcrumb a { color: var(--text3); transition: color var(--trans); white-space: nowrap; }
.article-breadcrumb a:hover { color: var(--red); }
.article-breadcrumb span { opacity: 0.5; white-space: nowrap; }

.article-header { margin-bottom: 28px; padding-bottom: 14px; }
.article-category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red-pale); color: var(--red);
  border-radius: 20px; padding: 4px 12px;
  font-size: 0.75rem; font-weight: 700;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900;
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 14px;
}
.article-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.8rem; color: var(--text3); flex-wrap: wrap;
}
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text3); }

.article-cover {
  width: 100%; max-height: 600px; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 32px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.article-cover img {
  max-height: 600px; width: auto; max-width: 100%; height: auto;
  object-fit: contain; display: block; margin: 0 auto;
}
.article-cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'Hiragino Mincho Pro','Yu Mincho',Georgia,serif;
  font-size: 6rem; font-weight: 900; color: var(--red); opacity: 0.12;
}

/* Language tabs */
.lang-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.lang-tab {
  padding: 8px 18px; font-size: 0.82rem; font-weight: 700;
  border: none; background: transparent; cursor: pointer;
  color: var(--text3); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color var(--trans), border-color var(--trans);
}
.lang-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* Article body */
.article-body {
  font-size: 1rem; line-height: 1.8; color: var(--text);
}
.voice-answer {
  margin: 0 0 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  background: var(--red-pale);
  color: var(--text);
}
.voice-answer-label {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.voice-answer-text {
  font-size: 1rem;
  line-height: 1.75;
}
.voice-answer-text p:last-child { margin-bottom: 0; }
.article-body h2 {
  font-size: 1.4rem; font-weight: 800; margin: 32px 0 12px;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body img {
  max-width: 100%; border-radius: 10px; margin: 20px 0;
}
.article-body blockquote {
  border-left: 3px solid var(--red); margin: 24px 0;
  padding: 12px 20px; background: var(--red-pale); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text2);
}
.article-body a {
  color: var(--c2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: color var(--trans), opacity var(--trans);
}
.article-body a:hover {
  color: #4A2275;
  opacity: 0.9;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.article-tag {
  padding: 5px 14px; border-radius: 20px;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 0.78rem; font-weight: 600; color: var(--text2);
  text-decoration: none; transition: all var(--trans);
}
.article-tag:hover { border-color: var(--red); color: var(--red); background: var(--red-pale); }

.article-divider {
  border: none; border-top: 1px solid var(--border); margin: 40px 0;
}

/* Comments */
.comments-section { margin-top: 48px; }
.comments-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; }
.comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.comment {
  display: flex; gap: 14px;
}
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--red-pale); display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; color: var(--red);
}
.comment-body { flex: 1; }
.comment-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.comment-author { font-size: 0.88rem; font-weight: 700; }
.comment-date { font-size: 0.75rem; color: var(--text3); }
.comment-text { font-size: 0.88rem; color: var(--text2); line-height: 1.65; }

.comment-form-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-input, .comment-textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit; font-size: 0.88rem;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color var(--trans), background var(--trans);
}
.comment-input:focus, .comment-textarea:focus { border-color: var(--red); }
.comment-textarea { min-height: 120px; resize: vertical; }
.comment-submit {
  align-self: flex-start; height: 44px; padding: 0 24px;
  border-radius: 10px; border: none; background: var(--red); color: #fff;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: background var(--trans), transform 0.15s;
}
.comment-submit:hover { background: var(--red-h); transform: translateY(-1px); }
@media (max-width: 640px) {
  .comment-form-row { grid-template-columns: 1fr; }
}

/* ─── 404 PAGE ─── */
.page-404 {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 80px 32px;
}
.page-404-kanji {
  font-family: 'Hiragino Mincho Pro','Yu Mincho',Georgia,serif;
  font-size: 8rem; font-weight: 900; color: var(--red); opacity: 0.15;
  line-height: 1; margin-bottom: -20px; user-select: none;
}
.page-404-code {
  font-size: clamp(4rem, 10vw, 7rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px;
  color: var(--text);
}
.page-404-code em { font-style: normal; color: var(--red); }
.page-404-title {
  font-size: 1.2rem; font-weight: 600; color: var(--text2); margin-bottom: 32px;
}

/* ─── PRIVACY PAGE ─── */
.privacy-wrap { max-width: 760px; margin: 0 auto; }
.privacy-wrap h2 {
  font-size: 1.3rem; font-weight: 800; margin: 36px 0 12px;
}
.privacy-wrap p { font-size: 0.95rem; line-height: 1.75; color: var(--text2); margin-bottom: 14px; }
.privacy-wrap ul { margin: 0 0 14px 22px; }
.privacy-wrap li { font-size: 0.95rem; line-height: 1.75; color: var(--text2); margin-bottom: 6px; }

/* ─── DARK THEME ADDITIONS ─── */
[data-theme="dark"] .popup-qr { border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .popup-qr img { border-radius: 8px; }
[data-theme="dark"] .comment-input,
[data-theme="dark"] .comment-textarea,
[data-theme="dark"] .blog-search-input { border-color: var(--border); }
[data-theme="dark"] .article-body blockquote { border-left-color: var(--red); }
[data-theme="dark"] .article-body a { color: #B08AD8; }
[data-theme="dark"] .article-body a:hover { color: #CDB0EE; }
[data-theme="dark"] .page-btn { background: var(--bg2); }
[data-theme="dark"] .page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
[data-theme="dark"] .cat-tab:hover,
[data-theme="dark"] .cat-tab.active { background: var(--red-pale); }
[data-theme="dark"] .lang-tab.active { border-bottom-color: var(--red); color: var(--red); }
[data-theme="dark"] .comment-avatar { background: var(--red-pale); color: var(--red); }

/* Comment input placeholders */
.comment-input::placeholder,
.comment-textarea::placeholder { color: var(--text3); }

/* ─── ACCESSIBILITY ─── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible { border-radius: 4px; }

/* ─── SMOOTH SCROLL OFFSET for sticky header ─── */
html { scroll-padding-top: 80px; }

/* ─── ARTICLE IMAGE RESPONSIVE ─── */
.article-body img { max-width: 100%; height: auto; }

/* ─── WP CONTENT: image alignment ─── */
.article-body img.alignleft,
.article-body a.alignleft,
.article-body .alignleft { float: left; margin: 4px 20px 12px 0; }

.article-body img.alignright,
.article-body a.alignright,
.article-body .alignright { float: right; margin: 4px 0 12px 20px; }

.article-body img.aligncenter,
.article-body .aligncenter {
  display: block; clear: both;
  margin-left: auto; margin-right: auto;
}
.article-body img.alignnone,
.article-body .alignnone { display: block; clear: both; }

/* Image inside <a> link — no underline/outline */
.article-body a img { display: block; outline: none; border: none; }
.article-body a:has(> img) { display: inline-block; line-height: 0; text-decoration: none; }

/* Headings clear floats */
.article-body h2, .article-body h3, .article-body h4 { clear: both; }
/* h4 */
.article-body h4 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; }

/* Clearfix */
.article-body::after { content: ''; display: table; clear: both; }

/* Tables */
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.article-body th, .article-body td {
  padding: 9px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top;
}
.article-body th { background: var(--bg); font-weight: 700; }
.article-body tr:nth-child(even) { background: var(--bg); }

/* WP Caption */
.article-body .wp-caption { max-width: 100%; margin-bottom: 16px; }
.article-body .wp-caption-text {
  font-size: 0.78rem; color: var(--text3); margin-top: 6px;
  text-align: center; font-style: italic;
}

/* Inline text-align styles (used in some old content) */
.article-body p[style*="text-align"] { text-align: inherit; }

/* Responsive iframe from inline <style> blocks */
.article-body iframe { max-width: 100%; }

/* ─── BLOG SEARCH FIX on mobile ─── */
@media (max-width: 640px) {
  .blog-search-wrap { flex-direction: column; max-width: 100%; }
  .search-suggest-wrap { width: 100%; flex: none; }
  .blog-search-input { width: 100%; }
  .blog-search-btn { width: 100%; height: 48px; }
  .cat-tabs { gap: 6px; }
  .cat-tab { font-size: 0.77rem; padding: 0 12px; }
  .article-title { font-size: 1.4rem; }
  .article-wrap { padding: 0; }
}

/* ─── SEARCH AUTOCOMPLETE ─── */
.search-suggest-wrap { position: relative; flex: 1; }
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border-radius: 12px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-h);
  max-height: 168px; /* ровно 3 × 56px */
  overflow-y: auto;
  z-index: 300;
  display: none;
  transition: background var(--trans), border-color var(--trans);
}
.search-suggestions.visible { display: block; }
.search-suggest-item {
  display: flex; align-items: center;
  padding: 14px 16px; min-height: 56px;
  font-size: 0.88rem; line-height: 1.35;
  border-bottom: 1px solid var(--border);
  cursor: pointer; color: var(--text);
  transition: background var(--trans), color var(--trans);
  text-decoration: none;
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover { background: var(--red-pale); color: var(--red); }
.search-suggest-empty {
  padding: 16px; font-size: 0.88rem; color: var(--text3); text-align: center;
}
/* scrollbar inside suggestions */
.search-suggestions::-webkit-scrollbar { width: 4px; }
.search-suggestions::-webkit-scrollbar-track { background: transparent; }
.search-suggestions::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ─── SUBSCRIBE DECORATIONS ─── */
.subscribe-deco-kanji {
  position: absolute; left: 0; top: 0; bottom: 0; width: 230px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
}
.subscribe-deco-kanji svg { height: 80%; width: auto; display: block; }
.subscribe-deco-shuriken {
  position: absolute; right: 0; top: 0; bottom: 0; width: 230px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
}
.subscribe-deco-shuriken svg { height: 80%; width: auto; display: block; }
@media (max-width: 640px) {
  .subscribe-deco-kanji { display: none; }
  .subscribe-deco-shuriken { display: none; }
  .subscribe-wrap { padding: 36px 20px; }
}

/* ─── HIDE LANG TABS on article (RU/EN) ─── */
.lang-tabs { display: none !important; }

/* ─── ARTICLE LIKE + SHARE ROW ─── */
.article-like-share-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 20px; gap: 12px;
}
/* ─── ARTICLE LIKE BUTTON ─── */
.article-like-wrap {
  display: flex; align-items: center; justify-content: center;
  margin: 28px 0 8px;
}
.article-like-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 22px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.9rem; font-weight: 600; color: var(--text2);
  cursor: pointer; transition: all 0.2s ease;
  user-select: none;
}
.article-like-btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.article-like-btn:hover { border-color: #e05050; color: #e05050; }
.article-like-btn:hover svg { transform: scale(1.18); }
.article-like-btn.liked { border-color: #e05050; background: #fff5f5; color: #e05050; }
.article-like-btn.liked svg { fill: #e05050; stroke: #e05050; transform: scale(1.1); }
.article-like-count { font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: left; }
/* Inline like button under the article title (in meta row) */
.article-like-inline {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; margin: 0; border: none; background: none;
  font: inherit; color: inherit; line-height: inherit;
  cursor: pointer; transition: color 0.2s ease;
}
.article-like-inline svg { transition: transform 0.2s ease; }
.article-like-inline:hover { color: #e05050; }
.article-like-inline:hover svg { transform: scale(1.2); }
.article-like-inline.liked { color: #e05050; }
.article-like-inline.liked svg { fill: #e05050; stroke: #e05050; }
.article-like-inline .article-like-count { min-width: 0; }
.article-like-inline.pulse svg { animation: likePopAnim 0.35s cubic-bezier(0.36,0.07,0.19,0.97); }
.article-like-btn.pulse svg { animation: likePopAnim 0.35s cubic-bezier(0.36,0.07,0.19,0.97); }
@keyframes likePopAnim {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1.1); }
}

/* ─── ARTICLE SHARE BUTTONS ─── */
.article-share {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.article-share-label {
  font-size: 0.78rem; color: var(--text3); white-space: nowrap; margin-right: 2px;
}
.article-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--text2); text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}
.article-share-btn svg { width: 15px; height: 15px; }
.article-share-btn:hover { border-color: transparent; color: #fff; transform: scale(1.1); }
.article-share-tg:hover  { background: #229ED9; }
.article-share-wa:hover  { background: #25D366; }
.article-share-vk:hover  { background: #0077FF; }
.article-share-max:hover { background: #8F44FD; }
/* Top position: push share bar to the right in the meta row */
.article-meta .article-share { margin-left: auto; }
/* Bottom position: centered below like button */
.article-like-share-row .article-share { flex-shrink: 0; }
@media (max-width: 600px) {
  .article-meta .article-share { margin-left: 0; width: 100%; margin-top: 8px; }
}

/* ─── DOJO BACKGROUND ANIMATION ─── */
.dojo-bg {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.dojo-sym {
  position: absolute;
  bottom: -60px;
  font-size: 20px;
  color: rgba(139, 0, 0, 0.10);
  animation: dojo-float linear infinite;
  user-select: none;
  line-height: 1;
}
@keyframes dojo-float {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
[data-theme=dark] .dojo-sym {
  color: rgba(200, 60, 60, 0.12);
}

/* Article pages: header not sticky */
body[data-page="article"] header { position: static; }
body[data-page="article"] .article-header { position: static; }

/* Subscribe block inside article */
.sk-subscribe-inline { margin: 44px 0; }


/* image fixes masters */
.article-body img, .article-body figure img { max-height: 600px !important; width: auto !important; max-width: 100% !important; height: auto !important; display: block; margin: 0 auto; border-radius: 10px; }
.article-body figure { margin: 24px 0; text-align: center; }
.art-card-thumb .thumb-photo, .art-featured-thumb .thumb-photo { object-position: center 22%; }


/* ─── РАЗДЕЛ ТУРНИРОВ ─── */
.t-filter-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text3); margin: 0 0 10px; }
.t-tabs { margin-bottom: 20px; }
.t-country-row { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; flex-wrap: wrap; }
.t-country-select {
  height: 38px; padding: 0 38px 0 14px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all var(--trans);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 15px;
}
.t-country-select:hover, .t-country-select:focus { border-color: var(--red); color: var(--red); outline: none; }
.t-grid { align-items: stretch; }
.t-card { display: flex; flex-direction: column; min-height: 130px; }
.t-card .art-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; height: 100%; width: 100%; }
.t-card .art-card-title { font-size: 0.98rem; margin-bottom: 8px; }
.t-card .art-card-desc { margin-bottom: 12px; }
.t-card .art-card-meta { margin-top: auto; }
.t-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); opacity: 0; transition: opacity var(--trans); z-index: 1;
}
.t-card:hover::before { opacity: 1; }
.t-badge-series { background: var(--red-pale); color: var(--red); }
.t-empty { text-align: center; color: var(--text2); font-size: 0.9rem; padding: 48px 0; }

.t-select-group { display: flex; align-items: center; gap: 10px; }

/* ─── BURGER: главные разделы (мобильная навигация) ─── */
.burger-main-nav { display:flex; flex-direction:column; gap:5px; padding-bottom:14px; margin-bottom:10px; border-bottom:1px solid var(--border); }
.burger-main-link {
  display:flex; align-items:center; gap:13px;
  padding:12px 12px; border-radius:11px;
  font-size:0.95rem; font-weight:600; color:var(--text);
  transition: background var(--trans), color var(--trans);
}
.burger-main-link svg { width:21px; height:21px; flex-shrink:0; color:var(--red); transition: color var(--trans); }
.burger-main-link:hover { background:var(--red-pale); color:var(--red); }
.burger-main-link.is-active { background:var(--red-pale); color:var(--red); }
.burger-section-label {
  font-size:0.72rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase;
  color:var(--text2); opacity:0.7; margin:0 2px 8px;
}

/* ─── Похожие статьи ─── */
.related-section{margin:48px 0 8px;padding-top:32px;border-top:1px solid var(--line,#e8e3da)}
.related-title{font-size:1.5rem;font-weight:800;margin:0 0 20px;color:var(--text,#1a1a1a)}
/* ─── Хаб категории ─── */
.cat-intro{margin:0 0 24px;color:var(--text2,#555);line-height:1.7;max-width:760px}
.cat-siblings{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 28px}
.cat-siblings-label{font-weight:700;color:var(--text2,#666);font-size:.85rem}
.cat-sibling-chip{padding:5px 12px;border-radius:999px;background:var(--card,#f2efe9);color:var(--text,#222);font-size:.85rem;font-weight:600;text-decoration:none;border:1px solid var(--line,#e5e0d8)}
.cat-sibling-chip:hover{background:#8C1515;color:#fff}
