:root {
  /* Yerleşim: sola hizalı okuma akışı; "Çalışma alanları"nda solda omurga sütunu (C, T, L, S), sağda bölge metinleri */
  --paper: #F3F5F6;
  --surface: #FFFFFF;
  --ink: #15232B;
  --steel: #56656D;
  --rule: #D3DADE;
  --accent: #1D5A86;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE7F0;
  --bone: #E6E0D2;
  --bone-edge: #B4AA94;
  --alert: #9E2328;
  --alert-soft: #F7E6E4;
  --wa: #157F3F;
  --wa-ink: #FFFFFF;
  --ph: #FFEFA8;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --spine-col: 84px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E171C; --surface: #15222A; --ink: #E4EBEE; --steel: #9BA9B0; --rule: #283841;
    --accent: #86B6DC; --accent-ink: #0E171C; --accent-soft: #1B3242;
    --bone: #3B3830; --bone-edge: #71695A;
    --alert: #F0928C; --alert-soft: #341C1D;
    --wa: #188B46; --wa-ink: #FFFFFF; --ph: #4B4220;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E171C; --surface: #15222A; --ink: #E4EBEE; --steel: #9BA9B0; --rule: #283841;
  --accent: #86B6DC; --accent-ink: #0E171C; --accent-soft: #1B3242;
  --bone: #3B3830; --bone-edge: #71695A;
  --alert: #F0928C; --alert-soft: #341C1D;
  --wa: #188B46; --wa-ink: #FFFFFF; --ph: #4B4220;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.measure { max-width: 65ch; }
.ph { background: var(--ph); border-radius: 3px; padding: 0 .2em; }

/* Üst şerit */
.site-head { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--steel); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--surface); }

/* Açılış */
.hero { padding-block: 56px 48px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.title-line { margin-top: 10px; font-size: 1.2rem; font-weight: 500; color: var(--steel); }
.lede { margin-top: 20px; font-size: 1.15rem; max-width: 46ch; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.portrait { margin: 0; justify-self: end; width: 100%; max-width: 420px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.portrait img { display: block; width: 100%; height: auto; }
.visit-strip { margin: 32px 0 0; padding-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--rule); }
.visit-strip dt { font-size: 14px; color: var(--steel); }
.visit-strip dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.visit { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; }
.visit h2 { font-size: 1.15rem; }
.visit dl { margin: 16px 0 0; display: grid; gap: 14px; }
.visit dt { font-size: 14px; color: var(--steel); }
.visit dd { margin: 2px 0 0; font-weight: 500; }

/* Bölümler */
.section { padding-block: 56px; border-top: 1px solid var(--rule); scroll-margin-top: 8px; }
.section-intro { margin-top: 12px; color: var(--steel); max-width: 62ch; }

/* Omurga sütunu */
.regions { position: relative; margin-top: 28px; }
.regions::before {
  content: ""; position: absolute; top: 8px; bottom: 8px;
  left: calc(var(--spine-col) / 2 - 1px); width: 2px; background: var(--rule);
}
.region { display: grid; grid-template-columns: var(--spine-col) minmax(0, 1fr); column-gap: 24px; }
.stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-block: 30px 24px; }
.vb { display: block; background: var(--bone); border: 1px solid var(--bone-edge); border-radius: 3px; transition: background-color .2s, border-color .2s; }
.cervical .vb { width: 28px; height: 8px; }
.thoracic .vb { width: 36px; height: 9px; }
.lumbar .vb { width: 46px; height: 14px; border-radius: 4px; }
.sacrum { display: block; width: 46px; height: 40px; margin-top: 1px; }
.sacrum path { fill: var(--bone); stroke: var(--bone-edge); stroke-width: 1; transition: fill .2s, stroke .2s; }
.stack-label { margin-top: 8px; padding: 2px 4px; background: var(--paper); font-size: 12px; font-weight: 500; color: var(--steel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.region:hover .vb, .region:focus-within .vb { background: var(--accent-soft); border-color: var(--accent); }
.region:hover .sacrum path, .region:focus-within .sacrum path { fill: var(--accent-soft); stroke: var(--accent); }
.region-body { padding-block: 24px; border-top: 1px solid var(--rule); }
.region:first-child .region-body { border-top: 0; }
.region-body h3 small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--steel); }
.conds { margin: 16px 0 0; display: grid; gap: 14px; max-width: 62ch; }
.conds dt { font-weight: 600; }
.conds dd { margin: 2px 0 0; color: var(--steel); }
.region-link { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.chip { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-weight: 500; }

/* Endoskopik cerrahi */
.endo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; margin-top: 24px; align-items: start; }
.endo .measure p + p { margin-top: 14px; }
.endo-side { padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.endo-side h3 { font-size: 1.05rem; }
.endo-side h3 + * { margin-top: 10px; }
.endo-side * + h3 { margin-top: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.routes { margin: 0; display: grid; gap: 10px; }
.routes dt { font-weight: 600; }
.routes dd { margin: 0; font-size: 15px; color: var(--steel); }
.steps { list-style: none; counter-reset: adim; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; border-top: 2px solid var(--ink); }
.steps li { counter-increment: adim; display: grid; gap: 4px; align-content: start; padding-top: 14px; }
.steps li::before { content: counter(adim); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps strong { font-weight: 600; }
.steps span { font-size: 15px; color: var(--steel); }

.approach { margin-top: 32px; padding: 20px 24px; max-width: 72ch; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.approach h3 { font-size: 1.1rem; }
.approach p { margin-top: 8px; }

/* Acil belirtiler ve hazırlık */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.alert { padding: 24px; background: var(--alert-soft); border-left: 4px solid var(--alert); border-radius: 0 10px 10px 0; }
.alert h2, .bring h2 { font-size: 1.35rem; }
.alert ul { margin: 14px 0 0; padding-left: 20px; }
.alert li + li { margin-top: 6px; }
.alert .call { margin-top: 14px; font-weight: 600; color: var(--alert); }
.bring { padding-block: 24px; }
.bring ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.bring li { position: relative; padding-left: 22px; }
.bring li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }

/* Hakkımda */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-top: 24px; }
.about p + p { margin-top: 14px; }
.about-text p + p { margin-top: 14px; }
.cv h3 { font-size: 1.05rem; }
.cv * + h3 { margin-top: 26px; }
.tl { margin: 10px 0 0; border-top: 1px solid var(--rule); }
.tl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--rule); }
.tl dt { font-size: 15px; color: var(--steel); font-variant-numeric: tabular-nums; }
.tl dd { margin: 0; }
.tl small { display: block; font-size: 14px; color: var(--steel); }

/* Randevu */
.booking { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; margin-top: 24px; align-items: start; }
.booking form { display: grid; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 15px; font-weight: 500; }
.hint { font-size: 14px; font-weight: 400; color: var(--steel); }
.booking input:not([type="checkbox"]), .booking select, .booking textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
}
.booking textarea { min-height: 96px; resize: vertical; }
.booking input:focus, .booking select:focus, .booking textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.booking [aria-invalid="true"] { border-color: var(--alert); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.error { font-size: 14px; font-weight: 500; color: var(--alert); }
.error:empty { display: none; }
.preview { margin-top: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; }
.preview[hidden] { display: none; }
.preview h3 { font-size: 1.15rem; }
.bubble { margin: 12px 0 16px; padding: 14px 16px; white-space: pre-wrap; font-size: 15px; line-height: 1.5; background: var(--accent-soft); border-radius: 10px 10px 10px 2px; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status { margin-top: 12px; font-size: 14px; color: var(--steel); }
.side-note h3 { font-size: 1.1rem; }
.side-note h3 + p { margin-top: 6px; }
.side-note p + h3 { margin-top: 28px; }

/* İletişim */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.contact h3 { font-size: 1.1rem; margin-bottom: 10px; }
.contact p + p { margin-top: 10px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.hours td:last-child { text-align: right; }

/* Alt bilgi */
.site-foot { padding-block: 32px 104px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--steel); }
.site-foot .wrap { display: grid; gap: 10px; }
.site-foot summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.kvkk { display: grid; gap: 10px; max-width: 72ch; margin-top: 12px; color: var(--ink); }

/* Sabit WhatsApp düğmesi */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 20; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }

@media (max-width: 820px) {
  .hero .wrap, .pair, .about, .booking { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portrait { order: -1; justify-self: start; max-width: 260px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bring { padding-block: 0; }
}
@media (max-width: 820px) {
  .endo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  :root { --spine-col: 52px; }
  .hero { padding-block: 36px 40px; }
  .section { padding-block: 44px; }
  .region { column-gap: 14px; }
  .cervical .vb { width: 24px; }
  .thoracic .vb { width: 30px; }
  .lumbar .vb { width: 38px; }
  .sacrum { width: 38px; height: 34px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .visit-strip { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .booking form { padding: 18px; }
}
@media (max-width: 480px) {
  .tl div { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Bilgi sayfaları ===== */
.nav a[aria-current="page"] { color: var(--ink); }
.crumbs { padding-top: 22px; font-size: 14px; color: var(--steel); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--bone-edge); }
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--ink); }

.page-head { padding-block: 24px 44px; border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; grid-template-columns: var(--spine-col) minmax(0, 1fr); column-gap: 24px; align-items: start; }
.page-title .lede { max-width: 60ch; }
.byline { margin-top: 20px; font-size: 14px; color: var(--steel); display: grid; gap: 2px; }

.mini-spine { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 6px; }
.mini-spine .seg { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mini-spine .seg + .seg { margin-top: 3px; }
.mini-spine .cervical .vb { width: 20px; height: 6px; }
.mini-spine .thoracic .vb { width: 26px; height: 7px; }
.mini-spine .lumbar .vb { width: 34px; height: 10px; border-radius: 3px; }
.mini-spine .sacrum { width: 34px; height: 30px; }
.mini-spine .on .vb { background: var(--accent); border-color: var(--accent); }
.mini-spine .on .sacrum path { fill: var(--accent); stroke: var(--accent); }
.mini-spine .stack-label { margin-top: 10px; white-space: normal; text-align: center; line-height: 1.3; }

.doc { padding-block: 44px 72px; }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article { max-width: 68ch; }
.article h2 { margin-top: 48px; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); }
.article > h2:first-child { margin-top: 0; }
.article h3 { margin-top: 28px; font-size: 1.15rem; }
.article p, .article ul, .article dl { margin-top: 12px; }
.article h2 + p, .article h3 + p, .article h2 + ul, .article h3 + ul, .article h2 + dl, .article h3 + dl { margin-top: 14px; }
.article .ticks { gap: 8px; }
.defs { display: grid; gap: 16px; }
.defs dt { font-weight: 600; }
.defs dd { margin: 2px 0 0; }
.note-alert { margin-top: 32px; padding: 20px 24px; background: var(--alert-soft); border-left: 4px solid var(--alert); border-radius: 0 10px 10px 0; }
.note-alert h3 { margin-top: 0; font-size: 1.15rem; }
.note-alert ul { margin-top: 12px; padding-left: 20px; }
.note-alert li + li { margin-top: 4px; }
.note-alert p { margin-top: 12px; font-weight: 600; color: var(--alert); }
.article .steps-inline { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq { margin-top: 14px; border-top: 1px solid var(--rule); }
.faq div { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.faq dt { font-weight: 600; }
.faq dd { margin: 6px 0 0; }
.disclaimer { margin-top: 40px; font-size: 15px; color: var(--steel); }

.aside { position: sticky; top: 24px; display: grid; gap: 32px; }
.book-card { padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.book-card h2, .see-also h2 { font-size: 1.1rem; }
.book-card p { margin-top: 8px; font-size: 15px; color: var(--steel); }
.book-card .btn { width: 100%; margin-top: 16px; }
.book-card .alt { margin-top: 14px; display: grid; gap: 6px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.see-also ul { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.see-also li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 500; text-decoration: none; }
.see-also li a:hover { color: var(--accent); }
.all-link { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; }

.more-link { display: inline-block; margin-top: 18px; font-weight: 500; }
.conds dt a { color: var(--ink); text-decoration-color: var(--rule); text-decoration-thickness: 1px; }
.conds dt a:hover { color: var(--accent); text-decoration-color: currentColor; }

@media (max-width: 900px) {
  .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .aside { position: static; max-width: 68ch; }
}
@media (max-width: 600px) {
  .page-head .wrap { column-gap: 14px; }
  .page-head { padding-block: 18px 32px; }
  .mini-spine .cervical .vb { width: 16px; height: 5px; }
  .mini-spine .thoracic .vb { width: 20px; height: 5px; }
  .mini-spine .lumbar .vb { width: 26px; height: 8px; }
  .mini-spine .sacrum { width: 26px; height: 22px; }
  .mini-spine .stack-label { font-size: 11px; }
  .doc { padding-block: 32px 56px; }
}
@media (max-width: 480px) {
  .article .steps-inline { grid-template-columns: minmax(0, 1fr); }
}
