/* Canonical header + footer for landings — same rules as the homepage.
   Loaded last so apartment/cottage CSS cannot restyle shared chrome. */

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  height: 99px !important;
  font-size: 15px !important;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.85), rgba(10, 11, 15, 0.62)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

header > .wrap {
  height: 100% !important;
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

header .nav {
  position: static !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  padding: 20px 0 !important;
  gap: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

header .nav > nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
}

header .brand {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  min-width: auto !important;
}

header .logo {
  width: auto !important;
  height: 30px !important;
  max-width: none !important;
}

header nav > ul,
header .primary-menu {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 0 0 15px !important;
  padding: 0 !important;
  min-width: 0 !important;
}

header nav a {
  display: inline-block !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
  color: rgba(238, 240, 246, 0.86) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

header nav a:hover,
header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #eef0f6 !important;
}

header .nav-right {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  gap: 0 !important;
}

header .socials {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-right: 8px !important;
}

header .icon-link,
header .mnav-socials .icon-link {
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

header .icon-link .icon {
  width: 20px !important;
  height: 20px !important;
}

header .region {
  display: block !important;
  margin-left: 10px !important;
  color: rgba(238, 240, 246, 0.86) !important;
  font-size: 15px !important;
  white-space: nowrap !important;
}

header .phone {
  display: flex !important;
  align-items: center !important;
}

header .phone a {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: rgba(238, 240, 246, 0.88) !important;
}

header .burger {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  flex: 0 0 auto !important;
}

header .burger::before,
header .burger::after {
  content: none !important;
  display: none !important;
}

header .burger i {
  width: 18px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  display: block !important;
  position: relative !important;
  border-radius: 999px !important;
  top: auto !important;
  left: auto !important;
  opacity: 1 !important;
}

header .burger i::before,
header .burger i::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  width: 18px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-radius: 999px !important;
}

header .burger i::before {
  top: -6px !important;
  transform: none !important;
}

header .burger i::after {
  top: 6px !important;
  transform: none !important;
}

header .mnav {
  display: none;
}

header .mnav-content .mnav-menu,
header .mnav-content .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------------------------- */
/* Footer — desktop, same absolute layout as homepage                         */
/* -------------------------------------------------------------------------- */

footer {
  width: 100% !important;
  position: relative !important;
  background-color: #1b1638 !important;
  padding: 0 !important;
  overflow: visible !important;
}

footer .footer {
  width: 1600px !important;
  max-width: 85% !important;
  margin: 0 auto !important;
  position: relative !important;
  min-height: 469px !important;
  height: auto !important;
  padding: 32px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  color: #ffffff !important;
  border-top: 0 !important;
  overflow: visible !important;
  font-size: inherit !important;
}

footer .footer-caption {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  font-size: 12px !important;
  line-height: 12px !important;
  color: #c8c8d2 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

footer .footer-columns {
  position: absolute !important;
  top: 79px !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 121px !important;
  margin: 0 !important;
}

footer .footer-col,
footer .footer-col:nth-child(1),
footer .footer-col:nth-child(2),
footer .footer-col-wide {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 32px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  position: static !important;
}

footer .footer-title,
footer .footer-col-title {
  align-self: stretch !important;
  line-height: 24px !important;
  font-size: 20px !important;
  color: #fff !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

footer .footer-links {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

footer .footer-link {
  align-self: stretch !important;
  line-height: 20px !important;
  font-size: 16px !important;
  color: #c8c8d2 !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

footer .footer-link:hover,
footer .footer-link:focus-visible {
  color: #fff !important;
}

footer .footer-contact {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 20px !important;
}

footer .footer-contact-list {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
}

footer .footer-contact-item {
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

footer .footer-contact-item svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

footer .footer-contact-text,
footer .footer-contact-text a {
  flex: 1 1 auto !important;
  line-height: 20px !important;
  font-size: 16px !important;
  color: #c8c8d2 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

footer .footer-start {
  position: absolute !important;
  top: 32px !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 385px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 56px !important;
  margin: 0 !important;
}

footer .footer-start-content,
footer .footer-start-top,
footer .footer-start-text {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

footer .footer-start-content {
  gap: 28px !important;
}

footer .footer-start-top {
  gap: 20px !important;
}

footer .footer-logo {
  width: 130px !important;
  max-height: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

footer .footer-start-text {
  gap: 10px !important;
}

footer .footer-start-subtitle {
  font-size: 14px !important;
  line-height: 16px !important;
  color: #c8c8d2 !important;
  font-weight: 700 !important;
}

footer .footer-buttons {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 20px !important;
}

footer .btn.footer-btn {
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 20px 24px !important;
  justify-content: center !important;
  text-align: center !important;
  background: linear-gradient(180deg, rgba(127, 107, 255, 0.6), rgba(85, 72, 170, 0.6)) !important;
  box-shadow: 30px 0 70px rgba(127, 107, 255, 0.5) inset, 0 0 20px rgba(127, 107, 255, 0.5) inset !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  border: 0 !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 100% !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

footer .btn.hero-outline.footer-btn {
  background: rgba(255, 255, 255, 0.02) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 6px 18px rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

footer .btn.footer-btn:hover,
footer .btn.footer-btn:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(90deg, #7f6bff 0%, #5548aa 100%) !important;
  transform: translateY(-1px) !important;
}

footer .btn.hero-outline.footer-btn:hover,
footer .btn.hero-outline.footer-btn:focus-visible {
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: inset 0 8px 22px rgba(255, 255, 255, 0.045) !important;
  color: #ffffff !important;
}

footer .footer-start-bottom {
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
}

/* -------------------------------------------------------------------------- */
/* Header breakpoints — same as homepage site-adaptive                        */
/* -------------------------------------------------------------------------- */

@media (max-width: 1450px) {
  header .socials {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  header .nav > nav,
  header nav > ul,
  header .primary-menu {
    display: none !important;
  }

  header .burger {
    display: flex !important;
  }

  header .nav {
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  header .nav-right {
    display: contents !important;
    margin-left: 0 !important;
  }

  header .burger {
    order: -1 !important;
  }

  header .brand {
    order: 0 !important;
    margin-left: 0 !important;
  }

  header .phone {
    order: 1 !important;
    margin-left: auto !important;
  }

  header .region {
    order: 2 !important;
    margin-left: 0 !important;
  }

  header .logo {
    height: 27px !important;
  }
}

@media (max-width: 860px) {
  header .mnav {
    display: block !important;
    position: fixed !important;
    top: 99px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100vw !important;
    height: auto !important;
    max-height: calc(100dvh - 99px - 20px) !important;
    padding: 16px 16px 20px !important;
    z-index: 1000 !important;
    background: rgba(10, 11, 15, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    overflow: auto !important;
    transform: translateX(-110%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    border-radius: 0 !important;
  }

  header .mnav.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  header .mnav .mnav-content {
    height: auto !important;
    overflow: visible !important;
    width: 100% !important;
    padding: 12px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #eef0f6 !important;
  }

  header .phone {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  header .nav {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }

  header .nav-right {
    display: contents !important;
  }

  header .burger {
    order: -1 !important;
    display: flex !important;
  }

  header .brand {
    order: 0 !important;
  }

  header .phone {
    order: 1 !important;
    margin-left: auto !important;
  }

  header .region {
    order: 2 !important;
    display: block !important;
  }

  header .logo {
    height: 30px !important;
    width: auto !important;
  }
}

@media (max-width: 602px) {
  header .phone {
    display: none !important;
  }

  header .region {
    display: block !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 520px) {
  header > .wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 384px) {
  header .region {
    font-size: 12px !important;
    line-height: 14px !important;
    white-space: normal !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Footer tablet: 768–1199, two-column like homepage                          */
/* -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1199px) {
  footer .footer {
    width: 944px !important;
    max-width: calc(100% - 80px) !important;
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: 385px minmax(0, 1fr) !important;
    grid-template-areas:
      "start cols"
      "caption caption" !important;
    gap: 40px !important;
    padding: 32px 0 !important;
    overflow: visible !important;
  }

  footer .footer-start,
  footer .footer-columns,
  footer .footer-caption {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  footer .footer-start {
    width: auto !important;
    grid-area: start !important;
    margin: 0 !important;
  }

  footer .footer-columns {
    grid-area: cols !important;
    margin: 0 !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(12px, 2.5vw, 24px) !important;
    align-items: start !important;
    max-width: 100% !important;
  }

  footer .footer-caption {
    grid-area: caption !important;
    justify-self: center !important;
    margin-top: 20px !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

@media (min-width: 768px) and (max-width: 1450px) {
  footer .footer-title,
  footer .footer-col-title {
    font-size: 18px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
  }

  footer .footer-start-subtitle {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 400 !important;
  }

  footer .btn.footer-btn,
  footer .btn.hero-outline.footer-btn {
    font-size: 16px !important;
    line-height: 100% !important;
    font-weight: 500 !important;
  }

  footer .footer-link,
  footer .footer-contact-text,
  footer .footer-contact-text a {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 400 !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Footer mobile: start, then 3 columns, then caption                         */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  footer {
    overflow: visible !important;
  }

  footer .footer {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 32px 20px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  footer .footer-start,
  footer .footer-columns,
  footer .footer-caption,
  footer .footer-col,
  footer .footer-col:nth-child(1),
  footer .footer-col:nth-child(2),
  footer .footer-col-wide {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    min-width: 0 !important;
  }

  footer .footer-start {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    gap: 16px !important;
  }

  footer .footer-start-content {
    gap: 16px !important;
  }

  footer .footer-start-top {
    gap: 16px !important;
  }

  footer .footer-start-text {
    gap: 8px !important;
  }

  footer .footer-buttons {
    gap: 10px !important;
    width: 100% !important;
  }

  footer .btn.footer-btn,
  footer .btn.hero-outline.footer-btn {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 16px 24px !important;
    font-size: 14px !important;
  }

  footer .footer-columns {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(8px, 3vw, 16px) !important;
    align-items: start !important;
  }

  footer .footer-col,
  footer .footer-col:nth-child(1),
  footer .footer-col:nth-child(2),
  footer .footer-col-wide {
    width: auto !important;
    max-width: 100% !important;
    gap: 16px !important;
  }

  footer .footer-caption {
    order: 3 !important;
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
  }

  footer .footer-title {
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 400 !important;
  }

  footer .footer-col-title {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 400 !important;
  }

  footer .footer-start-subtitle {
    font-size: 12px !important;
    line-height: 12px !important;
    font-weight: 400 !important;
  }

  footer .footer-link,
  footer .footer-contact-text,
  footer .footer-contact-text a,
  footer .footer-caption {
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 400 !important;
  }

  footer .footer-contact-text,
  footer .footer-contact-text a {
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  footer .footer-link {
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 449px) {
  footer .footer-title,
  footer .footer-col-title {
    font-size: 14px !important;
    line-height: 16px !important;
    font-weight: 400 !important;
  }

  footer .btn.footer-btn,
  footer .btn.hero-outline.footer-btn {
    font-size: 12px !important;
  }
}

/* 70/90/136 column ratio must come AFTER the 767 equal-columns rule */
@media (max-width: 520px) {
  footer .footer {
    padding: 32px 14px !important;
  }

  footer .footer-columns {
    grid-template-columns: minmax(0, 70fr) minmax(0, 90fr) minmax(0, 136fr) !important;
  }

  footer .footer-logo {
    width: 118px !important;
  }
}

/* Floating landing CTA is not on the homepage — keep footer unobstructed */
@media (max-width: 767px) {
  .consult-widget {
    display: none !important;
  }
}
