/* БК Политехника — Дупница: общ стил на сайта.
   Цветовете и шрифтовете са като в „Школата на Джор“: лилаво #3d1d63, оранжево #f07a21, жълто #ffc83d, тъмно #1f1430; Russo One + Nunito.
   Стари iPad (iOS 12): без flex gap, без inset, без aspect-ratio; clamp() винаги има обикновена стойност преди себе си. */

:root {
  --lila: #3d1d63;
  --lila-2: #5a2d91;
  --lila-3: #7b4bc0;
  --lila-svetlo: #efe8fa;
  --oranzh: #f07a21;
  --oranzh-tamno: #c75a0c;
  --zhalto: #ffc83d;
  --tamno: #1f1430;
  --fon: #f7f4fb;
  --byalo: #ffffff;
  --tekst: #1f1430;
  --sivo: #5b5170;
  --liniya: rgba(61, 29, 99, 0.14);
  --senka: 0 10px 30px rgba(31, 20, 48, 0.12);
  --radius: 16px;
  --shrift-zaglavie: "Russo One", "Arial Black", Arial, sans-serif;
  --shrift: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
  --shirina: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fon);
  color: var(--tekst);
  font-family: var(--shrift);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lila-2); }
a:hover { color: var(--oranzh-tamno); }
h1, h2, h3, h4 { font-family: var(--shrift-zaglavie); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1 { font-size: 34px; font-size: clamp(30px, 5.2vw, 56px); }
h2 { font-size: 28px; font-size: clamp(25px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: 3px solid var(--zhalto); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--zhalto); color: var(--tamno); padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 8px; }
.in { max-width: var(--shirina); margin: 0 auto; padding: 0 20px; }

/* ---------- демо лента ---------- */
.demo-lenta { background: var(--tamno); color: #e9defa; font-size: 13.5px; line-height: 1.35; }
.demo-lenta .in { display: block; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.demo-lenta b { color: var(--zhalto); font-weight: 800; margin-right: 6px; }

/* ---------- горна лента ---------- */
.glava { background: var(--lila); color: #fff; position: -webkit-sticky; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22); }
.glava .in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: flex; align-items: center; color: #fff; text-decoration: none; flex: none; margin-right: 12px; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo img { width: 48px; height: 48px; margin-right: 10px; }
.logo span { display: block; font-family: var(--shrift-zaglavie); font-size: 19px; line-height: 1.05; }
.logo small { display: block; font-family: var(--shrift); font-size: 12.5px; font-weight: 700; color: var(--zhalto); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.menu { display: flex; align-items: center; }
.menu a { color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 9px; border-radius: 10px; margin-left: 1px; white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.menu a.menu-dzhor { background: var(--oranzh); color: #fff; margin-left: 8px; }
.menu a.menu-dzhor:hover, .menu a.menu-dzhor[aria-current="page"] { background: var(--oranzh-tamno); }
.glava-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; margin-left: 8px; padding: 0 10px; font-weight: 800; font-size: 14px; }
.glava-btn:hover { background: rgba(255, 255, 255, 0.22); }
.glava-btn svg { width: 24px; height: 24px; }
.glava-btn .etiket { margin-left: 6px; }
.menu-btn { display: none; }
.glava-desno { display: flex; align-items: center; }

@media (max-width: 1440px) { .glava-btn .etiket { display: none; } }
@media (max-width: 1280px) {
  .menu-btn { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--lila); flex-direction: column; align-items: stretch; padding: 8px 14px 16px; box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25); max-height: 80vh; overflow-y: auto; }
  .menu.otvoreno { display: flex; }
  .menu a { padding: 13px 12px; font-size: 17px; margin: 2px 0; }
  .menu a.menu-dzhor { margin: 8px 0 0; text-align: center; }
  .glava-btn .etiket { display: none; }
}
@media (max-width: 420px) {
  .logo img { width: 42px; height: 42px; }
  .logo span { font-size: 17px; }
}

/* ---------- панел достъпност ---------- */
.panel-dostap { display: none; background: #fff; color: var(--tekst); border-bottom: 4px solid var(--oranzh); }
.panel-dostap.otvoreno { display: block; }
.panel-dostap .in { padding-top: 14px; padding-bottom: 16px; }
.panel-dostap h2 { font-size: 20px; margin-bottom: 8px; }
.panel-dostap .redove { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.panel-dostap button { border: 2px solid var(--lila); background: #fff; color: var(--lila); border-radius: 999px; padding: 9px 16px; font-weight: 800; cursor: pointer; margin: 5px; }
.panel-dostap button[aria-pressed="true"] { background: var(--lila); color: #fff; }
.panel-dostap p { margin: 8px 0 0; font-size: 15px; color: var(--sivo); }

/* ---------- бутони ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 16.5px; line-height: 1.2; text-align: center; }
.btn svg { width: 20px; height: 20px; margin-right: 8px; flex: none; }
.btn-oranzh { background: var(--oranzh); color: #fff; }
.btn-oranzh:hover { background: var(--oranzh-tamno); color: #fff; }
.btn-lila { background: var(--lila); color: #fff; }
.btn-lila:hover { background: var(--lila-2); color: #fff; }
.btn-kontur { border-color: currentColor; color: var(--lila); background: transparent; }
.btn-kontur:hover { background: var(--lila-svetlo); color: var(--lila); }
.btn-byal-kontur { border-color: rgba(255, 255, 255, 0.75); color: #fff; background: rgba(31, 20, 48, 0.25); }
.btn-byal-kontur:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.btn-zhalt { background: var(--zhalto); color: var(--tamno); }
.btn-zhalt:hover { background: #ffd666; color: var(--tamno); }
.btni { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.btni > * { margin: 6px; }

/* ---------- начален екран ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--tamno) url("/media/fb/fon-topka-kosh-grad.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(100deg, rgba(31, 20, 48, 0.96) 0%, rgba(45, 22, 78, 0.88) 45%, rgba(61, 29, 99, 0.35) 100%); }
.hero .in { position: relative; display: flex; align-items: flex-end; min-height: 560px; }
.hero-tekst { position: relative; z-index: 2; max-width: 640px; padding: 64px 0 56px; }
.nadpis { display: inline-block; background: var(--oranzh); color: #fff; font-weight: 800; font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 42px; font-size: clamp(36px, 6vw, 68px); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--zhalto); }
.hero .podzaglavie { font-size: 19px; font-size: clamp(17px, 2vw, 21px); color: #eadff9; max-width: 560px; margin-bottom: 26px; }
.hero-dzhor { position: absolute; right: 2%; bottom: 0; width: 360px; max-width: 38%; z-index: 1; pointer-events: none; }
.hero-dzhor img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); }
@media (max-width: 860px) {
  .hero .in { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-tekst { padding: 40px 0 0; }
  .hero-dzhor { position: relative; right: auto; width: 230px; max-width: 62%; margin: 8px auto 0; }
}

.lenta-fakti { background: var(--zhalto); color: var(--tamno); }
.lenta-fakti ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.lenta-fakti li { flex: 1 1 25%; min-width: 0; padding: 18px 16px; border-right: 2px solid rgba(31, 20, 48, 0.12); }
@media (max-width: 760px) { .lenta-fakti li { flex-basis: 50%; border-right: 0; border-bottom: 2px solid rgba(31, 20, 48, 0.12); } }
.lenta-fakti li:last-child { border-right: 0; }
.lenta-fakti b { display: block; font-family: var(--shrift-zaglavie); font-size: 30px; line-height: 1.05; color: var(--lila); }
.lenta-fakti li > span { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; margin-top: 4px; }

/* ---------- раздели ---------- */
.razdel { padding: 64px 0; }
.razdel-byal { background: #fff; }
.razdel-lila { background: var(--lila); color: #fff; }
.razdel-lila a:not(.btn) { color: var(--zhalto); }
.razdel-tamen { background: var(--tamno); color: #fff; }
.razdel-tamen a:not(.btn) { color: var(--zhalto); }
.glava-razdel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.glava-razdel > div { max-width: 720px; }
.glava-razdel p { color: var(--sivo); margin: 0; font-size: 18px; }
.razdel-lila .glava-razdel p, .razdel-tamen .glava-razdel p { color: #ddd0f3; }
.etiket-razdel { display: block; color: var(--oranzh-tamno); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13.5px; margin-bottom: 8px; }
.razdel-lila .etiket-razdel, .razdel-tamen .etiket-razdel { color: var(--zhalto); }
.vavedenie { font-size: 19px; color: var(--sivo); max-width: 760px; }

/* решетки: grid за новите браузъри; за iOS 12 grid също работи (grid-gap) */
.mreja { display: grid; grid-gap: 20px; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mreja-2 { display: grid; grid-gap: 28px; gap: 28px; grid-template-columns: 1fr 1fr; align-items: center; }
.mreja-3 { display: grid; grid-gap: 20px; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.mreja-4 { display: grid; grid-gap: 18px; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.mreja-programa { display: grid; grid-gap: 32px; gap: 32px; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .mreja-programa { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .mreja-4 { grid-template-columns: repeat(2, 1fr); } .mreja-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .mreja-2, .mreja-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mreja-4 { grid-template-columns: 1fr; } }

.karta { background: #fff; border-radius: var(--radius); box-shadow: var(--senka); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--liniya); }
.karta-tyalo { padding: 20px 22px 22px; flex: 1 1 auto; display: flex; flex-direction: column; }
.karta-tyalo > :last-child { margin-bottom: 0; }
.karta h3 { margin-bottom: 8px; }
.karta p { color: var(--sivo); }
.karta .dolu { margin-top: auto; padding-top: 8px; }
.karta-snimka { position: relative; padding-top: 56.25%; background: var(--lila-svetlo); overflow: hidden; }
.karta-snimka img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.karta-snimka.kvadrat { padding-top: 100%; }
a.karta { text-decoration: none; color: inherit; }
a.karta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(31, 20, 48, 0.18); }
.karta, a.karta { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.data { display: block; font-size: 14px; font-weight: 800; color: var(--oranzh-tamno); letter-spacing: 0.04em; margin-bottom: 6px; text-transform: uppercase; }
.znachka { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--lila-svetlo); color: var(--lila); margin: 0 6px 6px 0; }
.znachka-oranzh { background: #fde5d2; color: #8a3b05; }
.znachka-zhalta { background: #fff1c7; color: #6b4b00; }
.znachka-zelena { background: #dff3e4; color: #15592a; }
.znachka-cherv { background: #fbe0e0; color: #8a1c1c; }

/* място за снимка, която чака съгласие */
.saglasie { position: relative; padding-top: 56.25%; background: repeating-linear-gradient(135deg, #efe8fa 0, #efe8fa 14px, #e7ddf6 14px, #e7ddf6 28px); border-bottom: 1px solid var(--liniya); }
.saglasie > div { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; color: var(--lila); }
.saglasie svg { width: 46px; height: 46px; opacity: 0.6; margin-bottom: 6px; }
.saglasie b { font-weight: 800; font-size: 15px; }
.saglasie small { display: block; font-size: 13px; color: var(--sivo); margin-top: 2px; }

/* ---------- мачове ---------- */
.machove { list-style: none; margin: 0; padding: 0; }
.mach { background: #fff; border: 1px solid var(--liniya); border-radius: 14px; box-shadow: 0 4px 14px rgba(31, 20, 48, 0.06); padding: 16px 18px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; }
.mach-koga { width: 140px; flex: none; font-weight: 800; color: var(--lila); line-height: 1.3; }
.mach-koga small { display: block; color: var(--sivo); font-weight: 700; font-size: 14px; }
.mach-sreda { flex: 1 1 220px; min-width: 0; padding: 0 12px; }
.mach-otbori { font-weight: 800; font-size: 18px; line-height: 1.3; }
.mach-info { font-size: 14.5px; color: var(--sivo); margin-top: 2px; }
.mach-rezultat { flex: none; text-align: right; min-width: 110px; }
.mach-rezultat b { display: block; font-family: var(--shrift-zaglavie); font-size: 26px; line-height: 1.1; color: var(--tamno); }
.mach.pobeda { border-left: 6px solid #1f8a3e; }
.mach.zaguba { border-left: 6px solid #b3261e; }
.mach.bez { border-left: 6px solid #a99cc0; }
@media (max-width: 640px) {
  .mach-koga { width: 100%; margin-bottom: 4px; }
  .mach-koga small { display: inline; margin-left: 6px; }
  .mach-sreda { padding: 0; flex-basis: 60%; }
  .mach-rezultat { min-width: 0; margin-left: auto; }
}
.filtri { display: flex; flex-wrap: wrap; margin: 0 -4px 18px; }
.filtri button { border: 2px solid var(--liniya); background: #fff; color: var(--lila); border-radius: 999px; padding: 8px 14px; font-weight: 800; cursor: pointer; margin: 4px; font-size: 15px; }
.filtri button[aria-pressed="true"] { background: var(--lila); border-color: var(--lila); color: #fff; }
.prazno { padding: 18px; background: #fff; border-radius: 14px; border: 1px dashed var(--liniya); color: var(--sivo); }

/* ---------- отбори ---------- */
.otbor .karta-tyalo { padding-top: 16px; }
.otbor-grupa { margin-bottom: 44px; }
.otbor-grupa > h2 { font-size: 26px; }
.otbor dl { margin: 0 0 12px; font-size: 15px; }
.otbor dt { font-weight: 800; color: var(--lila); }
.otbor dd { margin: 0 0 6px; color: var(--sivo); }

/* ---------- Школата на Джор ---------- */
.shkolata-band { background: linear-gradient(120deg, #2a1347 0%, var(--lila) 55%, #5a2d91 100%); color: #fff; position: relative; overflow: hidden; }
.shkolata-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 61, 0.35), rgba(255, 200, 61, 0) 70%); }
.shkolata-band .in { position: relative; z-index: 1; }
.shkolata-band a:not(.btn):not(.ramka-snimka) { color: var(--zhalto); }
.shkolata-band h2 em { color: var(--zhalto); font-style: normal; }
.ramka-snimka { border-radius: 20px; overflow: hidden; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35); border: 4px solid rgba(255, 255, 255, 0.14); }
.komiksi-lenta { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 2px 14px; margin: 0 -2px; }
.komiksi-lenta a { flex: none; width: 200px; margin-right: 14px; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; line-height: 1.3; }
.komiksi-lenta a:hover { color: var(--zhalto); }
.komiksi-lenta img { width: 200px; height: 133px; object-fit: cover; border-radius: 12px; margin-bottom: 6px; border: 2px solid rgba(255, 255, 255, 0.18); }
.komiksi-lenta small { display: block; color: #d6c8ef; font-weight: 700; font-size: 13px; }
.razdel-byal .komiksi-lenta a, .razdel .komiksi-lenta a { color: var(--tekst); }
.razdel-lila .komiksi-lenta a, .shkolata-band .komiksi-lenta a { color: #fff; }

/* ---------- фен карти ---------- */
.fen-karta { border-radius: 18px; padding: 22px; color: var(--tamno); box-shadow: var(--senka); position: relative; overflow: hidden; min-height: 170px; display: flex; flex-direction: column; }
.fen-karta h3 { font-size: 20px; margin-bottom: 4px; }
.fen-karta .cena { font-family: var(--shrift-zaglavie); font-size: 40px; line-height: 1; margin-top: auto; }
.fen-sezonna { background: linear-gradient(135deg, #ffffff, #e9e4f1); }
.fen-silver { background: linear-gradient(135deg, #f1f1f4, #b9bcc6); }
.fen-gold { background: linear-gradient(135deg, #fff3c4, #e2b23c); }
.fen-platinum { background: linear-gradient(135deg, #f4e7df, #c8a18a); }

/* ---------- Джор ---------- */
.dzhor-snimka { max-width: 420px; margin: 0 auto; }
.citat { font-family: var(--shrift-zaglavie); font-size: 24px; color: var(--zhalto); line-height: 1.25; margin: 0 0 16px; }

/* ---------- статии ---------- */
.statia { max-width: 780px; margin: 0 auto; }
.statia h1 { font-size: 32px; font-size: clamp(28px, 4.2vw, 46px); }
.statia .vodene { font-size: 20px; color: var(--sivo); }
.statia figure { margin: 26px 0; }
.statia figure img { border-radius: 16px; box-shadow: var(--senka); margin: 0 auto; }
.statia figcaption { font-size: 14px; color: var(--sivo); margin-top: 8px; text-align: center; }
.iztochnik { font-size: 14.5px; color: var(--sivo); border-top: 1px solid var(--liniya); padding-top: 12px; margin-top: 28px; }
.trohi { font-size: 14.5px; margin-bottom: 18px; color: var(--sivo); }
.trohi a { color: var(--sivo); }
.stranica-glava { background: var(--lila); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; }
.stranica-glava::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(240, 122, 33, 0.25); }
.stranica-glava .in { position: relative; z-index: 1; }
.stranica-glava h1 { margin-bottom: 10px; }
.stranica-glava p { color: #e5d9f7; font-size: 19px; max-width: 760px; margin: 0; }
.stranica-glava .trohi, .stranica-glava .trohi a { color: #d6c8ef; }

/* ---------- списък с факти ---------- */
.fakti-spisak { list-style: none; padding: 0; margin: 0; }
.fakti-spisak li { background: #fff; border: 1px solid var(--liniya); border-left: 5px solid var(--oranzh); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.fakti-spisak li b { color: var(--lila); }
.vremeva { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 4px solid var(--lila-svetlo); }
.vremeva li { position: relative; margin-bottom: 22px; }
.vremeva li::before { content: ""; position: absolute; left: -38px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--oranzh); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--oranzh); }
.vremeva b { display: block; font-family: var(--shrift-zaglavie); color: var(--lila); font-size: 20px; font-weight: 400; }

/* ---------- форми ---------- */
.forma { background: #fff; border-radius: var(--radius); box-shadow: var(--senka); padding: 24px; border: 1px solid var(--liniya); }
.pole { margin-bottom: 16px; }
.pole label, .pole legend { display: block; font-weight: 800; margin-bottom: 6px; color: var(--lila); }
.pole input[type="text"], .pole input[type="tel"], .pole input[type="email"], .pole input[type="number"], .pole select, .pole textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #cfc3e3; border-radius: 12px; background: #fff; font-size: 17px; -webkit-appearance: none; appearance: none; }
.pole select { background-image: linear-gradient(45deg, transparent 50%, var(--lila) 50%), linear-gradient(135deg, var(--lila) 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pole textarea { min-height: 120px; resize: vertical; }
.pole input:focus, .pole select:focus, .pole textarea:focus { border-color: var(--lila); outline: 3px solid var(--zhalto); outline-offset: 0; }
.pole .pomosht { font-size: 14px; color: var(--sivo); margin-top: 4px; }
.pole fieldset { border: 0; margin: 0; padding: 0; }
.izbor { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.izbor label { display: inline-flex; align-items: center; font-weight: 700; color: var(--tekst); background: var(--lila-svetlo); border-radius: 999px; padding: 8px 14px; margin: 4px; cursor: pointer; }
.izbor input { margin: 0 8px 0 0; width: 18px; height: 18px; }
.otmetka { display: flex; align-items: flex-start; font-weight: 700; }
.otmetka input { margin: 4px 10px 0 0; width: 20px; height: 20px; flex: none; }
.greshka { color: #b3261e; font-weight: 800; font-size: 15px; margin-top: 4px; }
.demo-belezhka { background: #fff7dc; border: 2px dashed #e6b422; color: #5b4300; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }
.rezultat-forma { display: none; background: #eefaf1; border: 2px solid #1f8a3e; border-radius: 14px; padding: 16px 18px; margin-top: 16px; }
.rezultat-forma.vidimo { display: block; }
.rezultat-forma h3 { color: #15592a; font-size: 19px; }
.grupa-otgovor { display: none; background: var(--lila-svetlo); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.grupa-otgovor.vidimo { display: block; }

/* ---------- викторина ---------- */
.viktorina { background: #fff; border-radius: var(--radius); box-shadow: var(--senka); padding: 24px; border: 1px solid var(--liniya); }
.vapros { margin-bottom: 22px; }
.vapros h3 { font-family: var(--shrift); font-weight: 800; font-size: 19px; }
.vapros .otgovori { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.vapros button { border: 2px solid #cfc3e3; background: #fff; border-radius: 12px; padding: 10px 16px; margin: 5px; font-weight: 800; cursor: pointer; min-height: 46px; }
.vapros button:hover { border-color: var(--lila); }
.vapros button.veren { background: #dff3e4; border-color: #1f8a3e; color: #15592a; }
.vapros button.greshen { background: #fbe0e0; border-color: #b3261e; color: #8a1c1c; }
.vapros .obyasnenie { display: none; margin-top: 6px; font-size: 15.5px; color: var(--sivo); }
.vapros.otgovoren .obyasnenie { display: block; }
.tochki { font-family: var(--shrift-zaglavie); font-size: 22px; color: var(--lila); }

/* ---------- контакти ---------- */
.kontakt-red { display: flex; align-items: flex-start; margin-bottom: 14px; }
.kontakt-red svg { width: 26px; height: 26px; flex: none; margin: 2px 12px 0 0; color: var(--oranzh); }
.kontakt-red b { display: block; color: var(--lila); }
.razdel-lila .kontakt-red b, .razdel-tamen .kontakt-red b { color: var(--zhalto); }
.kopirai { border: 0; background: var(--lila-svetlo); color: var(--lila); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13.5px; cursor: pointer; margin-left: 6px; }

/* ---------- галерия / голяма снимка ---------- */
.lupa { cursor: zoom-in; }
.prozorec { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; background: rgba(15, 8, 26, 0.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.prozorec.otvoreno { display: flex; }
.prozorec img { max-height: 88vh; max-width: 100%; width: auto; border-radius: 12px; }
.prozorec button { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--tamno); font-size: 26px; font-weight: 800; cursor: pointer; line-height: 1; }

/* ---------- долу ---------- */
.futer { background: var(--tamno); color: #d9cdef; padding: 48px 0 28px; font-size: 15.5px; }
.futer a { color: #fff; }
.futer a:hover { color: var(--zhalto); }
.futer h2 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.futer ul { list-style: none; padding: 0; margin: 0; }
.futer li { margin-bottom: 6px; }
.futer-mreja { display: grid; grid-gap: 26px; gap: 26px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .futer-mreja { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .futer-mreja { grid-template-columns: 1fr; } }
.futer-dolu { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 30px; padding-top: 18px; font-size: 14px; color: #b9abd3; }
.futer-dolu p { margin: 0 0 6px; }
.futer-dolu .dzhor-belezhka { color: #fff; font-weight: 700; }
.futer-logo { display: flex; align-items: center; margin-bottom: 12px; }
.futer-logo img { width: 56px; height: 56px; margin-right: 12px; }
.futer-logo b { font-family: var(--shrift-zaglavie); font-weight: 400; font-size: 20px; color: #fff; line-height: 1.1; }
.socialni a { display: inline-flex; align-items: center; margin: 0 12px 8px 0; text-decoration: none; font-weight: 800; }
.socialni svg { width: 22px; height: 22px; margin-right: 6px; }

/* ---------- споделяне ---------- */
.spodeli { display: flex; flex-wrap: wrap; align-items: center; margin: 22px -4px 0; }
.spodeli span { font-weight: 800; font-size: 14px; color: var(--sivo); margin: 4px 6px 4px 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.spodeli a, .spodeli button { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--liniya); background: #fff; color: var(--lila); font-weight: 800; font-size: 14.5px; text-decoration: none; cursor: pointer; margin: 4px; }

/* ---------- гласов режим ---------- */
.glas-fab { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: var(--oranzh); color: #fff; font-weight: 800; padding: 12px 18px 12px 14px; box-shadow: 0 10px 26px rgba(31, 20, 48, 0.35); cursor: pointer; font-size: 15.5px; }
.glas-fab svg { width: 24px; height: 24px; margin-right: 8px; }
.glas-fab:hover { background: var(--oranzh-tamno); }
.glas-fab.govori { background: var(--lila); }
.glas-panel { position: fixed; right: 16px; bottom: 80px; z-index: 121; width: 360px; max-width: calc(100% - 32px); max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; color: var(--tekst); border-radius: 18px; box-shadow: 0 24px 60px rgba(31, 20, 48, 0.4); border: 3px solid var(--lila); display: none; }
.glas-panel.otvoreno { display: block; }
.glas-panel .glas-glava { background: var(--lila); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.glas-panel .glas-glava h2 { font-size: 19px; margin: 0; }
.glas-panel .glas-glava button { border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 22px; font-weight: 800; cursor: pointer; }
.glas-panel .glas-tyalo { padding: 14px 16px 16px; }
.glas-status { background: var(--lila-svetlo); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 15px; margin-bottom: 12px; min-height: 44px; }
.glas-btni { display: flex; flex-wrap: wrap; margin: 0 -4px 10px; }
.glas-btni button { flex: 1 1 45%; margin: 4px; border: 2px solid var(--lila); background: #fff; color: var(--lila); border-radius: 12px; padding: 10px 8px; font-weight: 800; cursor: pointer; min-height: 46px; font-size: 15px; }
.glas-btni button.glaven { background: var(--lila); color: #fff; }
.glas-btni button[disabled] { opacity: 0.45; cursor: default; }
.glas-panel label { font-weight: 800; font-size: 14.5px; color: var(--lila); display: block; margin: 6px 0 4px; }
.glas-panel select { width: 100%; min-height: 42px; border: 2px solid #cfc3e3; border-radius: 10px; padding: 6px 10px; background: #fff; }
.glas-panel details { margin-top: 10px; font-size: 14.5px; }
.glas-panel summary { cursor: pointer; font-weight: 800; color: var(--lila); }
.glas-panel ul { padding-left: 1.1em; margin: 6px 0 0; }
.glas-chete { outline: 4px solid var(--zhalto) !important; outline-offset: 4px; background: rgba(255, 200, 61, 0.18) !important; border-radius: 6px; }
@media (max-width: 520px) { .glas-fab .etiket { display: none; } .glas-fab { padding: 14px; } .glas-fab svg { margin: 0; } }
@media print { .glas-fab, .glas-panel, .glava, .demo-lenta, .panel-dostap { display: none !important; } }

/* ---------- настройки за достъпност (клас на <html>) ---------- */
html.a-golyam body { font-size: 20px; }
html.a-golyam .menu a { font-size: 17px; }
html.a-vrazki a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a-kontrast body { background: #fff; color: #000; }
html.a-kontrast .karta, html.a-kontrast .mach, html.a-kontrast .forma, html.a-kontrast .viktorina { border: 2px solid #000; box-shadow: none; }
html.a-kontrast .karta p, html.a-kontrast .mach-info, html.a-kontrast .glava-razdel p, html.a-kontrast .vavedenie, html.a-kontrast .pole .pomosht { color: #000; }
html.a-kontrast .hero::before { background: rgba(10, 5, 20, 0.94); }
html.a-kontrast .razdel-lila, html.a-kontrast .stranica-glava, html.a-kontrast .shkolata-band { background: #000; }
html.a-kontrast a:not(.btn) { color: #2b0a73; }
html.a-kontrast .razdel-lila a:not(.btn), html.a-kontrast .razdel-tamen a:not(.btn), html.a-kontrast .futer a, html.a-kontrast .shkolata-band a:not(.btn) { color: #ffe27a; }
html.a-bez-dvizhenie *, html.a-bez-dvizhenie *::before, html.a-bez-dvizhenie *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- 404 ---------- */
.ne-e-namereno { text-align: center; padding: 80px 0; }
.ne-e-namereno img { width: 200px; margin: 0 auto 20px; }

/* ---------- видео в началото (истински снимки от мачове) ---------- */
.hero-video { background: #120a1f url("/media/video/hero-poster.jpg") center / cover no-repeat; }
.hero-vid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::before { z-index: 1; background: linear-gradient(95deg, rgba(18, 10, 31, 0.9) 0%, rgba(31, 20, 48, 0.72) 42%, rgba(31, 20, 48, 0.15) 75%, rgba(31, 20, 48, 0.05) 100%), linear-gradient(0deg, rgba(18, 10, 31, 0.55) 0%, rgba(18, 10, 31, 0) 35%); }
.hero-video .in { z-index: 2; min-height: 620px; min-height: 78vh; align-items: center; }
.hero-video .hero-tekst { padding: 80px 0; }
.hero-video h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
.hero-pauza { position: absolute; z-index: 3; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); background: rgba(18, 10, 31, 0.45); color: #fff; font-size: 14px; cursor: pointer; letter-spacing: -2px; }
.hero-pauza[aria-pressed="true"] span { letter-spacing: 0; }
@media (max-width: 860px) { .hero-video .in { min-height: 560px; min-height: 82vh; } .hero-video::before { background: linear-gradient(0deg, rgba(18, 10, 31, 0.95) 0%, rgba(31, 20, 48, 0.75) 55%, rgba(31, 20, 48, 0.25) 100%); } .hero-pauza { bottom: auto; top: 16px; right: 16px; } }
@media (prefers-reduced-motion: reduce) { .hero-vid { display: none; } }
html.a-bez-dvizhenie .hero-vid { display: none; }

/* ---------- галерия ---------- */
.galeriya { display: grid; grid-gap: 10px; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.galeriya a { display: block; position: relative; padding-top: 70%; overflow: hidden; border-radius: 12px; background: #2a1b40; }
.galeriya img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.galeriya a:hover img, .galeriya a:focus img { transform: scale(1.06); }
.galeriya-malka { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 18px; }
.prozorec .strelka { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--tamno); font-size: 30px; font-weight: 800; cursor: pointer; line-height: 1; }
.prozorec .strelka.nazad { left: 14px; right: auto; top: 50%; }
.prozorec .strelka.napred { right: 14px; left: auto; top: 50%; }

/* ---------- бележки и формите ---------- */
.belezhka { background: var(--lila-svetlo); border-left: 5px solid var(--lila); color: var(--tekst); border-radius: 10px; padding: 12px 14px; font-size: 15.5px; margin-bottom: 16px; }
.greshka-forma { display: none; background: #fdecec; border: 2px solid #b3261e; border-radius: 14px; padding: 16px 18px; margin-top: 16px; }
.greshka-forma.vidimo { display: block; }
.greshka-forma h3 { color: #8a1c1c; font-size: 19px; }
.forma button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Facebook: живата лента с публикациите ---------- */
.fb-kutia { width: 100%; max-width: 500px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--senka); border: 1px solid var(--liniya); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.fb-kutia iframe { display: block; border: 0; overflow: hidden; width: 100%; }
.fb-kutia.zaredeno { display: block; min-height: 0; }
.fb-rezerva { display: inline-flex; align-items: center; font-weight: 800; padding: 16px; text-decoration: none; color: #1877f2; }
.fb-rezerva svg { width: 26px; height: 26px; margin-right: 8px; }
.fb-kutia.zaredeno .fb-rezerva { display: none; }

/* ---------- Джор в началото: стъпил на паркета вдясно, със сянка под краката ---------- */
.hero-dzhor-gore { position: absolute; z-index: 2; bottom: 0; right: 5%; width: 330px; max-width: 28%; pointer-events: none; animation: dzhor-vliza 0.9s ease-out both; }
.hero-dzhor-gore::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -8px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 70%); z-index: -1; }
.hero-dzhor-gore img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)) saturate(0.95); }
@keyframes dzhor-vliza { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero-dzhor-gore { right: 6px; width: 120px; max-width: none; }
  .hero-pauza { bottom: auto; top: 16px; right: 16px; }
}

/* ================= горна лента: по-атрактивна (1.4.0) ================= */
.glava { background: linear-gradient(90deg, #22103b 0%, #3d1d63 48%, #4f2588 100%); box-shadow: 0 8px 26px rgba(18, 10, 31, 0.35); transition: background 0.35s ease, box-shadow 0.35s ease; }
.glava::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--oranzh) 0%, var(--zhalto) 50%, var(--oranzh) 100%); transition: opacity 0.35s ease; }
.glava .in { min-height: 78px; }
.logo img { width: 56px; height: 56px; border-radius: 50%; margin-right: 12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 0 0 6px rgba(240, 122, 33, 0.6), 0 8px 20px rgba(0, 0, 0, 0.45); transition: transform 0.35s ease; }
.logo:hover img { transform: rotate(-10deg) scale(1.06); }
.logo span { font-size: 21px; letter-spacing: 0.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.logo small { letter-spacing: 0.18em; }
.menu a { position: relative; background: none; text-transform: uppercase; font-size: 13px; letter-spacing: 0.035em; padding: 10px 7px; color: #f3ecff; }
.menu a:hover, .menu a[aria-current="page"] { background: none; color: #fff; }
.menu a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 3px; border-radius: 3px; background: var(--zhalto); transition: left 0.25s ease, right 0.25s ease; }
.menu a:hover::after, .menu a:focus::after, .menu a[aria-current="page"]::after { left: 7px; right: 7px; }
.menu a[aria-current="page"] { color: var(--zhalto); }
.menu a.menu-dzhor { background: linear-gradient(135deg, var(--oranzh) 0%, #ffa53a 100%); color: #fff; border-radius: 999px; padding: 11px 16px; margin-left: 10px; box-shadow: 0 6px 18px rgba(240, 122, 33, 0.5); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.menu a.menu-dzhor::after { display: none; }
.menu a.menu-dzhor:hover, .menu a.menu-dzhor[aria-current="page"] { background: linear-gradient(135deg, #ff8a2b 0%, var(--zhalto) 100%); color: var(--tamno); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(240, 122, 33, 0.6); }
.glava-btn { width: 46px; min-width: 46px; height: 46px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); }
.glava-btn:hover { background: rgba(255, 255, 255, 0.2); }
.glava-btn .etiket { display: none; }

/* началото: прозрачна над видеото, матово стъкло при превъртане */
body.str-nachalo .glava { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(18, 10, 31, 0.78) 0%, rgba(18, 10, 31, 0.35) 70%, rgba(18, 10, 31, 0) 100%); box-shadow: none; }
body.str-nachalo .glava::after { opacity: 0; }
body.str-nachalo .glava.skrol, body.str-nachalo .glava.menu-otv { background: rgba(34, 16, 59, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 8px 26px rgba(18, 10, 31, 0.35); }
body.str-nachalo .glava.skrol::after { opacity: 1; }
body.str-nachalo .hero-video .in { padding-top: 78px; }
body.str-nachalo .panel-dostap { position: fixed; top: 78px; left: 0; right: 0; z-index: 49; }

@media (max-width: 1280px) {
  .menu { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; max-height: none; padding: 26px 22px 40px; background: linear-gradient(160deg, #22103b 0%, #3d1d63 55%, #5a2d91 100%); box-shadow: none; }
  .menu a { font-family: var(--shrift-zaglavie); text-transform: none; letter-spacing: 0.01em; font-size: 24px; padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .menu a::after { display: none; }
  .menu a[aria-current="page"] { color: var(--zhalto); }
  .menu.otvoreno a { animation: menu-vliza 0.35s ease both; }
  .menu.otvoreno a:nth-child(2) { animation-delay: 0.03s; } .menu.otvoreno a:nth-child(3) { animation-delay: 0.06s; } .menu.otvoreno a:nth-child(4) { animation-delay: 0.09s; }
  .menu.otvoreno a:nth-child(5) { animation-delay: 0.12s; } .menu.otvoreno a:nth-child(6) { animation-delay: 0.15s; } .menu.otvoreno a:nth-child(7) { animation-delay: 0.18s; }
  .menu.otvoreno a:nth-child(8) { animation-delay: 0.21s; } .menu.otvoreno a:nth-child(9) { animation-delay: 0.24s; }
  .menu a.menu-dzhor { margin: 18px 0 0; text-align: center; border-bottom: 0; font-size: 20px; }
}
@keyframes menu-vliza { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .logo img { width: 48px; height: 48px; } .glava .in { min-height: 72px; } .menu, body.str-nachalo .panel-dostap { top: 72px; } body.str-nachalo .hero-video .in { padding-top: 72px; } }

/* отворено меню: без стъклото (иначе менюто на цял екран се свива до лентата) */
body.str-nachalo .glava.menu-otv { -webkit-backdrop-filter: none; backdrop-filter: none; background: #22103b; }

.glas-panel .glas-koi { margin: 10px 0 0; font-size: 15px; color: var(--sivo); }
.glas-panel .glas-koi b { color: var(--lila); }

/* ================= вътрешните страници (1.7.0): снимка горе, табло за мачовете ================= */
.stranica-glava { background-color: #22103b; background-position: center 35%; background-size: cover; background-repeat: no-repeat; padding: 150px 0 58px; min-height: 400px; display: flex; align-items: flex-end; }
.stranica-glava .in { width: 100%; }
.stranica-glava::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(95deg, rgba(18, 10, 31, 0.93) 0%, rgba(34, 16, 59, 0.8) 42%, rgba(61, 29, 99, 0.3) 100%), linear-gradient(0deg, rgba(18, 10, 31, 0.65) 0%, rgba(18, 10, 31, 0) 55%); }
.stranica-glava::after { right: -80px; bottom: -150px; border-color: rgba(240, 122, 33, 0.35); }
.stranica-glava h1 { font-size: 40px; font-size: clamp(36px, 5.4vw, 64px); text-shadow: 0 4px 22px rgba(0, 0, 0, 0.45); }
.stranica-glava p { font-size: 19px; color: #efe6fb; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
@media (max-width: 760px) { .stranica-glava { padding: 120px 0 40px; min-height: 320px; } }

/* прозрачна лента над снимката горе (като на началото) */
body.foto-glava .glava { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(18, 10, 31, 0.78) 0%, rgba(18, 10, 31, 0.35) 70%, rgba(18, 10, 31, 0) 100%); box-shadow: none; }
body.foto-glava .glava::after { opacity: 0; }
body.foto-glava .glava.skrol { background: rgba(34, 16, 59, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 8px 26px rgba(18, 10, 31, 0.35); }
body.foto-glava .glava.skrol::after { opacity: 1; }
body.foto-glava .panel-dostap { position: fixed; top: 78px; left: 0; right: 0; z-index: 49; }
body.foto-glava .glava.menu-otv { -webkit-backdrop-filter: none; backdrop-filter: none; background: #22103b; }
@media (max-width: 420px) { body.foto-glava .panel-dostap { top: 72px; } }

/* мачовете като табло */
.mach { padding: 0; overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 8px 22px rgba(31, 20, 48, 0.09); align-items: stretch; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.mach:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 20, 48, 0.14); }
.mach.pobeda, .mach.zaguba, .mach.bez { border-left: 0; }
.mach-koga { width: 150px; background: linear-gradient(160deg, #3d1d63 0%, #5a2d91 100%); color: #fff; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; font-family: var(--shrift-zaglavie); font-weight: 400; font-size: 19px; }
.mach-koga small { font-family: var(--shrift); font-weight: 700; color: #dccdf5; font-size: 13.5px; margin-top: 2px; }
.mach-sreda { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; }
.mach-otbori { font-size: 19px; }
.mach-rezultat { min-width: 150px; padding: 14px 20px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; background: #f6f2fb; border-left: 1px solid var(--liniya); }
.mach-rezultat b { font-size: 34px; letter-spacing: 0.02em; }
.mach.pobeda .mach-rezultat { box-shadow: inset -5px 0 0 #1f8a3e; }
.mach.zaguba .mach-rezultat { box-shadow: inset -5px 0 0 #b3261e; }
.mach.pobeda .mach-rezultat b { color: #15803d; }
.mach.zaguba .mach-rezultat b { color: #9f1d17; }
@media (max-width: 640px) {
  .mach { flex-wrap: wrap; }
  .mach-koga { width: 100%; flex-direction: row; align-items: baseline; padding: 10px 16px; font-size: 17px; }
  .mach-koga small { margin: 0 0 0 10px; }
  .mach-sreda { flex: 1 1 55%; padding: 12px 14px; }
  .mach-rezultat { min-width: 0; padding: 12px 14px; margin-left: 0; }
  .mach-rezultat b { font-size: 27px; }
}
.filtri button[aria-pressed="true"] { background: var(--oranzh); border-color: var(--oranzh); }

/* малки акценти */
.etiket-razdel::before { content: ""; display: inline-block; width: 24px; height: 3px; border-radius: 2px; background: var(--oranzh); vertical-align: middle; margin: -2px 10px 0 0; }
.karta-snimka img { transition: transform 0.45s ease; }
a.karta:hover .karta-snimka img { transform: scale(1.06); }
.otbor-grupa > h2 { display: flex; align-items: center; }
.otbor-grupa > h2::after { content: ""; flex: 1 1 auto; height: 3px; margin-left: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--oranzh), rgba(240, 122, 33, 0)); }

/* бета: играта се довършва */
.beta-belezhka { display: inline-block; background: rgba(255, 200, 61, 0.16); border: 1.5px solid rgba(255, 200, 61, 0.7); color: #ffe08a; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 14.5px; }
.beta-belezhka.beta-svetla { background: #fff7dc; border-color: #e6b422; color: #6b4b00; }

/* ---------- Джор говори (поздравът): основа + форми на устата + очи, като в играта ---------- */
.dzhor-govori { position: relative; }
.dzhor-govori img { display: block; }
.dzhor-govori .osnova { width: 100%; height: auto; }
.dzhor-govori .viz, .dzhor-govori .ochi { position: absolute; opacity: 0; filter: none !important; pointer-events: none; }
.dzhor-agal { position: fixed; left: 12px; bottom: 12px; z-index: 290; display: flex; align-items: flex-end; opacity: 0; transform: translateY(30px); transition: opacity 0.35s ease, transform 0.35s ease; cursor: pointer; }
.dzhor-agal.vidimo { opacity: 1; transform: none; }
.dzhor-agal .dzhor-govori { width: 130px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45)); }
@media (max-width: 560px) { .dzhor-agal .dzhor-govori { width: 104px; } }

/* ---------- Джор в херото: диша, мига и казва поздрава, като мърда устата (1.9.4) ---------- */
.hero-dzhor-gore.zhiv { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-dzhor-gore.zhiv:focus { outline: none; }
.hero-dzhor-gore.zhiv:focus-visible .hero-govori { outline: 3px solid var(--zhalto); outline-offset: 4px; border-radius: 14px; }
.hero-govori { transform-origin: 50% 100%; animation: dzhor-disha 3.8s ease-in-out infinite; }
.hero-dzhor-gore.govori .hero-govori { animation: dzhor-klati 1.7s ease-in-out infinite; }
@keyframes dzhor-disha { 0%, 100% { transform: rotate(0deg) scale(1, 1); } 25% { transform: rotate(-0.6deg) scale(1.008, 1.016); } 50% { transform: rotate(0deg) scale(1.016, 1.032); } 75% { transform: rotate(0.6deg) scale(1.008, 1.016); } }
@keyframes dzhor-klati { 0%, 100% { transform: rotate(0deg) scale(1, 1); } 30% { transform: rotate(-1.2deg) scale(1.01, 1.02); } 70% { transform: rotate(1deg) scale(1.005, 1.01); } }
.hero-dzhor-gore.tiho .hero-govori, .a-bez-dvizhenie .hero-govori { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-govori { animation: none; } }
/* телефон: паузата на видеото — долу вляво (не върху менюто) */
@media (max-width: 860px) { .hero-pauza { top: auto; bottom: 14px; right: auto; left: 16px; width: 40px; height: 40px; } }

/* ================= Google Calendar: динамични мачове и седмична програма (1.9.10) ================= */
.filtri-kalendar { margin: 0 -4px 12px; }
.filtri-kalendar button { font-size: 13.5px; padding: 8px 12px; }
.calendar-youth-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.calendar-youth-picker[hidden] { display: none; }
.calendar-youth-picker label { color: var(--tamno); font-size: 14px; font-weight: 800; }
.calendar-youth-picker select { min-height: 42px; max-width: 100%; background: #fff; color: var(--tamno); border: 2px solid #d5c6e8; border-radius: 10px; padding: 8px 12px; font: inherit; }
.calendar-help { margin: 10px 0 34px; font-size: 13.5px; line-height: 1.55; }
.mach-grupa { font-size: 11px; font-weight: 850; color: #7943a8; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.mach-status { font-weight: 800; font-size: 13px; white-space: normal; }
.mach-status-nepotvarden { color: #7c4800; background: #fff0c3; border: 1px solid #dca632; border-radius: 999px; padding: 7px 10px; text-align: center; }
.mach-nepotvarden .mach-rezultat { background: #fff9e9; }
.sedmica-panel { min-width: 0; }
.sedmica-karta { overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid #ddd2e9; box-shadow: 0 10px 34px rgba(37, 17, 61, 0.12); }
.sedmica-glava { padding: 25px 24px 23px; color: #fff; background: linear-gradient(125deg, #25113f, #4a2473 76%, #612e8e); border-top: 6px solid var(--oranzh); }
.sedmica-nadpis { display: block; color: #ffd35c; font-size: 11px; font-weight: 900; letter-spacing: 0.09em; }
.sedmica-glava h2 { color: #fff; margin: 10px 0 8px; line-height: 1.18; font-size: 27px; }
.sedmica-glava p { color: #f0dffb; margin: 0; font-size: 16px; font-weight: 700; }
.sedmica-tyalo { padding: 22px 22px 24px; }
.sedmica-broi { color: var(--lila); font-weight: 850; font-size: 15px; margin: 0 0 16px; }
.sedmica-spisak, .sedmica-den-machove { list-style: none; padding: 0; margin: 0; }
.sedmica-den { margin-bottom: 18px; }
.sedmica-den h3 { font-family: var(--shrift); font-size: 14px; font-weight: 850; color: var(--lila); text-transform: capitalize; padding: 0 0 8px; border-bottom: 2px solid #f0e9fa; margin: 0 0 10px; }
.sedmica-mach { display: grid; grid-template-columns: 63px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid #f0e9f4; }
.sedmica-mach:last-child { border-bottom: 0; }
.sedmica-chas { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; min-height: 29px; padding: 4px 6px; background: #f1e7fc; color: #452069; font-weight: 900; font-size: 12.5px; text-align: center; }
.sedmica-mach-tekst { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sedmica-grupa { color: #7c51a7; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 850; font-size: 10.5px; }
.sedmica-mach-tekst strong { color: #29153f; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.sedmica-mach-tekst small { color: #72647e; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.sedmica-status { color: #6f4400; border: 1px solid #e3b34d; background: #fff1cd; padding: 3px 8px; border-radius: 999px; font-weight: 800; font-size: 11px; }
.sedmica-nepotvarden { background: linear-gradient(90deg, #fff8e6 0%, #fff 75%); }
.sedmica-prazna { color: #6a5878; font-size: 14px; line-height: 1.55; background: #f8f4fc; border-radius: 12px; padding: 16px; }
.sedmica-iztochnik { border-top: 1px solid #f0e9f4; margin: 15px 0 0; padding-top: 15px; color: var(--sivo); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 640px) {
  .mach-status { font-size: 12px; }
  .sedmica-glava { padding: 22px 18px; }
  .sedmica-tyalo { padding: 20px 17px; }
  .sedmica-glava h2 { font-size: 24px; }
  .sedmica-mach { grid-template-columns: 60px minmax(0, 1fr); }
}
html.a-kontrast .mach-grupa, html.a-kontrast .sedmica-den h3, html.a-kontrast .sedmica-broi, html.a-kontrast .sedmica-grupa, html.a-kontrast .sedmica-mach-tekst strong, html.a-kontrast .sedmica-mach-tekst small, html.a-kontrast .sedmica-prazna { color: #000; }
