/* KOSMOS footer — всегда тёмный, как на kosmosvpn.app (не зависит от light/dark темы блога) */

.kosmos-footer-container,
.kosmos-footer {
  --kosmos-bg: #070707;
  --kosmos-fg: #ffffff;
  --kosmos-lime: #d0f8a0;
  --kosmos-navy: #0b253e;
  --kosmos-muted: #8d8d8d;
  --kosmos-legal: #b0b0b0;
  --kosmos-link: #ffffff;
  --kosmos-link-hover: #d0f8a0;
  font-family: var(--kosmos-font, "Manrope", system-ui, sans-serif);
}

.site-footer-container.kosmos-footer-container {
  background: #070707 !important;
  color: #ffffff !important;
}

.kosmos-footer {
  position: relative;
  overflow: hidden;
  background: var(--kosmos-bg) !important;
  color: var(--kosmos-fg) !important;
  margin-top: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.kosmos-footer a {
  color: var(--kosmos-link);
  text-decoration: none;
}

.kosmos-footer a:hover {
  color: var(--kosmos-link-hover);
}

/* Glow — цветные blobs desktop; fade-blob всегда (стык со страницей) */
.kosmos-footer__glow {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.kosmos-footer__glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.85;
}

/* Цветные блики — только ≥768, как на лендинге */
.kosmos-footer__glow-blob--lime,
.kosmos-footer__glow-blob--lime-soft,
.kosmos-footer__glow-blob--teal,
.kosmos-footer__glow-blob--cyan {
  display: none;
}

@media (min-width: 768px) {
  .kosmos-footer__glow-blob--lime,
  .kosmos-footer__glow-blob--lime-soft,
  .kosmos-footer__glow-blob--teal,
  .kosmos-footer__glow-blob--cyan {
    display: block;
  }
}

.kosmos-footer__glow-blob--lime {
  right: -8%;
  top: 18%;
  width: min(1242px, 90vw);
  height: 262px;
  background: #9fd45c;
  filter: blur(64px);
  transform: rotate(170deg);
}

.kosmos-footer__glow-blob--lime-soft {
  right: -4%;
  top: 22%;
  width: min(800px, 70vw);
  height: 200px;
  background: #defcc4;
  opacity: 0.7;
  filter: blur(56px);
  transform: rotate(170deg);
}

.kosmos-footer__glow-blob--teal {
  left: -5%;
  top: 10%;
  width: min(1475px, 95vw);
  height: 308px;
  background: #64aac5;
  filter: blur(72px);
  transform: rotate(170deg);
}

.kosmos-footer__glow-blob--cyan {
  left: 2%;
  top: 14%;
  width: min(1200px, 85vw);
  height: 280px;
  background: #a1dff0;
  opacity: 0.9;
  filter: blur(88px);
  transform: rotate(170deg);
}

/*
 * Как на лендинге: в light — белый blur сверху тёмного футера
 * (плавный переход со светлой страницы). В dark — #070707.
 */
.kosmos-footer__glow-blob--fade {
  display: block;
  left: -20%;
  top: -18%;
  width: min(3459px, 160vw);
  height: 280px;
  background: #ffffff;
  opacity: 1;
  filter: blur(48px);
  transform: rotate(177deg);
}

@media (min-width: 768px) {
  .kosmos-footer__glow-blob--fade {
    top: -12%;
    height: 448px;
    filter: blur(74px);
  }
}

html[data-theme="dark"] .kosmos-footer__glow-blob--fade {
  background: #070707;
}

/* Доп. мягкий градиент на стыке (на случай слабого blur) */
html[data-theme="light"] .kosmos-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(120px, 22vw, 220px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.72) 32%,
    rgba(255, 255, 255, 0.28) 62%,
    transparent 100%
  );
}

html[data-theme="dark"] .kosmos-footer::before {
  content: none;
}

.kosmos-footer__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 16px 32px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .kosmos-footer__inner {
    padding: 140px 72px 72px;
  }
}

@media (min-width: 1024px) {
  .kosmos-footer__inner {
    padding-top: 200px;
  }
}

/* CTA */
.kosmos-footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  gap: 28px;
}

@media (min-width: 768px) {
  .kosmos-footer__cta {
    gap: 36px;
  }
}

.kosmos-footer__cta-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .kosmos-footer__cta-eyebrow {
    font-size: 16px;
  }
}

.kosmos-footer__cta-title {
  margin: 12px 0 0;
  color: var(--kosmos-lime) !important;
  font-size: 56px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .kosmos-footer__cta-title {
    font-size: 80px;
    margin-top: 16px;
  }
}

@media (min-width: 1024px) {
  .kosmos-footer__cta-title {
    font-size: 96px;
  }
}

.kosmos-footer__cta-hint {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 24px;
}

@media (min-width: 768px) {
  .kosmos-footer__cta-hint {
    font-size: 16px;
  }
}

.kosmos-footer__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .kosmos-footer__stores {
    gap: 16px;
  }
}

.kosmos-footer__pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

@media (min-width: 768px) {
  .kosmos-footer__pill {
    font-size: 18px;
    gap: 22px;
    padding-left: 28px;
  }
}

.kosmos-footer__pill:hover {
  transform: scale(1.03);
  color: inherit;
}

.kosmos-footer__pill--play {
  background: var(--kosmos-lime);
  color: var(--kosmos-navy) !important;
  box-shadow: 0 0 40px rgba(208, 248, 160, 0.35);
}

.kosmos-footer__pill--play:hover {
  background: #e2ffb8;
  color: var(--kosmos-navy) !important;
  box-shadow: 0 0 56px rgba(208, 248, 160, 0.5);
}

.kosmos-footer__pill--light {
  background: #fff;
  color: #070707 !important;
}

.kosmos-footer__pill-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #070707;
  color: #fff;
  flex-shrink: 0;
  font-size: 16px;
}

@media (min-width: 768px) {
  .kosmos-footer__pill-badge {
    width: 44px;
    height: 44px;
  }
}

.kosmos-footer__pill-badge--accent {
  background: var(--kosmos-navy);
}

/* Brand + menus */
.kosmos-footer__main {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 768px) {
  .kosmos-footer__main {
    margin-top: 120px;
  }
}

@media (min-width: 1024px) {
  .kosmos-footer__main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.kosmos-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

@media (min-width: 1024px) {
  .kosmos-footer__brand {
    width: 30%;
  }
}

.kosmos-footer__logo-img {
  display: block;
  height: auto;
  max-height: 96px;
  width: auto;
  max-width: 220px;
}

.kosmos-footer__brand-text {
  color: #fff;
  font-weight: 500;
  line-height: 24px;
}

.kosmos-footer__cols {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
}

@media (min-width: 768px) {
  .kosmos-footer__cols {
    gap: 100px;
  }
}

@media (min-width: 1024px) {
  .kosmos-footer__cols {
    width: 45%;
  }
}

.kosmos-footer__col-title {
  color: var(--kosmos-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

.kosmos-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.kosmos-footer__links a {
  color: #fff;
}

/* Widgets (если включены в Customizer) */
.kosmos-footer .footer-widgets {
  margin-top: 48px;
  color: #fff;
}

.kosmos-footer .footer-widgets a {
  color: var(--kosmos-lime);
}

/* Legal */
.kosmos-footer__legal {
  margin-top: 64px;
  max-width: 720px;
  color: var(--kosmos-legal);
  font-size: 13px;
  line-height: 22px;
}

@media (min-width: 768px) {
  .kosmos-footer__legal {
    margin-top: 80px;
    font-size: 14px;
    line-height: 24px;
  }
}

.kosmos-footer__legal-name {
  color: #fff;
  font-weight: 500;
  margin: 0 0 8px;
}

.kosmos-footer__legal-codes {
  margin-top: 12px;
}

.kosmos-footer__accent-link {
  color: var(--kosmos-lime) !important;
}

.kosmos-footer__accent-link:hover {
  text-decoration: underline;
}

.kosmos-footer__legal-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  .kosmos-footer__legal-links {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 20px;
  }
}

/* Footer full-bleed как лендинг — класс .fixed у Reboot больше не сужает */
.kosmos-footer__inner,
.kosmos-footer .site-footer-inner,
.kosmos-footer .site-footer-inner.fixed {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.kosmos-footer__bottom-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

@media (min-width: 640px) {
  .kosmos-footer__bottom-actions {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}

.kosmos-footer__telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.kosmos-footer__telegram:hover {
  opacity: 0.9;
  color: var(--kosmos-lime) !important;
}

.kosmos-footer__telegram-ico {
  flex-shrink: 0;
}

/* Bottom bar */
.kosmos-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .kosmos-footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 64px;
  }
}

.kosmos-footer__copy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
}

.kosmos-footer__copy-mark {
  opacity: 0.9;
}

.kosmos-footer__support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.kosmos-footer__support:hover {
  color: var(--kosmos-lime) !important;
}

.kosmos-footer .footer-counters {
  width: 100%;
  opacity: 0.7;
  font-size: 12px;
}

.kosmos-footer .footer-partner {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.6;
}

/* Убрать старый отдельный footer-navigation над футером (меню внутри колонок) */
.site-footer-container > .footer-navigation {
  display: none !important;
}
