/* === GLOBAL CSS — utilx.eu === */

:root {
  --bg: #0f1115;
  --card: #171a21;
  --text: #e8e9eb;
  --muted: #a0a4ab;
  --border: #262a33;
  --link: #4da3ff;
  --soft: #1f2430;
  --hover: #222836;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === FOCUS VISIBLE (ACCESSIBILITY) === */
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === ENTRANCE ANIMATIONS (CSS-only, GPU-composited) === */
@keyframes enterUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enterLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes enterRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes enterScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Main content cards — staggered rise */
main > section { animation: enterUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
main > section:nth-of-type(1) { animation-delay: 0s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.12s; }
main > section:nth-of-type(4) { animation-delay: 0.18s; }
main > section:nth-of-type(5) { animation-delay: 0.24s; }
main > section:nth-of-type(6) { animation-delay: 0.3s; }
main > section:nth-of-type(7) { animation-delay: 0.36s; }

/* Hero section (index) */
.hero-section { animation: enterScale 0.5s cubic-bezier(0.22, 1, 0.36, 1) both !important; }

/* Category cards (index) */
.categories-grid > * { animation: enterUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.categories-grid > *:nth-child(1) { animation-delay: 0.08s; }
.categories-grid > *:nth-child(2) { animation-delay: 0.14s; }
.categories-grid > *:nth-child(3) { animation-delay: 0.2s; }
.categories-grid > *:nth-child(4) { animation-delay: 0.26s; }
.categories-grid > *:nth-child(5) { animation-delay: 0.32s; }

/* Left sidebar — slide from left */
.side-panel.left > * { animation: enterLeft 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.side-panel.left > *:nth-child(1) { animation-delay: 0.1s; }
.side-panel.left > *:nth-child(2) { animation-delay: 0.18s; }

/* Right sidebar — slide from right */
.side-panel.right > * { animation: enterRight 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.side-panel.right > *:nth-child(1) { animation-delay: 0.1s; }
.side-panel.right > *:nth-child(2) { animation-delay: 0.18s; }
.side-panel.right > *:nth-child(3) { animation-delay: 0.26s; }
.side-panel.right > *:nth-child(4) { animation-delay: 0.34s; }
.side-panel.right > *:nth-child(5) { animation-delay: 0.42s; }

/* SEO box & page header */
.seo-box { animation: enterUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.header-text { animation: enterUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  main > section, .hero-section, .categories-grid > *,
  .side-panel.left > *, .side-panel.right > *,
  .seo-box, .header-text { animation: none !important; }
  #scrollTop { animation: none !important; }
  .tool-link, .ux-btn, .more-btn, .card, .footer-link { transition: none !important; }
}

/* === LAYOUT GRID === */
.layout-grid {
  display: flex;
  flex-direction: column;
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
  gap: 20px;
}

main { flex: 1; order: 1; }

.side-panel { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.side-panel.left { order: 2; }
.side-panel.right { order: 3; }

@media (min-width: 1150px) {
  .layout-grid { flex-direction: row; align-items: flex-start; gap: 30px; }
  main { order: 2; }
  .side-panel { width: 300px; position: sticky; top: 20px; flex-shrink: 0; }
  .side-panel.left { order: 1; }
  .side-panel.right { order: 3; }
}

/* === CARDS === */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: #333a47;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.special-card { border: 1px solid var(--link); }
.special-card:hover { border-color: var(--link); box-shadow: 0 0 20px rgba(77, 163, 255, 0.12); }
.side-title { margin: 0 0 12px; font-size: 17px; color: var(--link); border-bottom: 1px solid var(--border); padding-bottom: 8px; }

/* === TOOL LINKS === */
.tool-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}
.tool-link:hover {
  border-color: var(--link);
  border-left-color: var(--link);
  transform: translateX(5px);
  background: var(--hover);
  box-shadow: 0 2px 12px rgba(77, 163, 255, 0.08);
}
.tool-link:active {
  transform: translateX(2px) scale(0.97);
  transition-duration: 0.06s;
}

/* === UX ELEMENTS === */
.ux-grid { display: grid; gap: 12px; }
.ux-row { display: grid; gap: 6px; }
@media (min-width: 768px) { .ux-two { grid-template-columns: 1fr 1fr; gap: 12px; } }

.ux-label { font-size: 13px; color: var(--muted); }

.ux-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  outline: none;
  font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ux-input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}
.ux-input:disabled { opacity: 0.6; cursor: not-allowed; }

.ux-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.ux-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
.ux-btn:hover {
  border-color: var(--link);
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.ux-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.08s;
}

.ux-result {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #121621;
  font-size: 15px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ux-result strong { font-size: 18px; }

.calculator-slot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.desc { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* === FOOTER === */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-tools-btn {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}
.footer-tools-btn:hover { border-color: var(--link); background: var(--hover); }
.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--link); }
.footer-sep { margin: 0 8px; color: var(--border); }

/* === SCROLL TO TOP === */
@keyframes scrollBtnIn {
  from { transform: scale(0.4) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes scrollBtnOut {
  from { transform: scale(1) translateY(0); opacity: 1; }
  to   { transform: scale(0.4) translateY(10px); opacity: 0; }
}

#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  border: 1px solid var(--link);
  outline: none;
  background-color: var(--card);
  color: var(--link);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  align-items: center;
  justify-content: center;
  display: flex;
  pointer-events: none;
  opacity: 0;
}

#scrollTop.show {
  pointer-events: auto;
  animation: scrollBtnIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
#scrollTop.hide {
  animation: scrollBtnOut 0.25s ease forwards;
}

#scrollTop:hover {
  background-color: var(--link);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(77, 163, 255, 0.35);
}

@media (max-width: 768px) {
  #scrollTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* === DONATE FALLBACK BUTTON (when BMC widget not available) === */
#donateBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  border: 1px solid var(--link);
  outline: none;
  background-color: var(--card);
  color: var(--link);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: none;
  opacity: 0;
}
#donateBtn.show {
  pointer-events: auto;
  animation: scrollBtnIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
#donateBtn.hide {
  animation: scrollBtnOut 0.25s ease forwards;
}
#donateBtn:hover {
  background-color: var(--link);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(77, 163, 255, 0.35);
}
@media (max-width: 768px) {
  #donateBtn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* === BMC WIDGET BUTTON OVERRIDE === */
#bmc-wbtn {
  width: 50px !important;
  height: 50px !important;
  min-height: unset !important;
  bottom: 30px !important;
  right: 30px !important;
  left: auto !important;
}
#bmc-wbtn img {
  width: 26px !important;
  height: 26px !important;
}
@media (max-width: 768px) {
  #bmc-wbtn {
    width: 45px !important;
    height: 45px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
}

/* === FLOATING CALCULATOR BUTTON === */
#calcToggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  border: 1px solid var(--link);
  outline: none;
  background-color: var(--card);
  color: var(--link);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  align-items: center;
  justify-content: center;
  display: flex;
}
#calcToggle:hover {
  background-color: var(--link);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(77, 163, 255, 0.35);
}
#calcToggle.active {
  background-color: var(--link);
  color: #ffffff;
}

@media (max-width: 768px) {
  #calcToggle {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* === CALCULATOR POPUP === */
#calcPopup {
  position: fixed;
  bottom: 92px;
  left: 30px;
  z-index: 9998;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85) translateY(10px);
  transform-origin: bottom left;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#calcPopup.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

@media (max-width: 768px) {
  #calcPopup {
    bottom: 78px;
    left: 20px;
    width: 260px;
  }
}

/* Calculator display */
.calc-display {
  padding: 16px 16px 10px;
}
.calc-mini {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calc-screen {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  font-family: 'Courier New', monospace;
  padding: 4px 0;
  min-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Calculator grid */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 12px 12px;
}
.calc-key {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  outline: none;
  user-select: none;
}
.calc-key:hover {
  background: var(--hover);
  border-color: #3a3f4d;
}
.calc-key:active {
  transform: scale(0.93);
  transition-duration: 0.05s;
}
.calc-key.op {
  color: var(--link);
  font-size: 18px;
}
.calc-key.op:hover {
  background: rgba(77, 163, 255, 0.1);
  border-color: var(--link);
}
.calc-key.eq {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
}
.calc-key.eq:hover {
  background: #3b93f0;
  box-shadow: 0 2px 10px rgba(77, 163, 255, 0.3);
}
.calc-key.fn {
  color: var(--muted);
  font-size: 14px;
}
.calc-key.span2 {
  grid-column: span 2;
}

/* === SKELETON LOADING UTILITY === */
.skeleton {
  background: linear-gradient(90deg, var(--soft) 25%, var(--hover) 50%, var(--soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
  color: transparent !important;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === DRAWER OVERLAY === */
.utilx-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.utilx-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* === DRAWER PANEL === */
.utilx-drawer {
  position: fixed;
  z-index: 10001;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Desktop: right panel */
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 18px 0 0 18px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}
.utilx-drawer.open {
  transform: translateX(0);
}

/* Mobile: bottom sheet */
@media (max-width: 768px) {
  .utilx-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  }
  .utilx-drawer.open {
    transform: translateY(0);
  }
}

/* Drawer handle (mobile only) */
.utilx-drawer-handle {
  display: none;
}
@media (max-width: 768px) {
  .utilx-drawer-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }
}

/* Drawer header */
.utilx-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}
.utilx-drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.utilx-drawer-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--link);
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 10px;
}
.utilx-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.utilx-drawer-close:hover {
  border-color: var(--link);
  color: var(--text);
  background: var(--hover);
}

/* Drawer body */
.utilx-drawer-body {
  padding: 14px 22px 28px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.utilx-drawer-body .tool-link {
  border-left: 3px solid transparent;
}
.utilx-drawer-body .tool-link:last-child {
  margin-bottom: 0;
}

/* Body scroll lock */
body.drawer-open {
  overflow: hidden;
}

/* ======================================================= */
/* УНИВЕРСАЛЕН БАНЕР ХЕДЪР ЗА КАРТИ */
/* ======================================================= */

/* 1. Настройки за самата карта */
main .card {
    padding-top: 0 !important; /* Нулираме горния падинг, за да залепне хедърът съвсем естествено */
    overflow: hidden; /* Заобля ъглите на банера чисто */
    display: flex;
    flex-direction: column;
}

/* 2. Настройки на новия контейнер (.card-header) */
main .card-header {
    position: relative;
    /* Издърпваме само наляво и надясно, отгоре вече е 0 */
    margin: 0 -16px 14px -16px; 
    padding: 16px 16px 12px 16px; 
    border-bottom: 1px solid var(--border);
    z-index: 1;
    
    /* ОПЦИЯ ЗА ЕДНАКЪВ РАЗМЕР: Ако искаш всички хедъри да са с 
        напълно еднаква височина, дори някой да има по-малко текст */
    min-height: 85px; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрира текста вертикално */
}

/* Изчистваме старите маржини на текстовете */
main .card-header h2 { margin: 0 0 4px 0 !important; }
main .card-header .card-info { margin: 0 !important; }

/* 3. БАНЕРЪТ - Снимката на висока яркост */
main .card-header::before {
    content: "";
    position: absolute;
    inset: 0; 
    background-size: cover;
    background-position: center right; /* Фокусираме снимката леко вдясно */
    background-repeat: no-repeat;
    opacity: 0.70; 
    z-index: -2; /* Най-отзад */
    pointer-events: none;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

/* 3.5. Тъмният воал (градиент), който се слива перфектно с фона на картата */
main .card-header::after {
    content: "";
    position: absolute;
    inset: 0;
    
    /* МАГИЯТА: Използваме директно твоята променлива var(--card) */
    background: linear-gradient(to right, 
        var(--card) 0%,       /* Плътен цвят на картата в самото начало */
        var(--card) 15%,      /* Държим го плътен зад първите букви на заглавието */
        transparent 85%       /* Плавно изчезва към дясната страна */
    );
    
    z-index: -1; 
    pointer-events: none;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

/* Добавяме сянка на текста, за да "изскача" над всякакви фонове */
main .card-header h2 { 
    margin: 0 0 4px 0 !important; 
    text-shadow: 0 2px 5px rgba(0,0,0, 0.9); /* Силна сянка */
}
main .card-header .card-info { 
    margin: 0 !important; 
    text-shadow: 0 1px 3px rgba(0,0,0, 0.8);
}

/* ------------------------------------------------------- */
/* 4. СПИСЪК СЪС СНИМКИ ПО СТРАНИЦИ                        */
/* ------------------------------------------------------- */

/* СНИМКИ ЗА DAILY.HTML */
.theme-daily main section:nth-of-type(1) .card-header::before { background-image: url('../images/cards/mps.jpg'); }
.theme-daily main section:nth-of-type(2) .card-header::before { background-image: url('../images/cards/energy.webp'); }
.theme-daily main section:nth-of-type(3) .card-header::before { background-image: url('../images/cards/finance.webp'); }
.theme-daily main section:nth-of-type(4) .card-header::before { background-image: url('../images/cards/home.webp'); }
.theme-daily main section:nth-of-type(5) .card-header::before { background-image: url('../images/cards/shop.webp'); }
.theme-daily main section:nth-of-type(6) .card-header::before { background-image: url('../images/cards/travel.jpg'); }
.theme-daily main section:nth-of-type(7) .card-header::before { background-image: url('../images/cards/construct.webp'); }
.theme-daily main section:nth-of-type(8) .card-header::before { background-image: url('../images/cards/others.webp'); }

/* СНИМКИ ЗА CONVERTERS.HTML */
.theme-converters main section:nth-of-type(1) .card-header::before { background-image: url('../images/cards/image.webp'); }
.theme-converters main section:nth-of-type(2) .card-header::before { background-image: url('../images/cards/audio.webp'); }
.theme-converters main section:nth-of-type(3) .card-header::before { background-image: url('../images/cards/video.webp'); }
.theme-converters main section:nth-of-type(4) .card-header::before { background-image: url('../images/cards/text.webp'); }

/* СНИМКИ ЗА GAMES.HTML */
.theme-games main section:nth-of-type(1) .card-header::before { background-image: url('../images/cards/minecraft.jpg'); }
.theme-games main section:nth-of-type(2) .card-header::before { background-image: url('../images/cards/cs.webp'); }
.theme-games main section:nth-of-type(3) .card-header::before { background-image: url('../images/cards/lol.webp'); }
.theme-games main section:nth-of-type(4) .card-header::before { background-image: url('../images/cards/valorant.webp'); }
.theme-games main section:nth-of-type(5) .card-header::before { background-image: url('../images/cards/dota.webp'); }
.theme-games main section:nth-of-type(6) .card-header::before { background-image: url('../images/cards/roblox.webp'); }

/* СНИМКИ ЗА TECH.HTML */
.theme-tech main section:nth-of-type(1) .card-header::before { background-image: url('../images/cards/mouse.webp'); }
.theme-tech main section:nth-of-type(2) .card-header::before { background-image: url('../images/cards/keyboard.webp'); }
.theme-tech main section:nth-of-type(3) .card-header::before { background-image: url('../images/cards/monitor.webp'); }
.theme-tech main section:nth-of-type(4) .card-header::before { background-image: url('../images/cards/techaudio.webp'); }
.theme-tech main section:nth-of-type(5) .card-header::before { background-image: url('../images/cards/pc.webp'); }
.theme-tech main section:nth-of-type(6) .card-header::before { background-image: url('../images/cards/network.webp'); }
.theme-tech main section:nth-of-type(7) .card-header::before { background-image: url('../images/cards/mobile.webp'); }

/* СНИМКИ ЗА QUIZZES.HTML */
.theme-quizzes main section:nth-of-type(1) .card-header::before { background-image: url('../images/cards/quiz1.webp'); }
.theme-quizzes main section:nth-of-type(2) .card-header::before { background-image: url('../images/cards/quiz2.webp'); }
.theme-quizzes main section:nth-of-type(3) .card-header::before { background-image: url('../images/cards/quiz3.webp'); }
.theme-quizzes main section:nth-of-type(4) .card-header::before { background-image: url('../images/cards/quiz4.jpg'); }
.theme-quizzes main section:nth-of-type(5) .card-header::before { background-image: url('../images/cards/quiz5.webp'); }
.theme-quizzes main section:nth-of-type(6) .card-header::before { background-image: url('../images/cards/quiz6.jpg'); }

/* 5. Мобилни корекции */
@media (max-width: 768px) {
    main .card-header {
        padding: 14px 12px 12px 12px;
    }
}