/* Compact premium footer — three clear RTL areas. */
#contact.contact-modern {
  border-bottom: 1px solid rgba(200,168,107,.4) !important;
}

.site-footer-modern {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(243,234,216,.12) !important;
  color: #d8dfe3;
  background: linear-gradient(180deg,#0a1d2d 0%,#081a29 100%) !important;
}

.site-footer-modern::before {
  display: none;
  content: none;
}

.site-footer-modern .footer-main-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1040px,calc(100% - 48px));
  grid-template-columns: minmax(0,1.35fr) minmax(190px,.8fr) minmax(0,1fr);
  gap: clamp(24px,3.2vw,46px);
  align-items: start;
  align-content: start;
  grid-auto-rows: max-content;
  padding-block: 11px 10px;
}

.site-footer-modern .footer-brand,
.site-footer-modern .footer-nav,
.site-footer-modern .footer-contact {
  height: auto !important;
  min-width: 0;
  min-height: 0 !important;
  align-self: start;
  align-content: start;
  margin: 0;
  padding: 0;
}

.site-footer-modern .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.site-footer-modern .footer-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin: 0 !important;
  object-fit: contain;
  filter: none !important;
}

.site-footer-modern .footer-brand h2,
.site-footer-modern h3 {
  margin: 0 0 5px !important;
  color: #d09a3e !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25;
}

.site-footer-modern .footer-brand p,
.site-footer-modern .footer-contact-intro {
  margin: 0 !important;
  color: rgba(216,223,227,.68);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer-modern .footer-brand p {
  max-width: 330px;
}

.site-footer-modern .footer-nav {
  display: block !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  text-align: right;
}

.site-footer-modern .footer-nav ul {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-auto-rows: max-content;
  gap: 4px 17px !important;
  height: auto !important;
  min-height: 0 !important;
  align-content: start !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.site-footer-modern .footer-nav li {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer-modern .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0;
  color: rgba(224,222,213,.86) !important;
  background: none !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none !important;
  transition: color 220ms ease,transform 220ms ease;
}

.site-footer-modern .footer-nav a::after {
  display: none !important;
  content: none !important;
}

.site-footer-modern .footer-nav a:hover,
.site-footer-modern .footer-nav a:focus-visible,
.site-footer-modern .footer-nav a.is-active,
.site-footer-modern .footer-nav a[aria-current="page"] {
  color: #d09a3e !important;
}

.site-footer-modern .footer-nav a:hover,
.site-footer-modern .footer-nav a:focus-visible {
  transform: translateX(-2px);
}

.site-footer-modern .footer-contact {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
  height: auto !important;
  min-height: 0 !important;
  align-content: start;
  text-align: right;
}

.site-footer-modern .footer-small-button {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(208,154,62,.76);
  border-radius: 8px;
  color: #102a43 !important;
  background: linear-gradient(135deg,#e1b04b 0%,#ca871c 100%);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(5,17,28,.16);
  transition: transform 220ms ease,filter 220ms ease,box-shadow 220ms ease;
}

.site-footer-modern .footer-small-button:hover,
.site-footer-modern .footer-small-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.035);
  box-shadow: 0 8px 18px rgba(202,135,28,.17);
}

.site-footer-modern .footer-bottom {
  position: relative;
  z-index: 1;
  min-height: 0;
  border-top: 1px solid rgba(208,154,62,.16);
  background: #061521;
}

.site-footer-modern .footer-bottom-inner {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 5px;
}

.site-footer-modern .footer-bottom p {
  margin: 0;
  color: rgba(190,201,208,.72);
  font-size: 11.5px;
  line-height: 1.3;
}

.site-footer-modern .footer-legal {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  color: rgba(190,201,208,.68);
  font-size: 11.5px;
}

.site-footer-modern .footer-legal a,
.site-footer-modern .footer-legal span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: inherit;
  text-decoration: none;
}

.site-footer-modern a:focus-visible {
  outline: 2px solid #c4a66f;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-footer-modern .footer-main-grid {
    width: calc(100% - 38px);
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 22px;
  }

  .site-footer-modern .footer-nav ul {
    grid-template-columns: 1fr;
    gap: 5px !important;
  }
}

@media (max-width: 680px) {
  .site-footer-modern .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 13px 11px;
  }

  .site-footer-modern .footer-brand {
    align-items: flex-start;
  }

  .site-footer-modern .footer-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .site-footer-modern .footer-nav ul {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px 16px !important;
  }

  .site-footer-modern .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-block: 8px;
  }

  .site-footer-modern .footer-legal {
    flex-wrap: wrap;
    gap: 2px 14px;
  }
}

@media (max-width: 390px) {
  .site-footer-modern .footer-nav ul {
    grid-template-columns: 1fr;
  }

  .site-footer-modern .footer-legal {
    flex-direction: column;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-modern a { transition: none !important; }
}
