/* Site-wide footer of aimarket.az (generated markup: tools/footer). Every rule is under .amf — nothing here touches
   the header, the page content or other links. Deep navy, gold headings and icons, light text, thin rules.
   Layout: one centred container (1240 px, the page gutters); 4 columns on desktop, 2 on tablets, on phones the brand,
   the contacts and the two link groups side by side. */
.amf {
  --amf-ink: #eef1f8;
  --amf-text: #c9d1e1;          /* 9.9:1 on the darkest navy */
  --amf-mute: #a9b4c8;          /* 7.6:1 */
  --amf-gold: #fbbf24;          /* the site's gold (header button, old footer titles) */
  --amf-gold-hi: #ffdc85;
  --amf-rule: rgba(169, 180, 200, .16);
  --amf-tile: rgba(255, 255, 255, .045);
  --amf-tile-line: rgba(255, 255, 255, .09);
  --amf-gut: 32px;
  position: relative;
  isolation: isolate;
  display: block;
  margin: 0;
  padding: 0;
  color: var(--amf-text);
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(54, 84, 168, .22), transparent 70%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgba(40, 58, 120, .25), transparent 70%),
    linear-gradient(180deg, #0b1535 0%, #0a1230 55%, #081028 100%);
  font: 400 15px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.amf *, .amf *::before, .amf *::after { box-sizing: border-box; transition: none; }
.amf :where(h2, p, ul, li) { margin: 0; padding: 0; }
.amf p { color: inherit; line-height: inherit; }   /* the site's mobile styles colour every <p> */
.amf :where(ul) { list-style: none; }
.amf .amf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.amf .amf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.amf a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.amf a:focus-visible { outline: 2px solid var(--amf-gold); outline-offset: 3px; border-radius: 6px; }
.amf .amf-ico { display: block; width: 18px; height: 18px; fill: currentColor; flex: none; }

.amf .amf-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px max(var(--amf-gut), env(safe-area-inset-right, 0px)) 0 max(var(--amf-gut), env(safe-area-inset-left, 0px));
}
.amf .amf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1.18fr);
  grid-template-areas: "brand solutions services contacts";
  column-gap: 32px;
  row-gap: 36px;
  align-items: start;
}
.amf .amf-brand { grid-area: brand; display: grid; gap: 18px; justify-items: start; }
.amf .amf-nav:nth-of-type(1) { grid-area: solutions; }
.amf .amf-nav:nth-of-type(2) { grid-area: services; }
.amf .amf-contacts { grid-area: contacts; }

/* brand */
.amf .amf-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--amf-ink); }
.amf .amf-logo img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(244, 193, 82, .28), 0 6px 18px rgba(0, 0, 0, .35); }
.amf .amf-name { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.amf .amf-name__ai { color: var(--amf-gold); }
.amf .amf-logo:hover .amf-name { color: #fff; }
.amf .amf-desc { max-width: 34ch; color: var(--amf-text); text-wrap: pretty; }
.amf .amf-social { display: flex; gap: 12px; }
.amf .amf-soc {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--amf-tile); border: 1px solid var(--amf-tile-line); color: var(--amf-ink);
}
.amf .amf-soc:hover { color: var(--amf-gold-hi); border-color: rgba(244, 193, 82, .5); background: rgba(244, 193, 82, .08); }
.amf .amf-sister { display: inline-block; color: var(--amf-mute); font-size: 14px; padding-block: 2px; }
.amf .amf-sister:hover { color: var(--amf-gold-hi); }
.amf .amf-ico--ext { display: inline-block; width: 11px; height: 11px; margin-left: 7px; vertical-align: -.05em; }

/* link groups */
.amf .amf-title { color: var(--amf-gold); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: .005em; margin-bottom: 18px; text-wrap: balance; }
.amf .amf-links { display: grid; gap: 4px; }
.amf .amf-links a { display: inline-block; padding-block: 7px; color: var(--amf-text); }
.amf .amf-links a:hover, .amf .amf-links a[aria-current="page"] { color: #fff; }
.amf .amf-chev { display: inline-block; width: 7px; height: 11px; margin-left: 10px; vertical-align: -.04em; fill: var(--amf-gold); transition: transform .2s ease; }
.amf .amf-links a:hover .amf-chev { transform: translateX(3px); }

/* contacts */
.amf .amf-clist { display: grid; gap: 12px; }
.amf .amf-clist li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.amf .amf-tile {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--amf-tile); border: 1px solid var(--amf-tile-line); color: var(--amf-gold);
}
.amf .amf-tile .amf-ico { width: 15px; height: 15px; }
.amf .amf-ctext { color: var(--amf-text); overflow-wrap: anywhere; }
.amf a.amf-ctext:hover { color: #fff; }
.amf .amf-nowrap { white-space: nowrap; }
.amf .amf-line { display: block; }

/* decoration: thin gold curves in the outer margins, flowing into the ends of the rule (wide screens) */
.amf .amf-wave {
  position: absolute; bottom: 62px; z-index: -1; display: none;
  width: calc(50% - 518px); height: 120px; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--amf-gold); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.amf .amf-wave path { vector-effect: non-scaling-stroke; stroke-opacity: .5; }
.amf .amf-wave .amf-wave__2 { stroke-opacity: .22; }
.amf .amf-wave circle { fill: var(--amf-gold-hi); stroke: none; filter: drop-shadow(0 0 4px rgba(255, 220, 133, .9)); }
.amf .amf-wave--l { left: 0; }
.amf .amf-wave--r { right: 0; transform: scaleX(-1); }
@media (min-width: 1300px) { .amf .amf-wave { display: block; } }

/* bottom line: a fine gold rule, the copyright and the legal pages */
.amf .amf-rule {
  position: relative; height: 1px; margin-top: 40px;
  background: linear-gradient(90deg, transparent 0%, rgba(244, 193, 82, .2) 12%, rgba(244, 193, 82, .75) 50%, rgba(244, 193, 82, .2) 88%, transparent 100%);
}
.amf .amf-rule::after {          /* the soft glow at its centre, inside the same 1 px line */
  content: ""; position: absolute; left: 50%; top: -3px; width: 160px; height: 7px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 220, 133, .55), transparent); pointer-events: none;
}
.amf .amf-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px;
  padding: 20px 0 30px;
  font-size: 14px; color: var(--amf-mute);
}
.amf .amf-legal ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.amf .amf-legal li { display: flex; align-items: center; }
.amf .amf-legal li + li::before { content: ""; width: 1px; height: 14px; margin: 0 16px; background: rgba(244, 193, 82, .55); }
.amf .amf-legal a { display: inline-block; padding-block: 6px; color: var(--amf-mute); }
.amf .amf-legal a:hover, .amf .amf-legal a[aria-current="page"] { color: var(--amf-ink); }

/* tablet: two columns — brand and contacts, then the two link groups */
@media (max-width: 1100px) {
  .amf .amf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand contacts" "solutions services"; column-gap: 40px; }
}
/* phone: brand, contacts, the two link groups next to each other, then the bottom line above the contact panel */
@media (max-width: 768px) {
  .amf { --amf-gut: 20px; }
  .amf .amf-wrap { padding-top: 36px; }
  .amf .amf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand brand" "contacts contacts" "solutions services"; column-gap: 20px; row-gap: 30px; }
  .amf .amf-title { margin-bottom: 10px; }
  .amf .amf-links a { padding-block: 8px; }
  .amf .amf-rule { margin-top: 28px; }
  /* the site's floating contact panel (fixed, ~100 px) and the "back to top" button must not cover this line */
  .amf .amf-bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  .amf .amf-legal ul { gap: 2px 22px; }
  /* clear of the floating controls on the right: "back to top" (all pages) and the language switcher of model pages */
  .amf .amf-bottom > * { max-width: calc(100% - 112px); }
  .amf .amf-legal li + li::before { display: none; }
}
@media (max-width: 380px) {
  .amf { --amf-gut: 16px; }
  .amf .amf-grid { column-gap: 14px; }
  .amf .amf-links a { font-size: 14.5px; }
  .amf .amf-chev { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .amf a, .amf .amf-chev { transition: none; }
}
