/* Site footer redesign — tokens from :root */
.footer.footer--sf {
  --sf-text: rgba(255, 255, 255, 0.92);
  --sf-muted: rgba(255, 255, 255, 0.5);
  --sf-faint: rgba(255, 255, 255, 0.32);
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--sf-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg-classic, #0b0d0c) !important;
  box-shadow: none;
  filter: none;
  text-shadow: none;
}

.footer.footer--sf::before {
  display: none;
}

.footer.footer--sf *,
.footer.footer--sf *::before,
.footer.footer--sf *::after {
  box-sizing: border-box;
}

.footer.footer--sf .sf-help,
.footer.footer--sf .sf-help__btn,
.footer.footer--sf .sf-help__badge,
.footer.footer--sf .sf-age,
.footer.footer--sf .sf-coin,
.footer.footer--sf .sf-coin--mir,
.footer.footer--sf .sf-soc {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

@keyframes sf-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sf-wrap {
  max-width: var(--site-content-max, 1500px);
  margin: 0 auto;
  padding: 20px var(--site-gutter, 50px) 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sf-mast {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 16px 32px;
  align-items: end;
  animation: sf-rise 0.45s ease both;
}

.sf-brand {
  min-width: 0;
}

/* Broken / missing logo asset was leaving a tall empty gap above the title */
.sf-brand__logo {
  display: none;
}

.sf-brand__name {
  margin: 0 0 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.sf-brand__name span {
  color: var(--global-brand);
}

.sf-brand__tag {
  margin: 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sf-muted);
}

.sf-mast__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.sf-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sf-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--mini-border-radius, 10px);
  background: var(--base-alfa-neutral);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.sf-soc:hover {
  background: var(--base-alfa-neutral-hover);
  transform: translateY(-2px);
  color: #fff;
}

.sf-soc i,
.sf-soc svg {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.sf-soc--tg i { color: #279ddb; }
.sf-soc--ig i { color: #e4405f; }
.sf-soc--vk i { color: #006deb; }
.sf-soc--yt i { color: #f00; }
.sf-soc--pin svg path { fill: #bd081c; }

/* Support CTA — flat strip, no glow */
.sf-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  border-radius: var(--global-border-radius, 20px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  filter: none;
  animation: sf-rise 0.45s ease 0.06s both;
}

.sf-help__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sf-help__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.sf-help__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #04140a;
  background: var(--global-lime);
}

.sf-help__text {
  margin: 0;
  font-size: 13px;
  color: var(--sf-muted);
  line-height: 1.4;
}

.sf-help__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--mini-border-radius, 10px);
  background: var(--global-brand);
  color: #04140a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
  filter: none;
  text-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sf-help__btn:hover {
  background: var(--global-lime);
  color: #04140a;
  transform: translateY(-1px);
  box-shadow: none;
  filter: none;
}

/* Nav columns */
.sf-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 28px;
  animation: sf-rise 0.45s ease 0.1s both;
}

.sf-col__title {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-faint);
}

.sf-col__title::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--global-brand);
  transition: width 0.2s ease;
}

.sf-col:hover .sf-col__title::after {
  width: 36px;
}

.sf-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-links a {
  color: var(--sf-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.sf-links a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Payments + partners */
.sf-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 6px;
  border-top: 1px solid var(--base-alfa-neutral);
  animation: sf-rise 0.45s ease 0.14s both;
}

.sf-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.sf-pay__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sf-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--under-seconadary);
  border: 1px solid var(--base-alfa-neutral);
  transition: transform 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.sf-coin:has(img) {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.sf-coin:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--global-brand) 40%, transparent);
}

.sf-coin:has(img):hover {
  border-color: transparent;
}

.sf-coin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.sf-coin--more {
  width: auto;
  min-width: 38px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--sf-muted);
}

.sf-coin--mir {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: #0f754e;
  border-color: transparent;
  box-shadow: none;
  filter: none;
}

.sf-pay__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sf-faint);
}

.sf-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.sf-partners__item {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-faint);
  opacity: 0.75;
}

.sf-partners__item + .sf-partners__item::before {
  content: '·';
  margin-right: 10px;
  opacity: 0.5;
}

/* Legal */
.sf-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  padding-top: 4px;
  animation: sf-rise 0.45s ease 0.18s both;
}

.sf-legal__copy {
  flex: 1;
  min-width: 0;
  max-width: 920px;
}

.sf-legal__text {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--sf-faint);
}

.sf-legal__text:last-child {
  margin-bottom: 0;
}

.sf-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  border-radius: var(--mini-border-radius, 10px);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #04140a;
  background: var(--global-brand);
  flex-shrink: 0;
  box-shadow: none;
  filter: none;
  text-shadow: none;
}

/* Lang dropdown inside new footer */
.footer.footer--sf .kreo-lang-dropdown--footer {
  position: relative;
  z-index: 5;
}

.footer.footer--sf .kreo-lang-dropdown--footer .kreo-lang-dropdown__menu {
  left: auto;
  right: 0;
  min-width: 100%;
}

.footer.footer--sf .kreo-lang-dropdown__trigger {
  background: var(--under-seconadary);
  border-color: var(--base-alfa-neutral);
}

.footer.footer--sf .kreo-lang-dropdown__trigger:hover {
  background: var(--base-alfa-neutral-hover);
  border-color: color-mix(in srgb, var(--global-brand) 35%, transparent);
}

.footer.footer--sf .kreo-lang-dropdown.is-open .kreo-lang-dropdown__trigger {
  border-color: color-mix(in srgb, var(--global-brand) 50%, transparent);
}

.footer.footer--sf .kreo-lang-dropdown__option.is-active {
  background: color-mix(in srgb, var(--global-brand) 22%, transparent);
}

@media (max-width: 1100px) {
  .sf-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sf-wrap {
    padding: 16px var(--site-gutter, 15px) 20px;
    gap: 18px;
  }

  .sf-mast {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sf-mast__tools {
    align-items: flex-start;
  }

  .sf-social {
    justify-content: flex-start;
  }

  .sf-help {
    align-items: flex-start;
  }

  .sf-nav {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .sf-rail {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .sf-nav {
    grid-template-columns: 1fr;
  }
}
