:root {
  --bg: #0b1220;
  --fg: #0f172a;
  --primary: #0ea5e9;
  --accent: #38bdf8;
  --text: #0b1220;
  --muted: #475569;
  --white: #ffffff;
}

/* Global reset & helpers */
* {
  box-sizing: border-box
}

html {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background: #f7fafc;
  color: #0f172a;
}

a {
  color: var(--primary);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

/* Kritik taşma önlemleri */
html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: clip;
}

/* Header */
header {
  background: var(--fg);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06)
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  overflow: hidden
}

.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.brand .title {
  font-weight: 700;
  letter-spacing: .2px
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center
}

nav a {
  color: #e2e8f0;
  font-weight: 600
}

nav a.active,
nav a:hover {
  color: #fff
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #e2e8f0;
  font-size: 26px;
  cursor: pointer
}

@media (max-width: 840px) {
  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0
  }

  nav ul.open {
    display: flex
  }

  .mobile-toggle {
    display: block
  }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #e6f6ff, #ffffff);
  padding: 64px 0;
  border-bottom: 1px solid #e2e8f0
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 38px
}

.hero p {
  margin: 0 0 14px;
  color: #334155;
  max-width: 760px
}

.lead {
  font-size: 18px;
  color: #334155
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 18px
}

.button {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(14, 165, 233, .25);
  cursor: pointer;
}

.button.secondary {
  background: #0f172a
}

/* Bölümler */
.section {
  padding: 40px 0
}

.section h2 {
  font-size: 26px;
  margin: 0 0 10px
}

/* Kart/grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

@media (max-width: 840px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden
}

.card .body {
  padding: 14px
}

.card .title {
  font-weight: 700;
  margin: 0 0 6px
}

.badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 12px
}

/* Footer */
footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  margin-top: 40px
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 28px 0
}

@media (max-width:760px) {
  .footer-inner {
    grid-template-columns: 1fr
  }
}

.small {
  font-size: 12px;
  color: #64748b
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px
}

.kv b {
  color: #0f172a
}

.addr {
  white-space: pre-line
}

/* Ürün bloğu (Ana sayfa) */
.hero-product {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.hero-product>div {
  min-width: 0;
}

.hero-product h2 {
  font-size: 26px;
  margin: 0 0 10px
}

.hero-product h3 {
  margin: 6px 0 8px;
}

.hero-product p {
  margin: 0 0 12px
}

.hero-product .button {
  margin-top: 12px;
  display: inline-block
}

.hero-product img {
  width: 100% !important;
  height: auto;
  max-width: 100% !important;
}

/* Galeri */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

@media (max-width:760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

.gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9
}

/* Ayraç */
hr.sep {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 24px 0
}

/* İK sayfasındaki görselin responsive kalması */
.section img {
  width: 100% !important;
  height: auto;
  max-width: 100% !important;
}

@media (max-width: 760px) {
  .hero-product {
    grid-template-columns: 1fr;
    /* tek sütun */
  }

  .hero-product>div:first-child {
    order: 1;
  }

  /* metin üstte */
  .hero-product>div:last-child {
    order: 2;
  }

  /* görsel altta */
}