/* Hero başlığı: tüm ekranlarda tam iki satır ("Doğru Çözüm," / "Doğru Ürün İle Başlar.") */
.hero-h { white-space: nowrap; font-size: min(64px, calc((100vw - 170px) / 11.2)) !important; }
/* Responsive katman: tablet (≤900px) ve telefon (≤700px). Masaüstü tasarımına dokunmaz. */

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .hero-tile { aspect-ratio: auto !important; min-height: 620px !important; }
  .hero-tile > div:last-child { padding: 32px !important; }
  .hero-h { font-size: min(52px, calc((100vw - 140px) / 11.2)) !important; }
}

/* ---------- Telefon ---------- */
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  section[id] { scroll-margin-top: 84px; }
  .big-h { font-size: 30px !important; line-height: 1.15 !important; letter-spacing: -0.015em !important; }
  p { font-size: 15px; }
  .mono { font-size: 12px; }

  /* Header */
  header { top: 10px !important; padding: 0 10px !important; }
  header > div { height: 58px !important; padding: 0 5px 0 14px !important; }
  header img { height: 28px !important; }
  .seg { padding: 3px; }
  .seg-thumb { top: 3px; bottom: 3px; width: calc(50% - 3px); }
  .seg:has(.seg-store:hover) .seg-thumb { left: 3px; }
  .seg-opt { width: 86px !important; min-height: 42px !important; font-size: 13px !important; }
  .seg-opt svg { display: none; }

  /* Hero: telefonda başlık üstte, fabrikanın tamamı ortada, butonlar ve bilgiler altta */
  #ust { padding-top: 80px !important; }
  #ust .wrap { padding: 0 10px; }
  .hero-tile { min-height: 0 !important; border-radius: 24px !important; flex-direction: column; background: #1D1D1B; }
  .hero-tile > div[aria-hidden] { display: none; }
  .hero-tile > div:last-child { display: contents !important; }
  .hero-tile > div:last-child > div:first-child { order: 1; padding: 30px 20px 6px; }
  .hero-tile > img { order: 2; position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; aspect-ratio: 1.95; object-fit: cover; object-position: 50% 55% !important; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 80%, transparent 100%); margin: 4px 0 -6px; }
  .hero-tile > div:last-child > div:last-child { order: 3; padding: 0 16px 16px; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px !important; }
  .hero-h { font-size: min(34px, calc((100vw - 60px) / 11.4)) !important; line-height: 1.12 !important; white-space: nowrap; }
  .hero-tile p { font-size: 16px !important; margin-top: 14px !important; color: #CFCFCB !important; }
  .hero-tile > div:last-child > div:last-child > div:first-child { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .hero-tile .btn { min-height: 50px !important; padding: 0 10px !important; font-size: 14px !important; white-space: nowrap; gap: 6px !important; }
  .hero-tile .btn svg { display: none; }
  .hero-stats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; }
  .hero-stats > div { min-width: 0 !important; padding: 10px 10px !important; border-radius: 14px !important; background: rgba(255,255,255,0.07) !important; border-color: rgba(255,255,255,0.14) !important; }
  .hero-stats > div > div:first-child { font-size: 17px !important; white-space: nowrap; }
  .hero-stats > div > div:last-child { font-size: 11px !important; line-height: 1.3; }
  .wa-fab { width: 52px !important; height: 52px !important; left: 14px !important; bottom: 14px !important; }

  /* Çözüm ortakları */
  #markalar { padding: 56px 0 8px !important; }
  #markalar > .wrap { margin-bottom: 24px !important; gap: 14px !important; }
  #markalar > .wrap > p { font-size: 15px !important; }
  .track { gap: 40px; }
  .logo-b { height: 38px; max-width: 130px; }

  /* Hakkımızda (bento: 2 sütun) */
  #hakkimizda { padding: 48px 0 !important; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: auto !important; gap: 10px !important; }
  .bento > .c2, .bento > .r2 { grid-column: span 2 !important; grid-row: auto !important; }
  .bento > .tile { border-radius: 22px; min-height: 0 !important; }
  .bento > .tile:first-child { padding: 24px !important; gap: 20px !important; }
  .bento > .tile:first-child p { font-size: 15px !important; line-height: 1.65 !important; }
  .bento > .tile:first-child span[style*="min-height: 36px"] { min-height: 32px !important; font-size: 13px !important; padding: 0 12px !important; }
  .bento > .tile:nth-child(2) { height: 230px; }
  .bento > .tile:nth-child(3), .bento > .tile:nth-child(4) { grid-column: span 1 !important; padding: 18px !important; min-height: 168px !important; }
  [data-count] { font-size: 40px !important; }
  .bento > .tile:nth-child(4) [data-count] { font-size: 30px !important; }
  .bento > .tile:nth-child(3) .lift > span:last-child, .bento > .tile:nth-child(4) .lift > span:last-child { font-size: 13px; }
  .bento .mark { width: 300px !important; }
  .bento > .tile:nth-child(5) { padding: 18px !important; }
  .bento > .tile:nth-child(6) { grid-column: span 1 !important; min-height: 150px !important; }
  .bento > .tile:nth-child(7) { grid-column: span 1 !important; padding: 18px !important; min-height: 150px !important; }
  .bento > .tile:nth-child(7) span[style*="font-size: 52px"] { font-size: 28px !important; margin-bottom: 4px; }
  .bento > .tile:nth-child(7) span[style*="color: #6B6B66"]:last-child { font-size: 12px; line-height: 1.35; display: block; }
  .cta-tile { padding: 22px !important; }
  .cta-tile span[style*="font-size: 30px"] { font-size: 24px !important; }
  .cta-tile { gap: 8px !important; }
  .cta-tile > span.hide-m { display: flex !important; flex: 0 0 104px !important; padding: 0 !important; align-self: center; }

  /* Ürün grupları (2 sütun) */
  #urunler { padding: 16px 0 64px !important; }
  #urunler .wrap > div:first-child { margin-bottom: 24px !important; gap: 16px !important; }
  #urunler .wrap > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .pcard { border-radius: 18px; padding: 6px; }
  .pcard > span:first-child { height: 124px !important; border-radius: 14px !important; }
  .pcard > span:first-child img { max-height: 96px !important; max-width: 78% !important; }
  .pcard > span:last-child { padding: 10px 6px 6px !important; }
  .pcard > span:last-child > span:first-child > span:first-child { font-size: 14px !important; line-height: 1.25; }
  .pcard > span:last-child > span:first-child > span:last-child { font-size: 12px !important; line-height: 1.35 !important; }
  .pcard .arrow { display: none; }
  #urunler .wrap > p { font-size: 14px !important; }

  /* Hizmetler */
  #hizmetler { padding: 0 10px !important; }
  #hizmetler > .tile { padding: 52px 0 28px !important; border-radius: 24px !important; }
  #hizmetler .big-h { margin-bottom: 24px !important; }
  #hizmetler .wrap > div { padding: 20px 0 !important; gap: 12px 14px !important; }
  #hizmetler .wrap > div > span[aria-hidden] { flex: 0 0 44px !important; width: 44px !important; height: 44px !important; }
  #hizmetler h3 { flex: 1 1 0 !important; font-size: 20px !important; letter-spacing: -0.01em !important; }
  #hizmetler .wrap > div > p { flex: 1 1 100% !important; font-size: 15px !important; }
  #hizmetler .wrap > div > img { display: none; }

  /* Referanslar */
  #referanslar { padding: 64px 0 56px !important; }
  #referanslar .wrap > div:first-child { margin-bottom: 24px !important; gap: 16px !important; }
  #referanslar .wrap > div:first-child > div:last-child { padding: 10px 16px !important; }
  #referanslar .wrap > div:first-child > div:last-child > span:first-child { font-size: 28px !important; }
  .ref-grid { border-radius: 18px !important; }
  .ref-grid > div { height: 72px !important; padding: 8px 10px !important; }
  .logo-r { max-height: 44px; }

  /* SSS */
  #referanslar + section { padding: 0 0 64px !important; }
  #referanslar + section .wrap { gap: 20px !important; }
  #referanslar + section .wrap > div:last-child { flex-basis: 100% !important; }
  details { padding: 16px 18px !important; border-radius: 16px !important; }
  details summary { font-size: 16px !important; }
  details summary .arrow { width: 32px; height: 32px; }
  details p { font-size: 15px; }

  /* İletişim */
  #iletisim { padding: 0 10px 10px !important; }
  #iletisim > .tile { padding: 48px 0 !important; border-radius: 24px !important; }
  #iletisim .wrap { gap: 28px !important; }
  #iletisim .big-h { font-size: 36px !important; margin-bottom: 8px !important; }
  #iletisim .wrap > div:first-child > div { padding: 18px !important; border-radius: 18px !important; }
  #iletisim .wrap > div:first-child > div:last-child { padding: 18px 0 0 !important; border-radius: 0 !important; }
  #teklif-formu { padding: 20px !important; border-radius: 20px !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  #teklif-formu > * { grid-column: 1 / -1 !important; }
  .field input, .field select, .field textarea { font-size: 16px; }

  /* Footer */
  .foot { padding: 32px 0 96px !important; font-size: 13px !important; }
  .foot-row { gap: 14px !important; }
}

/* Çok dar ekranlar */
@media (max-width: 380px) {
  .hero-tile > div:last-child > div:last-child > div:first-child { grid-template-columns: 1fr; }
  .seg-opt { width: 78px !important; font-size: 12px !important; }
  #urunler .wrap > div:nth-child(2) { gap: 8px !important; }
}
