/* ===== Tema değişkenleri ===== */
:root {
  --bg: #f3f8fe;
  --bg-alt: #e9f1fb;
  --surface: #ffffff;
  --text: #0e2038;
  --muted: #5a6e88;
  --line: #d8e4f3;
  --primary: #1b6fd9;
  --primary-600: #1558b3;
  --primary-soft: #dcebfd;
  --navy: #0b2447;
  --accent: #f2a81d;
  --shadow: 0 10px 30px rgba(15, 55, 110, .10);
  --radius: 16px;
  --hero-from: #0b2f63;
  --hero-to: #1b6fd9;
}
:root[data-theme="dark"] {
  --bg: #08111f;
  --bg-alt: #0c1830;
  --surface: #11213b;
  --text: #e6eefb;
  --muted: #93a7c4;
  --line: #213a5f;
  --primary: #4b97f5;
  --primary-600: #6aaaf8;
  --primary-soft: #14305a;
  --navy: #050c18;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --hero-from: #06101f;
  --hero-to: #12376e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s, color .25s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ===== Butonlar ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 inherit; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #2b1c00; }
.btn-accent:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--navy)); color: #fff;
}
.logo small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-top: -3px; }
.nav-links { display: flex; gap: .3rem; list-style: none; }
.nav-links a { padding: .5rem .9rem; border-radius: 999px; font-weight: 500; color: var(--muted); transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.menu-btn { display: none; }
#theme-toggle .moon { display: none; }
:root[data-theme="dark"] #theme-toggle .moon { display: block; }
:root[data-theme="dark"] #theme-toggle .sun { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 5.5rem 0 7rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px; padding: 1.6rem; backdrop-filter: blur(10px);
}
.hero-card h3 { font-size: 1rem; margin-bottom: 1rem; color: rgba(255,255,255,.8); font-weight: 600; }
.hero-card li { list-style: none; display: flex; gap: .7rem; align-items: center; padding: .65rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-card li:first-of-type { border-top: 0; }
.hero-card .dot { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }

.stats {
  position: relative; margin-top: -3.2rem; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 1.9rem; color: var(--primary); letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ===== Bölümler ===== */
section.block { padding: 5rem 0; }
section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: .4rem; }
.section-head .eyebrow { color: var(--primary); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 1.1rem; font-size: 1.4rem;
}
.card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; }

.model-card { display: flex; gap: 1.2rem; align-items: flex-start; }
.model-card.hl { background: linear-gradient(135deg, var(--primary), var(--navy)); color: #fff; border: 0; }
.model-card.hl p, .model-card.hl li { color: rgba(255,255,255,.85); }
.model-card ul { margin-top: .8rem; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.model-card.hl .ic { background: rgba(255,255,255,.18); color: #fff; }

/* ===== Proje kartları ===== */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: .25s; display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project .thumb { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .thumb img, .project:hover .ph { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: .3rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; background: rgba(8,20,40,.72); color: #fff; backdrop-filter: blur(6px);
}
.project .body { padding: 1.1rem 1.2rem 1.3rem; }
.project h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .85rem; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }

/* Görsel gelene kadar kullanılan cephe deseni */
.ph {
  width: 100%; height: 100%; transition: transform .4s;
  background:
    linear-gradient(180deg, rgba(255,255,255,.0) 55%, rgba(0,0,0,.25)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.22) 34px 40px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(0,0,0,.14) 30px 34px),
    linear-gradient(135deg, var(--t1), var(--t2));
}
.ph.stone { --t1: #c9a768; --t2: #8c6e3c; }
.ph.ceramic { --t1: #6c4a3f; --t2: #c9b8a6; }
.ph.sinter { --t1: #3a4a5c; --t2: #8ea4bb; }

/* ===== Filtre ===== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; align-items: center; }
.chip {
  padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer;
}
.chip.active, .chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.search {
  margin-left: auto; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); min-width: 220px; font: inherit;
}

/* ===== Süreç ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font-size: 2.2rem; font-weight: 800; color: var(--primary-soft); -webkit-text-stroke: 1px var(--primary);
  margin-bottom: .4rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ===== CTA ===== */
.cta {
  border-radius: 24px; padding: 3.2rem; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 1.6rem; }

/* ===== Sayfa başlığı ===== */
.page-hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; padding: 3.6rem 0; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.page-hero p { color: rgba(255,255,255,.82); margin-top: .5rem; max-width: 620px; }

/* ===== Form / iletişim ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.6rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-list { list-style: none; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ic { margin: 0; flex: none; width: 44px; height: 44px; font-size: 1.1rem; }
.info-list small { display: block; color: var(--muted); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(4,12,26,.7); display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 20px; width: min(760px, 100%); max-height: 92vh; overflow: auto; }
.modal-box .thumb { aspect-ratio: 16/8; }
.modal-box .content { padding: 1.6rem; }
.modal-close { float: right; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #b7c6de; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; font-size: .95rem; }
.site-footer a { display: block; padding: .2rem 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ===== Duyarlı ===== */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); padding: 1rem; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav .btn { display: none; }
  .search { margin-left: 0; width: 100%; }
  .row { grid-template-columns: 1fr; }
}

/* ===== Hero tam genişlik fotoğraf ===== */
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,255,255,.07) 70px 76px),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(0,0,0,.10) 56px 60px);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,28,60,.9) 0%, rgba(11,47,99,.72) 45%, rgba(11,47,99,.25) 100%); }
.hero-bg.photo::after { background: linear-gradient(100deg, rgba(6,20,44,.88) 0%, rgba(8,32,70,.65) 50%, rgba(8,32,70,.2) 100%); }
:root[data-theme="dark"] .hero-bg::after { background: linear-gradient(100deg, rgba(3,8,18,.94) 0%, rgba(5,14,30,.78) 50%, rgba(5,14,30,.4) 100%); }
.hero::before { z-index: 1; }
.hero-grid { z-index: 2; }

/* ===== Durum / sayaç ===== */
.status { padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.status.done { background: #d9f4e4; color: #11663a; }
.status.going { background: #fff0cf; color: #8a5a00; }
:root[data-theme="dark"] .status.done { background: #123b27; color: #7be0a8; }
:root[data-theme="dark"] .status.going { background: #4a3708; color: #ffd37a; }
.project .count { position: absolute; right: 12px; bottom: 12px; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(8,20,40,.72); color: #fff; }

/* ===== Galeri / kaydırmalı slider ===== */
.modal-box { position: relative; }
.slider { position: relative; background: #000; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slideimg { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 9; }
.slideimg img { width: 100%; height: 100%; object-fit: cover; }
.slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.88); color: #0b2447; display: grid; place-items: center; }
.slider .nav:hover { background: #fff; }
.slider .prev { left: 12px; } .slider .next { right: 12px; }
.slider .modal-x { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.9); color: #0b2447; border: 0; }
.slide-n { position: absolute; left: 12px; bottom: 12px; padding: .2rem .65rem; border-radius: 999px; background: rgba(8,20,40,.7); color: #fff; font-size: .78rem; font-weight: 600; }
.thumbs { display: flex; gap: .5rem; padding: .7rem 1.2rem 0; overflow-x: auto; }
.thumbs button { flex: none; width: 74px; height: 52px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .65; background: none; }
.thumbs button.on { border-color: var(--primary); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Sabit hızlı iletişim ===== */
.dock { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: .6rem; }
.dock-btn { display: flex; align-items: center; gap: .5rem; padding: .75rem 1.05rem; border-radius: 999px; color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s; }
.dock-btn:hover { transform: translateY(-2px); }
.dock-btn.wa { background: #1faa59; }
.dock-btn.call { background: var(--primary); }
.dock-btn .icon { width: 1.4em; height: 1.4em; }
@media (max-width: 700px) {
  .dock { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding: .55rem; background: var(--surface); border-top: 1px solid var(--line); }
  .dock-btn { flex: 1; justify-content: center; border-radius: 12px; margin: 0 .3rem; box-shadow: none; }
  body { padding-bottom: 68px; }
}

/* ===== Form: honeypot, KVKK ===== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.check a { color: var(--primary); text-decoration: underline; }
.form-err { margin-top: 1rem; color: #d33a3a; font-weight: 600; }
.prose h2 { margin: 1.6rem 0 .5rem; font-size: 1.2rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: .5rem; }
.prose ul { padding-left: 1.2rem; }

/* ===== PHP sürümü eklemeleri ===== */
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.hero-card h2 { font-size: 1rem; margin-bottom: 1rem; color: rgba(255,255,255,.85); font-weight: 600; }
.hero h1 { position: relative; }
a.card { display: block; color: inherit; }
a.card .more { display: inline-block; margin-top: .9rem; color: var(--primary); font-weight: 600; font-size: .9rem; }
.project .thumb { display: block; }
.project h3 a:hover { color: var(--primary); }
.filters .sep { width: 1px; height: 24px; background: var(--line); margin: 0 .3rem; }
.filters a.chip { display: inline-block; }
.city-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.city-row b { margin-right: .3rem; }
.form-ok { margin-bottom: 1rem; color: #11663a; font-weight: 600; background: #d9f4e4; padding: .7rem 1rem; border-radius: 10px; }
:root[data-theme="dark"] .form-ok { background: #123b27; color: #7be0a8; }
.form-err { margin: 0 0 .8rem; background: #fde4e4; padding: .6rem 1rem; border-radius: 10px; }
:root[data-theme="dark"] .form-err { background: #4a1c1c; color: #ffb1b1; }

/* Sayfa yolu */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; margin-bottom: .8rem; color: rgba(255,255,255,.75); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a:hover { text-decoration: underline; }

/* Kısaca / olgu listesi (yapay zekâ ve okuyucu için net bilgi) */
.about-fact { max-width: 900px; }
.about-fact h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin-bottom: .8rem; }
.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.4rem; }
.facts { display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.facts dd a { color: var(--primary); }
.facts.compact > div { grid-template-columns: 100px 1fr; padding: .6rem 0; border-color: var(--line); }
.facts.compact { border: 0; background: none; border-radius: 0; }

/* SSS */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq .ans p { margin-bottom: .5rem; }

/* Detay sayfaları */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.side-card { position: sticky; top: 90px; }
.side-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.side-link { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.side-link:hover { color: var(--primary); }
.prose h2 { margin: 1.8rem 0 .6rem; font-size: 1.35rem; letter-spacing: -.01em; }
.prose h3 { margin: 1.2rem 0 .4rem; font-size: 1.1rem; }
.prose p { margin-bottom: .9rem; }
.prose ul { margin-bottom: 1rem; }
.slideimg .ph { aspect-ratio: 16 / 9; height: auto; }
.page-hero { position: relative; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .facts > div { grid-template-columns: 1fr; gap: .1rem; }
}

.map-links { display: grid; gap: .6rem; margin-top: 1rem; }
.map-links .btn { justify-content: center; }

/* ===== Proje galerisi: karolar + tam ekran slayt ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(120px, 15vw, 180px); gap: 1.1rem; padding: .4rem .2rem 1rem; }
.gtile { display: block; position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gtile:hover img { transform: scale(1.05); }
.gtile:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.gallery .gtile:first-child { grid-column: span 2; grid-row: span 2; }
.gallery.single { grid-template-columns: 1fr; grid-auto-rows: auto; }
.gallery.single .gtile { aspect-ratio: 16 / 10; }
.gallery.single .gtile:first-child { grid-column: auto; grid-row: auto; }
.hint-small { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 30vw; gap: .8rem; }
  .gallery .gtile:first-child { grid-column: span 2; grid-row: span 2; }
}
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4, 10, 22, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 94vw; text-align: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: #cfe0f7; margin-top: .7rem; font-size: .9rem; }
.lb-close, .lb-nav { position: absolute; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 50%; width: 46px; height: 46px; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 16px; right: 16px; font-size: 1.1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; padding-bottom: 4px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (max-width: 600px) { .lb-nav { width: 40px; height: 40px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } }

/* Galeri karoları: yumuşak gölge, yuvarlak köşe, hover'da kalkma */
.gtile { border-radius: 18px; box-shadow: 0 12px 24px -8px rgba(27, 111, 217, .32), 0 2px 6px rgba(11, 36, 71, .12); transition: transform .28s ease, box-shadow .28s ease; z-index: 1; }
.gtile:hover { transform: translateY(-6px); z-index: 2; box-shadow: 0 22px 36px -10px rgba(27, 111, 217, .42), 0 4px 10px rgba(11, 36, 71, .16); }
.gtile:hover img { transform: scale(1.06); }
:root[data-theme="dark"] .gtile { border: 1px solid var(--line); box-shadow: 0 14px 26px -8px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .gtile:hover { border-color: var(--primary); box-shadow: 0 24px 40px -10px rgba(0, 0, 0, .85), 0 0 0 1px rgba(75, 151, 245, .4); }
@media (prefers-reduced-motion: reduce) { .gtile, .gtile img { transition: none; } .gtile:hover { transform: none; } }
