/* Ortanokta kurumsal tema (açık ve ferah sürüm).
   Krem zemin, lacivert yazı, altın vurgu; geniş boşluklar. Her sayfanın kendi stilinden SONRA yüklenir,
   ortak renk/yazı değişkenlerini ve ortak bileşenleri yeniden tanımlar. Koyu modda da açık görünüm korunur. */

html:root, html:root:not([data-theme="light"]), html:root[data-theme="dark"] {
  --bg: #f7f5f0; --surface: #ffffff; --ink: #13202e; --muted: #5d6874; --line: #e4ded2;
  --accent: #14304c; --accent-ink: #ffffff; --accent-soft: #eef1f4; --cost: #8a3b26;
  --err: #a1301f; --warn-soft: #f8efd9;
  --altin: #b8925a; --altin-acik: #ead9bd; --altin-ink: #1a1306;
  --lacivert: #0f2338;
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-doc: "Source Serif 4", Georgia, "Times New Roman", serif;
  --r: 10px;
  --aralik: clamp(56px, 11vw, 104px);   /* bölümler arası boşluk */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  html:root:not([data-theme="light"]) {
    --bg: #f7f5f0; --surface: #ffffff; --ink: #13202e; --muted: #5d6874; --line: #e4ded2;
    --accent: #14304c; --accent-ink: #ffffff; --accent-soft: #eef1f4; --cost: #8a3b26;
    --err: #a1301f; --warn-soft: #f8efd9; --altin: #b8925a; --altin-ink: #1a1306;
    color-scheme: light;
  }
}

/* ---- Temel ---- */
body { background: var(--bg) !important; color: var(--ink); font-family: var(--font-ui); font-size: max(16px, 1rem); line-height: 1.7;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { gap: var(--aralik) !important; }
a { text-underline-offset: 3px; }
::selection { background: rgba(184, 146, 90, .28); }

/* ---- Tipografi ---- */
h1, h2, h3 { font-family: var(--font-doc); letter-spacing: -0.012em; text-wrap: balance; color: var(--ink); }
h1 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-weight: 600; line-height: 1.22; letter-spacing: -0.014em; }
h3 { font-family: var(--font-ui); font-weight: 600; line-height: 1.4; letter-spacing: -0.006em; }
p, li, dd, figcaption { text-wrap: pretty; }
p { max-width: 68ch; }
strong, b { font-weight: 600; }
.eyebrow, .ust, .etiket { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.74rem; color: var(--altin); }
table, input, .mektup, .tutar, [data-tl], .ih-satir span:last-child { font-variant-numeric: tabular-nums lining-nums; }
.btn, button, input, select, textarea, label { font-family: var(--font-ui); }
small, .kucuk, .not { line-height: 1.6; }

/* ---- Bölüm başlığı altında ince altın ayraç (ortadaki küçük elmasla) ---- */
.ayrac { display: flex; align-items: center; gap: 12px; color: var(--altin); margin: 0 auto; width: 100%; }
.ayrac::before, .ayrac::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--altin-acik), transparent); }
.ayrac i { width: 7px; height: 7px; background: var(--altin); transform: rotate(45deg); flex: none; }

/* ---- Logo: sol hilal lacivert, sağ hilal ve nokta altın; altında slogan ---- */
.logo { font-family: var(--font-doc) !important; font-weight: 600; font-size: 1.2rem; display: inline-grid !important; grid-template-columns: auto auto; column-gap: 10px; align-items: center; text-decoration: none; color: var(--ink) !important; }
.logo svg { grid-row: span 2; width: 32px !important; height: 29px !important; color: var(--lacivert); --logo-sag: var(--altin); --logo-nokta: var(--altin); }
.logo::after { content: "Tarafsız ödeme planı"; grid-column: 2; font-family: var(--font-ui); font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--altin); line-height: 1; margin-top: 3px; white-space: nowrap; }

/* ---- Üst menü: açık zemin, ince alt çizgi ---- */
.wrap > .site, .wrap > a.logo:first-child { background: transparent; color: var(--ink); box-shadow: none; clip-path: none; padding-block: 6px; }
.wrap > .site nav a { color: var(--muted); text-decoration: none; }
.wrap > .site nav a:hover { color: var(--accent); }
.wrap > .site .nav-cta { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 5px 14px; }

/* ---- Sayfa giriş bölümleri: açık, ferah ---- */
.wrap > .site + section.giris, .wrap > .site + .lp-hero, .wrap > .site + section.hero { background: transparent; box-shadow: none; clip-path: none; color: var(--ink); }
.giris h1, .lp-hero h1, section.hero h1 { color: var(--ink); }
.giris .cta, .lp-hero .btn, section.hero .btn, .cta { background: var(--altin); color: var(--altin-ink) !important; border-color: var(--altin);
  border-radius: var(--r); box-shadow: 0 10px 24px -14px rgba(120, 86, 38, .6); }

/* Eski koyu bloklar (alacaklı sayfası, sorular, müşavir sayfası, son çağrı) açık temaya çekilir */
body .bant { --d-bg: transparent; --d-ink: var(--ink); --d-muted: var(--muted); --altin: #b8925a; --altin-ink: #1a1306;
  background: transparent !important; color: var(--ink) !important; color-scheme: light !important; }
body .bant .logo, body .bant .menu-genis a, body .bant .menu-dar summary { color: var(--ink) !important; }
body .bant .menu-genis a { color: var(--muted) !important; }
body .bant h1, body .bant .alt, body .bant p, body .bant label, body .bant .nitelik { color: var(--ink) !important; }
body .bant .h-soru { color: var(--altin) !important; }
body section.hero, body .hero { --h-bg: transparent; --h-ink: var(--ink); --h-muted: var(--muted); --h-accent: var(--altin);
  background: transparent !important; color: var(--ink) !important; color-scheme: light !important; }
body .son { --d-bg: var(--surface); background: var(--surface) !important; color: var(--ink) !important; color-scheme: light !important;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body .son h2, body .son p { color: var(--ink) !important; }
body .son .btn { background: var(--altin); border-color: var(--altin); color: var(--altin-ink); }

/* ---- Düğmeler ---- */
.btn, button.btn, a.btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: var(--r);
  transition: background-color .15s, transform .15s, box-shadow .15s; }
.btn:hover, .cta:hover { transform: translateY(-1px); opacity: 1; }
.btn.ikincil, .btn.ghost { background: transparent; color: var(--accent); }

/* ---- Formlar ---- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea { border-radius: var(--r); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--altin); outline-offset: 1px; }
#form { box-shadow: 0 30px 60px -40px rgba(15, 35, 56, .35); border-radius: calc(var(--r) + 4px); }

/* ---- Açılır başlıklar (her sayfada aynı) ---- */
details { border-radius: var(--r); }
summary { cursor: pointer; }
details.ac { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
details.ac + details.ac { margin-top: 10px; }
details.ac > summary { list-style: none; padding: 18px 52px 18px 20px; font-weight: 500; position: relative; line-height: 1.45; }
details.ac > summary::-webkit-details-marker { display: none; }
details.ac > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.6px solid var(--altin); border-bottom: 1.6px solid var(--altin); transform: rotate(45deg); transition: transform .2s; }
details.ac[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.ac > .ic, details.ac > p { padding: 0 20px 20px; margin: 0; color: var(--muted); }
details.ac > .ic ul { padding-left: 20px; margin: 0 0 10px; }
details.ac > .ic li { margin-bottom: 8px; }
details.ac > .ic b { color: var(--ink); }
details.ac > .ic small { display: block; color: var(--muted); }
details.ac > pre { margin: 0 20px 16px; }

/* ---- Fotoğraflı bant (açık sürüm): fotoğraf üstünde krem örtü, yazı her zaman okunur ---- */
.foto-bant { position: relative; margin: 0; overflow: hidden; border-radius: calc(var(--r) + 6px); min-height: 320px; display: flex; align-items: flex-end; background: var(--surface); isolation: isolate; }
.foto-bant img { position: absolute; inset: 0; width: 100% !important; height: 100%; object-fit: cover; z-index: 0; left: 0 !important; transform: none !important; }
.foto-bant::before { content: ""; position: absolute; inset: 0; left: 0 !important; width: 100% !important; transform: none !important; z-index: 1;
  background: linear-gradient(90deg, rgba(247,245,240,.97) 0%, rgba(247,245,240,.85) 50%, rgba(247,245,240,.25) 100%); }
.foto-bant figcaption { position: relative; z-index: 2; padding: 36px; display: flex; flex-direction: column; gap: 10px; max-width: 34ch; color: var(--ink); }
.foto-bant figcaption b { font-family: var(--font-doc); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.2; color: var(--ink); }
.foto-bant figcaption span { color: var(--muted); }
.foto-bant figcaption a { color: var(--accent); font-weight: 600; text-decoration: none; }
.foto-kaynak { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: 11px; color: rgba(19,32,46,.55); }
@media (max-width: 640px) {
  /* Telefonda fotoğraf üstte, yazı altta düz zeminde */
  .foto-bant { flex-direction: column; align-items: stretch; min-height: 0; }
  .foto-bant img { position: relative; height: 180px; }
  .foto-bant::before { display: none; }
  .foto-bant figcaption { padding: 22px 22px 34px; max-width: none; }
  .foto-kaynak { bottom: 10px; }
}

/* ---- Kaydırırken belirme (yalnızca masaüstü; kurumsal.js telefonda çalıştırmaz) ---- */
.belir { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.belir.gorundu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .belir { opacity: 1; transform: none; transition: none; } }

/* ---- Telefon ---- */
@media (max-width: 640px) {
  .wrap > .site nav { display: none; }
  .logo::after { font-size: 8.5px; letter-spacing: .1em; }
}

/* ---- Sağ üstte ortak menü (her sayfada aynı; kurumsal.js ekler) ---- */
.wrap > .site nav, .ust-bar nav.genis, .bant .menu-genis, .bant .menu-dar { display: none !important; }
.menu-sag { position: fixed; top: 12px; right: max(14px, env(safe-area-inset-right, 0px)); z-index: 60; }
.menu-sag > summary { list-style: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(15,35,56,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.menu-sag > summary::-webkit-details-marker { display: none; }
.menu-sag > summary i, .menu-sag > summary i::before, .menu-sag > summary i::after { display: block; width: 20px; height: 1.8px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.menu-sag > summary i::before { position: absolute; top: -6px; } .menu-sag > summary i::after { position: absolute; top: 6px; }
.menu-sag[open] > summary i { background: transparent; }
.menu-sag[open] > summary i::before { top: 0; transform: rotate(45deg); } .menu-sag[open] > summary i::after { top: 0; transform: rotate(-45deg); }
.menu-sag .panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 28px)); max-height: calc(100vh - 90px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 24px 50px -24px rgba(15,35,56,.4); }
.menu-sag .grup { padding: 8px 6px 10px; }
.menu-sag .grup + .grup { border-top: 1px solid var(--line); }
.menu-sag .grup p { margin: 4px 8px 6px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--altin); }
.menu-sag a { display: block; padding: 10px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.menu-sag a:hover { background: var(--bg); }
.menu-sag a.ana { background: var(--altin); color: var(--altin-ink); font-weight: 600; text-align: center; margin: 2px 0 6px; }
.menu-sag a small { display: block; color: var(--muted); font-size: .8rem; }
