/* Beta Aydınlatma design system (tokens + components), ported from docs/tasarim/assets/beta-v1.css.
   Self-hosted Archivo variable font (wdth 62–125, wght 100–900), SIL OFL: wwwroot/fonts/archivo/OFL.txt */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-var.woff2") format("woff2");
  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;
}

/* ==========================================================================
   Beta Aydınlatma — design tokens (v1)
   ========================================================================== */
:root {
  /* brand */
  --beta-red: #E21E23;       /* logo red — actions & brand marks only */
  --beta-red-deep: #B5161A;  /* hover / pressed */
  --ink: #1C1B1C;            /* logo black — headings, body */
  --graphite: #5A5E63;       /* secondary text */
  --mute: #8A8F95;           /* captions, placeholders */
  --line: #D6D9DC;           /* hairlines */
  --stone: #EDEEEF;          /* page background, bands */
  --plate: #FFFFFF;          /* product plates (photos are shot on white) */
  --night: #111A24;          /* hero, projects, footer */
  --night-2: #1B2632;        /* raised surface on night */
  --night-line: #2C3947;
  --on-night: #E9ECEF;
  --on-night-mute: #9AA6B2;
  /* data colours — colour temperature only */
  --k3000: #F2B865;
  --k4000: #F6DDB0;
  --k6500: #CFE3F5;

  --font: "Archivo", system-ui, sans-serif;
  --wide: 125;   /* expanded width — echoes the BETA logotype */
  --semi: 112;

  /* type scale (1.25 major third, 17px base) */
  --fs-xs: .8125rem;  /* 13 */
  --fs-sm: .9375rem;  /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-lg: 1.3125rem; /* 21 */
  --fs-h4: 1.375rem;  /* 22 */
  --fs-h3: 1.75rem;   /* 28 */
  --fs-h2: 2.25rem;   /* 36 */
  --fs-h1: 3rem;      /* 48 */
  --fs-display: clamp(2.75rem, 6vw, 4.75rem); /* 44–76 */

  /* spacing — 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius-sm: 2px;  /* buttons, inputs, chips */
  --radius-0: 0;     /* plates, photos, bands */
  --maxw: 1280px;
  --gutter: 24px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--beta-red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type primitives ---------- */
.t-display, .t-h1, .t-h2, .t-h3, .t-h4, .t-code {
  margin: 0; font-weight: 800; letter-spacing: -.01em; line-height: 1.08;
  font-variation-settings: "wdth" var(--wide);
}
.t-display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.02em; }
.t-h1 { font-size: var(--fs-h1); }
.t-h2 { font-size: var(--fs-h2); font-weight: 750; }
.t-h3 { font-size: var(--fs-h3); font-weight: 700; font-variation-settings: "wdth" var(--semi); }
.t-h4 { font-size: var(--fs-h4); font-weight: 650; font-variation-settings: "wdth" 100; letter-spacing: 0; line-height: 1.25; }
.t-lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--graphite); max-width: 60ch; margin: 0; }
.t-body { max-width: 68ch; margin: 0; }
.t-small { font-size: var(--fs-sm); color: var(--graphite); }
.t-caption { font-size: var(--fs-xs); color: var(--mute); letter-spacing: .01em; }
.t-code { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .005em; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: var(--radius-sm);
  font: 600 var(--fs-sm)/1 var(--font); font-variation-settings: "wdth" var(--semi);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--beta-red); color: #fff; }
.btn--primary:hover { background: var(--beta-red-deep); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); padding: 0 4px; height: auto; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding-bottom: 4px; }
.btn--quiet:hover { border-bottom-color: var(--beta-red); }
.btn--sm { --h: 38px; padding: 0 16px; }
.btn[disabled] { background: var(--line); color: var(--mute); border-color: transparent; cursor: not-allowed; }
.on-night .btn--secondary { color: var(--on-night); border-color: var(--on-night); }
.on-night .btn--secondary:hover { background: var(--on-night); color: var(--night); }

/* download row — file, format, size */
.dl {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--plate); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s;
}
.dl:hover { border-color: var(--ink); }
.dl__ext {
  width: 40px; height: 46px; display: grid; place-items: end center; padding-bottom: 6px;
  font: 800 11px/1 var(--font); font-variation-settings: "wdth" var(--wide); color: #fff;
  background: var(--ink); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.dl__name { font-weight: 600; line-height: 1.3; }
.dl__meta { display: block; font-size: var(--fs-xs); color: var(--mute); font-weight: 400; margin-top: 2px; }
.dl svg { width: 20px; height: 20px; color: var(--beta-red); }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: 600;
  background: var(--stone); color: var(--ink); border: 1px solid var(--line); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.chip--new { background: var(--beta-red); color: #fff; border-color: var(--beta-red); }
.chip--k::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; }
.chip--k3000 { --k: var(--k3000); }
.chip--k4000 { --k: var(--k4000); }
.chip--k6500 { --k: var(--k6500); }

/* filter / tab chips */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--plate); font: 500 var(--fs-sm)/1 var(--font); color: var(--ink); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .n { color: var(--mute); margin-left: 6px; font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .n { color: #B9BEC4; }

/* ---------- form ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--mute); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid #BFC4C9; background: var(--plate); color: var(--ink);
  font: 400 var(--fs-base) var(--font);
}
.textarea { height: 128px; padding: 12px 14px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--mute); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--graphite); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,27,28,.12); }
.field--error .input { border-color: var(--beta-red); }
.field--error .hint { color: var(--beta-red-deep); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--graphite); }
.check input { width: 18px; height: 18px; accent-color: var(--beta-red); margin-top: 3px; flex: none; }
.turnstile {
  width: 300px; max-width: 100%; height: 65px; border: 1px solid var(--line); background: #FAFAFA;
  display: flex; align-items: center; gap: 12px; padding: 0 14px; font-size: var(--fs-xs); color: var(--graphite);
}
.turnstile i { width: 22px; height: 22px; border: 2px solid #9aa0a6; border-radius: 3px; }

/* ---------- site header ---------- */
.site-header { background: var(--plate); border-bottom: 1px solid var(--line); position: relative; }
.site-header__row { height: var(--header-h); display: flex; align-items: center; gap: var(--s6); }
.site-header__logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 14px;
  text-decoration: none; font-weight: 550; font-size: var(--fs-sm); position: relative;
}
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--beta-red); }
.nav a svg { width: 12px; height: 12px; }
.site-header__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.lang { display: flex; font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lang a { padding: 8px 10px; text-decoration: none; color: var(--mute); }
.lang a[aria-current="true"] { color: var(--ink); background: var(--stone); }

/* mega menu */
.mega { background: var(--plate); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(17,26,36,.35); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 300px; gap: 0 var(--s6); padding-block: var(--s6); }
.mega__col h4 { margin: 0 0 var(--s3); font-size: var(--fs-xs); font-weight: 600; color: var(--mute); }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--stone); text-decoration: none; font-weight: 500; }
.mega__col a:hover { color: var(--beta-red); }
.mega__col a span { color: var(--mute); font-variant-numeric: tabular-nums; font-weight: 400; font-size: var(--fs-sm); }
.mega__feature { background: var(--stone); padding: var(--s4); display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); align-items: end; }
.mega__feature img { height: 200px; width: 96px; object-fit: contain; mix-blend-mode: multiply; }

/* breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--mute); list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; color: var(--graphite); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* page title band */
.page-title { background: var(--stone); padding: var(--s7) 0 var(--s6); border-bottom: 1px solid var(--line); }
.page-title__row { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); margin-top: var(--s4); flex-wrap: wrap; }
.page-title .t-lead { font-size: var(--fs-base); }
.status-page__code { margin: var(--s5) 0 var(--s2); color: var(--beta-red); font-size: var(--fs-h3); }
.status-page__actions { display: flex; gap: var(--s3); margin-top: var(--s6); flex-wrap: wrap; }

/* ---------- cards ---------- */
/* category card — Beta's pencil sketches */
.cat {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; background: var(--plate); border: 1px solid var(--line);
  text-decoration: none; min-height: 420px; transition: border-color .15s;
}
.cat:hover { border-color: var(--ink); }
.cat__img { display: grid; place-items: center; padding: var(--s5) var(--s5) 0; overflow: hidden; }
.cat__img img { height: 300px; width: auto; object-fit: contain; }
.cat__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: var(--s4) var(--s5) var(--s5); border-top: 1px solid var(--stone); }
.cat__name { font-weight: 700; font-size: var(--fs-lg); line-height: 1.2; font-variation-settings: "wdth" var(--semi); }
.cat__count { color: var(--mute); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* product plate — tall, like the product itself */
.plate { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; background: var(--plate); border: 1px solid var(--line); text-decoration: none; position: relative; transition: border-color .15s; }
.plate:hover { border-color: var(--ink); }
.plate__img { aspect-ratio: 3 / 5; display: grid; place-items: center; padding: var(--s5) var(--s4) var(--s3); }
.plate__img img { max-height: 100%; width: auto; object-fit: contain; }
.plate__tag { position: absolute; top: 12px; left: 12px; }
.plate__body { padding: var(--s4) var(--s4) 0; border-top: 1px solid var(--stone); }
.plate__code { font-size: 1.625rem; }
.plate__name { font-size: var(--fs-sm); color: var(--graphite); margin-top: 4px; line-height: 1.35; }
.plate__specs { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s3) var(--s4) var(--s4); align-self: end; }

/* project card (on night) */
.proj { display: grid; text-decoration: none; color: var(--on-night); }
.proj__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj:hover .proj__img img { transform: scale(1.03); }
.proj__meta { padding-top: var(--s3); display: grid; gap: 2px; }
.proj__title { font-weight: 650; font-size: var(--fs-lg); line-height: 1.25; }
.proj__place { color: var(--on-night-mute); font-size: var(--fs-sm); }

/* catalogue / document card */
.doc { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); background: var(--plate); border: 1px solid var(--line); padding: var(--s4); align-items: start; }
.doc__cover { aspect-ratio: 210 / 297; overflow: hidden; background: var(--stone); box-shadow: 4px 4px 0 var(--stone), 5px 5px 0 var(--line); }
.doc__cover img { width: 100%; height: 100%; object-fit: cover; }
.doc__title { font-weight: 700; font-size: var(--fs-lg); line-height: 1.25; margin: 0 0 4px; font-variation-settings: "wdth" var(--semi); }
.doc__actions { display: flex; gap: 8px; margin-top: var(--s4); flex-wrap: wrap; }

/* news card */
.news { display: grid; gap: var(--s3); text-decoration: none; }
.news__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news time { font-size: var(--fs-xs); color: var(--mute); font-variant-numeric: tabular-nums; }
.news h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.3; font-weight: 650; }
.news:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ---------- product detail ---------- */
.pdp > * { min-width: 0; }
.pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s3); }
.pdp__thumbs { display: grid; gap: 8px; align-content: start; }
.pdp__thumbs button { padding: 4px; background: var(--plate); border: 1px solid var(--line); height: 110px; cursor: pointer; }
.pdp__thumbs button[aria-current="true"] { border-color: var(--ink); border-width: 1.5px; }
.pdp__thumbs img { height: 100%; margin: 0 auto; object-fit: contain; }
.pdp__main { background: var(--plate); border: 1px solid var(--line); aspect-ratio: 3 / 4; display: grid; place-items: center; padding: var(--s6); }
.pdp__main img { max-height: 100%; width: auto; }
.pdp__code { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.pdp__name { font-size: var(--fs-lg); color: var(--graphite); margin: 6px 0 var(--s5); }
.specs { margin: 0; border-top: 1.5px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 180px 1fr; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--graphite); font-size: var(--fs-sm); }
.specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp__actions { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
.pdp__files { display: grid; gap: 8px; margin-top: var(--s5); }

/* ---------- bands ---------- */
.band-cta { background: var(--ink); color: #fff; }
.band-cta__row { display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: center; padding-block: var(--s7); }
.band-cta p { margin: 8px 0 0; color: #B9BEC4; max-width: 56ch; }

.hero { position: relative; min-height: 640px; color: #fff; display: grid; align-items: end; overflow: hidden; background: var(--night); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,26,36,.15) 0%, rgba(17,26,36,.2) 45%, rgba(17,26,36,.88) 100%); }
.hero__content { position: relative; z-index: 1; width: 100%; padding-bottom: var(--s8); display: grid; gap: var(--s5); }
.hero__content .t-lead { color: #D5DBE1; }
.hero__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hero__index { display: flex; gap: 6px; margin-top: var(--s5); }
.hero__index span { width: 44px; height: 3px; background: rgba(255,255,255,.35); }
.hero__index span[aria-current="true"] { background: #fff; }

.footer { background: var(--night); color: var(--on-night); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s6); padding-block: var(--s8) var(--s7); }
.footer h4 { margin: 0 0 var(--s3); font-size: var(--fs-sm); color: var(--on-night-mute); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.7; color: var(--on-night); }
.footer__legal { border-top: 1px solid var(--night-line); padding-block: var(--s4); display: flex; justify-content: space-between; gap: var(--s4); font-size: var(--fs-xs); color: var(--on-night-mute); flex-wrap: wrap; }
.on-night { background: var(--night); color: var(--on-night); }


/* grid children must be allowed to shrink */
.plate, .cat { grid-template-columns: minmax(0, 1fr); }
.plate__img img, .cat__img img { max-width: 100%; }
.pdp > * { min-width: 0; }

/* ---------- responsive (site components) ---------- */
@media (max-width: 1080px) {
  .mega__grid { grid-template-columns: 1fr 1fr; }
  .mega__feature { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
}
@media (max-width: 860px) {
  .nav, .site-header__tools .btn { display: none; }
  .site-header__tools { margin-left: auto; }
  .band-cta__row { grid-template-columns: 1fr; }
  :root { --fs-h1: 2.25rem; --fs-h2: 1.875rem; --fs-h3: 1.5rem; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .cat { min-height: 300px; }
  .cat__img img { height: 200px; }
  .cat__foot { flex-direction: column; gap: 2px; padding: var(--s3); }
  .cat__name { font-size: var(--fs-base); }
  .plate__code { font-size: 1.25rem; }
  .doc { grid-template-columns: 88px 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
  .mega__grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
}

/* images must not push their box past its aspect ratio */
.plate__img { position: relative; min-height: 0; }
.plate__img img { position: absolute; top: var(--s5); left: var(--s4); width: calc(100% - 2 * var(--s4)); height: calc(100% - var(--s5) - var(--s3)); max-height: none; max-width: none; object-fit: contain; }
.pdp__main { position: relative; min-height: 0; }
.pdp__main img { position: absolute; inset: var(--s6); width: calc(100% - 2 * var(--s6)); height: calc(100% - 2 * var(--s6)); max-height: none; object-fit: contain; }
.tab { white-space: nowrap; flex: none; }
.plate__tag { z-index: 2; }

/* ==========================================================================
   Site shell: sticky header, nav trigger, mega menu, search panel, mobile menu, footer
   ========================================================================== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 1100; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s3); }
main:focus { outline: none; }

/* below Bootstrap's modal backdrop (1040) so legacy KVKK / legal modals still cover it */
.site-header { position: sticky; top: 0; z-index: 1020; }
.site-header__logo { flex: none; }

.nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 14px;
  font: 550 var(--fs-sm)/1.6 var(--font); color: var(--ink); background: none; border: 0; border-radius: 0;
  cursor: pointer; position: relative;
}
.nav__trigger svg { width: 12px; height: 12px; transition: transform .15s; }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__trigger.is-current::after,
.nav__trigger[aria-expanded="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--beta-red); }
.nav a:hover, .nav__trigger:hover { color: var(--beta-red); }

.site-header .mega,
.site-search { position: absolute; left: 0; right: 0; top: 100%; }
.mega[hidden], .site-search[hidden], .mobile-menu[hidden] { display: none; }
.mega__feature { text-decoration: none; color: var(--ink); transition: background-color .15s; }
.mega__feature:hover { background: var(--line); }
.mega__feature-title { margin: 0 0 2px; font-weight: 800; font-size: var(--fs-lg); line-height: 1.15; font-variation-settings: "wdth" var(--wide); }

.site-search { background: var(--plate); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(17,26,36,.35); }
.site-search__form { display: flex; gap: var(--s2); padding-block: var(--s4); }
.site-search__form .input { flex: 1; min-width: 0; }

.menu-btn { display: none; }
.menu-btn svg[hidden] { display: none; }

.mobile-menu {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 1019;
  background: var(--plate); border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); }
.mobile-menu__link,
.mobile-menu__toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 60px; padding: 0;
  font: 650 var(--fs-lg)/1.25 var(--font); font-variation-settings: "wdth" var(--semi);
  color: var(--ink); background: none; border: 0; border-radius: 0; text-align: left; text-decoration: none; cursor: pointer;
}
.mobile-menu__toggle svg { width: 18px; height: 18px; transition: transform .15s; }
.mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu__groups { list-style: none; margin: 0; padding: 0 0 var(--s3); }
.mobile-menu__groups[hidden] { display: none; }
.mobile-menu__groups a {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--stone);
  font-size: var(--fs-base); font-weight: 500; text-decoration: none;
}
.mobile-menu__groups a span { color: var(--mute); font-size: var(--fs-sm); font-weight: 400; font-variant-numeric: tabular-nums; }
.mobile-menu__foot { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s7); }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__contact { display: grid; gap: var(--s3); font-size: var(--fs-sm); }
.mobile-menu__contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); }
.mobile-menu__contact svg { width: 18px; height: 18px; color: var(--ink); }
body.has-mobile-menu { overflow: hidden; }

.footer__logo { height: 56px; width: auto; margin-bottom: var(--s4); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 4px var(--s4); }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .site-header .mega { display: none; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Page: home (docs/tasarim/01-anasayfa-musteri-onayli.html)
   ========================================================================== */
.home-hero { min-height: min(760px, 88vh); align-items: end; }
.home-hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity .9s ease;
}
.home-hero__slide.is-active { opacity: 1; }
.home-hero::after {
  background:
    linear-gradient(90deg, rgba(17,26,36,.82) 0%, rgba(17,26,36,.55) 38%, rgba(17,26,36,0) 70%),
    linear-gradient(180deg, rgba(17,26,36,0) 55%, rgba(17,26,36,.65) 100%);
}
.home-hero .hero__content { padding-block: var(--s9) var(--s7); gap: var(--s5); }
.home-hero h1 { max-width: 14ch; color: #fff; }
.home-hero .t-lead { max-width: 46ch; }

.hero-search { display: flex; max-width: 520px; background: #fff; border-radius: var(--radius-sm); padding: 4px; margin-top: var(--s2); }
.hero-search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent;
  font: 400 var(--fs-base) var(--font); color: var(--ink);
}
.hero-search input::placeholder { color: var(--mute); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(226,30,35,.45); }

.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); margin-top: var(--s6); flex-wrap: wrap; }
.hero-foot .hero__index { margin: 0; align-items: center; }
.hero__dot { flex: none; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(255,255,255,.35); transition: background-color .15s; }
.hero__dot:hover::before { background: rgba(255,255,255,.7); }
.hero__dot[aria-pressed="true"]::before { background: #fff; }
.hero__toggle {
  width: 28px; height: 28px; margin-left: var(--s2); padding: 0; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-sm); background: none; color: rgba(255,255,255,.75); cursor: pointer;
}
.hero__toggle:hover { color: #fff; }
.hero__toggle svg { width: 16px; height: 16px; }
.hero__toggle svg[hidden] { display: none; }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); margin-bottom: var(--s6); flex-wrap: wrap; }
.sec-head p { margin: 8px 0 0; color: var(--graphite); max-width: 56ch; }

/* product group strip: Beta's sketches standing side by side */
.groups { background: var(--plate); border-block: 1px solid var(--line); }
.groups__head { padding-top: var(--s8); }
.groups__nav { display: flex; gap: 8px; align-items: center; }
.groups__all { margin-right: var(--s4); }
.groups__nav .icon-btn { border-color: var(--line); }
.groups__nav .icon-btn:hover { border-color: var(--ink); }
.groups__nav .icon-btn:disabled { opacity: .4; cursor: default; border-color: var(--line); }
.groups__nav svg { width: 18px; height: 18px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px;
  margin: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-top: 1px solid var(--line);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.strip::-webkit-scrollbar { display: none; }
.strip > li { scroll-snap-align: start; border-right: 1px solid var(--line); }
.strip > li:first-child { border-left: 1px solid var(--line); }
.strip a { display: grid; grid-template-rows: 1fr auto; height: 100%; min-height: 470px; text-decoration: none; color: var(--ink); }
.strip a:focus-visible { outline-offset: -3px; }
.strip a:hover .strip__name { color: var(--beta-red); }
.strip__img { display: grid; place-items: end center; padding: var(--s6) var(--s4) 0; }
.strip__img img { height: 330px; width: auto; max-width: 100%; object-fit: contain; }
.strip__foot { display: block; padding: var(--s4) var(--s4) var(--s5); border-top: 1px solid var(--stone); }
.strip__name { display: block; font-weight: 700; font-size: var(--fs-base); line-height: 1.25; font-variation-settings: "wdth" var(--semi); }
.strip__count { display: block; color: var(--mute); font-size: var(--fs-sm); margin-top: 2px; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .home-hero::after { background: linear-gradient(180deg, rgba(17,26,36,.25) 0%, rgba(17,26,36,.9) 75%); }
  .home-hero .hero__content { padding-top: var(--s8); }
}
@media (max-width: 520px) {
  .strip { grid-auto-columns: 168px; }
  .strip a { min-height: 360px; }
  .strip__img img { height: 240px; }
  .hero-foot { margin-top: var(--s5); }
  .hero-foot .hero__index { width: 100%; gap: 4px; }
  .hero__dot { flex: 0 1 44px; width: auto; min-width: 0; }
}

/* ==========================================================================
   Shared by product pages: title band, inline search, plate grid, notices
   ========================================================================== */
.sec { padding-block: var(--s9); }
.sec--tight { padding-block: var(--s7); }
.page-title { padding-block: var(--s8) var(--s7); }
.page-title .t-lead { margin-top: var(--s3); }
.plate__code, .plate__name { margin: 0; }
.plate__name { margin-top: 4px; }
.plate { color: var(--ink); }
.plate[hidden] { display: none; }

.search-inline { display: flex; max-width: 440px; width: 100%; border: 1px solid #BFC4C9; background: var(--plate); border-radius: var(--radius-sm); }
.search-inline[hidden] { display: none; }
.search-inline:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,27,28,.12); }
.search-inline svg { width: 18px; height: 18px; margin: 0 4px 0 14px; align-self: center; color: var(--mute); flex: none; }
.search-inline input { flex: 1; min-width: 0; border: 0; background: none; height: 44px; padding: 0 12px 0 6px; font: 400 var(--fs-base) var(--font); color: var(--ink); }
.search-inline input::placeholder { color: var(--mute); }
.search-inline input:focus { outline: none; }

.g-plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.more { display: flex; justify-content: center; margin-top: var(--s7); }
.more[hidden] { display: none; }
.notice { display: grid; gap: var(--s4); justify-items: start; margin: 0 0 var(--s6); padding: var(--s6); background: var(--plate); border: 1px dashed #BFC4C9; color: var(--graphite); max-width: 640px; }
.notice[hidden] { display: none; }
.notice p { margin: 0; }

@media (max-width: 1080px) { .g-plates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .sec { padding-block: var(--s8); }
  .g-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
}
@media (max-width: 520px) {
  .g-plates { grid-template-columns: minmax(0, 1fr); }
  .g-plates .plate__img { aspect-ratio: 1 / 1; }
}

/* ==========================================================================
   Page: products (docs/tasarim/02-urunler.html)
   ========================================================================== */
.g-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.cat { color: var(--ink); }
.cat--custom { background: var(--night); border-color: var(--night); color: var(--on-night); grid-template-rows: 1fr; }
.cat--custom:hover { border-color: var(--beta-red); }
.cat__custom { padding: var(--s6); display: grid; align-content: end; gap: var(--s4); }
.cat__custom p { margin: 0; color: var(--on-night-mute); }
.cat__custom .btn { justify-self: start; }
@media (max-width: 1080px) { .g-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .g-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .cat--custom { grid-column: 1 / -1; min-height: 0; }
  .products-title .search-inline { max-width: none; }
}
@media (max-width: 520px) { .g-cats { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Page: product group (docs/tasarim/03-urun-grubu.html); also newest products and search results
   ========================================================================== */
.grp-title { padding-bottom: 0; }
.grp-title__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s7); align-items: end; }
.grp-title__row .t-lead { max-width: 60ch; }
.grp-title__heading { margin-top: var(--s4); }
.grp-title__actions { display: flex; gap: var(--s4); align-items: center; margin-top: var(--s5); flex-wrap: wrap; }
.grp-title__sketch { height: 300px; width: auto; mix-blend-mode: multiply; margin-bottom: calc(-1 * var(--s2)); }
.groupnav { display: flex; gap: var(--s5); overflow-x: auto; scrollbar-width: none; margin-top: var(--s6); border-top: 1px solid var(--line); }
.groupnav::-webkit-scrollbar { display: none; }
.groupnav a { padding: 14px 0; white-space: nowrap; text-decoration: none; font-size: var(--fs-sm); color: var(--graphite); border-bottom: 3px solid transparent; }
.groupnav a span { color: var(--mute); font-variant-numeric: tabular-nums; }
.groupnav a:hover { color: var(--ink); }
.groupnav a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--beta-red); }

.filters { position: sticky; top: var(--header-h); z-index: 20; background: var(--plate); border-bottom: 1px solid var(--line); }
.filters__row { display: flex; align-items: center; gap: var(--s4); min-height: 72px; flex-wrap: wrap; padding-block: var(--s3); }
.filters .tabs { margin-right: auto; }
.filters .tabs[hidden] { display: none; }
.filters .search-inline { max-width: 260px; }
.filters__count { font-size: var(--fs-sm); color: var(--graphite); white-space: nowrap; }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[aria-pressed="true"] .n { color: #B9BEC4; }
.tab:hover { border-color: var(--ink); }

@media (max-width: 860px) {
  .grp-title__row { grid-template-columns: minmax(0, 1fr); }
  .grp-title__sketch { display: none; }
  .filters { position: static; }
  .filters .tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters .search-inline { max-width: none; }
}

/* ==========================================================================
   Page: product detail (docs/tasarim/04-urun-detay.html)
   ========================================================================== */
.pdp-sec { padding-top: var(--s7); }
.pdp__code { margin: var(--s4) 0 0; }
.pdp__name { margin-bottom: var(--s3); }
.pdp__desc { max-width: 56ch; color: var(--graphite); margin: 0 0 var(--s5); }
.pdp__gallery--single { grid-template-columns: minmax(0, 1fr); }
.pdp__files { list-style: none; padding: 0; margin-bottom: 0; }
.specs__chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.about-product { background: var(--plate); border-block: 1px solid var(--line); padding-block: var(--s8); }
.about-product__row { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s6); }
.about-product h2 { margin: 0; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 var(--s4); }
.prose p:last-child { margin-bottom: 0; }
.about-product .prose p { font-size: var(--fs-lg); line-height: 1.55; color: var(--graphite); }

.on-night .sec-head p { color: var(--on-night-mute); }
.on-night .btn--quiet { color: var(--on-night); border-bottom-color: var(--night-line); }
.on-night .btn--quiet:hover { border-bottom-color: var(--beta-red); }

.g-pov { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; }
.g-pov--1 { grid-template-columns: minmax(0, 1fr); }
.g-pov--2 { grid-template-columns: 2fr 1fr; }
.pov { position: relative; display: block; height: clamp(240px, 24vw, 420px); overflow: hidden; color: #fff; text-decoration: none; background: var(--night-2); }
.pov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pov:hover img { transform: scale(1.03); }
.pov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,26,36,0) 50%, rgba(17,26,36,.9) 100%); }
.pov__meta { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: var(--s4) var(--s5); display: grid; gap: 2px; }
.pov__meta b { font-size: var(--fs-lg); font-weight: 650; line-height: 1.25; }
.pov__meta span { font-size: var(--fs-sm); color: #D5DBE1; }

@media (max-width: 860px) {
  .about-product { padding-block: var(--s7); }
  .about-product__row { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .g-pov, .g-pov--2 { grid-template-columns: minmax(0, 1fr); }
  .pov { height: auto; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .pov img { transition: none; }
  .pov:hover img { transform: none; }
}

/* ==========================================================================
   Page: projects (docs/tasarim/05-projeler.html)
   ========================================================================== */
.projects-title .t-lead { font-size: var(--fs-lg); max-width: 62ch; }
.filters__select { display: flex; align-items: center; gap: var(--s3); }
.filters__select[hidden] { display: none; }
.filters__select label { margin: 0; font-size: var(--fs-sm); color: var(--graphite); white-space: nowrap; }
.filters__select .input { height: 40px; width: 280px; padding-right: 32px; font-size: var(--fs-sm); }
.projects-filters .filters__count { font-variant-numeric: tabular-nums; }

/* mosaic: [1 wide + 2 small] then [4 tall], repeated (blocks are rebuilt by js/projects.js) */
.projects { padding-block: clamp(12px, 2vw, 32px) var(--s9); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.blk { display: grid; gap: 10px; }
.blk--a { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(170px, 17vw, 264px)); }
.blk--a > .pcard:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.blk--a.n1 > .pcard:first-child { grid-column: 1 / -1; }
.blk--a.n2 > .pcard:nth-child(2) { grid-row: 1 / 3; }
.blk--b { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(250px, 26vw, 400px); }

.pcard { position: relative; display: block; overflow: hidden; text-decoration: none; color: #fff; background: var(--night-2); }
.pcard:focus-visible { outline-offset: -3px; outline-color: #fff; }
.pcard__img { position: absolute; inset: 0; }
.pcard__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,26,36,0) 50%, rgba(17,26,36,.55) 75%, rgba(17,26,36,.92) 100%);
}
.pcard__count {
  position: absolute; z-index: 2; top: 12px; right: 12px; padding: 4px 8px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.3;
  background: rgba(17,26,36,.72); color: #fff; border-radius: var(--radius-sm);
}
.pcard__meta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: var(--s4) var(--s5);
  display: flex; justify-content: space-between; align-items: end; gap: var(--s3);
}
.pcard__text { min-width: 0; }
.pcard__title { margin: 0; font-size: var(--fs-lg); line-height: 1.25; font-weight: 650; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); overflow-wrap: anywhere; hyphens: auto; }
.blk--a > .pcard:first-child .pcard__meta { padding: var(--s6); }
.blk--a > .pcard:first-child .pcard__title { font-size: var(--fs-h3); font-weight: 750; font-variation-settings: "wdth" var(--semi); }
.pcard:hover .pcard__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.pcard__place { display: block; color: #D5DBE1; font-size: var(--fs-sm); line-height: 1.4; }
.pcard__used { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; flex: none; max-width: 50%; }
.pcard__used .chip { height: 24px; background: rgba(17,26,36,.55); color: #fff; border-color: rgba(255,255,255,.35); font-variation-settings: "wdth" var(--semi); backdrop-filter: blur(4px); }
.blk--a > .pcard:not(:first-child) .pcard__used .chip:nth-child(n+2),
.blk--b .pcard__used .chip:nth-child(n+2) { display: none; }
.blk--b .pcard__meta { flex-direction: column; align-items: start; }
.blk--b .pcard__used { justify-content: start; max-width: none; }

.projects .more { margin-top: var(--s8); }
.projects__empty { display: grid; justify-items: center; gap: var(--s4); padding: var(--s8) 0; text-align: center; color: var(--on-night-mute); }
.projects__empty[hidden] { display: none; }
.projects__empty p, .projects__notice { margin: 0; }
.projects__notice { padding: var(--s8) 0; text-align: center; color: var(--on-night-mute); }

.band-cta .btn--secondary { color: #fff; border-color: #fff; }
.band-cta .btn--secondary:hover { background: #fff; color: var(--ink); }
.band-cta__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* project dialog */
html.has-dialog { overflow: hidden; }
.pdlg {
  width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: var(--plate); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.pdlg::backdrop { background: rgba(17,26,36,.82); }
.pdlg__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.pdlg__media { background: var(--night); padding: var(--s4); display: grid; gap: var(--s3); align-content: center; }
.pdlg__main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-2); }
.pdlg__main img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pdlg__step { position: absolute; top: 50%; margin-top: -20px; background: rgba(17,26,36,.6); color: #fff; }
.pdlg__step:hover { background: rgba(17,26,36,.85); border-color: transparent; }
.pdlg__step--prev { left: var(--s3); }
.pdlg__step--next { right: var(--s3); }
.pdlg__step:focus-visible { outline-color: #fff; }
.pdlg__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pdlg__thumbs button { padding: 0; border: 2px solid transparent; background: none; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; opacity: .6; transition: opacity .15s; }
.pdlg__thumbs button:hover { opacity: .85; }
.pdlg__thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.pdlg__thumbs button:focus-visible { outline-color: #fff; }
.pdlg__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdlg__info { padding: var(--s6); display: grid; align-content: start; gap: var(--s5); position: relative; }
.pdlg__close { position: absolute; top: var(--s3); right: var(--s3); }
.pdlg__info .crumbs { margin: var(--s2) 0 0; padding-right: var(--s7); }
.pdlg__title { margin: var(--s3) 0 0; }
.pdlg__place { color: var(--graphite); margin: 6px 0 0; }
.pdlg__used h3 { margin: 0 0 var(--s3); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; color: var(--graphite); }
.pdlg__products { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.mini-plate { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); align-items: center; border: 1px solid var(--line); padding: var(--s3); text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.mini-plate:hover { border-color: var(--ink); }
.mini-plate__img img { height: 160px; width: auto; margin: 0 auto; }
.mini-plate__body { display: grid; justify-items: start; }
.mini-plate__code { font-size: 1.5rem; }
.mini-plate__name { margin: 2px 0 var(--s3); font-size: var(--fs-sm); color: var(--graphite); }
.mini-plate__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pdlg__actions { display: grid; gap: var(--s3); }
.pdlg__actions .btn { white-space: normal; text-align: center; line-height: 1.25; }
.pdlg__nav { display: flex; justify-content: space-between; gap: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s4); }
.pdlg__nav-btn { padding: 0; border: 0; background: none; font: 400 var(--fs-sm)/1.4 var(--font); color: var(--graphite); cursor: pointer; text-align: left; }
.pdlg__nav-btn[data-nav-direction="next"] { margin-left: auto; text-align: right; }
.pdlg__nav-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .pdlg__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .projects-filters .filters__row { gap: var(--s3); }
  .filters__select { width: 100%; }
  .filters__select .input { width: 100%; min-width: 0; }
  .projects-filters .filters__count { width: 100%; }
}
@media (max-width: 640px) {
  .blk--a { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .blk--a > .pcard { aspect-ratio: 1 / 1; }
  .blk--a > .pcard:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .blk--a.n2 > .pcard:nth-child(2) { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .blk--b { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .blk--b > .pcard { aspect-ratio: 3 / 4; }
  .pcard__meta, .blk--a > .pcard:first-child .pcard__meta { padding: var(--s3); }
  .pcard__used { display: none; }
  .blk--a > .pcard:first-child .pcard__used { display: flex; }
  .pcard__title { font-size: var(--fs-sm); }
  .blk--a > .pcard:first-child .pcard__title { font-size: var(--fs-lg); }
  .pcard__count { top: 8px; right: 8px; }
  .blk, .pgrid { gap: 6px; }
}
@media (max-width: 520px) {
  .pdlg__info { padding: var(--s5) var(--s4); }
  .pdlg__media { padding: var(--s3); }
  .pdlg__thumbs { gap: 4px; }
  .mini-plate { grid-template-columns: 72px minmax(0, 1fr); }
  .mini-plate__img img { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard:hover .pcard__img img { transform: none; }
}

/* ==========================================================================
   Page: library (docs/tasarim/06-kutuphane.html)
   ========================================================================== */
.library-title .t-lead { font-size: var(--fs-base); max-width: 56ch; }
.library-docs, .library-products { color: var(--ink); }
.g-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.doc--big { grid-template-columns: 180px minmax(0, 1fr); padding: var(--s5); }
.doc--big .doc__title { font-size: var(--fs-h3); }
.doc__summary { margin: 0; }
.doc__actions { align-items: center; }

.library-products { padding-top: var(--s5); }
.library-products .sec-head p { max-width: 60ch; }
.library-tabs { margin-bottom: var(--s4); }
.library-tabs[hidden], .library-products .search-inline[hidden] { display: none; }
.library-products .notice { margin-top: var(--s5); }
.table-wrap { overflow-x: auto; background: var(--plate); border: 1px solid var(--line); }
.doc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.doc-table th, .doc-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--stone); vertical-align: middle; }
.doc-table thead th { font-weight: 600; color: var(--graphite); background: var(--plate); border-bottom: 1.5px solid var(--ink); }
.doc-table tbody th { font-weight: 800; font-variation-settings: "wdth" var(--wide); white-space: nowrap; font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.doc-table tbody tr:last-child > * { border-bottom: 0; }
.doc-table tbody tr:hover { background: #FAFAFA; }
.doc-table tr[hidden] { display: none; }
.doc-table .c-size { color: var(--graphite); white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-table .c-grp { color: var(--graphite); }
.doc-table .c-dl { text-align: right; width: 1%; }

.brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s8); align-items: start; }
.brand p { margin: var(--s4) 0 0; color: var(--on-night-mute); max-width: 48ch; }
.brand__files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.brand__files > * { min-width: 0; }
.brand__tile { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--night-2); border: 1px solid var(--night-line); }
.brand__tile--light { background: #fff; }
.brand__tile img { height: 45%; width: auto; max-width: 80%; object-fit: contain; }
.brand .dl { background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }
.brand .dl__ext { background: var(--on-night); color: var(--night); }
.brand .dl:hover { border-color: var(--on-night); }

@media (max-width: 860px) {
  .g-docs, .brand { grid-template-columns: minmax(0, 1fr); }
  .doc--big { grid-template-columns: 110px minmax(0, 1fr); padding: var(--s4); }
  .doc--big .doc__actions .btn { height: auto; min-height: var(--h); padding: 8px 14px; white-space: normal; text-align: left; line-height: 1.25; }
  .doc-table .c-grp, .doc-table .c-size { display: none; }
  .doc-table th, .doc-table td { padding: 12px; }
  .library-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .library-tabs::-webkit-scrollbar { display: none; }
  .library-products .search-inline { max-width: none; }
}

/* ==========================================================================
   Page: about (docs/tasarim/07-hakkimizda.html)
   ========================================================================== */
.about-hero { min-height: min(640px, 80vh); }
.about-hero::after { background: linear-gradient(90deg, rgba(17,26,36,.85) 0%, rgba(17,26,36,.5) 45%, rgba(17,26,36,.1) 75%), linear-gradient(180deg, rgba(17,26,36,0) 60%, rgba(17,26,36,.6) 100%); }
.about-hero h1 { max-width: 13ch; margin: 0; }
.about-hero .t-lead { color: #D5DBE1; max-width: 52ch; }
.crumbs--light, .crumbs--light a { color: #C3CBD3; }
.crumbs--light a:hover { color: #fff; }
.crumbs--light [aria-current] { color: #fff; }
.crumbs--light li + li::before { color: #8A949E; }

.sketchbook { background: var(--plate); border-bottom: 1px solid var(--line); color: var(--ink); }
.sketchbook__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: center; }
.sketchbook h2 { margin: 0; }
.sketchbook .t-lead { margin-top: var(--s4); }
.sketchbook__imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.sketchbook__imgs a { display: block; }
.sketchbook__imgs img { height: 320px; width: 100%; object-fit: contain; }

.about-values { padding-top: 0; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); padding-top: var(--s8); }
.values > div { border-top: 1.5px solid var(--ink); padding-top: var(--s4); }
.values h3 { margin: 0; }
.values p { color: var(--graphite); margin: var(--s3) 0 0; }

.facts-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s8); align-items: center; }
.facts-row h2 { margin: 0; }
.facts-row__text p { color: var(--on-night-mute); max-width: 56ch; margin: var(--s4) 0 var(--s5); }
.facts-row__list { display: grid; grid-template-columns: repeat(2, auto); gap: var(--s5) var(--s8); margin: 0; }
.facts-row__list dt { color: var(--on-night-mute); font-size: var(--fs-sm); font-weight: 400; }
.facts-row__list dd { margin: 0; font-size: 3.5rem; font-weight: 800; line-height: 1; font-variation-settings: "wdth" var(--wide); font-variant-numeric: tabular-nums; }

.about-certs { color: var(--ink); }
.certs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.cert { display: grid; gap: var(--s3); text-decoration: none; font-size: var(--fs-sm); color: var(--graphite); }
.cert__img { background: var(--plate); border: 1px solid var(--line); padding: var(--s3); aspect-ratio: 210 / 297; display: grid; place-items: center; }
.cert:hover { color: var(--ink); text-decoration: none; }
.cert:hover .cert__img { border-color: var(--ink); }
.cert img { max-height: 100%; width: auto; height: auto; }

.policies, .offices-sec { padding-top: 0; color: var(--ink); }
.policies__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); }
.policies .t-h3 { margin: 0 0 var(--s5); }
.policies .prose p, .policies .prose li { color: var(--graphite); }
.policies .prose ul, .legal__doc ul { margin: 0 0 var(--s4); padding-left: 20px; display: grid; gap: 6px; }
.policies details { border-top: 1px solid var(--line); }
.policies details:last-child { border-bottom: 1px solid var(--line); }
.policies summary { cursor: pointer; padding: var(--s4) 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.policies summary::-webkit-details-marker { display: none; }
.policies summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; }
.policies details[open] summary::after { content: "\2013"; }
.policies details .prose { padding-bottom: var(--s4); }

.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.office { background: var(--plate); border: 1px solid var(--line); padding: var(--s5); display: grid; gap: var(--s2); align-content: start; text-decoration: none; color: var(--ink); }
.office h3 { margin: 0; }
.office p { margin: 0; color: var(--graphite); }
.office a, .office span { font-weight: 600; margin-top: var(--s2); justify-self: start; }
.office:not(.office--cta) a { text-decoration: underline; text-underline-offset: 3px; }
.office a:hover { color: var(--beta-red); }
.office--cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.office--cta p { color: #B9BEC4; }
.office--cta:hover { background: var(--beta-red); border-color: var(--beta-red); color: #fff; text-decoration: none; }
.office--cta:hover p { color: #fff; }

@media (max-width: 1080px) { .certs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .sketchbook__row, .facts-row, .policies__grid, .values, .offices { grid-template-columns: minmax(0, 1fr); }
  .sketchbook__row, .facts-row, .policies__grid { gap: var(--s6); }
  .sketchbook__imgs { gap: var(--s2); }
  .sketchbook__imgs img { height: 180px; }
  .facts-row__list dd { font-size: 2.5rem; }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .about-hero::after { background: linear-gradient(180deg, rgba(17,26,36,.2) 0%, rgba(17,26,36,.9) 80%); }
}

/* ==========================================================================
   Page: legal (docs/tasarim/11-yasal.html); /kvkk and /yasal-uyari render the same page
   ========================================================================== */
.legal-sec { color: var(--ink); }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s8); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + var(--s5)); display: grid; gap: 2px; }
.legal__toc a { padding: 10px 14px; text-decoration: none; color: var(--graphite); border-left: 2px solid var(--line); font-size: var(--fs-sm); }
.legal__toc a:hover { color: var(--ink); text-decoration: none; }
.legal__toc a[aria-current] { color: var(--ink); font-weight: 600; border-left-color: var(--beta-red); }
.legal__doc { background: var(--plate); border: 1px solid var(--line); padding: var(--s7); margin-bottom: var(--s4); max-width: none; scroll-margin-top: calc(var(--header-h) + var(--s5)); }
.legal__doc > * { max-width: 72ch; }
.legal__doc .t-h3 { margin: 0 0 var(--s5); font-size: var(--fs-h3); }
.legal__doc h3 { font-size: var(--fs-h4); font-weight: 700; margin: var(--s7) 0 var(--s3); line-height: 1.3; }
.legal__doc p, .legal__doc li { color: var(--graphite); overflow-wrap: break-word; }
.legal__doc p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .legal__toc { position: static; }
  .legal__doc { padding: var(--s5) var(--s4); }
}

/* ==========================================================================
   Page: contact (docs/tasarim/08-iletisim.html)
   ========================================================================== */
.contact-sec { color: var(--ink); }
.contact-title__lead { margin-top: var(--s3); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.contact__info { display: grid; gap: var(--s4); }
.office-card { background: var(--plate); border: 1px solid var(--line); padding: var(--s5); display: grid; gap: var(--s3); }
.office-card h2 { margin: 0; }
.office-card p { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.office-card p svg { width: 20px; height: 20px; color: var(--beta-red); margin-top: 3px; }
.office-card a { color: inherit; text-decoration: none; }
.office-card a:hover { text-decoration: underline; color: inherit; }
.office-card .btn { justify-self: start; }
.office-card .btn:hover { text-decoration: none; color: #fff; }
.office-card .map { display: block; width: 100%; height: 280px; border: 0; background: var(--stone); margin-top: var(--s2); }
.contact__main { display: grid; gap: var(--s5); min-width: 0; }
.contact__forms .tabs { margin-bottom: var(--s3); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.form-card { background: var(--plate); border: 1px solid var(--line); padding: var(--s6); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.form-card[hidden] { display: none; }
.form-intro { margin: 0 0 var(--s5); color: var(--graphite); max-width: 60ch; }
.form-note { margin: 0 0 var(--s4); font-size: var(--fs-xs); color: var(--mute); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s5); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { align-content: start; }
.form-grid .field label { margin: 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.form-foot .btn { margin-left: auto; }
.form-consent { margin: 0; font-size: var(--fs-sm); color: var(--graphite); }
.form-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.field-error { display: none; color: var(--beta-red-deep); font-size: var(--fs-xs); line-height: 1.35; }
.field-error.show { display: block; }
.contact .input.is-invalid, .contact .textarea.is-invalid { border-color: var(--beta-red); box-shadow: inset 0 0 0 1px var(--beta-red); }
.contact .iti { display: block; width: 100%; }
.file-drop { position: relative; display: flex; gap: var(--s4); align-items: center; padding: var(--s5); border: 1.5px dashed #BFC4C9; background: #FAFAFA; color: var(--ink); overflow-wrap: anywhere; }
.file-drop:hover, .file-drop.is-dragover { border-color: var(--ink); }
.file-drop:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,27,28,.12); }
.file-drop:has(.is-invalid) { border-color: var(--beta-red); }
.file-drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop svg { width: 28px; height: 28px; color: var(--graphite); flex: none; }
.file-drop small { color: var(--mute); font-size: var(--fs-xs); }
.contact__kvkk { margin: 0; font-size: var(--fs-xs); line-height: 1.55; color: var(--mute); }
.contact__kvkk strong { color: var(--graphite); font-weight: 600; }
@media (max-width: 860px) {
  .contact, .form-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .form-grid { gap: var(--s4); }
  .form-card { padding: var(--s4); }
  .office-card { padding: var(--s4); }
  .form-foot .btn { margin-left: 0; }
}

/* ==========================================================================
   Page: search (docs/tasarim/10-arama.html)
   ========================================================================== */
.search-big { display: flex; align-items: center; max-width: 720px; margin-top: var(--s5); background: var(--plate); border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: 4px; }
.search-big:focus-within { box-shadow: 0 0 0 3px rgba(28,27,28,.12); }
.search-big svg { width: 22px; height: 22px; margin: 0 6px 0 14px; color: var(--graphite); flex: none; }
.search-big input { flex: 1; min-width: 0; border: 0; background: none; height: 56px; padding: 0 8px; font: 800 1.75rem var(--font); font-variation-settings: "wdth" var(--wide); color: var(--ink); }
.search-big input:focus { outline: none; }
.search-big input::-webkit-search-cancel-button { cursor: pointer; }
.search-title__count { margin-top: var(--s4); font-size: var(--fs-base); }
.noresult { display: grid; gap: var(--s3); justify-items: start; max-width: 760px; padding: var(--s6); border: 1.5px dashed #BFC4C9; background: var(--plate); color: var(--graphite); }
.noresult p { margin: 0; }
.noresult__title { color: var(--ink); }
.noresult__actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-top: var(--s2); }
@media (max-width: 860px) {
  .search-big svg { margin-left: 8px; }
  .search-big input { font-size: 1.25rem; height: 48px; }
  .noresult { padding: var(--s5) var(--s4); }
}

/* WhatsApp contact button */
.wa-fab {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 1000;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.26); color: #fff; }
.wa-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-fab svg { width: 30px; height: 30px; }
@media (max-width: 520px) { .wa-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; } .wa-fab svg { width: 28px; height: 28px; } }
@media print { .wa-fab { display: none; } }
/* Cookie consent banner */
.consent {
  position: fixed; inset-inline: 0; bottom: max(var(--s4), env(safe-area-inset-bottom)); z-index: 1010;
  padding-inline: var(--gutter); pointer-events: none;
}
.consent__inner {
  max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); flex-wrap: wrap;
  padding: var(--s4) var(--s5); border: 1px solid var(--night-line); box-shadow: 0 10px 30px rgba(0,0,0,.28);
  animation: consent-in .25s ease-out;
}
.consent__text { margin: 0; max-width: 72ch; font-size: var(--fs-sm); line-height: 1.5; }
.consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: var(--s3); flex: none; }
.consent .btn { min-width: 120px; }
.consent .btn:focus-visible { outline: 3px solid var(--on-night); outline-offset: 2px; }
@keyframes consent-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .consent__inner { animation: none; } }
body.has-consent-banner { padding-bottom: var(--consent-h, 0px); }
body.has-consent-banner .wa-fab { bottom: calc(var(--consent-h, 0px) + var(--s4) * 2); }
.footer__consent { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__consent:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .consent { bottom: 0; padding-inline: 0; }
  .consent__inner { border-inline: 0; border-bottom: 0; padding: var(--s4) var(--gutter) max(var(--s4), env(safe-area-inset-bottom)); }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; min-width: 0; }
  body.has-consent-banner .wa-fab { bottom: calc(var(--consent-h, 0px) + var(--s4)); }
}
.consent[hidden], [data-consent-open][hidden] { display: none; }
@media print { .consent { display: none; } }
