:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #25292b;
  --muted: #5d6669;
  --accent: #1f5f5b;
  --accent-soft: #e4efed;
  --line: #e3ded6;
  --warn-bg: #fbf3e2;
  --warn-line: #e6cf9a;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191a;
    --surface: #1d2324;
    --text: #e8ebea;
    --muted: #a3adae;
    --accent: #7fc8c1;
    --accent-soft: #223533;
    --line: #2f3839;
    --warn-bg: #2b2618;
    --warn-line: #5c4f2a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 900px; margin-inline: auto; padding-inline: 20px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; padding-block: 14px 10px; }
.brand { color: var(--text); text-decoration: none; display: flex; flex-direction: column; line-height: 1.25; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand small { color: var(--muted); font-size: .8rem; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 20px; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
.menu a { color: var(--muted); text-decoration: none; font-size: .95rem; padding-block: 4px; }
.menu a:hover { color: var(--accent); }
.langs { display: flex; flex-wrap: wrap; gap: 4px; }
.langs a {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  color: var(--muted); padding: 4px 7px; border-radius: 6px; border: 1px solid transparent;
}
.langs a:hover { border-color: var(--line); }
.langs a[aria-current] { background: var(--accent-soft); color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.1rem; }
main > section { padding-block: 34px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }

.hero { display: flex; gap: 26px; align-items: center; padding-block: 44px 34px; }
.mono {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font: 700 2.1rem var(--serif); letter-spacing: .02em;
}
.mono.sm { width: 52px; height: 52px; font-size: 1.1rem; }
.spec { color: var(--accent); font-weight: 600; margin: 0 0 .6em; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0; }

.cat {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 1.8em 0 .8em;
}
.cat:first-of-type { margin-top: .6em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); }
.card h4 a { color: var(--text); text-decoration: none; }
.card h4 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0 0 1em; color: var(--muted); font-size: .96rem; }
.more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--accent); }
.tool { margin: 1.6em 0 0; font-weight: 600; }

.notice, .disc { border-radius: 12px; padding: 18px 22px; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); margin-top: 22px; }
.disc { background: var(--accent-soft); margin-block: 34px; }
.notice h3, .disc h2 { font-size: 1.05rem; font-family: var(--sans); }
.notice ul { margin: 0; padding-inline-start: 1.2em; }
.notice li + li { margin-top: .3em; }
.disc p { margin: 0; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding-block: 14px; }
details p { margin: 0 0 16px; color: var(--muted); }

dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
dt { font-weight: 600; }
dd { margin: 0; }
.edu { padding-inline-start: 1.2em; }

.post { padding-block: 34px 0; max-width: 720px; }
.post h2 { margin-top: 1.5em; font-size: 1.25rem; }
.post .lead { color: var(--text); }
.crumb { margin: 0 0 1em; font-size: .92rem; }
.meta, .src { color: var(--muted); font-size: .9rem; }
.src { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.author { display: flex; gap: 14px; align-items: center; margin-top: 1.4em; }
.author p { margin: 0; font-size: .95rem; color: var(--muted); }
.author strong { color: var(--text); }
.others h2 { font-size: 1.15rem; }
.others ul { margin: 0; padding-inline-start: 1.2em; }
.others li + li { margin-top: .35em; }

.calc { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-top: 1.6em; }
.calc label { flex-basis: 100%; font-weight: 600; }
.calc input, .calc button { font: inherit; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); }
.calc input { background: var(--surface); color: var(--text); }
.calc button { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; cursor: pointer; }
.out { margin-top: 1.2em; min-height: 1.5em; }
.out p { margin: 0 0 .3em; font-size: 1.1rem; }

.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .86rem; padding-block: 22px; }
.foot p { margin: 0 0 .5em; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 30px 24px; }
  .mono { width: 76px; height: 76px; font-size: 1.6rem; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 10px; }
}

/* ---- Renkli tema ---- */
.top { border-top: 6px solid; border-image: linear-gradient(90deg, #d2527a, #e8964a, #1f7a74, #3b7ea1, #7a55b5) 1; }
.menu a:hover, .menu a:focus-visible { color: #d2527a; }

.hero {
  margin-top: 26px; padding: 40px 34px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #1f7a74 0%, #3b7ea1 50%, #8b5fa8 100%);
  box-shadow: 0 14px 34px -18px rgba(59, 126, 161, .7);
}
.hero .mono { background: rgba(255, 255, 255, .2); color: #fff; border: 2px solid rgba(255, 255, 255, .45); }
.hero .spec { color: #ffe3c2; }
.hero .lead { color: #f1f8f7; }
main > section:first-of-type { border-top: 0; }

.c-preg { --c: #c9406c; --cs: #fdeaf0; }
.c-gyn  { --c: #1f7a74; --cs: #e1f4f1; }
.c-aes  { --c: #7a55b5; --cs: #f0e9fb; }
.grp + .grp { margin-top: 30px; }
.grp .cat {
  display: inline-block; color: #fff; background: var(--c);
  padding: 5px 14px; border-radius: 999px; margin: 0 0 14px;
}
.grp .card { border-top: 5px solid var(--c); background: linear-gradient(180deg, var(--cs), var(--surface) 70%); }
.grp .card:hover { border-color: var(--c); box-shadow: 0 10px 24px -16px var(--c); }
.grp .more { color: var(--c); }
.tool a {
  display: inline-block; text-decoration: none; color: #fff; padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(90deg, #e8964a, #d2527a);
}

#about h2, #faq h2, #contact h2, #posts h2 { display: inline-block; padding-bottom: 4px; border-bottom: 4px solid #e8964a; }
details[open] { border-color: #3b7ea1; }
summary::marker { color: #d2527a; }
.post h1 { color: var(--accent); }
.post h2 { border-inline-start: 5px solid #d2527a; padding-inline-start: 12px; }
.post h2:nth-of-type(2n) { border-color: #3b7ea1; }
.post h2:nth-of-type(3n) { border-color: #7a55b5; }
.calc button { background: linear-gradient(90deg, #1f7a74, #3b7ea1); border: 0; color: #fff; }
.foot { border-top: 4px solid; border-image: linear-gradient(90deg, #7a55b5, #3b7ea1, #1f7a74, #e8964a, #d2527a) 1; }

@media (prefers-color-scheme: dark) {
  .c-preg { --c: #ef86a7; --cs: #33212a; }
  .c-gyn  { --c: #6fc9c1; --cs: #1c3130; }
  .c-aes  { --c: #b79be6; --cs: #2a2438; }
  .grp .cat { color: #15191a; }
}
@media (max-width: 600px) {
  .hero { padding: 28px 22px; }
}

/* ---- Logo ---- */
.brand img { display: block; height: 58px; width: auto; }
.mono img { width: 74%; height: auto; display: block; }
.hero .mono { background: #fff; border: 0; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.mono.sm { background: #fff; border: 1px solid var(--line); }
.foot-logo { display: block; height: 54px; width: auto; margin-bottom: 14px; }
@media (max-width: 560px) { .brand img { height: 44px; } }
@media (prefers-color-scheme: dark) {
  .brand img, .foot-logo { filter: brightness(1.35) saturate(.9); }
}

/* ---- Tedaviler ---- */
.c-lap { --c: #2f6f96; --cs: #e4f0f8; }
.treat { padding-block: 34px 0; }
.treat h1 { color: var(--accent); }
.treat .lead { color: var(--text); max-width: 680px; }
.treat .notice { margin: 22px 0 6px; }
.treat .notice h2 { font-size: 1.05rem; font-family: var(--sans); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jump a { text-decoration: none; color: #fff; background: var(--c); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.treat .grp { margin-top: 34px; scroll-margin-top: 20px; }
.treat .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.treat .card { padding: 16px 18px; }
.treat .card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.treat .card h3 a { color: var(--text); text-decoration: none; }
.treat .card h3 a::after { content: ""; position: absolute; inset: 0; }
.treat .card p { font-size: .92rem; margin-bottom: .7em; }
.treat .card p:last-child { margin-bottom: 0; }
.treat .more { font-size: .86rem; }
@media (prefers-color-scheme: dark) {
  .c-lap { --c: #7fb6dc; --cs: #1b2a36; }
  .jump a { color: #14181c; }
}

/* ---- Sosyal medya ---- */
.socs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soc {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 12px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); transition: transform .15s, box-shadow .15s;
}
.soc:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .55); }
.soc svg { display: block; flex: none; }
.soc-instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.soc-facebook { background: #1877f2; }
.soc.ico { padding: 0; width: 40px; height: 40px; justify-content: center; }
.foot .socs { margin-bottom: 16px; }
#contact dl { align-items: center; }
@media (prefers-reduced-motion: reduce) { .soc { transition: none; } .soc:hover { transform: none; } }

/* ---- Açılır menü ---- */
.top { position: relative; z-index: 20; }
.has-sub { position: relative; }
.has-sub > a span { font-size: .75em; }
.sub {
  display: none; position: absolute; top: 100%; inset-inline-start: -16px; z-index: 30;
  width: min(760px, calc(100vw - 40px)); padding: 20px 22px; gap: 8px 26px;
  grid-template-columns: 1.25fr 1fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: grid; }
.sub div { display: flex; flex-direction: column; border-top: 4px solid var(--c); padding-top: 10px; }
.menu .sub a { color: var(--text); font-size: .9rem; padding-block: 3px; }
.menu .sub a:hover, .menu .sub a:focus-visible { color: var(--c); }
.menu .sub a.sub-h { color: var(--c); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 760px) { .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; } }

/* ---- Rehber ve araçlar ---- */
.has-sub.one .sub { width: 290px; grid-template-columns: 1fr; }
.tools-h { margin: 1.8em 0 .2em; font-size: 1.05rem; }
.tool { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .8em; }
.tool a:nth-child(2n) { background: linear-gradient(90deg, #1f7a74, #3b7ea1); }
.tool a:nth-child(3n) { background: linear-gradient(90deg, #7a55b5, #3b7ea1); }
.post.wide { max-width: none; }
.post.wide .lead { max-width: 720px; }
.crumb { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.print {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); color: var(--accent); border: 1px solid var(--line);
}
.print:hover { border-color: var(--accent); }
.tri { margin-top: 30px; scroll-margin-top: 20px; }
.post .tri h2 { border: 0; padding: 5px 16px; display: inline-block; border-radius: 999px; background: var(--c); color: #fff; font-family: var(--sans); font-size: 1rem; }
.wks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.wks li {
  display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: baseline; scroll-margin-top: 20px;
  background: linear-gradient(90deg, var(--cs), var(--surface) 60%); border: 1px solid var(--line);
  border-inline-start: 5px solid var(--c); border-radius: 10px; padding: 12px 16px;
}
.wks li:target { outline: 3px solid var(--c); outline-offset: 2px; }
.wks .wk { font-weight: 700; color: var(--c); }
.wks p { margin: 0; }
.post .notice p { margin: 0; }
.gloss { grid-template-columns: minmax(130px, max-content) 1fr; margin-top: 1.4em; }
.gloss dt { color: var(--accent); }
.calc input[type=number] { width: 6em; }
@media (max-width: 600px) { .wks li { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-color-scheme: dark) { .post .tri h2 { color: #14181c; } }
@media print {
  .top, .foot .socs, .others, .print, .jump, .skip, .langs, .menu { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .wks li, .card { break-inside: avoid; background: #fff; }
  .foot { border: 0; margin-top: 16px; }
}

.all { margin: 22px 0 0; }
.all a { font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--accent); display: inline-block; }
.all a:hover { background: var(--accent); color: var(--bg); }
.treat .grp .card h4 { font-size: 1.05rem; }

/* ---- Yapım aşaması ekranı ---- */
.gate { display: none; }
.locked body > *:not(.gate) { display: none !important; }
.locked .gate {
  display: grid; place-items: center; min-height: 100vh; padding: 24px;
  background: linear-gradient(135deg, #fdeaf0 0%, #f0e9fb 50%, #e1f4f1 100%);
}
.gate-box {
  width: min(520px, 100%); background: #fff; color: #2b2330; border-radius: 24px; padding: 40px 34px 28px; text-align: center;
  box-shadow: 0 24px 60px -24px rgba(122, 85, 181, .45); border-top: 6px solid #b85a80;
}
.gate-box img { width: min(340px, 100%); height: auto; margin: 0 auto 22px; display: block; }
.gate-box h1 { font-size: 1.6rem; color: #b0527a; margin-bottom: .5em; }
.gate-box > p { color: #5c5262; margin: 0 0 26px; }
.gate-box label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: #5c5262; }
.gate-box form div { display: flex; gap: 10px; justify-content: center; }
.gate-box input {
  font: inherit; font-size: 1.15rem; letter-spacing: .3em; text-align: center; width: 190px; padding: 11px 12px;
  border: 2px solid #e6d5de; border-radius: 12px; background: #fff; color: #2b2330;
}
.gate-box input:focus { outline: none; border-color: #b85a80; }
.gate-box button {
  font: inherit; font-weight: 700; color: #fff; border: 0; border-radius: 12px; padding: 11px 24px; cursor: pointer;
  background: linear-gradient(90deg, #d2527a, #8b5fa8);
}
.gate-err { min-height: 1.4em; margin: 10px 0 0; color: #c0392b; font-size: .9rem; }
.gate-box .gate-foot { margin: 18px 0 0; font-size: .8rem; color: #8a7f90; }
