@media (width < 1025px) {
  #amatek-mobile {
    --am-ink: #102c49;
    --am-blue: #0759aa;
    --am-border: #d6e3f0;
    box-sizing: border-box;
    background: #f4f8fc;
    color: var(--am-ink);
    font-family: inherit;
    padding: 14px clamp(12px, 3vw, 32px) 20px;
    line-height: 1.65;
  }
  #amatek-mobile *, #amatek-mobile *::before { box-sizing: border-box; }
  #amatek-mobile a { color: inherit; text-decoration: none; }
  #amatek-mobile :focus-visible { outline: 2px solid #087be3; outline-offset: 2px; }
  #amatek-mobile h2 { margin: 0; color: inherit; font-size: clamp(16px, 3.8vw, 32px); line-height: 1.35; font-weight: 800; }
  #amatek-mobile p { margin: 8px 0 12px; font-size: clamp(12px, 2.3vw, 17px); }
  #amatek-mobile svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--am-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #amatek-mobile .am-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: relative; }
  #amatek-mobile .am-logo { background: url(reference.png) 95.2% 5.4% / 424% 2144% no-repeat; width: clamp(92px, 21vw, 156px); aspect-ratio: 220 / 78; flex: none; font-size: 0; }
  #amatek-mobile form { display: flex; flex: 1; min-width: 0; border-radius: 15px; border: 1px solid var(--am-border); background: #fff; }
  #amatek-mobile input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 8px; color: inherit; font: inherit; font-size: 13px; }
  #amatek-mobile button, #amatek-mobile summary { border: 0; background: #e4effa; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 12px; color: inherit; cursor: pointer; font-size: 21px; }
  #amatek-mobile details nav { position: absolute; z-index: 2; inset-inline-end: 0; background: white; border: 1px solid var(--am-border); border-radius: 12px; padding: 8px; }
  #amatek-mobile details a { display: flex; align-items: center; min-height: 44px; gap: 8px; padding: 0 10px; }
  #amatek-mobile .am-hero, #amatek-mobile .am-advisor { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; border-radius: 20px; padding: clamp(12px, 3vw, 32px); background: #e3effb; overflow: hidden; }
  #amatek-mobile .am-building { aspect-ratio: 475 / 300; background: url(reference.png) 9% 18.7% / 198.1% 557.3% no-repeat; border-radius: 12px; }
  #amatek-mobile .am-cta { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: #08477e; color: #fff; padding: 6px 13px; font-weight: 700; font-size: clamp(12px, 2.3vw, 17px); }
  #amatek-mobile .am-categories, #amatek-mobile .am-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 20px; }
  #amatek-mobile .am-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #amatek-mobile .am-card { display: flex; align-items: center; gap: 6px; min-height: 62px; padding: 8px; border: 1px solid var(--am-border); border-radius: 13px; background: #f9fcff; font-size: clamp(11px, 2vw, 17px); font-weight: 800; }
  #amatek-mobile small { display: block; color: #435670; font-weight: 400; font-size: .88em; line-height: 1.4; }
  #amatek-mobile .am-advisor { grid-template-columns: 1.5fr 1fr; background: linear-gradient(115deg,#2572aa,#083e72); color: white; }
  #amatek-mobile .am-advisor .am-cta { background: white; color: var(--am-ink); }
  #amatek-mobile .am-laptop { aspect-ratio: 265 / 207; background: url(reference.png) 10.6% 75% / 355.1% 807.7% no-repeat; border-radius: 12px; }
  #amatek-mobile .am-dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 990; padding-bottom: env(safe-area-inset-bottom, 0px); pointer-events: none; }
  #amatek-mobile .am-dock nav { display: grid; pointer-events: auto; background: #fff; }
  #amatek-mobile .am-quick { grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid var(--am-border); border-radius: 32px; box-shadow: 0 6px 22px #153e6540; margin: 0 auto 8px; width: min(94%, 720px); padding: 5px; }
  #amatek-mobile .am-bottom { grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--am-border); }
  #amatek-mobile .am-dock a { display: grid; justify-items: center; align-content: center; text-align: center; gap: 2px; min-height: 48px; font-size: clamp(11px, 1.8vw, 15px); font-weight: 700; }
  #amatek-mobile [aria-current="page"] { color: var(--am-blue); }
  body.amatek-mobile-active::after { content: ""; display: block; height: calc(125px + env(safe-area-inset-bottom, 0px)); }
  #amatek-mobile:focus-within .am-dock { visibility: visible; }
  #amatek-mobile:has(input:focus) .am-dock { visibility: hidden; }
}
@media (768px <= width < 1025px) {
  #amatek-mobile .am-categories, #amatek-mobile .am-cards { gap: 16px; }
  #amatek-mobile .am-card { min-height: 90px; padding: 16px; gap: 12px; }
  #amatek-mobile .am-card svg { width: 32px; height: 32px; }
}

@media (width < 768px) {
  #amatek-mobile .am-hero, #amatek-mobile .am-advisor {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  #amatek-mobile .am-card { min-width: 0; overflow-wrap: anywhere; }
  #amatek-mobile .am-categories .am-card { flex-direction: column; text-align: center; }
  #amatek-mobile .am-categories .am-card small { display: none; }
  #amatek-mobile .am-search-icon { width: 18px; height: 18px; }
}

@media (width < 1025px) {
  body.amatek-mobile-active :is(.header-wrapper, #header, #footer, #amf-footer),
  body.amatek-mobile-home #main {
    display: none !important;
  }

  #amatek-mobile h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(17px, 4vw, 34px);
    line-height: 1.35;
    font-weight: 800;
  }

  #amatek-mobile .am-card {
    box-shadow: 0 3px 9px #153e650d;
  }

  #amatek-mobile .am-head details[open] nav {
    z-index: 1001;
  }

  #amatek-mobile .am-quick a + a {
    border-inline-start: 1px solid #e5edf6;
  }

  .amatek-mobile-active .am-contact {
    margin: 14px clamp(12px, 3vw, 32px) 0;
    padding: 16px;
    border: 1px solid #d6e3f0;
    border-radius: 16px;
    background: #f4f8fc;
    color: #102c49;
    font: inherit;
  }

  .amatek-mobile-active .am-contact h2 {
    font-size: 17px;
    color: inherit;
    margin: 0 0 8px;
  }

  .amatek-mobile-active .am-contact a {
    color: #0759aa;
    overflow-wrap: anywhere;
  }

  .amatek-mobile-active .am-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .amatek-mobile-active .am-contact address {
    font-style: normal;
    margin: 8px 0;
  }
}

@media (width < 1025px) {
  #amatek-mobile .am-quick a.am-primary-action {
    border-color: transparent;
    border-radius: 16px;
    background: #08477e;
    color: #fff;
  }

  #amatek-mobile .am-primary-action svg {
    stroke: currentColor;
  }

  body.amatek-mobile-active #wpforms-14547,
  body.amatek-mobile-active #wpforms-11196 {
    scroll-margin-top: calc(20px + var(--wp-admin--admin-bar--height, 0px));
    scroll-margin-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  }

  body.amatek-mobile-active #wpforms-14547 :is(input, select, textarea, button) {
    scroll-margin-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  }
}
