:root {
  --ink: #222;
  --muted: #555;
  --line: #e3e3e3;
  --bg: #fff;
  --soft: #f6f6f6;
  --top: #2a2a2a;
  --red: #d0121a;
  --red-deep: #b10e15;
  --green: #128a3c;
  --footer: #1c1c1c;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
a { color: var(--green); }
img, svg { max-width: 100%; }
::selection { background: #f7c9cb; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  background: var(--top);
  color: #eee;
  font-size: 0.92rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 38px;
}

.topbar p { margin: 0; margin-right: auto; }
.topbar a { color: #eee; text-decoration: none; }
.topbar a:hover { color: #fff; }

.topbar-cta {
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.topbar-cta:hover { background: var(--red-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand { color: inherit; text-decoration: none; }
.brand-logo { display: block; height: 28px; width: auto; }
.brand-on-dark .brand-logo { height: 24px; }
@media (max-width: 640px) { .brand-logo { height: 24px; } }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}
.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #222;
}
.nav-toggle span:nth-of-type(2) { top: 16px; }
.nav-toggle span:nth-of-type(3) { top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-light { background: #fff; color: #222; }
.btn-light:hover { background: #f2f2f2; }
.btn-ghost { background: transparent; color: #222; border: 1px solid #222; }
.btn-ghost:hover { background: #222; color: #fff; }

.hero-band {
  background:
    linear-gradient(180deg, rgba(10, 16, 14, 0.55), rgba(10, 16, 14, 0.72)),
    repeating-linear-gradient(90deg, #163024 0 2px, #1d3b2c 2px 42px);
  color: #fff;
  padding: 92px 0;
}
.hero-band h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.kicker {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-band p:not(.kicker) {
  margin: 10px 0 0;
  max-width: 40rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.section { padding: 56px 0; }
.section-muted { background: var(--soft); }
.section-title { margin: 0 0 22px; font-size: 1.7rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.product-card a { color: inherit; text-decoration: none; display: block; padding: 16px 12px 20px; }
.product-card h3 { margin: 8px 0 4px; font-size: 1.15rem; }
.product-card p { margin: 0; color: var(--muted); }
.product-card:hover { border-color: var(--green); }

.box { margin: 0 auto; width: min(180px, 100%); }
.box-photo { aspect-ratio: 220 / 280; display: flex; align-items: center; justify-content: center; }
.box-photo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(8px 14px 12px rgba(0, 0, 0, 0.18)); }
.box svg { display: block; width: 100%; height: auto; filter: drop-shadow(8px 14px 12px rgba(0, 0, 0, 0.18)); }
.product-hero .box { width: min(240px, 100%); }

.page-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; padding: 22px 0; font-size: 1.8rem; }
.lead { color: var(--muted); max-width: 46rem; }

.product-page { padding: 22px 0 64px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: #777; font-size: 0.92rem; }
.crumb a { color: #555; text-decoration: none; }
.crumb a:hover { color: var(--red); }

.product-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 28px;
}
.product-hero h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.position { margin: 8px 0 0; color: var(--green); font-weight: 700; }
.subtitle { margin: 6px 0 14px; color: #444; font-size: 1.15rem; }
.highlights { margin: 0 0 20px; padding-left: 1.15rem; }
.highlights li { margin: 4px 0; }

.tabs { margin-top: 8px; }
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.tab-bar button {
  appearance: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fafafa;
  color: #333;
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  margin-right: 4px;
  cursor: pointer;
}
.tab-bar button[aria-selected="true"] { background: #fff; color: var(--red); }
.tab-panel {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 22px 24px 28px;
}
.tab-panel h2 { margin: 0 0 12px; font-size: 1.45rem; }
.tab-panel h3 {
  margin: 18px 0 6px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tab-panel p { margin: 0 0 8px; }
.tab-panel ul { margin: 0 0 8px; padding-left: 1.15rem; }
.tab-panel .btn { margin-top: 12px; }

.related { margin-top: 28px; }
.related h2 { margin: 0 0 8px; font-size: 1.2rem; }
.related ul { margin: 0; padding-left: 1.15rem; }
.related li + li { margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); padding: 18px; }
.step span { display: block; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.facts div { margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--soft); }
.facts dt { color: #777; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-weight: 700; font-size: 1.15rem; }

.prose { max-width: 72ch; }
.prose h2 { margin: 28px 0 8px; font-size: 1.35rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.contact-grid h2 { margin: 0 0 8px; }
.form { border: 1px solid var(--line); padding: 18px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  background: #fff;
  color: inherit;
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.form-actions p { margin: 0; color: var(--muted); }
.form-error { margin: 0; color: var(--red); font-weight: 700; }
.form-ready { margin: 0 0 16px; padding: 12px; background: #eaf6ee; border: 1px solid #b7d8c4; }
.form-ready p { margin: 0; }

.site-footer { background: var(--footer); color: #eee; padding-top: 42px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer p { color: rgba(255, 255, 255, 0.75); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #eee; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-base p { margin: 0; font-size: 0.92rem; }
.missing { padding: 72px 0 96px; }
.missing h1 { margin-top: 0; }

.admin { background: #f1f2f4; font-size: 16px; }
.admin h1 { font-size: 1.6rem; }
.admin h2 { font-size: 1.15rem; }
.admin-bar { background: var(--top); color: #fff; position: sticky; top: 0; z-index: 10; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0 20px; }
.admin-brand { color: #fff; font-weight: 700; text-decoration: none; }
.admin-bar-actions { display: flex; align-items: center; gap: 18px; }
.admin-bar-actions a { color: #ddd; text-decoration: none; }
.admin-bar-actions a:hover { color: #fff; }
.admin-bar-actions form { margin: 0; }
.admin-bar-actions button {
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 54px); }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: 16px 0; }
.admin-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.admin-side a:hover { background: #f7f7f7; }
.admin-side a[aria-current="page"] { border-left-color: var(--red); background: #fdf2f2; color: var(--red); }
.admin-count { background: var(--red); color: #fff; font-size: 0.75rem; border-radius: 10px; padding: 1px 8px; }
.admin-main { padding: 24px 28px 56px; max-width: 1180px; }
.admin-main-guest { margin: 0 auto; }
.admin-main h1 { margin: 0 0 14px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 12px; }
.admin-main > .admin-head:first-child, .admin-back + .admin-head { margin-top: 0; }
.admin-head h1, .admin-head h2 { margin: 0; }
.admin-back { margin: 0 0 10px; }
.admin-back a { color: #555; text-decoration: none; }
.admin-hint { color: #666; margin: 0 0 14px; font-size: 0.95rem; }
.admin-empty { background: #fff; border: 1px dashed #ccc; padding: 24px; color: #666; text-align: center; }
.admin-alert { background: #fff6e5; border: 1px solid #f0d49a; padding: 12px 14px; margin: 0 0 16px; }
.admin-alert p { margin: 0; }
.admin-alert ul { margin: 6px 0 0; padding-left: 1.2rem; }
.admin-login { max-width: 380px; margin: 48px auto; display: grid; gap: 14px; }
.admin-login h1 { font-size: 1.5rem; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); padding: 16px 18px; color: inherit; text-decoration: none; display: block; }
a.stat:hover { border-color: var(--red); }
.stat span { display: block; color: #666; font-size: 0.85rem; font-weight: 600; }
.stat strong { display: block; font-size: 2rem; line-height: 1.2; margin-top: 4px; }
.stat small { font-size: 1rem; color: #888; font-weight: 600; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.admin-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: #fafafa; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #666; white-space: nowrap; }
.admin-table td:first-child { white-space: nowrap; }
.admin-table tbody tr:hover { background: #fcfcfc; }
.admin-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.admin-table small { color: #777; }
.admin-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-row-actions form { margin: 0; }
.admin .btn-small { min-height: 32px; padding: 0 10px; font-size: 0.88rem; }
.admin .btn-ghost { border-color: #bbb; color: #333; background: #fff; }
.admin .btn-ghost:hover { background: #333; color: #fff; border-color: #333; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.badge-yeni { background: #fde3e4; color: #a40e14; }
.badge-inceleniyor { background: #fff1d6; color: #8a5a00; }
.badge-teklif { background: #e1ecff; color: #1d4fa8; }
.badge-satis { background: #ddf3e4; color: #12693a; }
.badge-kapandi { background: #ececec; color: #555; }

.status-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.status-tabs a { background: #fff; border: 1px solid var(--line); padding: 6px 12px; color: #333; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.status-tabs a span { color: #888; margin-left: 4px; }
.status-tabs a[aria-current="page"] { background: var(--top); border-color: var(--top); color: #fff; }
.status-tabs a[aria-current="page"] span { color: #ccc; }
.admin-search { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.admin-search input { max-width: 420px; min-height: 38px; }
.admin-pages { display: flex; gap: 16px; align-items: center; margin-top: 16px; }

.admin-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.admin-detail { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; background: #fff; border: 1px solid var(--line); padding: 16px; margin: 0; }
.admin-detail dt { color: #777; font-weight: 700; }
.admin-detail dd { margin: 0; }
.admin-message { white-space: pre-line; background: #fff; border: 1px solid var(--line); padding: 16px; }
.admin-card { background: #fff; border: 1px solid var(--line); padding: 18px; margin-bottom: 16px; }
.admin-card h2 { margin: 0 0 12px; }
.admin-card > form > .field + .field, .admin-card > .field + .field, .admin-card > .field + .btn, .admin-card > form > .field + .btn { margin-top: 12px; }
.admin-card textarea { min-height: 90px; }
.admin-form .form-actions { margin-top: 4px; }
.admin-narrow { max-width: 460px; }
.admin .field small { color: #777; font-weight: 400; }
.admin .field code, .admin-hint code { background: #f2f2f2; padding: 1px 5px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.check input { width: auto; min-height: 0; }
.admin-image-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.admin-image-preview { border: 1px solid var(--line); background: #fafafa; min-height: 160px; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; color: #777; font-size: 0.9rem; }
.admin-image-preview img { max-width: 100%; max-height: 220px; display: block; }
.admin-danger { margin-top: 18px; }
.admin-danger button { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.admin-inline { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: #666; }
.admin .form-actions form { margin: 0; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-side a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; gap: 8px; }
  .admin-side a[aria-current="page"] { border-bottom-color: var(--red); }
  .admin-main { padding: 18px 16px 48px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-columns, .admin-image-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .product-grid, .steps, .facts { grid-template-columns: 1fr 1fr; }
  .product-hero, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .product-grid, .steps, .facts, .form-grid { grid-template-columns: 1fr; }
  .hero-band { padding: 56px 0; }
  .topbar-inner { justify-content: space-between; }
  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
