/* =========================================================
   Başar Vinç Makina — BSR Crane
   Tasarım dili: çelik konstrüksiyon + iş güvenliği sarısı.
   Tek yazı ailesi (Archivo, değişken genişlik): başlıklar geniş,
   gövde normal genişlikte.
   ========================================================= */

/* Archivo, sitenin ihtiyacına göre küçültüldü (tools/build-fonts.py): kalınlık 400–900, genişlik %100–125.
   Türkçe dosyası yalnızca Ğ ğ İ Ş ş içerir ve yalnızca bu harfler sayfada geçerse indirilir. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-tr-v2.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 100% 125%; font-display: swap;
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-v2.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 100% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #161d27;          /* çelik lacivert-siyah */
  --ink-2: #222c39;
  --steel: #556171;        /* ikincil metin */
  --line: #d8dde3;
  --plate: #eef1f4;        /* galvaniz sac */
  --page: #f7f8fa;
  --white: #fff;
  --signal: #ffc000;       /* BSR sarısı */
  --signal-deep: #e5a900;
  --rail: #1f5a96;         /* bağlantı rengi */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wide: 118%;            /* başlık genişliği */

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.1rem + 1vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.3rem + 4vw, 4.25rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--rail); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.i { width: 1.15em; height: 1.15em; flex: none; }

h1, h2, h3, h4, h5 {
  font-stretch: var(--wide);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 750; }
h4 { font-size: var(--step-1); font-weight: 700; }
h5 { font-size: var(--step-0); font-weight: 700; font-stretch: 100%; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--signal); color: var(--ink); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head h2 { margin: 0; max-width: 22ch; }
.section__head p { margin: 0; max-width: 52ch; color: var(--steel); }
.muted { color: var(--steel); }

/* ---------- Düğmeler ---------- */
.btn {
  --bg: var(--signal); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bg); border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { --bg: var(--signal-deep); }
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i--move { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --bg: rgba(255,255,255,.08); }
.on-light .btn--ghost:hover { --bg: var(--plate); }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--dark:hover { --bg: var(--ink-2); }
.btn--wa { --bg: #1f9d55; --fg: #fff; }
.btn--wa:hover { --bg: #188247; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Üst bar & başlık ---------- */
.topbar { background: var(--ink); color: #c9d0d9; font-size: var(--step--1); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--white); }
.topbar__list { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar__social { display: flex; gap: .9rem; }
@media (max-width: 760px) { .topbar__addr, .topbar__social { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-2);
  color: var(--white);
  transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,.6); background: rgba(22, 29, 39, .96); }
/* Bulanıklık ayrı katmanda: header üzerinde backdrop-filter olsaydı mobil menünün (position: fixed) konumu header kutusuna hapsolurdu */
.header.is-scrolled::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); transition: min-height .3s; }
.header.is-scrolled .wrap { min-height: 64px; }
.brand { display: block; flex: none; }
.brand img { width: 172px; height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border: 0; background: none; cursor: pointer;
  color: #e4e8ed; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: var(--radius);
  position: relative;
}
.nav__link::after, .nav__toggle::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item--has-sub:hover > .nav__toggle::after, .nav__toggle[aria-expanded="true"]::after, .nav__toggle.is-current::after { transform: scaleX(1); }
.nav__link:hover, .nav__toggle:hover { color: var(--white); }
.nav__toggle .i { width: 1rem; height: 1rem; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__item { position: relative; }

.subnav {
  position: absolute; top: calc(100% + 10px); left: -1rem; z-index: 5;
  width: min(620px, 80vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: .5rem; margin: 0; list-style: none;
  background: var(--white); color: var(--ink);
  border-top: 4px solid var(--signal);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 48px -16px rgba(10, 16, 24, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.nav__item--has-sub:hover .subnav, .nav__item--has-sub:focus-within .subnav, .subnav.is-open {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.subnav a { display: flex; align-items: center; gap: .8rem; padding: .55rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 650; line-height: 1.25; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--plate); }
.subnav img { width: 58px; height: 42px; object-fit: cover; border-radius: 2px; }

.header__cta { display: flex; align-items: center; gap: .75rem; }
.header__phone { color: var(--white); text-decoration: none; font-weight: 700; display: inline-flex; gap: .45rem; align-items: center; white-space: nowrap; font-stretch: 105%; }
.header__phone .i { color: var(--signal); }
.menu-btn { display: none; }
.nav__mobile-cta { display: none; }

.nav__link, .nav__toggle, .header__cta .btn { white-space: nowrap; }
@media (max-width: 1320px) { .header__phone span { display: none; } .header .wrap { gap: 1rem; } .nav__link, .nav__toggle { padding-inline: .6rem; } .nav__link::after, .nav__toggle::after { left: .6rem; right: .6rem; } }
@media (max-width: 1120px) {
  .header__cta { margin-left: auto; } /* telefon simgesi solda, menü düğmesi en sağda */
  .menu-btn {
    order: 3; margin-left: .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: var(--radius); background: rgba(255,255,255,.08); color: var(--white); cursor: pointer;
  }
  .menu-btn .i { width: 26px; height: 26px; }
  .header__cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; margin: 0;
    background: var(--ink); overflow-y: auto; padding: 1rem var(--gutter) 2rem;
    transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: 1rem .25rem; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav__link::after, .nav__toggle::after { display: none; }
  .subnav { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; background: transparent; padding: .25rem 0 .75rem; display: none; opacity: 1; visibility: visible; transform: none; }
  .subnav.is-open { display: grid; }
  .nav__item--has-sub:hover .subnav:not(.is-open) { display: none; }
  .subnav a { color: #e4e8ed; }
  .subnav a:hover, .subnav a[aria-current="page"] { background: rgba(255,255,255,.06); }
  .nav__mobile-cta { display: grid; gap: .75rem; margin-top: 1.5rem; }
  .nav__mobile-cta .btn--ghost { color: var(--white); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand img { width: 140px; } .header__phone { display: none; } }

/* ---------- Hero: köprü kirişi + kanca ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--ink);
  /* üst bar (38) + header + rakam şeridi (en fazla ~100) ile birlikte ilk ekrana sığsın */
  min-height: clamp(440px, calc(100svh - 38px - var(--header-h) - 100px), 760px);
  display: grid; align-items: end;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22,29,39,.94) 0%, rgba(22,29,39,.78) 42%, rgba(22,29,39,.25) 75%, rgba(22,29,39,.1) 100%),
    linear-gradient(0deg, rgba(22,29,39,.85) 0%, rgba(22,29,39,0) 45%);
}
.hero__inner { padding-block: clamp(4.5rem, 8vh + 2rem, 9rem) clamp(2.25rem, 5vh, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.hero__copy { max-width: 760px; }
.hero h1 { margin-bottom: .35em; font-stretch: 125%; }
.hero__lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: #d5dbe2; max-width: 56ch; margin-bottom: 2rem; }

/* Kiriş: sahnenin üstünden geçen sarı köprü */
.beam { position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 1; pointer-events: none; }
.beam__girder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.18) 46px 48px),
    linear-gradient(180deg, #ffd34d 0%, var(--signal) 45%, #d99f00 100%);
  box-shadow: 0 10px 18px -8px rgba(0,0,0,.7);
  transform-origin: left; animation: girder 1s var(--ease) both;
}
.beam__girder::before, .beam__girder::after { /* uç plakaları: ikaz şeridi */
  content: ""; position: absolute; top: 0; bottom: -8px; width: 34px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 7px, var(--signal) 7px 14px);
}
.beam__girder::before { left: 0; } .beam__girder::after { right: 0; }
.trolley {
  position: absolute; top: 100%; right: max(var(--gutter), (100% - var(--max)) / 2); /* plaka, içerik alanının sağ kenarına hizalı */
  display: flex; flex-direction: column; align-items: center;
  animation: trolley 1.4s .5s var(--ease) both;
}
.trolley__body { width: 64px; height: 16px; background: var(--ink); border: 2px solid var(--signal); border-top: 0; }
.trolley__cable { width: 2px; background: linear-gradient(#9aa4b1, #6d7886); height: clamp(60px, 22vw - 100px, 210px); transform-origin: top; animation: cable 1s 1.7s var(--ease) both; }
.trolley__hook { width: 34px; color: #b9c2cc; margin-top: -2px; animation: hookIn .6s 2.4s both; }
.plate {
  margin-top: -6px; background: var(--signal); color: var(--ink);
  padding: .55rem .85rem .6rem; border: 2px solid var(--ink); border-radius: 3px;
  text-align: center; line-height: 1.1; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7);
  transform-origin: top center; animation: plate 1.1s 2.5s var(--ease) both;
}
.plate b { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(1rem, .8rem + .8vw, 1.35rem); white-space: nowrap; }
.plate small { font-size: .78rem; font-weight: 600; }
@keyframes girder { from { transform: scaleX(0); } }
@keyframes trolley { from { transform: translateX(min(60vw, 700px)); opacity: 0; } 20% { opacity: 1; } }
@keyframes cable { from { transform: scaleY(0); } }
@keyframes hookIn { from { opacity: 0; } }
@keyframes plate { 0% { opacity: 0; transform: translateY(-30px) rotate(0); } 55% { opacity: 1; transform: translateY(0) rotate(3deg); } 75% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .trolley__cable { height: 60px; }
  .plate { padding: .4rem .6rem; }
  .hero__copy { padding-top: 9rem; }
}

/* Hero altındaki hızlı bilgiler */
.facts { background: var(--signal); color: var(--ink); }
.facts ul { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 1.1rem 1.25rem; display: flex; gap: .85rem; align-items: center; font-weight: 600; line-height: 1.3; }
.facts li + li { border-left: 2px solid rgba(22,29,39,.18); }
.facts li:first-child { padding-left: 0; }
.facts strong { font-stretch: 125%; font-weight: 900; font-size: 1.6rem; white-space: nowrap; }
@media (max-width: 760px) { .facts ul { grid-template-columns: 1fr; } .facts li { padding-inline: 0; } .facts li + li { border-left: 0; border-top: 2px solid rgba(22,29,39,.18); } }

/* ---------- Ürün kartları ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 14px; }
.product {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: end;
  min-height: 260px; padding: 1.25rem;
  color: var(--white); text-decoration: none; background: var(--ink); border-radius: var(--radius);
}
.product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.product::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22,29,39,.95) 0%, rgba(22,29,39,.55) 45%, rgba(22,29,39,.05) 80%); transition: background .3s; }
.product h3 { font-size: var(--step-1); margin: 0; position: relative; padding-bottom: .55rem; }
.product h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 4px; background: var(--signal); transition: width .45s var(--ease); }
.product p { margin: .75rem 0 0; font-size: .95rem; line-height: 1.5; color: #cfd6de; max-width: 46ch; }
.product .link-arrow { color: var(--signal); margin-top: .85rem; font-size: .95rem; }
.product:hover img { transform: scale(1.05); }
.product:hover h3::after { width: 100%; }
.products > .product { grid-column: span var(--lg, 1); } /* genişlik home.php içinde hesaplanır */
.product--lead { grid-row: span var(--lg-rows, 2); }
.product--lead h3 { font-size: var(--step-3); }
.product--wide p { max-width: 60ch; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, 1fr); } .products > .product { grid-column: span var(--md, 1); } .product--lead { grid-row: span var(--md-rows, 2); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } .products > .product { grid-column: auto; grid-row: auto; } .product--lead { min-height: 340px; } }

/* ---------- Hakkımızda bloğu ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--signal); border-radius: var(--radius); z-index: 0; }
.framed img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 560px) { .framed::before { inset: 10px -10px -10px 10px; } }
.prose-lg { font-size: 1.1rem; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.dl div { display: flex; flex-direction: column-reverse; gap: .2rem; }
.dl dt { color: var(--steel); font-size: .9rem; line-height: 1.35; }
.dl dd { margin: 0; font-stretch: 125%; font-weight: 850; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.1; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; } }

/* ---------- Servis bölümü (koyu) ---------- */
.dark { background: var(--ink); color: #dfe4ea; }
.dark h2, .dark h3 { color: var(--white); }
.dark .muted { color: #a6b0bc; }
.dark a:not(.btn) { color: var(--signal); }
.steps { list-style: none; margin: 2rem 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); align-items: baseline; }
.steps li::before { content: counter(s); font-stretch: 125%; font-weight: 900; font-size: 1.6rem; color: var(--signal); line-height: 1; }
.service-media { position: relative; }
.service-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; }
.service-media__tag {
  position: absolute; left: -12px; bottom: 24px; background: var(--signal); color: var(--ink);
  padding: .7rem 1rem; font-weight: 800; font-stretch: 112%; border-radius: var(--radius); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6);
  display: flex; align-items: center; gap: .5rem;
}

/* ---------- Referans logoları (kayan şerit) ---------- */
.logos { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.logos:hover .logos__track, .logos:focus-within .logos__track { animation-play-state: paused; }
.logo-tile { flex: none; width: 190px; height: 104px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; }
.logo-tile img { max-height: 72px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-tile:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.logo-grid .logo-tile { width: auto; height: 130px; }
.logo-grid .logo-tile img { filter: none; opacity: 1; }

/* ---------- Belgeler ---------- */
.certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cert { display: block; text-decoration: none; color: var(--ink); }
.cert img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .3s var(--ease), box-shadow .3s; }
.cert:hover img { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(22,29,39,.55); }
.cert span { display: block; margin-top: .55rem; font-weight: 700; font-size: .95rem; }
@media (max-width: 900px) { .certs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .certs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Blog kartları ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s; position: relative; }
.post-card:hover { border-color: #b9c1cb; box-shadow: 0 20px 36px -24px rgba(22,29,39,.45); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--plate); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card time { font-size: var(--step--1); color: var(--steel); }
.post-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; font-stretch: 108%; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { font-size: .95rem; color: var(--steel); margin: 0; line-height: 1.55; }

/* ---------- Çağrı bandı ---------- */
.cta-band { position: relative; background: var(--signal); color: var(--ink); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--signal) 12px 24px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2.25rem, 5vw, 3.5rem); }
.cta-band h2 { margin: 0 0 .35rem; max-width: 24ch; }
.cta-band p { margin: 0; max-width: 56ch; font-weight: 500; }

/* ---------- Sayfa başlığı ---------- */
.page-head { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--signal); }
.page-head__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2.75rem, 6vw, 4.5rem); }
.page-head--simple .page-head__inner { grid-template-columns: 1fr; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); margin-bottom: .4em; }
.page-head__lead { color: #cfd6de; font-size: 1.1rem; max-width: 60ch; margin-bottom: 1.5rem; }
.page-head__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
.page-head__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: #b5bfca; font-size: .95rem; }
.page-head__meta span { display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 860px) { .page-head__inner { grid-template-columns: 1fr; } }

.crumbs { font-size: var(--step--1); margin-bottom: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; color: #9eaab7; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .6; }
.crumbs a { color: #d5dbe2; text-decoration: none; }
.crumbs a:hover { color: var(--signal); text-decoration: underline; }

/* ---------- İçerik + kenar sütun ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.layout--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }
.aside { display: grid; gap: 1.25rem; align-self: stretch; align-content: start; }
.aside__sticky { position: sticky; top: calc(64px + 1.5rem); display: grid; gap: 1.25rem; }
@media (max-width: 1000px) { .aside__sticky { position: static; } .aside > .card:first-child { order: 2; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: .85rem; }
.card--signal { background: var(--ink); color: #dfe4ea; border: 0; border-top: 5px solid var(--signal); }
.card--signal h2 { color: var(--white); }
.card--signal .btn { width: 100%; }
.card--signal .btn + .btn { margin-top: .6rem; }
.card--signal .btn--ghost { color: var(--white); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--rail); }
.side-list a[aria-current="page"] { font-weight: 800; }
.side-list .i { color: var(--steel); width: 1rem; height: 1rem; }
.toc ol { margin: 0; padding-left: 1.15rem; display: grid; gap: .35rem; font-size: .95rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--rail); text-decoration: underline; }

/* ---------- Metin içeriği ---------- */
.prose { max-width: 74ch; font-size: 1.075rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.2em; padding-top: .9em; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.prose h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; }
.prose h4 { margin-top: 1.5em; font-size: 1.12rem; }
.prose h5 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.25em; list-style: none; display: grid; gap: .45rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; background: var(--signal); border: 2px solid var(--ink); transform: rotate(45deg) scale(.7); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding-left: 2.2rem; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: .1em; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; background: var(--ink); color: var(--signal); font-weight: 800; font-size: .85rem; border-radius: 2px; }
.prose ol li strong:first-child:empty { display: none; }
.prose img { border-radius: var(--radius); }
.prose > a.zoom, .prose > picture, .prose > img { margin: 1.75rem 0; }
.prose .zoom { display: block; cursor: zoom-in; }
.prose .zoom img { width: 100%; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 1.75rem 0; }
.prose .gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: 100%; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 5px solid var(--signal); background: var(--white); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--white); }
.prose th, .prose td { padding: .65rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--plate); }
.prose .video { margin: 2rem 0; }

/* Hafif YouTube önizlemesi */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { opacity: .85; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border: 0; padding: 0; background: none; cursor: pointer; }
.yt__play svg { width: 100%; height: 100%; fill: rgba(22,29,39,.85); transition: fill .2s; }
.yt:hover .yt__play svg { fill: #e00; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--steel); font-size: .88rem; background: var(--white); }
.tags a:hover { border-color: var(--ink); color: var(--ink); }

.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share span { font-weight: 700; margin-right: .25rem; }
.share a { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--white); }
.share a:hover { background: var(--ink); color: var(--white); }

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span { min-width: 46px; height: 46px; display: grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current] { background: var(--ink); color: var(--signal); border-color: var(--ink); }

/* ---------- Formlar ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; margin-bottom: .35rem; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; background: var(--white);
  border: 1.5px solid #c3cad3; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,192,0,.55); }
.field--error input, .field--error textarea, .field--error select { border-color: #b42318; }
.field__error { color: #b42318; font-size: .88rem; margin-top: .3rem; }
.hp { position: absolute !important; left: -9999px !important; }
.form__note { font-size: .88rem; color: var(--steel); margin: 0; }
.alert { padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.5rem; display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.alert--ok { background: #e7f6ec; color: #135c32; border: 1px solid #a6dcb8; }
.alert--err { background: #fdecea; color: #8a1c13; border: 1px solid #f3b8b1; }

.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: start; }
.contact-list .ico { width: 46px; height: 46px; display: grid; place-items: center; background: var(--signal); color: var(--ink); border-radius: var(--radius); }
.contact-list b { display: block; font-size: .9rem; color: var(--steel); font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { text-decoration: underline; }
.map { margin-top: clamp(2.5rem, 6vw, 4rem); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--plate); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Altbilgi ---------- */
.footer { background: var(--ink); color: #b6c0cb; font-size: .97rem; }
.footer a { color: #dfe4ea; text-decoration: none; }
.footer a:hover { color: var(--signal); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem; }
.footer h2 { color: var(--white); font-size: 1rem; font-stretch: 112%; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__brand img { width: 190px; margin-bottom: 1.1rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .i { color: var(--signal); margin-top: .25rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); }
.footer__social a:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Yüzen WhatsApp düğmesi */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .i { width: 30px; height: 30px; }

/* Işık kutusu */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 14, 20, .88); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: var(--radius); }
.lightbox p { color: #e4e8ed; text-align: center; margin: .6rem 0 0; font-size: .95rem; }
.lightbox__close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--signal); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lightbox[open] img { animation: lbIn .3s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }

/* 404 */
.notfound { text-align: left; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound__code { font-stretch: 125%; font-weight: 900; font-size: clamp(5rem, 18vw, 12rem); line-height: .9; color: var(--signal); -webkit-text-stroke: 3px var(--ink); margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .logos { mask-image: none; }
  .logos__track { flex-wrap: wrap; width: auto; }
  .logos__track [aria-hidden="true"] { display: none; }
}

@media print {
  .topbar, .header, .footer, .wa-float, .cta-band, .aside, .beam { display: none !important; }
  body { background: #fff; }
}

/* ---------- Performans: ekran dışındaki bölümler ----------
   İlk bölümden sonraki bölümler, CTA bandı ve alt bilgi ekrana yaklaşana kadar düzenlenip boyanmaz
   (ilk yüklemedeki uzun görevleri ve TBT'yi düşürür). "auto" anahtarı, bir kez çizilen bölümün gerçek
   yüksekliğini hatırlar; kaydırma çubuğu ve sayfa içi bağlantılar zıplamaz. */
@supports (content-visibility: auto) {
  main > .section ~ .section, .cta-band, .footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
  }
}
