/* Mercan Krom — mobil ve tablet uyumu (tüm sayfalarda ortak) */
html, body { overflow-x: clip; }
img, svg, iframe { max-width: 100%; }
[data-m="burger"], [data-m="drawer"] { display: none !important; }
@keyframes mkDrawerIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
details > summary::-webkit-details-marker { display: none; }

/* ---------- ≤1180: tablet yatay — header hamburger ---------- */
@media (max-width: 1180px) {
  [data-m="root"] { min-width: 0 !important; left: 0 !important; transform: none !important; }
  [data-m="strip"], [data-m="nav"], [data-m="contact"], [data-m="mega"] { display: none !important; }
  [data-m="burger"] { display: flex !important; }
  [data-m="drawer"] { display: flex !important; }
  header[data-m="bar"] { height: 76px !important; }
  [data-m="logo"] { height: 52px !important; }

  [style*="repeat(5"], [style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="fr) repeat(3"], [style*="fr) repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-template-rows: 330px"], [style*="grid-template-rows: 300px"], [style*="grid-template-rows: 280px"], [style*="grid-template-rows: 290px"] { grid-template-rows: none !important; grid-auto-rows: 260px !important; }
  [style*="grid-auto-rows: 280px"] { grid-auto-rows: 240px !important; }
  [style*="grid-column: span 4"], [style*="grid-area: auto / span 4"] { grid-column: span 2 !important; }

  [style*="font-size: 104px"], [style*="font-size: 84px"], [style*="font-size: 80px"], [style*="font-size: 72px"] { font-size: 60px !important; }
  [style*="font-size: 68px"], [style*="font-size: 64px"], [style*="font-size: 60px"] { font-size: 52px !important; }
  [style*="font-size: 56px"], [style*="font-size: 54px"], [style*="font-size: 52px"] { font-size: 46px !important; }

  [role="tablist"][style*="display: flex"] { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 24px !important; min-width: 0; max-width: 100%; flex: 1 1 100%; }
  [role="tablist"] > * { flex: 0 0 auto !important; }
  [style*="justify-content: space-between"]:has(> [role="tablist"]) { flex-wrap: wrap; row-gap: 16px; }
}

/* ---------- ≤900: tablet dikey — iki sütunlu düzenler tek sütun ---------- */
@media (max-width: 900px) {
  [style*="fr) minmax("], [style*="1fr 1fr"], [style*="minmax(0px, 1fr) 380px"], [style*="minmax(0, 1fr) 380px"], [style*="280px minmax("] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="160px minmax("] { grid-template-columns: 40px minmax(0, 1fr) !important; }
  [style*="160px minmax("] > *:nth-child(n+3):not(:last-child) { grid-column: 2; }
  [style*="position: sticky"] { position: relative !important; top: auto !important; }
  div[aria-hidden="true"][style*="repeat(4"] { display: none !important; }
  [style*="56px minmax(0px, 1fr) auto"], [style*="56px minmax(0, 1fr) auto"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="56px minmax(0px, 1fr) auto"] > span:last-child, [style*="56px minmax(0, 1fr) auto"] > span:last-child { flex-wrap: wrap; }
  [style*="gap: 96px"], [style*="gap: 88px"], [style*="gap: 80px"], [style*="gap: 72px"], [style*="gap: 64px"] { gap: 40px !important; }
  [style*="margin-top: 88px"], [style*="margin-top: 80px"], [style*="margin-top: 72px"], [style*="margin-top: 64px"] { margin-top: 44px !important; }
  [style*="margin-top: 112px"] { margin-top: 56px !important; }

  [style*="padding: 160px"], [style*="padding: 152px"], [style*="padding: 144px"], [style*="padding: 136px"], [style*="padding: 128px"], [style*="padding: 120px"], [style*="padding: 112px"] { padding-top: 88px !important; padding-bottom: 88px !important; }
  [style*="padding: 136px 24px 0"] { padding-bottom: 0 !important; }
  [style*="0px 144px"], [style*="0 0 144px"] { padding-bottom: 88px !important; }

  [data-screen-label="01 Hero"] { height: auto !important; min-height: 760px; }
  [data-screen-label="01 Hero"] > div[style*="max-width: 1240px"] { min-height: 760px; }
  section[data-screen-label="Hero"] { height: 560px !important; }

  /* ana sayfa "Biz" kolajı */
  [style*="height: 640px"] { height: 520px !important; }
  [style*="height: 880px"] { height: auto !important; min-height: 680px; }
  [style*="height: 560px"] { height: 440px !important; }
  [style*="height: 460px"] { height: 320px !important; }
  [style*="min-height: 560px"], [style*="min-height: 540px"] { min-height: 380px !important; }
  [style*="left: -40px"] { left: 16px !important; }
  [style*="margin: 0 -24px 0 0"], [style*="margin: 0px -24px 0px 0px"] { margin: 0 !important; }
}

/* ---------- ≤640: telefon ---------- */
@media (max-width: 640px) {
  [style*="max-width: 1240px"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="repeat("], [style*="fr) minmax("] { grid-template-columns: minmax(0, 1fr) !important; }
  footer [style*="repeat(5"], [role="radiogroup"], [data-m="two"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-column: span"], [style*="grid-area: span"], [style*="grid-area: auto / span"] { grid-column: auto !important; }
  [style*="grid-row: span"], [style*="grid-area: span"], [style*="/ span"] { grid-row: auto !important; }
  [style*="grid-template-rows: 330px"], [style*="grid-template-rows: 300px"], [style*="grid-template-rows: 280px"], [style*="grid-template-rows: 290px"], [style*="grid-auto-rows: 280px"] { grid-auto-rows: 240px !important; }
  [style*="148px minmax("] { grid-template-columns: 64px minmax(0, 1fr) 44px !important; gap: 14px !important; }
  [style*="132px minmax("] { grid-template-columns: 104px minmax(0, 1fr) !important; }

  /* yazı ölçeği */
  [style*="font-size: 220px"] { font-size: 140px !important; }
  [style*="font-size: 168px"], [style*="font-size: 140px"] { font-size: 96px !important; }
  [style*="font-size: 104px"] { font-size: 56px !important; }
  [style*="font-size: 84px"], [style*="font-size: 80px"], [style*="font-size: 72px"], [style*="font-size: 68px"] { font-size: 42px !important; line-height: 1.04 !important; }
  [style*="font-size: 64px"], [style*="font-size: 60px"] { font-size: 38px !important; line-height: 1.06 !important; }
  [style*="font-size: 56px"], [style*="font-size: 54px"], [style*="font-size: 52px"] { font-size: 34px !important; line-height: 1.1 !important; }
  [style*="font-size: 48px"], [style*="font-size: 46px"] { font-size: 30px !important; line-height: 1.12 !important; }
  [style*="font-size: 44px"], [style*="font-size: 40px"] { font-size: 28px !important; }
  [style*="font-size: 34px"], [style*="font-size: 32px"], [style*="font-size: 30px"] { font-size: 24px !important; }
  [style*="font-size: 28px"], [style*="font-size: 26px"] { font-size: 21px !important; }
  [style*="font-size: 24px"] { font-size: 20px !important; }
  [style*="font-size: 19px"], [style*="font-size: 18px"], [style*="font-size: 17px"] { font-size: 16px !important; }
  h1, h2 { letter-spacing: -0.03em !important; }

  /* boşluklar */
  [style*="padding: 160px"], [style*="padding: 152px"], [style*="padding: 144px"], [style*="padding: 136px"], [style*="padding: 128px"], [style*="padding: 120px"], [style*="padding: 112px"], [style*="padding: 96px 0"], [style*="padding: 88px 0"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  [style*="padding: 136px 24px 0"] { padding-bottom: 0 !important; }
  [style*="0px 144px"], [style*="0 0 144px"] { padding-bottom: 64px !important; }
  [style*="margin-top: 88px"], [style*="margin-top: 80px"], [style*="margin-top: 72px"], [style*="margin-top: 64px"], [style*="margin-top: 56px"] { margin-top: 36px !important; }
  [style*="margin: 28px 0px 0px"], [style*="margin: 28px 0 0"] { margin-top: 18px !important; }
  [style*="gap: 96px"], [style*="gap: 88px"], [style*="gap: 80px"], [style*="gap: 72px"], [style*="gap: 64px"], [style*="gap: 56px"], [style*="gap: 48px"] { gap: 28px !important; }
  [style*="padding: 56px 52px"], [style*="padding: 56px 48px"], [style*="padding: 48px 48px"], [style*="padding: 48px 40px"], [style*="padding: 40px 40px"], [style*="padding: 40px 36px"], [style*="padding: 36px 40px"], [style*="padding: 36px 32px"] { padding: 28px 22px !important; }

  /* kahraman alanları */
  [data-screen-label="01 Hero"] { min-height: 100svh; }
  [data-screen-label="01 Hero"] > div[style*="max-width: 1240px"] { min-height: 100svh; }
  [data-screen-label="01 Hero"] [style*="padding-top: 110px"] { padding-top: 120px !important; }
  [data-screen-label="01 Hero"] [style*="justify-self: end"] { display: none !important; }
  section[data-screen-label="Hero"] { height: auto !important; min-height: 520px; }
  section[data-screen-label="Hero"] > div[style*="max-width: 1240px"] { padding-top: 120px !important; padding-bottom: 56px !important; height: auto !important; min-height: 520px; box-sizing: border-box !important; }
  [style*="writing-mode: vertical-rl"] { display: none !important; }

  /* sekmeler yatay kaydırılır */
  [role="tablist"] { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 24px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [role="tablist"]::-webkit-scrollbar { display: none; }
  [role="tablist"] > * { flex: 0 0 auto !important; }
  [role="group"][style*="display: flex"], [role="group"] > div[style*="display: flex"] { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 24px !important; max-width: 100%; min-width: 0; }
  [role="group"] > div[style*="display: flex"] { flex: 1 1 100%; }
  [role="group"]::-webkit-scrollbar, [role="group"] > div::-webkit-scrollbar { display: none; }
  [role="group"] button { flex: 0 0 auto !important; white-space: nowrap; }
  [role="tablist"] button[style*="padding: 24px 24px 4px 0"] { min-width: 150px; padding-right: 8px !important; }

  /* butonlar ve satırlar */
  [style*="display: flex"][style*="justify-content: space-between"]:not([role="tablist"]):not(button):not(a) { flex-wrap: wrap; }
  [style*="display: flex"][style*="gap: 14px"][style*="align-items: center"], [style*="display: flex"][style*="gap: 12px"][style*="margin-top"] { flex-wrap: wrap; }
  a[style*="height: 56px"], a[style*="height: 52px"], button[style*="height: 56px"] { white-space: normal !important; justify-content: center; text-align: center; }
  [style*="gap: 14px"] > a[style*="height: 56px"] { flex: 1 1 100%; }

  /* görseller ve sabit yükseklikler */
  [style*="height: 640px"] { height: 420px !important; }
  [style*="height: 560px"] { height: 380px !important; }
  [style*="height: 480px"] { height: 300px !important; }
  [style*="height: 460px"], [style*="height: 420px"] { height: 260px !important; }
  [style*="height: 300px"] { height: 220px !important; }
  [style*="min-height: 540px"], [style*="min-height: 520px"] { min-height: 0 !important; }
  [style*="aspect-ratio: 3 / 4"] { aspect-ratio: 4 / 3 !important; }
  [style*="margin-top: 48px"][style*="margin-top: 48px"] { }
  li[style*="margin-top: 48px"] { margin-top: 0 !important; }

  /* tablolar yatay kaydırılır */
  [role="table"] { overflow-x: auto; }
  [role="table"] > [role="row"], [role="table"] > a[role="row"] { min-width: 640px; }
  form fieldset { padding: 24px 20px !important; }

  /* footer */
  [data-f="top"] { flex-direction: column; align-items: flex-start !important; gap: 24px !important; padding: 48px 0 32px !important; }
  [data-f="logo"] { height: 64px !important; }
  [data-f="cta"] { width: 100%; flex-direction: column; align-items: stretch !important; }
  [data-f="cta"] > a { justify-content: center; }
  [data-f="cols"] { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; padding: 8px 0 32px !important; }
  [data-f="cols"] details { border-bottom: 1px solid rgba(195,200,206,0.14); }
  [data-f="sum"] { padding: 18px 0 !important; cursor: pointer !important; font-size: 13px !important; }
  [data-f="chev"] { display: block !important; transition: transform 250ms; }
  details[open] [data-f="chev"] { transform: rotate(180deg); }
  [data-f="cols"] details nav { padding-bottom: 14px; }
  [data-f="contact"] { padding-top: 28px; gap: 14px !important; }
  [data-f="bottom"] { flex-direction: column-reverse; align-items: flex-start !important; gap: 16px !important; }

  /* yan yana bölmeli bantlar alt alta */
  ul[style*="repeat("] > li[style*="border-left"], ul[style*="repeat("] > li[style*="padding: 48px"], ul[style*="repeat("] > li[style*="padding: 32px"], ul[style*="repeat("] > li[style*="padding: 36px"] { border-left: 0 !important; padding-left: 0 !important; padding-right: 0 !important; padding-top: 22px !important; padding-bottom: 22px !important; }
  ul[style*="repeat("] > li + li { border-top: 1px solid rgba(127,137,150,0.25); }
  div[style*="repeat("] > [style*="border-left: 1px"] { border-left: 0 !important; padding-left: 0 !important; }
  [role="dialog"][aria-modal="true"] { overflow-y: auto; }
  [role="dialog"] [style*="minmax(0px, 1fr) 380px"], [role="dialog"] [style*="minmax(0, 1fr) 380px"] { grid-template-rows: 52vh auto !important; }

  /* teknik föy satırları: numara + (özellik / değer) */
  [style*="56px minmax(0px, 1fr) minmax(0px, 1.1fr)"], [style*="56px minmax(0, 1fr) minmax(0, 1.1fr)"] { grid-template-columns: 36px minmax(0, 1fr) !important; gap: 4px 12px !important; }
  [style*="1.1fr)"] > dd { grid-column: 2; }
}
