.back-to-top {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(56, 189, 248, 0.48);
  border-radius: 999px;
  background: rgba(10, 20, 34, 0.92);
  color: #e0f2fe;
  font: 700 0.82rem var(--font-main, system-ui, sans-serif);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(14px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.back-to-top:hover {
  border-color: #38bdf8;
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  width: min(440px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 16px;
  background: rgba(10, 18, 31, 0.97);
  color: #cbd5e1;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
  font-family: var(--font-main, system-ui, sans-serif);
  backdrop-filter: blur(18px);
}

.cookie-consent h2 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 1.15rem;
}

.cookie-consent p {
  margin: 0;
  color: #aebed1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-consent a {
  color: #38bdf8;
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent button {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 9px;
  font: 800 0.76rem var(--font-main, system-ui, sans-serif);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-consent__necessary {
  border: 1px solid #475569;
  background: transparent;
  color: #e2e8f0;
}

.cookie-consent__all {
  border: 1px solid #06b6d4;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  color: white;
}

body.cookie-consent-open .back-to-top {
  bottom: 210px;
}

@media (max-width: 600px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 18px;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .cookie-consent button {
    width: 100%;
  }

  body.cookie-consent-open .back-to-top {
    bottom: 16px;
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    scroll-behavior: auto;
    transition: none;
  }
}

.adsense-fallback-tile > *:not(.adsense-slot-layer) {
  transition: opacity 180ms ease;
}

.adsense-slot-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 250px;
  padding: 8px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.adsense-slot-layer .adsbygoogle {
  width: 100%;
  min-width: 0;
  min-height: 250px;
}

.adsense-fallback-tile.adsense-has-ad > *:not(.adsense-slot-layer) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.adsense-fallback-tile.adsense-has-ad .adsense-slot-layer {
  opacity: 1;
  pointer-events: auto;
}
