.cn2g-brand-v2 .site-footer.cn2g-p2-footer,
.site-footer.cn2g-p2-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  padding: 54px 0 28px;
  color: #dceaf3;
  background:
    radial-gradient(circle at 16% 10%, rgba(115, 232, 224, 0.12), transparent 24rem),
    radial-gradient(circle at 84% 0%, rgba(216, 170, 76, 0.10), transparent 20rem),
    linear-gradient(180deg, #081824 0%, #06121e 56%, #07131f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer.cn2g-p2-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.site-footer.cn2g-p2-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  z-index: -1;
  width: min(760px, 82vw);
  height: 120px;
  transform: translateX(-50%);
  border-top: 1px solid rgba(115, 232, 224, 0.20);
  border-radius: 50%;
  opacity: 0.72;
}

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

.cn2g-p2-footer-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(212px, 0.58fr) minmax(220px, 0.48fr) minmax(220px, 0.58fr);
  grid-template-areas:
    "brand links social contact"
    "bottom bottom bottom bottom";
  gap: 34px 44px;
  align-items: start;
}

.cn2g-p2-footer-brand {
  grid-area: brand;
  min-width: 0;
  padding-right: 12px;
}

.cn2g-p2-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.cn2g-p2-footer-logo span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 42px;
  border: 1px solid rgba(216, 170, 76, 0.58);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(216, 170, 76, 0.96), rgba(245, 217, 135, 0.72)),
    #d8aa4c;
  color: #08131f;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.cn2g-p2-footer-logo span::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 20px;
  height: 1px;
  background: rgba(8, 19, 31, 0.72);
  transform: rotate(-22deg);
  transform-origin: right center;
}

.cn2g-p2-footer-logo strong {
  max-width: 220px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  line-height: 1.24;
  font-weight: 850;
}

.cn2g-p2-footer-line {
  max-width: 520px;
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.38;
  font-weight: 860;
}

.cn2g-p2-footer-brand p:not(.cn2g-p2-footer-line) {
  max-width: 660px;
  margin: 0;
  color: rgba(220, 234, 243, 0.70);
  font-size: 14px;
  line-height: 1.78;
}

.cn2g-p2-footer-links {
  grid-area: links;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(98px, 1fr));
  gap: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.cn2g-p2-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  min-width: 0;
  padding: 0 12px;
  color: rgba(225, 239, 247, 0.78);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 760;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.cn2g-p2-footer-links a:hover,
.cn2g-p2-footer-links a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.cn2g-p2-footer-social {
  grid-area: social;
  min-width: 0;
}

.cn2g-p2-footer-contact {
  grid-area: contact;
  min-width: 0;
  font-style: normal;
}

.cn2g-p2-footer-social,
.cn2g-p2-footer-contact {
  display: grid;
  justify-items: start;
}

.cn2g-p2-social-block {
  display: grid;
  gap: 12px;
}

.cn2g-p2-social-block > span {
  color: rgba(220, 234, 243, 0.62);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cn2g-p2-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.cn2g-p2-social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.cn2g-p2-social-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 44%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.cn2g-p2-social-link:hover,
.cn2g-p2-social-link:focus {
  transform: translateY(-2px);
  border-color: rgba(115, 232, 224, 0.46);
  background: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(115, 232, 224, 0.05);
  outline: none;
}

.cn2g-p2-social-link:hover::after,
.cn2g-p2-social-link:focus::after {
  opacity: 1;
}

.cn2g-p2-social-link img {
  position: relative;
  z-index: 1;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.cn2g-p2-contact-lines {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-left: 2px;
}

.cn2g-p2-contact-lines a,
.cn2g-p2-contact-lines span {
  color: rgba(220, 234, 243, 0.70);
  font-size: 13px;
  line-height: 1.48;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cn2g-p2-contact-lines a:hover,
.cn2g-p2-contact-lines a:focus {
  color: #ffffff;
  outline: none;
}

.cn2g-p2-footer-bottom {
  grid-area: bottom;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
  color: rgba(220, 234, 243, 0.58);
  font-size: 12.5px;
  line-height: 1.55;
}

.cn2g-p2-footer-bottom span {
  min-width: 0;
}

.cn2g-p2-footer-bottom button {
  min-height: 34px;
  border: 1px solid rgba(115, 232, 224, 0.30);
  border-radius: 999px;
  background: rgba(12, 86, 96, 0.24);
  color: #dffbff;
  padding: 0 13px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.cn2g-p2-footer-bottom button:hover,
.cn2g-p2-footer-bottom button:focus {
  transform: translateY(-1px);
  border-color: rgba(115, 232, 224, 0.52);
  background: rgba(12, 86, 96, 0.38);
  outline: none;
}

@media (max-width: 980px) {
  .cn2g-p2-footer-shell {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.58fr);
    grid-template-areas:
      "brand brand"
      "links social"
      "links contact"
      "bottom bottom";
    gap: 24px;
  }

  .cn2g-p2-footer-brand {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .cn2g-brand-v2 .site-footer.cn2g-p2-footer,
  .site-footer.cn2g-p2-footer {
    padding: 40px 0 92px;
  }

  .site-footer.cn2g-p2-footer::after {
    top: 18px;
    width: 92vw;
    height: 86px;
  }

  .cn2g-p2-footer-shell {
    width: min(100vw - 28px, 560px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "social"
      "links"
      "contact"
      "bottom";
    gap: 22px;
  }

  .cn2g-p2-footer-line {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.42;
  }

  .cn2g-p2-footer-brand p:not(.cn2g-p2-footer-line) {
    font-size: 13.5px;
    line-height: 1.72;
  }

  .cn2g-p2-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cn2g-p2-footer-links a {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .cn2g-p2-social-row {
    gap: 10px;
  }

  .cn2g-p2-social-link {
    width: 44px;
    height: 44px;
  }

  .cn2g-p2-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .cn2g-p2-footer-logo {
    align-items: flex-start;
    flex-direction: column;
  }

  .cn2g-p2-footer-links {
    grid-template-columns: 1fr;
  }
}
