/* Новый подвал spaceproxy.net. Шрифт, цвета, кнопка — как на текущем сайте. */

.ft {
  --ft-yellow: #ffcc00;
  --ft-link: #d9dbe1;
  --ft-muted: #959595;
  --ft-line: rgba(255, 255, 255, .16);
  --ft-card: rgba(255, 255, 255, .05);
  position: relative;
  padding-top: 28px;
  background: linear-gradient(#010647, #011c8b);
  /* место под плашку JivoChat (300x40, справа снизу), чтобы не закрывала нижнюю строку */
  padding-bottom: 44px;
  font-family: Jost, sans-serif;
  color: #fff;
}
.ft *, .ft *::before, .ft *::after { box-sizing: border-box; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft a { color: var(--ft-link); text-decoration: none; transition: color .2s; }
.ft a:hover { color: #fff; }
.ft__container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }

/* ---------- верхний ряд ---------- */
.ft__top { display: grid; grid-template-columns: 270px 1.15fr 1fr 1.15fr 277px; padding-bottom: 16px; }
.ft__brand { padding-right: 32px; display: flex; flex-direction: column; }
.ft__logo { display: block; width: 218px; margin-top: 4px; }
.ft__logo img { display: block; width: 100%; height: auto; }

.ft__pay { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 34px; width: 196px; }
.ft__pay-item { display: flex; align-items: center; justify-content: center; height: 40px; width: 72px;
  border: 1px solid var(--ft-line); border-radius: 6px; background: var(--ft-card); }
.ft__pay-item img { display: block; height: 18px; width: auto; }
.ft__pay-item--mc img { height: 24px; }
.ft__pay-item--crypto { width: 148px; }
.ft__pay-item--crypto img { height: 26px; }

.ft__btn { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%; height: 50px;
  margin-top: 32px; padding: 4px 14px; border: 0; border-radius: 12px;
  background: linear-gradient(#ffcc00, #f49f20 99.99%, #ffb800);
  color: #000; font: 700 15px/1 Jost, sans-serif; text-align: center; }
.ft__btn:hover { background: #ffcc00; }

.ft__col { padding: 0 10px 0 30px; border-left: 1px solid var(--ft-line); }
.ft__col--contacts { padding-right: 0; }
.ft__head { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none;
  color: var(--ft-yellow); font: 700 16px/24px Jost, sans-serif; text-transform: uppercase; letter-spacing: .01em; text-align: left; cursor: default; }
.ft__head svg { flex: none; width: 24px; height: 24px; }
.ft__chev { display: none; }

.ft__list { display: flex; flex-direction: column; gap: 8px; }
.ft__list li { display: flex; }
.ft__list a { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; line-height: 20px; white-space: nowrap; }
.ft__list--flags { gap: 6px; }
.ft__list--flags img { width: 18px; height: 18px; flex: none; }
.ft__list a .ft__arrow { display: none; }
.ft__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.ft .ft__all, .ft .ft__all:hover { color: var(--ft-yellow); }
.ft__all svg { width: 18px; height: 18px; transition: transform .2s; }
.ft__all:hover svg { transform: translateX(3px); }

.ft__contacts { display: flex; flex-direction: column; gap: 5px; margin-top: -10px; }
.ft__contact { display: flex; align-items: center; gap: 14px; min-height: 42px; padding: 5px 12px;
  border: 1px solid var(--ft-line); border-radius: 8px; background: var(--ft-card); transition: border-color .2s, background .2s; }
.ft__contact:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.ft__contact img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.ft__contact span { display: block; }
.ft__contact b { display: block; font-size: 13px; line-height: 16px; font-weight: 600; color: #fff; }
.ft__contact small { display: block; margin-top: 1px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--ft-muted); }

/* ---------- второй ряд ---------- */
.ft__mid { display: grid; grid-template-columns: 376px 1fr 380px; padding: 12px 0 14px; border-top: 1px solid var(--ft-line); }
.ft__group { padding: 0 0 0 38px; border-left: 1px solid var(--ft-line); }
.ft__group:first-child { padding-left: 0; border-left: 0; }
.ft__group .ft__head { margin-bottom: 8px; color: var(--ft-yellow); }
.ft__group-title { color: inherit; }
.ft__group-desc { display: none; }
.ft__cols { display: flex; }
.ft__cols ul { display: flex; flex-direction: column; gap: 4px; padding-right: 18px; }
.ft__cols ul + ul { padding-left: 18px; border-left: 1px solid var(--ft-line); }
.ft__cols ul:first-child { flex: 0 0 auto; min-width: 152px; }
.ft__cols li { display: flex; }
.ft__cols a { font-size: 13px; line-height: 18px; white-space: nowrap; }
.ft__group--support { display: none; }

/* ---------- низ ---------- */
.ft__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0 14px;
  border-top: 1px solid var(--ft-line); color: #cbc9c9; font-size: 13px; line-height: 18px; }
.ft__copy { margin: 0; text-transform: uppercase; font-weight: 500; }
.ft__support { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; }
.ft__support svg { width: 24px; height: 24px; color: var(--ft-yellow); flex: none; }
.ft__support b { color: var(--ft-yellow); font-size: 14px; font-weight: 700; }

/* ---------- планшет ---------- */
@media (max-width: 1240px) {
  .ft__top { grid-template-columns: 250px 1fr 1fr 1fr; row-gap: 24px; }
  .ft__col--contacts { grid-column: 1 / -1; padding: 0; border-left: 0; }
  .ft__contacts { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .ft__contact { flex: 1 1 220px; }
  .ft__mid { grid-template-columns: 1fr; row-gap: 16px; }
  .ft__group { padding-left: 0; border-left: 0; }
  .ft__cols a { white-space: normal; }
}

/* ---------- мобильная версия ---------- */
@media (max-width: 767px) {
  .ft { padding-top: 28px; padding-bottom: 88px; }
  .ft__container { padding: 0 16px; }
  .ft__top { display: block; padding-bottom: 0; }
  .ft__brand { padding: 0; align-items: center; }
  .ft__logo { width: 250px; margin: 0; }
  .ft__pay { width: auto; margin-top: 16px; gap: 6px; justify-content: center; }
  .ft__pay-item { width: 78px; }
  .ft__pay-item--crypto { width: 150px; }
  .ft__btn { margin-top: 14px; height: 50px; font-size: 17px; }

  .ft__col, .ft__col--contacts { margin-top: 8px; padding: 0; border: 1px solid var(--ft-line); border-radius: 8px; background: var(--ft-card); }
  .ft__brand + .ft__col { margin-top: 26px; }
  .ft__col .ft__head { margin: 0; padding: 0 18px; height: 58px; gap: 22px; color: #fff; font-size: 17px; font-weight: 600;
    text-transform: none; cursor: pointer; }
  .ft__col .ft__head svg { width: 30px; height: 30px; color: var(--ft-yellow); }
  .ft__col .ft__head .ft__chev { display: block; width: 22px; height: 22px; margin-left: auto; color: #fff; transition: transform .2s; }
  .ft__col.is-open .ft__head .ft__chev { transform: rotate(180deg); }
  .ft__body { display: none; padding: 4px 18px 14px; border-top: 1px solid var(--ft-line); margin: 0 8px; padding-left: 10px; padding-right: 10px; }
  .ft__col.is-open .ft__body { display: block; }
  .ft__list, .ft__list--flags { gap: 0; }
  .ft__list a { display: flex; flex: 1; padding: 7px 0; font-size: 16px; }
  .ft__list--flags img { width: 20px; height: 20px; }
  .ft__list a .ft__arrow { display: block; width: 16px; height: 16px; margin-left: auto; color: #fff; }
  .ft__all { margin-top: 8px; font-size: 16px; }
  .ft__contacts { flex-direction: column; margin-top: 8px; gap: 6px; }
  .ft__contact { flex: none; }

  .ft__mid { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 8px; margin-top: 16px; padding: 0 0 22px; border-top: 0; }
  .ft__group, .ft__group:first-child { position: relative; display: block; padding: 20px 6px 16px 48px; min-height: 104px; min-width: 0;
    border: 1px solid var(--ft-line); border-radius: 8px; background: var(--ft-card); }
  .ft__group--support { display: block; }
  .ft__group:not(.ft__group--support) { cursor: pointer; }
  .ft__group .ft__head { display: block; margin: 0; color: #fff; font-size: min(13px, 3vw); line-height: 17px; letter-spacing: 0; cursor: pointer; }
  .ft__group .ft__head svg { position: absolute; left: 9px; top: 20px; width: 30px; height: 30px; color: var(--ft-yellow); }
  .ft__group .ft__head b { color: var(--ft-yellow); }
  .ft__group-desc { display: block; margin: 5px 0 0; color: var(--ft-link); font-size: 12px; line-height: 16px; }
  .ft__cols { display: none; }
  .ft__group.is-open { grid-column: 1 / -1; }
  .ft__group.is-open .ft__cols { display: flex; gap: 12px; margin: 12px 0 0 -36px; padding-top: 12px; border-top: 1px solid var(--ft-line); }
  .ft__group.is-open .ft__cols ul { flex: 1 1 50%; min-width: 0; padding: 0; border: 0; gap: 8px; }
  .ft__cols a { font-size: 14px; white-space: normal; }

  .ft__bottom { display: block; padding: 28px 10px 0; text-align: center; border-top-color: rgba(255, 255, 255, .45); }
  .ft__copy { text-transform: none; font-weight: 400; font-size: 15px; line-height: 21px; color: #fff; }
  .ft__support { display: none; }
}

/* новогоднее оформление (картинки .new-year включаются стилями сайта) */
.ft, .ft__logo { position: relative; }

/* кнопка «наверх» на мобильном не перекрывает подвал */
@media (max-width: 767px) {
  #back-top.ft-hide { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
}
