
.site-footer {
  margin-top: 64px;
  padding: 0 0 36px;
  border: 0;
  background: transparent;
}

.footer-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(ellipse at 0 0, rgba(28, 199, 41, .07), transparent 48%),
    linear-gradient(145deg, #0a2238, #071a2c 70%);
}

.footer-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 240, 74, .5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .8fr 1fr 1.2fr;
  gap: 32px;
  padding: 36px 32px 32px;
}

.footer-grid > * {
  min-width: 0;
}

.site-footer .logo {
  width: fit-content;
}

.site-footer .logo img {
  height: 52px;
}

.footer-brand__text {
  max-width: 220px;
  margin: 18px 0;
  color: #a8bbcd;
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(92, 240, 74, .25);
  border-radius: 12px;
  background: rgba(92, 240, 74, .06);
  color: var(--green-hi);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  transition: background 160ms ease, border-color 160ms ease;
}

.footer-brand__link svg {
  width: 15px;
  height: 15px;
}

.footer-brand__link:hover {
  border-color: var(--green);
  background: rgba(92, 240, 74, .12);
}

.site-footer .footer-title {
  margin: 4px 0 16px;
  padding: 0;
  color: #e4edf5;
  font-family: Roboto, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.site-footer .footer-title::after {
  display: none;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 35px;
  padding: 5px 0;
  color: #9db1c4;
  font-size: 13px;
  line-height: 1.5;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--green-hi);
}

.site-footer .legal-footer {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.legal-footer__links {
  display: grid;
  gap: 8px;
}

.legal-footer__links .footer-legal-button {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(143, 184, 204, .18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 46, 78, .65), rgba(8, 29, 49, .8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  color: #c8d5e2;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.footer-legal-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green-hi);
  opacity: .9;
}

.footer-legal-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-legal-arrow {
  flex: none;
  width: 12px;
  height: 12px;
  opacity: .5;
}

.legal-footer__links .footer-legal-button:hover {
  border-color: rgba(92, 240, 74, .4);
  background: linear-gradient(135deg, rgba(28, 199, 41, .12), rgba(13, 46, 78, .7));
  color: #fff;
}

.legal-footer__links .footer-legal-button:active {
  border-color: rgba(92, 240, 74, .5);
  background: rgba(28, 199, 41, .14);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--green-hi);
  outline-offset: 4px;
  border-radius: 8px;
}

.legal-footer__links .footer-legal-button:focus-visible {
  outline: 2px solid var(--green-hi);
  outline-offset: 3px;
}

.footer-license {
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  background: rgba(2, 11, 20, .1);
}

.footer-license__header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.footer-license__header svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--green-hi);
}

.site-footer .footer-license__title {
  margin: 0;
  color: #c8d5e2;
  font-size: 10px;
}

.footer-license__copy {
  color: #9db1c4;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.footer-license__copy p + p {
  margin-top: 10px;
}

.footer-license__copy strong {
  color: #c8d5e2;
  font-weight: 500;
  white-space: nowrap;
}

.footer-license__copy a {
  border-bottom: 1px solid rgba(143, 163, 184, .3);
  color: #c8d5e2;
}

.footer-license__copy a:hover {
  border-color: var(--green-hi);
  color: var(--green-hi);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  background: rgba(2, 11, 20, .18);
}

.footer-responsible {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-age {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(232, 195, 90, .3);
  border-radius: 12px;
  background: rgba(232, 195, 90, .04);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.footer-responsible p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer-responsible strong,
.footer-responsible p span {
  display: block;
}

.footer-responsible strong {
  color: #c8d5e2;
  font-weight: 500;
}

.footer-copyright {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 28px;
  }

  .footer-brand {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 24px;
  }

  .footer-brand__text {
    max-width: none;
    margin: 0;
  }

  .footer-brand__link {
    flex: none;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .site-footer {
    margin-top: 40px;
    padding-bottom: 28px;
  }

  .footer-shell {
    border-radius: 22px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px 20px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .site-footer .logo img {
    height: 44px;
  }

  .footer-brand__text {
    max-width: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .footer-brand__link {
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .site-footer .footer-title {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: .8px;
  }

  .footer-nav + .footer-nav {
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .footer-nav a {
    min-height: 46px;
    padding: 10px 0;
    color: #b9c9d8;
    font-size: 14px;
    line-height: 1.6;
  }

  .site-footer .legal-footer {
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .legal-footer__links {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .legal-footer__links .footer-legal-button {
    gap: 12px;
    min-height: 52px;
    padding: 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-legal-icon {
    width: 18px;
    height: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }

  .footer-license {
    padding: 24px 20px;
  }

  .footer-license__header {
    margin-bottom: 16px;
  }

  .site-footer .footer-license__title {
    margin: 0;
  }

  .footer-license__copy {
    font-size: 13px;
    line-height: 1.85;
  }

  .footer-license__copy p + p {
    margin-top: 16px;
  }

  .footer-license__copy strong {
    white-space: normal;
  }

  .footer-responsible {
    align-items: flex-start;
    gap: 12px;
  }

  .footer-responsible p {
    font-size: 12px;
    line-height: 1.75;
  }

  .footer-age {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 12px;
  }

  .footer-copyright {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .footer-grid {
    padding: 24px 16px;
  }

  .footer-bottom {
    padding: 24px 16px;
  }

  .footer-license {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-brand__link,
  .footer-nav a,
  .legal-footer__links .footer-legal-button {
    transition: none;
  }
}
