/* Footer and its wave transition only. The approved inquiry remains untouched. */
.ims-footer { position: relative; isolation: isolate; padding: 56px var(--gutter) 0; color: var(--white); background: var(--night); }
.ims-footer__wave { position: absolute; inset: -116px 0 auto; height: 156px; z-index: 0; pointer-events: none; }
.ims-footer__wave svg { display: block; width: 100%; height: 100%; }
.ims-footer__atmosphere { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ims-footer__atmosphere::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 88% 0, #12617130, transparent 53%), linear-gradient(180deg, transparent 40%, #020e1666); mask-image: linear-gradient(180deg, transparent, #000 100px); }
.ims-footer__atmosphere::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#66dce809 1px, transparent 1px), linear-gradient(90deg, #66dce809 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(180deg, transparent, #000 140px); }
.ims-footer__ghost { position: absolute; left: -18px; bottom: 15px; color: transparent; -webkit-text-stroke: 1.5px var(--aqua); opacity: .045; font: 800 clamp(220px, 28vw, 450px)/.8 var(--body); letter-spacing: -.075em; }
.ims-footer__inner { max-width: 1448px; margin-inline: auto; position: relative; z-index: 1; }
.ims-footer__grid { display: grid; grid-template-areas: "brand company services contact"; grid-template-columns: minmax(0, 28fr) minmax(0, 23fr) minmax(0, 23fr) minmax(0, 26fr); gap: clamp(22px, 2vw, 34px); align-items: start; padding-bottom: 54px; }
.ims-footer__brand { grid-area: brand; min-width: 0; padding-right: 12px; }
.ims-footer__company { grid-area: company; }
.ims-footer__services { grid-area: services; }
.ims-footer__nav { min-width: 0; padding-top: 5px; }

/* Real HTML lettering: no image, opaque logo tile, or duplicated header styles. */
.ims-footer__lockup { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; color: #fff; line-height: 1; }
.ims-footer__brand-bar { flex: none; width: 5px; height: 57px; background: linear-gradient(180deg, var(--cyan), var(--aqua)); }
.ims-footer__monogram { font: 800 72px/.9 var(--body); letter-spacing: -.075em; }
.ims-footer__brand-name { padding-left: 16px; border-left: 1px solid #6befd866; font-size: 10px; font-weight: 600; line-height: 1.65; letter-spacing: .08em; text-transform: uppercase; }
.ims-footer__positioning { max-width: 340px; margin-top: 28px; color: #c0d4dc; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.ims-footer ul { list-style: none; padding: 0; margin: 0; }
.ims-footer .ims-footer__heritage { display: flex; flex-wrap: wrap; gap: 7px 12px; max-width: 335px; margin-top: 26px; color: #a5cad2; font-size: 9px; font-weight: 500; line-height: 1.8; letter-spacing: .09em; text-transform: uppercase; }
.ims-footer__heritage li { display: flex; align-items: center; gap: 12px; }
.ims-footer__heritage li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--aqua); flex: none; }
.ims-footer__since { margin-top: 18px; color: #e0eef2; font-size: 12px; font-weight: 500; }
.ims-footer__coordinates { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: #84b1bd; font-size: 9px; letter-spacing: .1em; }
.ims-footer__coordinates span { width: 38px; height: 1px; background: linear-gradient(90deg, var(--aqua), #6befd822); }
.ims-footer h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 23px; color: var(--aqua); font: 650 11px/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.ims-footer h2::after { content: ""; display: block; width: 25px; height: 1px; flex: none; background: #6befd866; }
.ims-footer__nav a { display: inline-block; max-width: 100%; min-height: 34px; padding-block: 5px; color: #d0e0e7; font: 500 15px/1.6 var(--body); transition: color .2s, transform .2s; }
.ims-footer__nav a:hover { color: var(--aqua); transform: translateX(4px); }
.ims-footer__featured, .ims-footer__follow { margin-top: 28px; padding-top: 20px; border-top: 1px solid #66dce82e; }
.ims-footer :is(.ims-footer__featured, .ims-footer__follow) h3 { margin: 0 0 12px; color: var(--aqua); font: 650 9px/1.5 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.ims-footer__featured a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.6; }
.ims-footer .ims-footer__social { display: flex; flex-wrap: wrap; gap: 4px; }
.ims-footer__social-item { display: grid; place-items: center; width: 44px; height: 44px; color: var(--aqua); transition: color .2s, filter .2s; }
.ims-footer__social-item svg { display: block; width: 22px; height: 22px; }
.ims-footer__social-item.is-inactive { opacity: .5; }
.ims-footer__social a:hover { color: #c7fff6; filter: drop-shadow(0 0 5px #6befd84d); }

.ims-footer__contact { grid-area: contact; position: relative; min-width: 0; padding: 25px 20px 24px; border: 1px solid #66dce847; border-radius: 14px; background: radial-gradient(ellipse at 100% 0, #13708436, transparent 72%), linear-gradient(155deg, #0a3040b3, #061b27bf); box-shadow: 0 14px 35px #0000001f, inset 0 1px #b5ffff0d; }
.ims-footer__contact::before { content: ""; position: absolute; top: -1px; left: 20px; width: 34px; height: 2px; background: var(--aqua); box-shadow: 0 0 14px #6befd845; }
.ims-footer__contact h2 { margin-bottom: 29px; }
.ims-footer__phone { display: block; width: fit-content; }
.ims-footer__call-label { display: block; color: var(--aqua); font-size: 9px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 7px; }
.ims-footer__phone strong { display: block; color: var(--white); font-size: clamp(24px, 1.85vw, 30px); line-height: 1.3; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; transition: color .2s; }
.ims-footer__email { display: flex; align-items: center; width: fit-content; min-height: 44px; margin-top: 6px; color: #c0d4dc; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; transition: color .2s; }
.ims-footer__phone:hover strong, .ims-footer__email:hover { color: var(--aqua); }
.ims-footer__phone strong, .ims-footer__email { display: flex; align-items: center; gap: 10px; }
.ims-footer__email { max-width: 100%; }
.ims-footer__email > span { min-width: 0; }
.ims-footer__contact-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--aqua); transition: color .2s; }
.ims-footer__phone:hover .ims-footer__contact-icon, .ims-footer__email:hover .ims-footer__contact-icon { color: #b5fff1; }
.ims-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; margin-top: 29px; padding: 15px 16px; border: 1px solid #ffb098; border-radius: 12px; background: var(--coral); color: var(--night); font: 700 11px/1.3 var(--body); text-transform: uppercase; letter-spacing: .025em; transition: background .2s, box-shadow .2s; }
.ims-footer__cta:hover { background: #ffb29d; box-shadow: 0 5px 20px #ff967e20; }

.ims-footer__bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 88px; border-top: 1px solid #66dce82e; }
.ims-footer__bottom::before { content: ""; position: absolute; top: -1px; left: 0; width: 70px; height: 1px; background: linear-gradient(90deg, var(--aqua), transparent); }
.ims-footer__bottom small, .ims-footer__bottom > p { color: #99b7c3; font-size: 11px; line-height: 1.7; }
.ims-footer__bottom > p { color: #a9c6cf; }
.ims-footer__bottom ul { display: flex; align-items: center; gap: 22px; }
.ims-footer__bottom a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #c0d4dc; font-size: 11px; transition: color .2s; }
.ims-footer__bottom a:hover { color: var(--aqua); }
.ims-footer__bottom a span { color: var(--aqua); font-size: 15px; }
.ims-footer :is(a, button):focus-visible { outline: 2px solid var(--aqua); outline-offset: 5px; border-radius: 3px; }

@media (max-width: 1100px) {
  .ims-footer { padding-top: 48px; }
  .ims-footer__grid { grid-template-areas: "brand contact" "company services"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 50px; }
  .ims-footer__brand { padding-right: 0; }
  .ims-footer__contact { padding: 28px; }
  .ims-footer__phone strong { font-size: 30px; }
  .ims-footer__nav { padding-top: 27px; border-top: 1px solid #66dce826; }
  .ims-footer__nav a { min-height: 40px; font-size: 16px; }
  .ims-footer__services ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
  .ims-footer__bottom { flex-wrap: wrap; gap: 0 25px; padding-block: 20px; }
  .ims-footer__bottom > p { order: 3; width: 100%; }
}
@media (max-width: 800px) {
  .ims-footer__wave { height: 124px; top: -89px; }
  .ims-footer__grid { gap: 36px 30px; }
  .ims-footer__monogram { font-size: 62px; }
  .ims-footer__brand-bar { height: 49px; }
  .ims-footer__brand-name { font-size: 9px; padding-left: 12px; }
  .ims-footer__lockup { gap: 12px; }
  .ims-footer__contact { padding: 25px 20px; }
  .ims-footer__phone strong { font-size: 27px; }
  .ims-footer__services ul { column-gap: 16px; }
  .ims-footer__services a { font-size: 15px; }
  .ims-footer__bottom { padding-bottom: 85px; }
}
/* Keep all five touch targets together in the narrow two-column tablet layout. */
@media (min-width: 601px) and (max-width: 700px) {
  .ims-footer__contact { padding-inline: 16px; }
  .ims-footer .ims-footer__social { gap: 0; justify-content: space-between; }
}
@media (max-width: 600px) {
  .ims-footer { padding-top: 35px; }
  .ims-footer__wave { height: 105px; top: -78px; }
  .ims-footer__grid { grid-template-areas: "brand" "contact" "company" "services"; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 34px; }
  .ims-footer__positioning { font-size: 16px; margin-top: 25px; }
  .ims-footer .ims-footer__heritage { font-size: 9px; }
  .ims-footer__coordinates { margin-top: 24px; }
  .ims-footer__contact { padding: 26px 22px; }
  .ims-footer__phone strong { font-size: 29px; }
  .ims-footer__email { font-size: 15px; }
  .ims-footer__cta { max-width: none; min-height: 56px; }
  .ims-footer h2 { margin-bottom: 18px; }
  .ims-footer__contact h2 { margin-bottom: 25px; }
  .ims-footer__nav a { min-height: 44px; padding-block: 9px; font-size: 16px; }
  .ims-footer__services a { font-size: 15px; }
  .ims-footer__services ul { gap: 2px 20px; }
  .ims-footer__bottom { display: flex; flex-direction: column; align-items: start; gap: 8px; padding-top: 25px; padding-bottom: 85px; }
  .ims-footer__bottom > p { order: initial; }
  .ims-footer__bottom ul { flex-wrap: wrap; gap: 24px; }
  .ims-footer__ghost { left: -12px; bottom: 90px; font-size: 255px; }
}
@media (prefers-reduced-motion: reduce) {
  .ims-footer *, .ims-footer *::after { transition: none !important; animation: none !important; }
}
