/* TYT Puan Hesaplama – hafif, bağımlılıksız stil dosyası */
:root {
  --ink: #1f1a2e;
  --ink2: #4a4458;
  --muted: #6b6578;
  --brand: #322153;
  --brand2: #4a3478;
  --green: #84bd5a;
  --green-d: #3f7a1f;
  --green-soft: #eef7e7;
  --line: #e4e0ea;
  --line2: #cfc8da;
  --bg: #f6f5f9;
  --paper: #fff;
  --err: #b42318;
  --err-soft: #fdecea;
  --est: #8a5200;
  --est-soft: #fff4e0;
  --r: 14px;
  --sh: 0 1px 2px rgb(31 26 46 / 6%), 0 6px 20px -8px rgb(31 26 46 / 14%);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand2); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { display: block; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg); color: var(--brand); }
.btn-count { background: var(--brand); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-count:hover { background: var(--brand2); color: #fff; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; padding: 10px; display: grid; gap: 4px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.mnav nav { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); width: 240px; padding: 6px; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav a { display: block; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.mnav a:hover { background: var(--bg); }
@media (max-width: 880px) {
  .nav, .btn-count { display: none; }
  .mnav { display: block; }
}

/* Breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Doküman */
.doc { max-width: 820px; margin: 0 auto; padding: 18px 0 40px; }
.doc-tool { max-width: 960px; }
.doc-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--brand); margin: 10px 0 10px; }
.lead { font-size: 1.1rem; color: var(--ink2); margin: 0 0 8px; }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.doc h2 { font-size: 1.45rem; line-height: 1.3; color: var(--brand); margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.15rem; color: var(--ink); margin: 1.6em 0 0.4em; }
.doc p { margin: 0.8em 0; color: var(--ink2); }
.doc ul, .doc ol { color: var(--ink2); padding-left: 1.3em; }
.doc li { margin: 0.35em 0; }
.doc strong { color: var(--ink); }
.note { background: var(--green-soft); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 8px; margin: 1.2em 0; color: var(--ink2); }
.note-est { background: var(--est-soft); border-left-color: #e0a340; }
.tbl { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 15.5px; }
.tbl caption { text-align: left; padding: 10px 14px 4px; font-size: 14px; color: var(--muted); }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--bg); color: var(--ink); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.hl td { background: var(--green-soft); font-weight: 600; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 1.4em 0; font-size: 15.5px; }
.toc p { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0; }

/* Butonlar */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn { background: var(--brand); color: #fff; border: 0; }
.btn:hover { background: var(--brand2); color: #fff; }
.btn-lg { min-width: 240px; font-size: 1.05rem; }
.btn-ghost { background: #fff; color: var(--ink2); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--ink2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.linklike:hover { text-decoration: underline; }

/* Hesaplayıcı */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); overflow: hidden; margin: 8px 0 28px; }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand); color: #fff; padding: 12px 20px; }
.calc-head h2 { margin: 0; font-size: 1.1rem; color: #fff; letter-spacing: 0; }
.badge-est, .badge-ok { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-est { background: var(--est-soft); color: var(--est); }
.badge-ok { background: var(--green-soft); color: var(--green-d); }
.calc-form, .obp-form { padding: 20px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 680px) { .calc-grid { grid-template-columns: 1fr; } }
.test { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; margin: 0; min-width: 0; }
.test legend { font-weight: 700; color: var(--brand); padding: 0 6px; margin-left: -6px; }
.test legend small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 78px; gap: 10px; align-items: end; }
.row3 label, .dip label { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); }
.calc input[type="number"] { display: block; width: 100%; height: 48px; margin-top: 4px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; font: inherit; font-size: 17px; text-align: center; color: var(--ink); background: #fff; -moz-appearance: textfield; appearance: textfield; }
.calc input[type="number"]::-webkit-outer-spin-button, .calc input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgb(50 33 83 / 15%); }
.has-err input[type="number"] { border-color: var(--err); }
.netbox { text-align: right; padding-bottom: 8px; }
.netbox span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.netbox output { font-size: 1.35rem; font-weight: 800; color: var(--green-d); font-variant-numeric: tabular-nums; }
.blank { margin: 6px 0 2px !important; font-size: 13px; color: var(--muted) !important; }
.err { margin: 6px 0 0 !important; font-size: 14px; color: var(--err) !important; font-weight: 500; }
.dip { margin-top: 16px; max-width: 420px; }
.dip input[type="number"] { text-align: left; }
.chk { display: flex !important; gap: 10px; align-items: flex-start; margin-top: 10px; font-weight: 500 !important; }
.chk input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.calc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 520px) { .calc-btns .btn, .calc-btns .btn-ghost { width: 100%; } .calc-btns { flex-direction: column; } }
.result { border-top: 2px dashed var(--line); background: var(--bg); padding: 18px 20px 20px; outline: none; }
.result h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--ink); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.rcard span { display: block; font-size: 14px; color: var(--muted); }
.rcard strong { display: block; font-size: 1.9rem; line-height: 1.25; color: var(--brand); font-variant-numeric: tabular-nums; }
.rcard small { display: block; font-size: 13px; color: var(--muted); }
.rule-msg { background: var(--err-soft); color: var(--err) !important; padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.est-note { background: var(--est-soft); color: var(--est) !important; padding: 10px 14px; border-radius: 10px; font-size: 15px; margin-bottom: 0 !important; }
.ok-note { background: var(--green-soft); color: var(--green-d) !important; padding: 10px 14px; border-radius: 10px; font-size: 15px; margin-bottom: 0 !important; }

/* Geri sayım */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.countdown div { background: var(--brand); color: #fff; border-radius: 14px; text-align: center; padding: 14px 6px; }
.countdown b { display: block; font-size: clamp(1.6rem, 1rem + 3vw, 2.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 14px; opacity: 0.85; }

/* Kartlar */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; list-style: none; padding: 0 !important; margin: 1em 0; }
.cards li { margin: 0; }
.cards a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.cards a:hover { border-color: var(--brand2); }
.cards img { aspect-ratio: 800 / 563; object-fit: cover; width: 100%; display: block; background: var(--bg); }
.cards .ct { padding: 12px 14px 14px; }
.cards strong { display: block; color: var(--brand); line-height: 1.35; }
.cards span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* SSS ve ilgili */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 22px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: 1.02rem; color: var(--ink); }
.faq-a { padding: 0 16px 6px; }
.faq-a p { margin-top: 0; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.related li { margin: 0; }
.related a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.related a:hover { border-color: var(--brand2); }
.related strong { display: block; color: var(--brand); }
.related span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.disclaimer { margin-top: 32px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.disclaimer p { color: var(--muted); }

/* Form (iletişim) */
.cform { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 1.2em 0; }
.cform label { display: block; font-weight: 600; font-size: 15px; margin: 12px 0 4px; }
.cform input, .cform textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; }
.cform textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 1em 0; }
.alert-ok { background: var(--green-soft); color: var(--green-d); }
.alert-err { background: var(--err-soft); color: var(--err); }

/* Footer */
.site-footer { background: var(--brand); color: rgb(255 255 255 / 80%); margin-top: 40px; font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 24px; }
@media (max-width: 980px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.flogo { background: #fff; border-radius: 8px; padding: 6px 8px; width: 163px; height: auto; }
.site-footer p { margin: 10px 0; line-height: 1.6; }
.fh { color: #fff; font-weight: 700; margin: 0 0 8px !important; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a, .site-footer .linklike { color: rgb(255 255 255 / 80%); text-decoration: none; font-size: 14.5px; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.fbottom { border-top: 1px solid rgb(255 255 255 / 15%); padding-top: 12px; padding-bottom: 20px; font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.fbottom p { margin: 0; }

/* Çerez */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px rgb(0 0 0 / 20%); padding: 14px 16px; font-size: 14.5px; }
.consent p { margin: 4px 0; color: var(--ink2); line-height: 1.5; }
.consent-opts { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.consent-opts label { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.consent .btn, .consent .btn-ghost { min-height: 42px; padding: 0 14px; font-size: 14.5px; }
@media (max-width: 520px) { .consent-btns > * { flex: 1 1 45%; } .consent-btns .btn { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
