/* 3M-R Mühendislik — site stili.
   Programın tasarım kararlarıyla aynı yön: nötr zemin, soluk ızgara,
   vurgu yalnız eylem ve seçim için; sayılar eşit genişlikte. Yazı tipi
   sistemden gelir (dış istek yok). */

:root {
  --zemin: #f5f6f8;
  --yuzey: #ffffff;
  --yuzey-2: #eef1f5;
  --kenar: #d6dce4;
  --kenar-solgun: #e4e8ee;
  --metin: #151d28;
  --metin-2: #45515f;
  --solgun: #5f6b7a;
  --vurgu: #1f4f86;
  --vurgu-uzeri: #ffffff;
  --vurgu-zemin: #e6eef8;
  --izgara: rgba(31, 56, 100, 0.06);
  --tuval: #171c24;
  --tuval-metin: #e8edf3;
  --tuval-solgun: #9aa7b8;
  --onay: #2e7d5b;
  --uyari: #a33a3a;
  --yt-zemin: #fff1c2;
  --yt-metin: #6a4b00;
  --golge: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 18px rgba(16, 24, 40, 0.06);

  --yazi: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --es: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
  --genislik: 1120px;
  --kenar-bosluk: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zemin: #14181e;
    --yuzey: #1b2129;
    --yuzey-2: #222933;
    --kenar: #343d49;
    --kenar-solgun: #2a313b;
    --metin: #edf2f8;
    --metin-2: #b4bfcd;
    --solgun: #98a4b4;
    --vurgu: #8ab8ff;
    --vurgu-uzeri: #14243a;
    --vurgu-zemin: #1d2b3e;
    --izgara: rgba(138, 184, 255, 0.05);
    --tuval: #10141a;
    --onay: #6cc39a;
    --uyari: #ef8a8a;
    --yt-zemin: #4a3a0a;
    --yt-metin: #ffe08a;
    --golge: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --zemin: #14181e; --yuzey: #1b2129; --yuzey-2: #222933; --kenar: #343d49; --kenar-solgun: #2a313b;
  --metin: #edf2f8; --metin-2: #b4bfcd; --solgun: #98a4b4; --vurgu: #8ab8ff; --vurgu-uzeri: #14243a;
  --vurgu-zemin: #1d2b3e; --izgara: rgba(138, 184, 255, 0.05); --tuval: #10141a; --onay: #6cc39a;
  --uyari: #ef8a8a; --yt-zemin: #4a3a0a; --yt-metin: #ffe08a; color-scheme: dark;
}

@media (min-width: 720px) { :root { --kenar-bosluk: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--zemin);
  color: var(--metin);
  font: 16px/1.6 var(--yazi);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vurgu); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; }
p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.3em; }
code, kbd, .es { font-family: var(--es); font-size: 0.92em; }
kbd {
  padding: 0.05em 0.4em; border: 1px solid var(--kenar); border-bottom-width: 2px;
  border-radius: 4px; background: var(--yuzey); white-space: nowrap;
}
.nw { white-space: nowrap; }
.solgun { color: var(--solgun); }
.kucuk { font-size: 0.9rem; }

.kap { max-width: var(--genislik); margin: 0 auto; padding: 0 var(--kenar-bosluk); }
.atla { position: absolute; left: -9999px; top: 8px; background: var(--yuzey); padding: 8px 12px; z-index: 10; }
.atla:focus { left: 8px; }

/* Yer tutucu: yayından önce doldurulacak bilgi. */
mark.yt {
  background: var(--yt-zemin); color: var(--yt-metin); padding: 0 0.25em;
  border-radius: 3px; font-size: 0.92em; font-weight: 600;
}

/* ── Üst çubuk ───────────────────────────────────────────── */
.ust { background: var(--yuzey); border-bottom: 1px solid var(--kenar); }
.ust-ic { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.marka { display: flex; align-items: center; gap: 8px; color: var(--metin); text-decoration: none; }
.marka-isaret { width: 26px; height: 26px; color: var(--metin); flex: none; }
.marka-ad { font-weight: 750; font-size: 1.15rem; letter-spacing: 0.01em; }
.marka-alt { color: var(--solgun); font-size: 0.95rem; }
.menu-genis { display: none; align-items: center; gap: 4px; }
.menu-genis a:not(.dugme) {
  color: var(--metin-2); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 0.97rem;
}
.menu-genis a:not(.dugme):hover { color: var(--metin); background: var(--yuzey-2); }
.menu-genis a[aria-current="page"]:not(.dugme) { color: var(--metin); box-shadow: inset 0 -2px 0 var(--vurgu); border-radius: 0; }
.menu-genis .dugme { margin-left: 8px; }
.menu-dar { position: relative; }
.menu-dar summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--kenar);
  border-radius: 6px; font-size: 0.95rem; min-height: 40px; display: flex; align-items: center;
}
.menu-dar summary::-webkit-details-marker { display: none; }
.menu-dar summary::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border: solid var(--solgun); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.menu-dar[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-dar nav {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 220px;
  display: flex; flex-direction: column; background: var(--yuzey); border: 1px solid var(--kenar);
  border-radius: 8px; box-shadow: var(--golge); padding: 6px;
}
.menu-dar nav a { color: var(--metin); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.menu-dar nav a:hover, .menu-dar nav a[aria-current="page"] { background: var(--yuzey-2); }
@media (min-width: 860px) {
  .menu-genis { display: flex; }
  .menu-dar { display: none; }
}

/* ── Düğmeler ────────────────────────────────────────────── */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border-radius: 6px; border: 1px solid var(--kenar);
  background: var(--yuzey); color: var(--metin); font: inherit; font-weight: 600; font-size: 0.97rem;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.dugme:hover { border-color: var(--solgun); text-decoration: none; }
.dugme-birincil { background: var(--vurgu); border-color: var(--vurgu); color: var(--vurgu-uzeri); }
.dugme-birincil:hover { filter: brightness(1.08); border-color: var(--vurgu); }
.dugme-buyuk { min-height: 50px; padding: 12px 22px; font-size: 1.03rem; }
.dugmeler { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }

/* ── Bölümler ────────────────────────────────────────────── */
.bolum { padding: 56px 0; }
.bolum + .bolum { border-top: 1px solid var(--kenar-solgun); }
.bolum-yuzey { background: var(--yuzey); }
.ust-baslik {
  font-size: 0.8rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--solgun); margin: 0 0 0.6em;
}
.giris { font-size: 1.12rem; color: var(--metin-2); max-width: 44em; }
.metin-sutun { max-width: 46em; }

/* Soluk ızgara: programın tuvalindeki gibi, içeriğin önüne geçmez. */
.izgara {
  background-color: var(--yuzey);
  background-image:
    linear-gradient(var(--izgara) 1px, transparent 1px),
    linear-gradient(90deg, var(--izgara) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}

.kahraman { padding: 48px 0 40px; border-bottom: 1px solid var(--kenar); }
.kahraman h1 { max-width: 16em; }
.kahraman .giris { margin-bottom: 0; }
.kahraman-gorsel { margin-top: 36px; }
.sayfa-basi { padding: 44px 0 32px; border-bottom: 1px solid var(--kenar); }
.sayfa-basi h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); }
.sayfa-basi .giris { margin-bottom: 0; }

/* Ekran görüntüsü çerçevesi */
.ekran { margin: 0; }
.ekran img { border-radius: 8px; border: 1px solid var(--kenar); box-shadow: var(--golge); background: var(--tuval); }
.ekran figcaption { color: var(--solgun); font-size: 0.9rem; margin-top: 10px; }

/* Izgaralar */
.izgara-2, .izgara-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .izgara-2 { grid-template-columns: 1fr 1fr; } .izgara-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .izgara-3 { grid-template-columns: 1fr 1fr 1fr; } }
.yan-yana { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .yan-yana { grid-template-columns: 1fr 1fr; gap: 48px; }
  .yan-yana.ters > :first-child { order: 2; }
}

.kart {
  background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 8px; padding: 20px;
}
.kart h3 { margin-bottom: 0.4em; }
.kart p:last-child, .kart ul:last-child { margin-bottom: 0; }
.kart-etiket { font-family: var(--es); font-size: 0.8rem; color: var(--solgun); margin: 0 0 0.5em; }

/* ── Bir sayının anatomisi (sorgulanabilir hesap) ───────── */
.dokum {
  background: var(--tuval); color: var(--tuval-metin); border-radius: 8px; padding: 20px;
  font-family: var(--es); font-size: 0.9rem; line-height: 1.7; overflow-x: auto;
}
.dokum ol { list-style: none; margin: 0; padding: 0; }
.dokum li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 8px 0; border-top: 1px dashed #2f3845; margin: 0; }
.dokum li:first-child { border-top: 0; }
.dokum .soru { color: var(--tuval-solgun); }
.dokum .cevap b { color: #ffffff; font-weight: 600; }
.dokum .vurgu { color: #8ab8ff; }
@media (max-width: 480px) { .dokum li { grid-template-columns: 1fr; gap: 0; } }

/* Onay listesi */
.liste-onay { list-style: none; padding: 0; }
.liste-onay li { position: relative; padding-left: 1.6em; }
.liste-onay li::before {
  content: ""; position: absolute; left: 0.15em; top: 0.5em; width: 0.8em; height: 0.45em;
  border: solid var(--onay); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.liste-yok li::before { border: 0; width: 0.7em; height: 2px; background: var(--solgun); transform: none; top: 0.78em; }
.liste-yok li { color: var(--solgun); }

/* ── Tablolar ───────────────────────────────────────────── */
.tablo-kap { overflow-x: auto; border: 1px solid var(--kenar); border-radius: 8px; background: var(--yuzey); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; margin: 0; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--kenar-solgun); vertical-align: top; }
thead th { background: var(--yuzey-2); font-weight: 650; font-size: 0.9rem; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; }
td.o, th.o { text-align: center; white-space: nowrap; }
.var { color: var(--onay); font-weight: 700; }
.yok { color: var(--solgun); }
tfoot td, tfoot th { border-top: 2px solid var(--kenar); border-bottom: 0; font-weight: 650; }

/* Paket kartları */
.paketler { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .paketler { grid-template-columns: repeat(3, 1fr); } }
.paket { display: flex; flex-direction: column; }
.paket.one { border-color: var(--vurgu); box-shadow: 0 0 0 1px var(--vurgu); }
.paket .fiyat { font-size: 1.5rem; font-weight: 700; margin: 0.2em 0 0.1em; }
.paket .fiyat-not { color: var(--solgun); font-size: 0.9rem; margin-bottom: 1em; }
.paket ul { flex: 1; }
.rozet {
  display: inline-block; font-size: 0.75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px;
  background: var(--vurgu-zemin); color: var(--vurgu); vertical-align: middle; margin-left: 6px;
}

/* ── Adım listesi (SmartScreen vb.) ──────────────────────── */
.adimlar { counter-reset: adim; list-style: none; padding: 0; }
.adimlar > li { counter-increment: adim; position: relative; padding: 0 0 20px 48px; margin: 0; }
.adimlar > li::before {
  content: counter(adim); position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--kenar); background: var(--yuzey);
  display: grid; place-items: center; font-weight: 650; font-size: 0.95rem;
}
.adimlar > li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 1px; background: var(--kenar); }
.adimlar > li:last-child::after { display: none; }
.adimlar h3 { margin: 4px 0 0.3em; font-size: 1.02rem; }

/* Uyarı penceresinin sade şeması (Windows'un kendi penceresi değil) */
.sema {
  border: 1px solid var(--kenar); border-radius: 8px; background: var(--yuzey); padding: 16px;
  font-size: 0.92rem; max-width: 460px;
}
.sema-baslik { font-weight: 650; margin-bottom: 6px; }
.sema-alt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.sema-dugme { border: 1px solid var(--kenar); border-radius: 4px; padding: 4px 12px; font-size: 0.85rem; color: var(--solgun); }
.sema-dugme.hedef { border-color: var(--vurgu); color: var(--vurgu); font-weight: 650; box-shadow: 0 0 0 2px var(--vurgu-zemin); }
.sema-baglanti { color: var(--vurgu); text-decoration: underline; font-weight: 650; }

/* Bilgi kutusu */
.not {
  border: 1px solid var(--kenar); border-left: 3px solid var(--vurgu); background: var(--yuzey);
  padding: 14px 16px; border-radius: 6px; margin: 0 0 1.2em;
}
.not p:last-child { margin: 0; }

/* Tanım listesi */
.ozet-liste { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--kenar); border-radius: 8px; background: var(--yuzey); }
.ozet-liste > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--kenar-solgun); }
.ozet-liste > div:last-child { border-bottom: 0; }
.ozet-liste dt { color: var(--solgun); font-size: 0.9rem; }
.ozet-liste dd { margin: 0; }
@media (min-width: 600px) { .ozet-liste > div { grid-template-columns: 13em 1fr; gap: 16px; } }
.ozet { font-family: var(--es); font-size: 0.85rem; word-break: break-all; }

/* ── SSS ─────────────────────────────────────────────────── */
.sss details { border-bottom: 1px solid var(--kenar); }
.sss h2 + details { border-top: 1px solid var(--kenar); }
.sss summary {
  cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; list-style: none;
}
.sss summary::-webkit-details-marker { display: none; }
.sss summary::after {
  content: "+"; position: absolute; right: 4px; top: 13px; font-size: 1.3rem; color: var(--solgun); font-weight: 400;
}
.sss details[open] summary::after { content: "−"; }
.sss details > div { padding: 0 0 16px; color: var(--metin-2); max-width: 46em; }

/* ── Form ───────────────────────────────────────────────── */
.form { display: grid; gap: 18px; max-width: 640px; }
.alan { display: grid; gap: 6px; }
.alan label, .alan legend { font-weight: 600; font-size: 0.95rem; }
.alan .ipucu { color: var(--solgun); font-size: 0.88rem; margin: 0; }
.zorunlu { color: var(--uyari); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--metin); background: var(--yuzey);
  border: 1px solid var(--kenar); border-radius: 6px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 0; border-color: var(--vurgu); }
.onay-kutusu { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.onay-kutusu input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--vurgu); }
.iki-alan { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .iki-alan { grid-template-columns: 1fr 1fr; } }
/* Bal küpü: insanlara görünmez, ekran okuyucudan da gizli. */
.bal { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-sonuc { padding: 16px; border-radius: 8px; border: 1px solid var(--kenar); background: var(--yuzey); }
.form-sonuc.hata { border-left: 3px solid var(--uyari); }
.form-sonuc.tamam { border-left: 3px solid var(--onay); }

/* ── Hukuki metin ───────────────────────────────────────── */
.hukuk { max-width: 46em; }
.hukuk h2 { font-size: 1.25rem; margin-top: 1.8em; }
.hukuk h2:first-child { margin-top: 0; }
.hukuk h3 { font-size: 1.05rem; margin-top: 1.3em; }

/* ── Alt bilgi ──────────────────────────────────────────── */
.alt { background: var(--yuzey); border-top: 1px solid var(--kenar); padding: 40px 0 0; margin-top: 0; font-size: 0.95rem; }
.alt-ic { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .alt-ic { grid-template-columns: 1fr 2fr; } }
.alt-marka { font-weight: 700; margin-bottom: 0.4em; }
.alt-menu { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.alt-menu a { display: block; color: var(--metin-2); text-decoration: none; padding: 5px 0; }
.alt-menu a:hover { color: var(--vurgu); text-decoration: underline; }
.alt-baslik { font-weight: 650; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--solgun); margin-bottom: 0.4em; }
.alt-not { border-top: 1px solid var(--kenar-solgun); margin-top: 32px; padding-top: 16px; padding-bottom: 24px; color: var(--solgun); font-size: 0.88rem; }
.alt-not p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .ust, .alt, .dugmeler { display: none; }
  body { background: #fff; color: #000; }
}

/* Yardımcılar (CSP satır içi stile izin vermez) */
.ust-20 { margin-top: 20px; }
.ust-24 { margin-top: 24px; }
.ust-40 { margin-top: 40px; }
.ekran img.ekran-dikey { max-height: 520px; width: auto; margin: 0 auto; }
.paket h2 { font-size: 1.25rem; }
.yan-yana.ust-hiza { align-items: start; }
.h-orta { font-size: 1.6rem; }
.ust-12 { margin-top: 12px; }
pre.dokum { margin: 0 0 0.6em; white-space: pre; }
.yan-yana > *, .izgara-2 > *, .izgara-3 > *, .paketler > * { min-width: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
@media (min-width: 900px) { .paketler.paketler-iki { grid-template-columns: repeat(2, 1fr); max-width: 860px; } }
.paket .dugmeler { margin-top: auto; padding-top: 8px; }
