/* Dr. Mesut Karatas — final mobile layout layer */

/* The legacy smooth-scroll script writes a stale pixel height after layout changes. */
body.site-quality {
  height: auto !important;
  min-height: 100vh;
}

@media (max-width: 820px) {
  body.site-quality .mk-home .mk-hero {
    width: auto;
    height: clamp(570px, calc(100svh - 104px), 620px) !important;
    min-height: 570px !important;
    max-height: 620px !important;
  }

  body.site-quality .mk-home .mk-hero-shade {
    background:
      linear-gradient(0deg, rgba(15, 12, 11, 0.86) 0%, rgba(15, 12, 11, 0.5) 45%, rgba(15, 12, 11, 0.05) 100%),
      linear-gradient(90deg, rgba(15, 12, 11, 0.24), transparent 78%);
  }

  body.site-quality .mk-home .mk-hero-content {
    padding: 52px 26px 104px !important;
  }

  body.site-quality .mk-hero-navigation {
    right: 13px;
    bottom: 13px;
    height: 52px;
    padding: 4px;
    gap: 4px;
    background: rgba(14, 12, 11, 0.62);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  }

  body.site-quality .mk-hero-arrow {
    width: 42px;
    height: 42px;
  }

  body.site-quality .mk-hero-arrow svg {
    width: 19px;
    height: 19px;
  }

  body.site-quality .mk-hero-counter {
    width: 88px;
    gap: 7px;
  }

  body.site-quality .mk-hero-progress {
    width: 34px;
  }

  body.site-quality .mk-trust {
    padding: 18px 0 44px !important;
  }

  body.site-quality .mk-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.site-quality .mk-trust article,
  body.site-quality .mk-trust article:nth-child(-n + 2),
  body.site-quality .mk-trust article:nth-child(n + 3) {
    min-width: 0;
    min-height: 142px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border: 1px solid rgba(37, 30, 27, 0.1);
    border-radius: 14px;
    background: #f7f2ec;
  }

  body.site-quality .mk-trust article:nth-child(2n) {
    background: #eee5da;
  }

  body.site-quality .mk-trust article span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #8d694d;
    font-size: 12px;
    border: 1px solid rgba(141, 105, 77, 0.28);
    border-radius: 50%;
  }

  body.site-quality .mk-trust article strong {
    max-width: none;
    margin-top: auto;
    font-size: 14px;
    line-height: 1.3;
  }

  body.site-quality .mk-trust article small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.3;
  }

  body.site-quality .mk-footer {
    margin: 64px 8px 8px !important;
  }

  body.site-quality .mk-footer .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.site-quality .mk-footer-lead {
    padding: 56px 0 48px;
    gap: 24px;
  }

  body.site-quality .mk-footer-lead h2 {
    max-width: 320px;
    font-size: clamp(38px, 10.5vw, 45px);
    line-height: 0.97;
  }

  body.site-quality .mk-footer-lead-copy p {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.65;
  }

  body.site-quality .mk-footer-grid {
    padding: 44px 0 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 22px;
  }

  body.site-quality .mk-footer-brand,
  body.site-quality .mk-footer-contact {
    grid-column: 1 / -1;
  }

  body.site-quality .mk-footer-brand img {
    width: min(210px, 68vw);
  }

  body.site-quality .mk-footer-brand > p {
    margin: 22px 0 20px;
  }

  body.site-quality .mk-footer-nav {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.site-quality .mk-footer-nav > p,
  body.site-quality .mk-footer-contact > p {
    margin-bottom: 15px;
    font-size: 12px;
  }

  body.site-quality .mk-footer-nav > a {
    min-height: 42px;
    gap: 8px;
    font-size: 14px;
  }

  body.site-quality .mk-footer-contact {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.site-quality .mk-footer-contact address,
  body.site-quality .mk-footer-contact address * {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  body.site-quality .mk-footer-bottom {
    min-height: 0;
    padding: 24px 0 28px;
    display: grid;
    gap: 8px;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  body.site-quality .mk-trust-grid,
  body.site-quality .mk-footer-grid {
    grid-template-columns: 1fr;
  }

  body.site-quality .mk-footer-brand,
  body.site-quality .mk-footer-contact {
    grid-column: auto;
  }
}
