:root {
  --primary: #3e5e48;
  --primary-dark: #2d4636;
  --bg: #faf7f1;
  --text: #313131;
  --accent: #b3532f;
  --secondary: #9bb4ab;
  /* Kolajın kendi kağıt tonu; hero'daki yumuşak katman bundan türüyor. */
  --paper: #fbebcc;
  --muted: #5c5a55;
  --line: #e3dccd;
  --measure: 65ch;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--primary-dark);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 2.75rem);
}

p,
figure,
dl,
dd,
address {
  margin: 0;
}

address {
  font-style: normal;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--bg);
}

.skip:focus {
  top: 12px;
}

/* ---------- Hero ----------
   Önce mobil: kolaj tam genişlikte, hafif dikey kadrajla (yanlardan yalnızca
   ~%6 kırpılır, piyano ve bağlama görünür kalır). Kağıt tonu alttan kolajın
   içine doğru erir; logo bu geçişin üstünde, ad ve slogan opak zeminde durur.
   Ortadaki tabela ve kompozisyon hiçbir genişlikte örtülmez. */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1200 / 1320;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to bottom, rgb(251 235 204 / 0), rgb(251 235 204 / 0.85) 70%, var(--paper));
  pointer-events: none;
}

.hero-text {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter) 48px;
  margin-top: -112px;
  /* Üstteki 112px kolajın solan ucunun üstünde saydam kalır; logo orada
     durur. Altı kağıt tonundan sayfa zeminine geçer, ek yeri oluşmaz. */
  background: linear-gradient(to bottom, transparent 112px, var(--paper) 112px, var(--bg));
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  max-width: 11ch;
}

.slogan {
  margin-top: 16px;
  max-width: 26ch;
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.35;
  color: var(--text);
}

.slogan::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--accent);
}

/* ---------- Bölümler ---------- */
.intro {
  padding-top: 56px;
  padding-bottom: 8px;
}

.intro p + p {
  margin-top: 0.9em;
}

.intro p {
  max-width: 36ch;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.section {
  padding-top: 80px;
}

.contact-section {
  padding-bottom: 56px;
}

.section h2 {
  margin-bottom: 28px;
}

/* Branşlar: kutu yok, hiyerarşi yazıyla. */
.branches > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.branches > div:last-child {
  border-bottom: 1px solid var(--line);
}

.branches dt {
  font-size: clamp(1.375rem, 1.15rem + 1.1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--primary);
}

.branches-more {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--primary);
}

.branches-more span {
  white-space: nowrap;
}

.branches dd {
  margin-top: 8px;
  max-width: 60ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Uygulama */
.app {
  display: grid;
  gap: 48px;
}

.app-text p {
  max-width: 48ch;
}

.app-features {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.app-features li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-top: 1px solid var(--line);
}

.app-features li:last-child {
  border-bottom: 1px solid var(--line);
}

.app-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--secondary);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  min-width: 140px;
  padding: 8px 18px;
  border: 1px dashed var(--muted);
  border-radius: 12px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--text);
}

.store strong {
  color: var(--primary);
}

.store span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Sade cihaz çerçevesi: düz koyu kenar, gölge yok. */
.app-shot {
  justify-self: center;
  width: min(100%, 280px);
  padding: 10px;
  border-radius: 40px;
  background: var(--primary-dark);
}

.app-shot img {
  width: 100%;
  border-radius: 30px;
}

/* İletişim: adres, telefon, e-posta aynı düzende — gri etiket, yeşil değer. */
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list li,
.contact-list li > a:only-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 12px 0;
  text-decoration: none;
}

/* Satırın tamamı bağlantı olduğunda dolgu bağlantıya geçer (dokunma alanı). */
.contact-list li:has(> a:only-child) {
  padding: 0;
}

.contact-list li > a:only-child:hover .contact-value {
  text-decoration: underline;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-value {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary);
}

.directions {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -10px;
  font-size: 0.9375rem;
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Alt bilgi */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 32px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  justify-content: space-between;
}

.site-footer p {
  padding: 12px 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Gizlilik sayfasının üst bilgisi ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

/* ---------- Gizlilik politikası ---------- */
.policy {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 56px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.policy header {
  margin-top: 16px;
}

.policy h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}

.policy .org {
  margin-top: 12px;
  font-weight: 600;
}

.policy .updated {
  margin-top: 4px;
  color: var(--muted);
}

.policy hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.policy h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.policy h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 24px 0 8px;
}

.policy p,
.policy ul,
.policy blockquote {
  max-width: var(--measure);
}

.policy p + p,
.policy ul + p,
.policy p + ul {
  margin-top: 12px;
}

.policy ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 20px;
}

.policy li + li {
  margin-top: 6px;
}

.policy strong {
  font-weight: 600;
}

.policy blockquote {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--secondary);
  background: #fff;
  border-radius: 0 12px 12px 0;
}

/* Dar ekranda tablo sayfayı taşırmasın: kendi içinde yatay kayar. */
.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.policy table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.policy th,
.policy td {
  padding: 10px 14px;
  vertical-align: top;
}

.policy th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.policy tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.policy td:first-child {
  font-weight: 600;
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  :root {
    --gutter: 40px;
  }

  /* Geniş ekranda kare kolaj tam genişlikte çok uzar: kadrajı yatayda
     tutup üstten/alttan hafif kırp, figürlerin başları içeride kalsın. */
  .hero-media img {
    aspect-ratio: 1200 / 940;
    object-position: 50% 35%;
  }

  .hero-media::after {
    height: 30%;
  }

  .branches > div {
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    gap: 32px;
    align-items: baseline;
    padding: 24px 0;
  }

  .branches dd {
    margin-top: 0;
  }
}

/* ---------- Masaüstü ----------
   Kolaj ekran yüksekliğinde kare olarak sağa yaslanır (kırpılmaz); kağıt
   tonu soldan kolajın kenarına doğru erir ve ad ile slogan o zeminde durur. */
@media (min-width: 900px) {
  /* Hero yüksekliği tek bir değişkende; kolaj kutusu buna AÇIKÇA eşitlenir.
     (aspect-ratio + max-width ile bırakıldığında geniş ekranda kolaj
     hero'dan taşıp altındaki metnin üstüne biniyordu.) */
  .hero {
    --hero-h: clamp(600px, 100vh, 1000px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: var(--hero-h);
    height: var(--hero-h);
    min-height: 0;
    overflow: hidden;
    background: var(--paper);
  }

  @supports (height: 100svh) {
    .hero {
      --hero-h: clamp(600px, 100svh, 1000px);
    }
  }

  .hero-media {
    grid-column: 2;
    grid-row: 1;
    width: min(62vw, var(--hero-h));
    height: var(--hero-h);
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 50%;
  }

  .hero-media::after {
    inset: 0 auto 0 0;
    width: 22%;
    height: auto;
    background: linear-gradient(to right, var(--paper), rgb(251 235 204 / 0.8) 35%, rgb(251 235 204 / 0));
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    margin-right: -4vw;
    background: none;
    padding: 0 0 0 max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter)));
    z-index: 1;
  }

  .hero-logo {
    width: 104px;
    height: 104px;
    margin-bottom: 28px;
  }

  .intro {
    padding-top: 96px;
  }

  .section {
    padding-top: 128px;
  }

  .contact-section {
    padding-bottom: 80px;
  }

  /* Branşlar ve İletişim: solda başlık, sağda liste. */
  .branches-section,
  .contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 48px;
    align-items: start;
  }

  .branches-section h2 {
    grid-row: span 2;
  }

  .branches-section > :not(h2) {
    grid-column: 2;
  }

  .app {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 80px;
  }

  .app-shot {
    width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
