/* ============================================
   Шах клуб "Славия" — основни стилове
   Цветова палитра: черно / бяло / графит
   ============================================ */

:root {
  --c-bg:        #0a0a0a;
  --c-bg-2:      #111111;
  --c-bg-3:      #1a1a1a;
  --c-surface:   #161616;
  --c-border:    #262626;
  --c-text:      #f5f5f5;
  --c-text-dim:  #a3a3a3;
  --c-text-mute: #6b6b6b;
  --c-white:     #ffffff;
  --c-accent:    #ffffff;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow:    0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);

  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t-base: 280ms cubic-bezier(.4,0,.2,1);
  --t-slow: 600ms cubic-bezier(.4,0,.2,1);

  --container: 1200px;
  --header-h:  72px;
}

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

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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: .75; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

h1,h2,h3,h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   ХЕДЪР
   ============================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(10,10,10,.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background var(--t-base), border-color var(--t-base);
}
.site-header.scrolled {
  background: rgba(10,10,10,.92);
  border-bottom-color: var(--c-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand:hover { opacity: 1; }

.brand-mark {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border-radius: 50%;
  transition: transform var(--t-base);
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text small  { font-size: 11px; color: var(--c-text-dim); margin-top: 2px; letter-spacing: 0.05em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--c-bg-3); opacity: 1; }
.site-nav a.active { color: var(--c-white); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2px; background: var(--c-white);
  border-radius: 2px;
}

.nav-cta {
  background: var(--c-white) !important;
  color: var(--c-bg) !important;
  margin-left: 8px;
  padding: 9px 18px !important;
}
.nav-cta:hover { background: #ddd !important; }
.nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 102;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--c-white);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 40px;
    gap: 0;
    overflow-y: auto;
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }
  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    display: block;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid #1c1c1c;
    border-radius: 0;
    color: #ccc;
  }
  .site-nav a.active {
    color: #fff;
    font-weight: 700;
    background: #131313;
    border-left: 3px solid #fff;
    padding-left: 21px;
  }
  .site-nav a.active::after { display: none; }
  .site-nav a:last-child { border-bottom: 0; }

  .nav-cta {
    margin: 16px 24px !important;
    text-align: center;
    border-radius: 8px !important;
    padding: 16px !important;
    background: #fff !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: 0 !important;
  }
}

/* ============================================
   ГЛАВНО СЪДЪРЖАНИЕ
   ============================================ */
main { padding-top: var(--header-h); }

section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--c-text-dim);
  font-size: 17px;
  line-height: 1.6;
}

/* ============================================
   ГЕРОЙ СЕКЦИЯ
   ============================================ */
.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.04), transparent 60%),
    var(--c-bg);
}

.hero-bg-board {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(14deg);
  width: min(95vmin, 800px);
  height: min(95vmin, 800px);
  opacity: 0.08;
  pointer-events: none;
  background:
    repeating-conic-gradient(#fff 0deg 90deg, transparent 90deg 180deg);
  background-size: 25% 25%;
  animation: heroFloat 26s ease-in-out infinite;
  z-index: 0;
}
@keyframes heroFloat {
  0%,100% { transform: translate(-50%, -50%) rotate(14deg); }
  50%     { transform: translate(-50%, -50%) rotate(11deg) scale(1.02); }
}
.hero-content { position: relative; z-index: 1; }

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(180px, 26vw, 280px);
  height: clamp(180px, 26vw, 280px);
  background: #fff;
  border-radius: 50%;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeUp .7s ease both;
  position: relative;
  z-index: 1;
}
.hero-logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}
.hero-content .hero-actions {
  justify-content: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--c-white);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(.8); }
}

.hero-title {
  font-size: clamp(36px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp .9s ease both;
  animation-delay: .1s;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--c-text-dim);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.6;
  animation: fadeUp 1s ease both;
  animation-delay: .2s;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 1.1s ease both;
  animation-delay: .3s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   БУТОНИ
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { opacity: 1; transform: translateY(-2px); }
.btn-primary {
  background: var(--c-white);
  color: var(--c-bg);
  box-shadow: 0 4px 24px rgba(255,255,255,.15);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(255,255,255,.25); }
.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-3); border-color: #444; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ============================================
   ИНФО ЛЕНТА (статистики)
   ============================================ */
.stats-strip {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.stat-num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--c-text-dim);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================
   КАРТИЧКИ (новини, турнири, и т.н.)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #3a3a3a;
  box-shadow: var(--shadow);
}
.card-image {
  aspect-ratio: 16/10;
  background: var(--c-bg-3);
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  font-size: 12px;
  color: var(--c-text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-title {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-excerpt {
  color: var(--c-text-dim);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after {
  content: '→';
  transition: transform var(--t-fast);
}
.card-link:hover::after { transform: translateX(4px); }

/* ============================================
   PLACEHOLDER ЗА КАРТИНКИ
   ============================================ */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 10px, #181818 10px, #181818 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-mute);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  min-height: 160px;
}

/* ============================================
   СТРАНИЦА — ОБЩА ЗАГЛАВНА СЕКЦИЯ
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.05), transparent 60%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--c-text-dim);
  font-size: 18px;
  max-width: 640px;
}

/* ============================================
   ИГРАЧИ
   ============================================ */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.player-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base);
  text-align: center;
}
.player-card:hover { transform: translateY(-4px); border-color: #3a3a3a; }
.player-photo {
  aspect-ratio: 1;
  background: var(--c-bg-3);
  overflow: hidden;
}
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-info { padding: 20px; }
.player-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.player-title-rating {
  font-size: 13px;
  color: var(--c-text-dim);
  letter-spacing: 0.05em;
}
.player-title-rating .title {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  margin-right: 6px;
}

/* ============================================
   ГАЛЕРИЯ
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--c-bg-3);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,.4));
  opacity: 0;
  transition: opacity var(--t-base);
}
.gallery-item:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; animation: fadeUp .3s ease; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  font-size: 24px;
  color: white;
}

/* ============================================
   ТУРНИРИ
   ============================================ */
.tournament-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  transition: border-color var(--t-base);
}
.tournament-card:hover { border-color: #3a3a3a; }
@media (max-width: 720px) {
  .tournament-card { grid-template-columns: 1fr; text-align: center; }
}
.tournament-date {
  text-align: center;
  background: var(--c-bg-3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 100px;
}
.tournament-date .day { display: block; font-size: 32px; font-weight: 800; line-height: 1; }
.tournament-date .month { display: block; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-text-dim); margin-top: 4px; }
.tournament-info h3 { font-size: 22px; margin-bottom: 8px; }
.tournament-info p { color: var(--c-text-dim); font-size: 14px; }
.tournament-status {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.status-upcoming { background: rgba(255,255,255,.1); color: var(--c-white); border: 1px solid var(--c-border); }
.status-ongoing  { background: var(--c-white); color: var(--c-bg); }
.status-finished { color: var(--c-text-mute); border: 1px solid var(--c-border); }

/* ============================================
   СПОНСОРИ
   ============================================ */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  align-items: center;
}
.sponsor-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  transition: transform var(--t-base), border-color var(--t-base);
  text-align: center;
}
.sponsor-card:hover { transform: translateY(-4px); border-color: #3a3a3a; }
.sponsor-card img {
  max-height: 80px; max-width: 100%;
  filter: grayscale(1) brightness(2);
  transition: filter var(--t-base);
  object-fit: contain;
}
.sponsor-card:hover img { filter: grayscale(0) brightness(1); }
.sponsor-card .sponsor-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text-dim);
}

/* ============================================
   КОНТАКТИ
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-block {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--c-white);
  color: var(--c-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.contact-block h4 { font-size: 14px; color: var(--c-text-dim); margin-bottom: 4px; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-block p, .contact-block a { font-size: 16px; }

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--c-text-dim); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--t-fast);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--c-white);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.map-wrap {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.85); }

/* ============================================
   ШАХ СТРАНИЦА
   ============================================ */
.chess-tabs {
  display: flex;
  gap: 4px;
  background: var(--c-surface);
  padding: 6px;
  border-radius: 100px;
  margin: 0 auto 32px;
  width: fit-content;
  border: 1px solid var(--c-border);
}
.chess-tab {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-dim);
  transition: all var(--t-fast);
}
.chess-tab.active {
  background: var(--c-white);
  color: var(--c-bg);
}

.chess-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .chess-layout { grid-template-columns: 1fr; } }

.chess-board-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  position: relative;
}
.chess-square { min-width: 0; min-height: 0; }
.chess-square {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 7vw, 48px);
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast);
}
.chess-square.light { background: #e8e8e8; color: #000; }
.chess-square.dark  { background: #5a5a5a; color: #000; }
.chess-square.selected { background: #ffd54a !important; }
.chess-square.highlight::after {
  content: '';
  position: absolute;
  width: 28%; height: 28%;
  background: rgba(0,0,0,.25);
  border-radius: 50%;
  pointer-events: none;
}
.chess-square.highlight.has-piece::after {
  width: 80%; height: 80%;
  background: transparent;
  border: 4px solid rgba(0,0,0,.25);
  border-radius: 50%;
}
.chess-square.last-move { box-shadow: inset 0 0 0 4px rgba(255,213,74,.6); }
.chess-square.in-check  { background: #ff7777 !important; }
.chess-piece { line-height: 1; pointer-events: none; }
.chess-board.flipped { transform: rotate(180deg); }
.chess-board.flipped .chess-piece { transform: rotate(180deg); }

.chess-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chess-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}
.chess-panel h3 { font-size: 16px; margin-bottom: 12px; }
.chess-status {
  font-size: 14px;
  color: var(--c-text-dim);
  padding: 12px;
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chess-status.success { color: #88ff88; }
.chess-status.error   { color: #ff8888; }

.chess-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chess-controls .btn { width: 100%; justify-content: center; }

.difficulty-select {
  width: 100%;
  padding: 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: inherit;
  font-size: 14px;
}

.move-history {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.move-history span { color: var(--c-text-dim); }
.move-history strong { color: var(--c-white); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 16px;
}
.footer-col a { display: block; margin-bottom: 8px; font-size: 14px; }
.footer-col p { color: var(--c-text-dim); font-size: 14px; margin-bottom: 8px; }
.footer-brand strong { font-size: 18px; }
.footer-brand p { color: var(--c-text-dim); font-size: 13px; margin-top: 4px; }
.footer-about { color: var(--c-text-dim); font-size: 14px; margin-top: 16px; max-width: 380px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-mute);
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer-admin { color: var(--c-text-mute); }

.footer-credit {
  text-align: center;
  font-size: 11px;
  color: var(--c-text-mute);
  padding: 14px 24px;
  margin-top: 16px;
  border-top: 1px solid var(--c-border);
  letter-spacing: 0.02em;
}
.footer-credit a {
  color: var(--c-text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover { color: var(--c-white); }

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 14px;
}
.flash-success { background: rgba(40,200,80,.1); color: #88ff88; border: 1px solid rgba(40,200,80,.3); }
.flash-error   { background: rgba(255,80,80,.1); color: #ff8888; border: 1px solid rgba(255,80,80,.3); }
.flash-info    { background: rgba(255,255,255,.05); color: var(--c-text); border: 1px solid var(--c-border); }

/* ============================================
   ВЪТРЕШНА СТРАНИЦА (сингъл новина и т.н.)
   ============================================ */
.article {
  max-width: 800px;
  margin: 0 auto;
}
.article-meta {
  font-size: 13px;
  color: var(--c-text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}
.article-image {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text);
}
.article-body p  { margin-bottom: 20px; }
.article-body h2 { font-size: 26px; margin: 40px 0 16px; }
.article-body h3 { font-size: 21px; margin: 32px 0 12px; }
.article-body a  { text-decoration: underline; }
.article-body img { margin: 24px 0; border-radius: var(--radius-sm); }

/* ============================================
   УСПЕХИ
   ============================================ */
.decade-block { margin-bottom: 56px; }
.decade-block:last-child { margin-bottom: 0; }
.decade-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(90deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: fit-content;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.achievement-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}
.achievement-card:hover { border-color: #3a3a3a; transform: translateY(-2px); }
.achievement-card::before {
  content: '🏆';
  position: absolute;
  top: -12px;
  right: -12px;
  font-size: 70px;
  opacity: .04;
  transform: rotate(-12deg);
  pointer-events: none;
}
.achievement-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-bg);
  background: var(--c-white);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.achievement-title { font-size: 17px; margin-bottom: 6px; line-height: 1.3; }
.achievement-cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 8px;
}
.achievement-desc { color: var(--c-text-dim); font-size: 14px; line-height: 1.5; }

/* ============================================
   ИМЕНИТИ ЛИЧНОСТИ
   ============================================ */
.personalities-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.personality-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--t-base);
}
.personality-card:hover { border-color: #3a3a3a; }
@media (max-width: 600px) {
  .personality-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.personality-photo {
  width: 160px;
  height: 200px;
  background: var(--c-bg-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .personality-photo { width: 100%; max-width: 220px; margin: 0 auto; aspect-ratio: 4/5; height: auto; }
}
.personality-photo img { width: 100%; height: 100%; object-fit: cover; }
.personality-photo .img-placeholder {
  font-size: 56px;
  font-weight: 800;
  color: var(--c-text-mute);
}
.personality-name { font-size: 22px; margin-bottom: 6px; }
.personality-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
@media (max-width: 600px) { .personality-meta { justify-content: center; } }
.personality-meta span { padding: 3px 10px; background: var(--c-bg); border-radius: 100px; border: 1px solid var(--c-border); }
.personality-bio { color: var(--c-text); font-size: 15px; line-height: 1.65; }

/* ============================================
   АНИМАЦИИ ПРИ СКРОЛ
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
