/* Mobil footer v28 — 2×2: Menü|Etiket, Hizmet|İletişim (son override) */

@media (max-width: 1020px) {
  footer[role="contentinfo"] {
    overflow-x: clip;
  }

  footer[role="contentinfo"] .up-footer.footer-main {
    padding: clamp(28px, 4vw, 36px) 0 clamp(20px, 3vw, 28px) !important;
    background: #fff !important;
    box-shadow: inset 0 3px 0 #ffcd16 !important;
  }

  footer[role="contentinfo"] .up-footer.footer-main > .container {
    padding-left: var(--page-gutter, clamp(14px, 4vw, 18px)) !important;
    padding-right: var(--page-gutter, clamp(14px, 4vw, 18px)) !important;
  }

  /* 2×2 grid: Hızlı Menü | Hizmetler — Etiketler | İletişim */
  footer[role="contentinfo"] .footer-main-grid.footer-main-grid--4 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto;
    gap: clamp(18px, 3.5vw, 24px) clamp(12px, 3vw, 16px) !important;
    align-items: start !important;
  }

  footer[role="contentinfo"] .footer-main-block--nav {
    grid-column: 1;
    grid-row: 1;
  }

  footer[role="contentinfo"] .footer-main-block--services {
    grid-column: 1;
    grid-row: 2;
  }

  footer[role="contentinfo"] .footer-main-block--tags {
    grid-column: 2;
    grid-row: 1;
  }

  footer[role="contentinfo"] .footer-main-block--contact {
    grid-column: 2;
    grid-row: 2;
  }

  footer[role="contentinfo"] .footer-main-block--nav,
  footer[role="contentinfo"] .footer-main-block--services,
  footer[role="contentinfo"] .footer-main-block--tags,
  footer[role="contentinfo"] .footer-main-block--contact {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
    width: 100%;
  }

  footer[role="contentinfo"] .footer-main-heading {
    display: flex !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
  }

  footer[role="contentinfo"] .footer-main-nav__link {
    padding: 4px 0 !important;
    font-size: 12px !important;
    gap: 6px !important;
  }

  footer[role="contentinfo"] .footer-main-nav__icon {
    width: 12px !important;
    min-width: 12px !important;
    margin-top: 3px !important;
    font-size: 10px !important;
  }

  footer[role="contentinfo"] .footer-mob-supplement {
    display: none !important;
  }

  footer[role="contentinfo"] .footer-main-block--nav .footer-main-nav__list,
  footer[role="contentinfo"] .footer-main-block--services .footer-main-nav__list,
  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  footer[role="contentinfo"] .footer-tag-cloud__list {
    gap: 8px 10px !important;
  }

  footer[role="contentinfo"] .footer-tag-cloud__tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 44px !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
  }

  footer[role="contentinfo"] .footer-tag-cloud__item--l .footer-tag-cloud__tag {
    font-size: 12px !important;
    padding: 10px 14px !important;
  }

  footer[role="contentinfo"] .footer-tag-cloud__item--s .footer-tag-cloud__tag {
    font-size: 11px !important;
    padding: 10px 12px !important;
  }

  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__link {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 5px 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }

  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__link:hover,
  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__link:focus-visible {
    background: color-mix(in srgb, #ffcd16 7%, #fff) !important;
  }

  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    margin-top: 1px;
    font-size: 10px !important;
    border-radius: 6px !important;
    background: color-mix(in srgb, #ffcd16 11%, #fff) !important;
    color: color-mix(in srgb, #292929 75%, #ffcd16) !important;
  }

  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__link--static .footer-main-nav__icon {
    background: color-mix(in srgb, #292929 5%, #f3f4f6) !important;
    color: color-mix(in srgb, #292929 45%, #999) !important;
  }

  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__label {
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  footer[role="contentinfo"] .footer-main-block--contact .footer-main-nav__item:last-child .footer-main-nav__label {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    color: color-mix(in srgb, #292929 55%, #888) !important;
  }

  /* Alt bar — copy alanı mobilde ortalı */
  footer[role="contentinfo"] .footer-bottom {
    background: #f6f7f8 !important;
    border-top: 1px solid #eceef1 !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
  }

  footer[role="contentinfo"] .footer-bottom__inner.container {
    padding-top: 12px !important;
    padding-bottom: 10px !important;
    padding-left: var(--page-gutter, clamp(14px, 4vw, 18px)) !important;
    padding-right: var(--page-gutter, clamp(14px, 4vw, 18px)) !important;
  }

  footer[role="contentinfo"] .footer-bottom__row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    text-align: center !important;
    width: 100% !important;
    grid-template-columns: none !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__copy,
  footer[role="contentinfo"] .footer-bottom p.copyright,
  footer[role="contentinfo"] .footer-bottom .footer-bottom__resources,
  footer[role="contentinfo"] .footer-bottom .footer-bottom__agency {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: auto !important;
    justify-self: center !important;
    align-self: center !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__copy,
  footer[role="contentinfo"] .footer-bottom p.copyright {
    font-size: 10px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    order: 1;
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__resources {
    order: 2;
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__resources-list {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__resources-sep {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 7px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    color: #c5c9cf !important;
    opacity: 1 !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__resources-sep::before {
    content: "·";
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__resources-link {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #374151 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-bottom__agency {
    order: 3;
  }

  footer[role="contentinfo"] .footer-bottom .footer-agency__link {
    justify-content: center !important;
    flex-wrap: wrap !important;
    text-align: center !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-agency__label {
    font-size: 9px !important;
    color: #374151 !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-agency__name {
    font-size: 11px !important;
  }

  footer[role="contentinfo"] .footer-bottom .footer-agency__sep {
    margin: 0 8px !important;
  }

  footer[role="contentinfo"] .footer-bottom .sm-credit-bar {
    display: none !important;
  }

  footer[role="contentinfo"] ~ .scroll-to-top,
  .scroll-to-top {
    right: 14px !important;
    bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 99975 !important;
  }
}

@media (min-width: 1021px) {
  footer[role="contentinfo"] .footer-mob-supplement {
    display: none !important;
  }
}
