.site-footer.maqam-footer {
  --footer-brown: #86735e;
  --footer-ink: #1c1917;
  --footer-base: #453c33;
  --footer-gold: #ffb052;
  --footer-ivory: #fffcf7;
  --footer-soft: #f5f0e6;
  --footer-edge: rgba(232, 220, 201, .32);
  --footer-ease: cubic-bezier(.23, .68, .14, 1);
  position: relative;
  isolation: isolate;
  background: var(--footer-base);
  color: var(--footer-ivory);
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  text-align: start;
}

.maqam-footer-scene, .maqam-footer-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.maqam-footer-scene {
  right: auto; width: auto; max-width: 63%; aspect-ratio: 1.2;
  background: #a28b71;
}
.maqam-footer-scene img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1); mix-blend-mode: multiply;
}
.maqam-footer-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--footer-scene-angle,90deg), rgba(38,30,24,.60) 38%, rgba(38,30,24,.57) 61%, var(--footer-base) 100%);
}
.maqam-footer-veil {
  background: linear-gradient(0deg, rgba(28,25,23,.42), transparent 55%);
}
.maqam-footer-inner { width: min(100%,1540px); margin: auto; padding-inline: clamp(26px,4.4vw,82px); }
.maqam-footer-columns {
  display: grid; grid-template-columns: 1fr .64fr 1.18fr 1.03fr;
  align-items: start; column-gap: clamp(24px,3.7vw,64px);
  padding-block: clamp(42px,4.7vw,86px) clamp(34px,4vw,76px);
}
.maqam-footer-columns > * { min-width: 0; }
.maqam-footer :is(h2,p,ul) { margin: 0; }
.maqam-footer h2 {
  margin-block-end: 14px; font-size: 19px; font-weight: 700; line-height: 1.5;
  color: var(--footer-gold); letter-spacing: normal; white-space: normal;
}
.maqam-footer :is(a,button):focus-visible {
  outline: 2px solid var(--footer-gold); outline-offset: 3px;
}
.maqam-footer-identity { max-width: 281px; }
.maqam-footer-brand { display: inline-flex; align-items: center; line-height: 1; vertical-align: top; }
.maqam-footer-brand img { width: clamp(114px,9.6vw,150px); height: auto; }
.maqam-footer-identity p {
  max-width: 17rem; margin: 18px 0 10px; line-height: 1.75; color: var(--footer-soft); text-wrap: pretty;
}
.maqam-footer-inquiry { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; min-height: 44px; }
.maqam-footer-disco {
  display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%;
  background: #ef9211; color: #201912; transition: transform .24s var(--footer-ease);
}
.maqam-footer-disco svg { width: 15px; height: 15px; }
.maqam-footer-inquiry:is(:hover,:focus-visible) .maqam-footer-disco { transform: translateX(-3px); }
.maqam-footer :is(.maqam-footer-quick,.maqam-footer-contact) ul { list-style: none; padding: 0; }
.maqam-footer-quick a {
  display: flex; align-items: center; width: fit-content; min-height: 40px; max-width: 100%; color: var(--footer-soft);
}
.maqam-footer :is(.maqam-footer-quick,.maqam-footer-contact) a:is(:hover,:focus-visible) { color: var(--footer-gold); }
.maqam-footer-quick a[aria-current="page"] {
  color: var(--footer-ivory); text-decoration: underline;
  text-decoration-color: var(--footer-gold); text-underline-offset: 5px;
}
.maqam-footer-nav-trigger, .maqam-footer [hidden] { display: none; }
.maqam-footer-contact li { display: flex; align-items: baseline; gap: 10px; min-height: 40px; line-height: 1.55; color: var(--footer-soft); }
.maqam-footer-contact .maqam-footer-symbol {
  width: 18px; height: 18px; margin-top: 12px; align-self: flex-start; flex: none; color: var(--footer-gold);
}
.maqam-footer-contact li > a, .maqam-footer-numbers, .maqam-footer-numbers a {
  display: inline-flex; align-items: center; min-height: 40px;
}
.maqam-footer-numbers { flex-wrap: wrap; gap: 0 10px; }
.maqam-footer-numbers a, .maqam-footer-mail { font: 15px/1.5 Arial,sans-serif; letter-spacing: .015em; }
.maqam-footer-mail { overflow-wrap: anywhere; }
.maqam-footer-sep { width: 1px; height: 14px; background: var(--footer-edge); }
.maqam-footer-address { align-items: flex-start; max-width: 18rem; padding-block: 8px 3px; text-wrap: pretty; }

.maqam-footer-socials { display: grid; grid-template-columns: repeat(3,44px); gap: 10px; justify-content: start; }
.maqam-footer-socials a {
  display: grid; place-items: center; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(245,240,230,.40); color: var(--footer-ivory);
  transition: background .2s, border-color .2s, transform .2s;
}
.maqam-footer-socials a:is(:hover,:focus-visible) {
  transform: translateY(-2px); color: var(--footer-gold); border-color: var(--footer-gold); background: var(--footer-base);
}
.maqam-footer-socials a svg { width: 18px; height: 18px; fill: currentColor; }
.maqam-footer-socials a::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  pointer-events: none; background: var(--footer-soft); color: var(--footer-ink); font: 12px/1.4 Arial,sans-serif;
  padding: 3px 7px; border-radius: 4px; white-space: nowrap; opacity: 0; z-index: 2;
}
.maqam-footer-socials a:focus-visible::after { opacity: 1; }
@media (hover:hover) { .maqam-footer-socials a:hover::after { opacity: 1; } }
.maqam-footer-bottom {
  display: grid; place-items: center; border-top: 1px solid var(--footer-edge);
  min-height: 62px; padding-block: 12px; text-align: center;
}
.maqam-footer-bottom p { margin: 0; color: #e8dcc9; font-size: 13px; line-height: 1.65; text-align: center; }

@media (min-width:1041px) {
  .maqam-footer-scene { left: auto; right: 0; --footer-scene-angle: 270deg; }
}
@media (min-width:1410px) {
  .maqam-footer-socials { display: flex; flex-wrap: wrap; gap: 7px; }
  .maqam-footer-socials a { flex: none; }
}
@media (min-width:681px) and (max-width:1040px) {
  .maqam-footer-columns { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .maqam-footer-identity { max-width: 330px; }
  .maqam-footer-identity p { max-width: 19rem; }
  .maqam-footer-quick ul { display: grid; grid-template-columns: 1fr 1fr; }
  .maqam-footer-contact, .maqam-footer-follow { border-top: 1px solid var(--footer-edge); padding-top: 20px; }
}
@media (max-width:680px) {
  .maqam-footer-inner { padding-inline: 24px; }
  .maqam-footer-columns { display: flex; flex-direction: column; gap: 0; padding-block: 30px 24px; }
  .maqam-footer-identity { width: 100%; max-width: none; display: grid; grid-template-columns: 95px 1fr; column-gap: 18px; }
  .maqam-footer-brand { grid-row: span 2; align-self: center; }
  .maqam-footer-brand img { width: 92px; }
  .maqam-footer-identity p { margin: 0; font-size: 15px; line-height: 1.65; }
  .maqam-footer-inquiry { font-size: 14px; }
  .maqam-footer-disco { width: 24px; height: 24px; }
  .maqam-footer-quick, .maqam-footer-contact, .maqam-footer-follow {
    width: 100%; border-top: 1px solid var(--footer-edge); margin-top: 17px; padding-top: 16px;
  }
  .maqam-footer h2 { font-size: 17px; margin-bottom: 8px; }
  .maqam-footer-quick ul { display: grid; grid-template-columns: 1fr 1fr; }
  .maqam-footer-quick a, .maqam-footer-contact li > a, .maqam-footer-numbers a { min-height: 44px; }
  .maqam-footer-ready .maqam-footer-quick-title { display: none; }
  .maqam-footer-ready .maqam-footer-nav-trigger {
    display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px;
    color: var(--footer-gold); background: none; border: 0; padding: 0; font: inherit; text-align: start; cursor: pointer;
  }
  .maqam-footer-nav-trigger svg { width: 18px; height: 18px; transition: transform .22s; }
  .maqam-footer-nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
  .maqam-footer-ready .maqam-footer-quick { padding-block-start: 3px; }
  .maqam-footer-ready .maqam-footer-quick h2 { margin: 0; }
  .maqam-footer-ready .maqam-footer-contact { margin-top: 3px; }
  .maqam-footer-contact .maqam-footer-symbol { margin-top: 13px; }
  .maqam-footer-address { max-width: none; }
  .maqam-footer-scene { right: 0; max-width: none; aspect-ratio: auto; }
  .maqam-footer-scene img { object-position: 50% 36%; }
  .maqam-footer-scene::after { background: linear-gradient(180deg, rgba(38,30,24,.65), rgba(38,30,24,.60) 64%, var(--footer-base)); }
  .maqam-footer-socials { grid-template-columns: repeat(auto-fill,44px); gap: 8px; }
  .maqam-footer-socials a::after { display: none; }
  .maqam-footer-bottom { min-height: 56px; }
  .maqam-footer-bottom p { font-size: 12px; }
}
@media (max-width:365px) {
  .maqam-footer-inner { padding-inline: 18px; }
  .maqam-footer-bottom p { max-inline-size: calc(100vw - 144px); text-wrap: balance; }
  .maqam-footer-identity { grid-template-columns: 78px 1fr; gap: 0 13px; }
  .maqam-footer-brand img { width: 77px; }
  .maqam-footer-socials { gap: 4px; }
  .maqam-footer-numbers a, .maqam-footer-mail { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .maqam-footer *, .maqam-footer *::after { transition: none; }
}
body[data-motion="reduced"] .maqam-footer * { transition: none; }
