/* ParadTrade ecosystem footer shared visually with the Blog product. */
.footer.footer--trust {
  min-height: 0;
  background: #080b08;
  color: #fff;
}

.footer.footer--trust .footer__compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 2.8rem;
  padding-bottom: 2.4rem;
}

.footer__brand-block {
  max-width: 58rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__brand {
  display: inline-flex;
}

.footer__brand-logo {
  display: block;
  width: 22.7rem;
  height: 3.4rem;
}

.footer__summary {
  max-width: 54rem;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  line-height: 150%;
}

.footer__social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer__social-link {
  width: 4.2rem;
  height: 4.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 4.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.footer__social-link svg {
  width: 2rem;
  height: 2rem;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  transform: translateY(-2px);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.24);
  outline: none;
}

.footer__social-link--instagram:hover,
.footer__social-link--instagram:focus-visible { color: #e4405f; }
.footer__social-link--facebook:hover,
.footer__social-link--facebook:focus-visible { color: #1877f2; }
.footer__social-link--x:hover,
.footer__social-link--x:focus-visible { color: #fff; }
.footer__social-link--youtube:hover,
.footer__social-link--youtube:focus-visible { color: #ff0033; }
.footer__social-link--telegram:hover,
.footer__social-link--telegram:focus-visible { color: #26a5e4; }

.footer.footer--trust .footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 3rem;
  padding-top: 1.8rem;
  padding-bottom: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  grid-template-columns: none;
  grid-template-rows: none;
  line-height: 150%;
}

.footer__copyright {
  flex: 0 0 auto;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
}

.footer__legal-links a,
.footer__cookie-button {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 1.3rem;
  line-height: 140%;
  text-align: left;
  text-decoration: none;
}

.footer__cookie-button {
  padding: 0;
  cursor: pointer;
}

.footer__legal-links a:hover,
.footer__legal-links a:focus-visible,
.footer__cookie-button:hover,
.footer__cookie-button:focus-visible {
  color: #9bd556;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.scroll-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 45;
  display: flex;
  width: 4.8rem;
  height: 4.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 137, 39, 0.26);
  border-radius: 50%;
  background: rgba(250, 252, 248, 0.94);
  box-shadow: 0 1rem 2.8rem rgba(45, 66, 28, 0.18);
  color: #578c22;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.2rem) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
  backdrop-filter: blur(12px);
}

.scroll-to-top svg {
  width: 2.2rem;
  height: 2.2rem;
}

.scroll-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  background: #9bd556;
  color: #1d1d1d;
  outline: none;
  transform: translateY(-0.2rem) scale(1);
}

body.noscroll .scroll-to-top,
body.cookie-banner-visible .scroll-to-top {
  opacity: 0;
  pointer-events: none;
}

.cookie-banner[hidden],
.cookie-banner__settings[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  left: 1.6rem;
  z-index: 12000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner__inner {
  position: relative;
  display: grid;
  align-items: center;
  width: min(58rem, 100%);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(133, 181, 79, 0.3);
  border-radius: 2.4rem;
  background: radial-gradient(circle at 100% 0, rgba(181, 231, 123, 0.2), transparent 34%), rgba(255, 255, 255, 0.98);
  box-shadow: 0 1.6rem 5rem rgba(29, 43, 18, 0.18);
  color: #293124;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  pointer-events: auto;
}

.cookie-banner h2 {
  margin: 0;
  color: #20251d;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 125%;
}

.cookie-banner__copy {
  min-width: 0;
  padding-right: 3.2rem;
}

.cookie-banner__copy > p:last-child {
  max-width: 52rem;
  margin: 0.35rem 0 0;
  color: #687064;
  font-size: 1.12rem;
  line-height: 140%;
  overflow-wrap: anywhere;
}

.cookie-banner__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5ed;
  color: #6a7363;
  cursor: pointer;
}

.cookie-banner__close:hover,
.cookie-banner__close:focus-visible {
  background: #e8f1df;
  color: #3e6518;
  outline: none;
}

.cookie-banner__close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cookie-banner__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.cookie-banner__policy {
  color: #687064;
  font-size: 1.1rem;
  line-height: 140%;
  text-underline-offset: 0.3rem;
}

.cookie-button {
  min-width: 11.2rem;
  min-height: 3.8rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #a8cb82;
  border-radius: 100px;
  background: #f5f9f1;
  color: #315410;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 130%;
}

.cookie-button--primary {
  border-color: #91c654;
  background: #a8d96f;
  color: #1e3211;
}

.cookie-button--secondary {
  min-width: 10.2rem;
  border-color: #dce6d3;
  background: #fff;
  color: #4f5948;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  border-color: #9bd556;
  outline: none;
}

.cookie-banner__settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 0.35rem 0 0.15rem;
  animation: cookie-settings-reveal 180ms ease both;
}

.cookie-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 4.8rem;
  padding: 0.45rem 0.2rem;
}

.cookie-option strong,
.cookie-option span {
  display: block;
}

.cookie-option strong {
  color: #30372b;
  font-size: 1.12rem;
  line-height: 130%;
}

.cookie-option div > span {
  margin-top: 0.25rem;
  color: #7a8274;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 130%;
}

.cookie-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-option__toggle {
  position: relative;
  flex: 0 0 3.6rem;
  width: 3.6rem;
  height: 2rem;
  border-radius: 100px;
  background: #c9cec4;
  cursor: pointer;
  transition: background 160ms ease;
}

.cookie-option__toggle::after {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #fff;
  content: '';
  transition: transform 160ms ease;
}

.cookie-option input:checked + .cookie-option__toggle,
.cookie-option__toggle.is-locked {
  background: #80bd3c;
}

.cookie-option input:checked + .cookie-option__toggle::after,
.cookie-option__toggle.is-locked::after {
  transform: translateX(1.6rem);
}

.cookie-option input:focus-visible + .cookie-option__toggle {
  outline: 3px solid rgba(128, 189, 60, 0.24);
  outline-offset: 2px;
}

@keyframes cookie-settings-reveal {
  from { opacity: 0; transform: translateY(-0.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media only screen and (max-width: 900px) {
  .footer.footer--trust .footer__compact,
  .footer.footer--trust .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__social-links,
  .footer__legal-links {
    justify-content: flex-start;
  }
}

@media only screen and (max-width: 767px) {
  .scroll-to-top {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 4.4rem;
    height: 4.4rem;
  }

  .scroll-to-top--with-filter {
    bottom: 9.5rem;
  }
}

@media only screen and (max-width: 600px) {
  .footer.footer--trust .footer__compact {
    padding-top: 2.4rem;
    padding-bottom: 2rem;
  }

  .footer__social-link {
    width: 4rem;
    height: 4rem;
    flex-basis: 4rem;
  }

  .footer.footer--trust .footer__bottom {
    justify-content: flex-start;
    padding-top: 1.6rem;
    padding-bottom: 2rem;
  }

  .footer__legal-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .cookie-banner {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .cookie-banner__inner {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.15rem 1.2rem;
    border-radius: 2rem;
    gap: 0.8rem;
  }

  .cookie-banner h2 { font-size: 1.5rem; }
  .cookie-banner__copy > p:last-child { font-size: 1.05rem; line-height: 135%; }
  .cookie-banner__settings { grid-template-columns: 1fr; gap: 0.45rem; }
  .cookie-option { min-height: 4.2rem; }

  .cookie-banner__footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-button {
    width: auto;
    min-width: 9.4rem;
    min-height: 3.6rem;
    padding: 0.65rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__social-link,
  .scroll-to-top,
  .cookie-option__toggle,
  .cookie-option__toggle::after {
    transition: none;
  }
}
