/* Telefon düzeltmeleri (≤760 px). Masaüstü görünümü değişmez.
   Bu dosya en son yüklenir; burada yalnızca dar ekranlara özgü kurallar bulunur. */

@media (max-width: 760px) {

  /* ---------------------------------------------------------------------------------------
     1. Mobil menü: opak zemin, ekrana sığar ve kendi içinde kayar, açıkken sayfa kaymaz,
        menü düğmesi açıkken çarpıya döner.
     --------------------------------------------------------------------------------------- */
  #mobilenav { background: var(--ink-900); }
  #mobilenav.open {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  html:has(#mobilenav.open), html:has(#mobilenav.open) body { overflow: hidden; }
  .nav:has(#mobilenav.open) { background: var(--ink-900); }
  .menutoggle { position: relative; }
  .menutoggle[aria-expanded="true"] svg { visibility: hidden; }
  .menutoggle[aria-expanded="true"]::before,
  .menutoggle[aria-expanded="true"]::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.9px;
    border-radius: 2px; background: currentColor; translate: -50% -50%;
  }
  .menutoggle[aria-expanded="true"]::before { rotate: 45deg; }
  .menutoggle[aria-expanded="true"]::after { rotate: -45deg; }

  /* ---------------------------------------------------------------------------------------
     2. Form alanları en az 16 px: iOS Safari daha küçük yazılı alana dokunulunca sayfayı
        yakınlaştırıyor ve geri uzaklaştırmıyor.
     --------------------------------------------------------------------------------------- */
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
  select, textarea { font-size: 16px !important; }

  /* ---------------------------------------------------------------------------------------
     3. Sektör vaka pencereleri (10 sektör): 1440 px'lik masaüstü tuvali %25'e küçültülmek
        yerine tam ekran, tek sütun ve okunur boyutta açılır.
     --------------------------------------------------------------------------------------- */
  .sector-case-overlay { padding: 0; align-items: stretch; }
  .sector-case-overlay .sc-case-dialog {
    zoom: 1 !important; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh;
  }
  .sc-case-canvas { width: 100%; height: 100vh; height: 100dvh; }
  .sc-case-scroll { height: 100vh; height: 100dvh; }
  .sc-case-canvas .sc-case-close { position: fixed; top: 12px; right: 12px; }
  .sc-case-scroll-hint { bottom: 14px; }
  .sc-case-presentation { min-height: 0; padding: 64px 16px 28px; gap: 20px; }
  .sc-case-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sc-case-header > div { gap: 10px; }
  .sc-case-eyebrow { font-size: 11px; letter-spacing: .14em; }
  .sc-case-header h1 { font-size: 26px; line-height: 1.15; }
  .sc-case-header p { font-size: 15px; }
  .sc-case-replay { height: 40px; }
  .sc-case-comparison { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sc-case-path { padding: 18px 16px; }
  .sc-case-path-heading { flex-wrap: wrap; gap: 10px; }
  .sc-case-path-heading h3 { font-size: 18px; }
  .sc-case-count { font-size: 13px; padding: 6px 12px; }
  .sc-case-manual-list li { padding: 11px 12px; gap: 12px; }
  .sc-manual-number { width: 32px; height: 32px; }
  .sc-case-manual-list strong { font-size: 15px; }
  .sc-case-document { gap: 12px; min-height: 76px; }
  .sc-case-art { width: 84px; height: 62px; }
  .sc-case-document:not(:last-child)::after { left: 41px; top: 66px; height: 12px; }
  .sc-case-document p { font-size: 13px; }
  .sc-case-results { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 16px; }
  .sc-case-stat-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .sc-case-stat-divider { display: none; }
  .sc-case-stat-group strong { font-size: 22px; }
  .sc-case-result-actions { flex-direction: column; gap: 10px; }
  .sc-case-canvas .btn { width: 100%; height: 48px; white-space: normal; }
  .sc-case-detail-link { margin-top: 0; justify-content: flex-start; }
  .sc-case-article { grid-template-columns: minmax(0, 1fr); padding: 40px 16px 32px; row-gap: 24px; }
  .sc-case-story { gap: 26px; }
  .sc-case-story h2 { font-size: 26px; }
  .sc-case-story h2 > span { white-space: normal; display: inline; }
  .sc-case-story h2 > span + span::before { content: " "; }
  .sc-case-story-intro { font-size: 16px; }
  .sc-case-story h3 { font-size: 19px; }
  .sc-case-story > section > p { padding-left: 0; font-size: 15.5px; }
  .sc-case-sidebar > img { height: 220px; }
  .sc-case-profile { padding: 18px 16px; }
  .sc-case-cta { flex-direction: column; align-items: stretch; padding: 20px 16px; }
  .sc-case-cta > div:last-child { flex-direction: column; }
  .sc-case-footer { flex-direction: column; align-items: stretch; padding: 0 16px 28px; gap: 14px; }
  .sc-case-navigation { gap: 8px; }
  .sc-case-navigation button { padding: 10px 12px; white-space: normal; }

  /* Otomotiv vakası satır içi stillerle yazılmış; aynı düzen burada !important ile kurulur. */
  #business-case-automotive { padding: 0; align-items: stretch; }
  #business-case-automotive > [role="dialog"] {
    zoom: 1 !important; width: 100vw !important; max-width: 100vw !important;
    height: 100vh; height: 100dvh; max-height: none !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; overflow: hidden !important;
  }
  #business-case-automotive > [role="dialog"] > div { width: 100% !important; height: 100vh !important; height: 100dvh !important; }
  #business-case-automotive [data-close-modal][aria-label] { position: fixed !important; top: 12px !important; right: 12px !important; }
  #business-case-automotive #caseScrollHint { bottom: 14px; }
  #caseScrollArea { height: 100vh !important; height: 100dvh !important; }
  #caseScrollArea > div:first-child { min-height: 0 !important; padding: 64px 16px 28px !important; gap: 20px !important; }
  #caseScrollArea > div:first-child > div:nth-child(1) { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
  #caseScrollArea > div:first-child > div:nth-child(1) > div:first-child { gap: 10px !important; }
  #caseScrollArea > div:first-child > div:nth-child(1) > div:first-child > div:first-child { font-size: 11px !important; letter-spacing: .14em !important; }
  #caseScrollArea > div:first-child h1 { font-size: 26px !important; line-height: 1.15 !important; }
  #caseScrollArea > div:first-child > div:nth-child(1) p { font-size: 15px !important; }
  #caseScrollArea > div:first-child > div:nth-child(2) { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  #caseScrollArea > div:first-child > div:nth-child(2) > section { padding: 18px 16px !important; min-width: 0; }
  #caseScrollArea > div:first-child > div:nth-child(2) > section > div:first-child { flex-wrap: wrap; gap: 10px !important; }
  #caseScrollArea > div:first-child > div:nth-child(2) > section > div:last-child { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
  #caseScrollArea > div:first-child > div:nth-child(2) > section > div:last-child > div:last-child { text-align: left !important; }
  #caseScrollArea #caseManPenalty, #caseScrollArea #caseScopPenalty { font-size: 32px !important; }
  #caseScopSteps .case-document-step { gap: 12px; min-height: 76px; }
  #caseScopSteps .case-document-art { width: 84px; height: 62px; }
  #caseScopSteps .case-document-step:not(:last-child)::after { left: 41px; top: 66px; height: 12px; }
  #caseScrollArea > div:first-child > div:nth-child(3) { flex-direction: column !important; align-items: stretch !important; gap: 18px !important; padding: 18px 16px !important; }
  #caseResultRow { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px !important; }
  #caseResultRow > div[style*="width: 1px"] { display: none !important; }
  #caseResultRow > div > div:last-child { font-size: 22px !important; }
  #caseScrollArea > div:first-child > div:nth-child(3) > div:last-child { flex-direction: column !important; gap: 10px !important; }
  #caseScrollArea a[style*="height: 52px"], #caseScrollArea a[style*="height: 48px"] { width: 100%; justify-content: center; height: 48px !important; }
  #caseScrollArea > div:first-child > div:nth-child(4) { margin-top: 0 !important; justify-content: flex-start !important; }
  #caseVakaAuto { grid-template-columns: minmax(0, 1fr) !important; padding: 40px 16px 32px !important; row-gap: 24px !important; }
  #caseVakaAuto > div:nth-child(2) { gap: 26px !important; }
  #caseVakaAuto h2 { font-size: 26px !important; }
  #caseVakaAuto h2 > span { display: inline !important; white-space: normal !important; }
  #caseVakaAuto h2 > span + span::before { content: " "; }
  #caseVakaAuto header > p { font-size: 16px !important; }
  #caseVakaAuto h3 { font-size: 19px !important; }
  #caseVakaAuto section > p { padding-left: 0 !important; font-size: 15.5px !important; }
  #caseVakaAuto > div:nth-child(2) > div:last-child { flex-direction: column !important; align-items: stretch !important; padding: 20px 16px !important; }
  #caseVakaAuto > div:nth-child(2) > div:last-child > div:last-child { flex-direction: column !important; }
  #caseVakaAuto img { height: 220px !important; }
  #caseVakaAuto aside > div { padding: 18px 16px !important; }

  /* ---------------------------------------------------------------------------------------
     4. Business modül pencereleri: ekrana sığdırmak için %60-70'e küçültülmek yerine
        tam boyutta açılır, pencerenin içinde kaydırılır.
     --------------------------------------------------------------------------------------- */
  :is(#business-modal-documents, #business-modal-communication, #business-modal-tps, #business-module-modal) { padding: 12px; }
  :is(#business-modal-documents, #business-modal-communication, #business-modal-tps, #business-module-modal) .pen-modal-card {
    zoom: 1 !important; width: 100% !important; max-width: 100% !important;
    max-height: calc(100vh - 24px) !important; max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important; overscroll-behavior: contain; flex-shrink: 1 !important;
  }

  /* ---------------------------------------------------------------------------------------
     5. Dokunma hedefleri: üst menüdeki tema, dil ve menü düğmeleri 25-35 px'ten
        40 px'e; sayfa içindeki küçük seçim düğmeleri en az 36 px yüksekliğe.
     --------------------------------------------------------------------------------------- */
  .nav .themebtn, .nav .menutoggle { width: 40px; height: 40px; }
  .nav .langsw button { min-width: 34px; min-height: 34px; padding: 0 8px; font-size: .7rem; }
  .porbit__hints button { min-height: 36px; }
  .av2 .av-ttabs button { min-height: 36px; }
  .pv-fx button { height: 36px; }
  .ptour-pp { width: 40px; height: 40px; }
  .ptour-pp svg { width: 14px; height: 14px; }
  .business-sector-nav { width: 40px; height: 40px; }
  .lang-hint-close { width: 40px; height: 40px; }
  .roi-toggle input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--brand, #3b82f6); }

  /* ---------------------------------------------------------------------------------------
     6. Alt bilgi: SCOP tanıtım metni dar bir sütuna sıkışmak yerine tam genişlikte durur.
     --------------------------------------------------------------------------------------- */
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-grid > div:first-child p { max-width: 46ch; }
  .foot-grid ul { gap: 4px; }
  .foot-grid ul a { display: inline-block; padding-block: 6px; }
}

@media (max-width: 359px) {
  .nav .langsw button { min-width: 30px; padding: 0 6px; }
  .nav-right { gap: 4px; }
}
