/* Dropdowns for #header. The id beats the homepage15 menu-link rule in main.css. */

#header,
#header .container,
#header .row,
#header .col-lg-12,
#header .header-elements,
#header .main-menu {
  overflow: visible;
}

#header.sticky {
  z-index: 1000;
}

#header .header-elements {
  position: relative;
}

#header .main-menu {
  position: static;
}

#header .main-menu > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#header .main-menu > ul > li > a .fa-chevron-down {
  font-size: 11px;
  transition: transform 0.2s ease;
}

#header li:has(.transfer, .features) {
  position: static;
}

#header li:has(.transfer, .features, .drop) > a {
  position: relative;
}

#header li:has(.transfer, .features, .drop) > a::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 0;
  bottom: -36px;
  left: 0;
}

#header li:hover > a .fa-chevron-down,
#header li:focus-within > a .fa-chevron-down {
  transform: rotate(180deg);
}

#header :is(.transfer, .features, .drop) {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 50%;
  margin: 0;
  border: 1px solid rgba(94, 89, 248, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(28, 24, 72, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

#header li:hover > :is(.transfer, .features, .drop),
#header li:focus-within > :is(.transfer, .features, .drop) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#header :is(.transfer, .features, .drop) a {
  display: flex;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #1c1d30;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

#header :is(.transfer, .features) {
  width: min(1160px, calc(100vw - 32px));
  padding: 16px;
}

#header .transfer > div {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 16px;
}

#header .transfer aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.2) 0 18%, transparent 19%),
    linear-gradient(165deg, #7a5cff 0%, #6842ee 46%, #542fce 100%);
  color: #fff;
}

#header .transfer aside img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

#header .transfer aside p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

#header .transfer aside ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

#header .transfer aside li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

#header .transfer aside li i {
  width: 14px;
  font-size: 12px;
  text-align: center;
}

#header .transfer > div > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  padding-top: 6px;
}

#header .transfer section {
  min-width: 0;
  padding: 0 8px;
}

#header .transfer section > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

#header .transfer section > p img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

#header .transfer section small {
  display: block;
  margin-bottom: 2px;
  color: #8b8ca3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

#header .transfer section > p strong {
  display: block;
  color: #16162a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

#header .transfer section a {
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #f6f5fb;
}

#header .transfer section a img {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

#header .transfer section a span {
  flex: 1 1 auto;
  min-width: 0;
}

#header .transfer section a .fa-chevron-right {
  flex: 0 0 auto;
  color: #a3a3b8;
  font-size: 10px;
}

#header .transfer section a:hover {
  background: #f0edff;
}

#header :is(.transfer, .features) footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#header .transfer > footer {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f3ff;
}

#header :is(.transfer, .features) footer p {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  color: #6f7088;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

#header :is(.transfer, .features) footer p strong {
  display: block;
  color: #3c3d54;
  font-weight: 700;
}

#header :is(.transfer, .features) footer p i {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ece9ff;
  color: #635bff;
  font-size: 14px;
  place-items: center;
}

#header :is(.transfer, .features) footer > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #5e59f8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(94, 89, 248, 0.28);
}

#header :is(.transfer, .features) footer > a:hover {
  background: #4e49ef;
  color: #fff;
  transform: translateY(-1px);
}

#header .features {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

#header .features aside {
  padding: 22px 20px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(99, 91, 255, 0.12), transparent 34%),
    #f6f4ff;
}

#header .features aside > span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ece8ff;
  color: #635bff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

#header .features aside > p {
  margin: 18px 0 16px;
  color: #7d7e96;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#header .features aside ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

#header .features aside li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#header .features aside li i {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid #e6e1ff;
  border-radius: 12px;
  background: #ece8ff;
  color: #635bff;
  font-size: 15px;
  place-items: center;
}

#header .features aside strong {
  display: block;
  margin-bottom: 3px;
  color: #16162a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

#header .features aside small {
  display: block;
  color: #74768d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

#header .features > div {
  min-width: 0;
  padding: 8px 4px 0;
}

#header .features > div > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  color: #7d7e96;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#header .features > div > p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #635bff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

#header .features > div > p a:hover {
  color: #4e49ef;
}

#header .features > div > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#header .features > div > div > a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid #e8e7f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(28, 24, 72, 0.03);
}

#header .features > div > div > a:hover {
  border-color: #d9d4ff;
  box-shadow: 0 10px 24px rgba(99, 91, 255, 0.12);
  transform: translateY(-2px);
}

#header .features > div > div > a > i:first-child {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 18px;
  place-items: center;
}

#header .features > div > div > a:nth-child(1) > i:first-child {
  background: #e7f8ee;
  color: #18a957;
}

#header .features > div > div > a:nth-child(2) > i:first-child {
  background: #ffeaf2;
  color: #ef3f7c;
}

#header .features > div > div > a:nth-child(3) > i:first-child,
#header .features > div > div > a:nth-child(6) > i:first-child {
  background: #eaf1ff;
  color: #3f78f5;
}

#header .features > div > div > a:nth-child(4) > i:first-child {
  background: #f0ecff;
  color: #6840ef;
}

#header .features > div > div > a:nth-child(5) > i:first-child {
  background: #fff4dc;
  color: #f0a10b;
}

#header .features > div > div > a > span {
  color: #16162a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

#header .features > div > div .fa-chevron-right {
  color: #9a9ab0;
  font-size: 11px;
}

#header .features footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8e7f1;
}

#header .drop {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 210px;
  padding: 8px;
}

#header .drop a {
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2c2d42;
  font-size: 15px;
}

#header .drop a i {
  width: 16px;
  color: #635bff;
  font-size: 14px;
  text-align: center;
}

#header .drop a:hover {
  background: #f4f2ff;
  color: #4e49ef;
}

@media (max-width: 1199px) {
  #header :is(.transfer, .features) {
    width: calc(100vw - 24px);
    padding: 12px;
  }

  #header .transfer > div {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 12px;
  }

  #header .transfer aside {
    padding: 20px 16px;
  }

  #header .transfer section > p strong {
    font-size: 15px;
  }

  #header .transfer section a {
    font-size: 12px;
  }

  #header .features {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 12px;
  }

  #header .features > div > div > a {
    grid-template-columns: 40px minmax(0, 1fr) 10px;
    gap: 8px;
    min-height: 0;
    padding: 12px;
  }

  #header .features > div > div > a > i:first-child {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
