/* ==========================================================================
   Hero slider (Swiper tabanlı) — sade, kurumsal-zarif
   ========================================================================== */
.hs {
  --hs-navy: #061a42;
  --hs-brand: #0b5ed7;
  --hs-accent: #cfe0ff;
  --hs-ink: #f4f7fb;
  --hs-muted: rgba(244, 247, 251, .74);
  --hs-glass: rgba(255, 255, 255, .09);
  --hs-glass-line: rgba(255, 255, 255, .2);
  --hs-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(600px, 84vh, 740px);
  display: flex;
  flex-direction: column;
  color: var(--hs-ink);
  background:
    radial-gradient(55% 85% at 80% 46%, rgba(54, 128, 255, .42) 0%, rgba(11, 94, 215, .2) 40%, transparent 72%),
    linear-gradient(268deg, #1560df 0%, #0b45a8 24%, #09285f 56%, var(--hs-navy) 100%);
}

/* hafif grain dokusu */
.hs-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.hs-swiper { position: relative; z-index: 1; flex: 1; width: 100%; }
.hs-swiper .swiper-wrapper { height: 100%; }

.hs-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Banner (görselli) slaytlar */
.hs-banner-bg { position: absolute; inset: 0; z-index: 0; }
.hs-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.hs-banner-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 15, 38, .88) 0%, rgba(5, 15, 38, .55) 45%, rgba(5, 15, 38, .1) 100%);
}
.hs-banner-bg--soft img { opacity: .2; mix-blend-mode: luminosity; }
.hs-banner-bg--soft::after { background: linear-gradient(90deg, rgba(5, 15, 38, .55), transparent 70%); }

.hs-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 28px 200px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 24px;
}

/* ---------- Metin ---------- */
.hs-copy { max-width: 620px; }

.hs-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--hs-muted);
}
.hs-rule { width: 30px; height: 1px; background: currentColor; opacity: .7; }

.hs-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.018em;
  color: #fff;
  text-wrap: balance;
  max-width: 17em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding-bottom: .1em;
}
.hs-title em {
  font-family: var(--hs-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--hs-accent);
}
.hs-sub { margin: -4px 0 20px; max-width: 46ch; font-size: 1rem; color: var(--hs-muted); }

.hs-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 26px; }
.hs-price span { font-size: 1.2rem; font-weight: 400; letter-spacing: -.005em; font-variant-numeric: tabular-nums; color: #fff; }
.hs-price small { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-muted); }

/* ---------- Buton (beyaz hap; hover'da ok sağa kayar) ---------- */
.hs-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: #fff;
  color: #0a2d6b;
  font-weight: 600; font-size: .92rem; letter-spacing: .005em;
  box-shadow: 0 8px 24px -10px rgba(2, 12, 40, .55);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.hs-btn:hover, .hs-btn:focus-visible { color: #0a2d6b; background: #f1f6ff; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(2, 12, 40, .6); }
.hs-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hs-btn-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hs-brand); color: #fff; overflow: hidden; }
.hs-btn-ic svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.hs-btn:hover .hs-btn-ic svg, .hs-btn:focus-visible .hs-btn-ic svg { transform: translateX(4px); }

/* ---------- Sahne (ürün + yumuşak ışık) ---------- */
.hs-stage { position: relative; margin: 0; display: grid; place-items: center; min-height: 400px; }

.hs-glow {
  position: absolute; z-index: 0;
  width: min(120%, 660px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .78) 0%, rgba(200, 222, 255, .5) 28%, rgba(110, 170, 255, .18) 52%, rgba(11, 94, 215, 0) 70%);
  filter: blur(26px);
}
.hs-photo {
  position: relative; z-index: 1;
  width: min(100%, 520px); aspect-ratio: 1;
  /* fotoğrafın dikdörtgen kenarları tamamen erir */
  -webkit-mask-image: radial-gradient(closest-side, #000 34%, rgba(0, 0, 0, 0) 92%);
  mask-image: radial-gradient(closest-side, #000 34%, rgba(0, 0, 0, 0) 92%);
}
.hs-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.hs-code {
  position: absolute; z-index: 3; left: 8%; bottom: 8%;
  padding: 6px 11px; border-radius: 6px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
}

/* Güven etiketleri: sakin, sabit */
.hs-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  font-size: .76rem; font-weight: 500; color: rgba(255, 255, 255, .92); white-space: nowrap;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hs-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.hs-chip--a { top: 12%; right: 4%; }
.hs-chip--b { bottom: 20%; right: 0; }

/* ---------- Kademeli giriş (80ms) ----------
   İçerik varsayılan olarak GÖRÜNÜR; animasyon yalnızca ek bir efekt (fill-mode: backwards),
   böylece JS/animasyon takılsa bile metinler asla gizli kalmaz. */
.hs-slide.swiper-slide-active .hs-in {
  animation: hs-rise .75s cubic-bezier(.2, .75, .2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 80ms + 100ms);
}
@keyframes hs-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Kontroller ---------- */
.hs-controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  max-width: 1240px; margin: 0 auto; padding: 0 28px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.hs-controls > * { pointer-events: auto; }

.hs-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; align-items: center; flex: 1; max-width: 520px; }
.hs-progress li { flex: 1; min-width: 0; }
.hs-step { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 10px 0; }
.hs-step b { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; color: rgba(255, 255, 255, .5); transition: color .3s; }
.hs-line { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .3s; }
.hs-line i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); }
.hs-step:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.hs-step[aria-current="true"] b { color: #fff; }
.hs-step[aria-current="true"] .hs-line { height: 3px; }
.hs-step[aria-current="true"] .hs-line i { transform: scaleX(var(--p, 1)); }

.hs-nav { display: flex; gap: 10px; margin-left: auto; }
.hs-ctl {
  all: unset; box-sizing: border-box; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: var(--hs-glass); border: 1px solid var(--hs-glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s, border-color .25s;
}
.hs-ctl:hover { background: rgba(255, 255, 255, .2); }
.hs-ctl:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hs-ctl.swiper-button-disabled { opacity: .4; cursor: default; }
.hs-pause .i-play { display: none; }
.hs-pause[aria-pressed="true"] .i-play { display: block; }
.hs-pause[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Uyumlu Parçanı Bul — cam panel ---------- */
.hs-finder {
  position: absolute; z-index: 6;
  left: max(28px, calc((100% - 1240px) / 2 + 28px));
  bottom: 88px;
  width: min(430px, calc(100% - 56px));
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .06));
  border: 1px solid var(--hs-glass-line);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 20px 50px -24px rgba(2, 12, 40, .7);
}
.hs-finder h2 { margin: 0 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-muted); }
.hs-finder form { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 18px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 6px 20px -8px rgba(2, 12, 40, .5); }
.hs-finder input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #0d1b3a; font-size: .95rem; padding: 10px 0; }
.hs-finder input::placeholder { color: #6b7488; }
.hs-finder form:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 6px 20px -8px rgba(2, 12, 40, .5); }
.hs-finder button { all: unset; cursor: pointer; box-sizing: border-box; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--hs-brand); color: #fff; transition: background .25s; }
.hs-finder button:hover { background: #0a4fb8; }
.hs-finder button svg { transition: transform .25s; }
.hs-finder button:hover svg, .hs-finder button:focus-visible svg { transform: translateX(3px); }
.hs-finder button:focus-visible { outline: 2px solid #0d1b3a; outline-offset: 2px; }
.hs-finder-result { max-height: 220px; overflow: auto; margin-top: 10px; font-size: .86rem; color: #fff; }
.hs-finder-result:empty { display: none; }
.hs-finder-result p { margin: 0 0 8px; }
.hs-finder-result .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-finder-result .chip { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid var(--hs-glass-line); padding: 6px 10px; border-radius: 999px; font-size: .8rem; }
.hs-finder-result .chip:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hs-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); padding-top: 52px; }
  .hs-stage { min-height: 330px; }
  .hs-chip--b { right: -2%; }
}

/* ---------- Mobil: görsel üstte, metin altta ---------- */
@media (max-width: 760px) {
  .hs { min-height: 0; }
  .hs-slide { align-items: flex-start; }
  .hs-wrap { display: flex; flex-direction: column; gap: 0; padding: 24px 20px 10px; }
  .hs-stage { order: -1; width: 100%; min-height: 0; margin-bottom: 6px; }
  .hs-photo { width: min(76%, 290px); }
  .hs-glow { width: 105%; }
  .hs-copy { width: 100%; max-width: none; }
  .hs-eyebrow { margin-bottom: 12px; font-size: .68rem; }
  .hs-title { font-size: clamp(1.7rem, 7.4vw, 2.2rem); margin-bottom: 12px; }
  .hs-price { margin-bottom: 20px; }
  .hs-code { left: 2%; bottom: 4%; font-size: .64rem; }
  .hs-chip { font-size: .7rem; padding: 6px 11px; }
  .hs-chip--a { top: 4%; right: 2%; }
  .hs-chip--b { bottom: 14%; right: 2%; }

  .hs-controls { position: relative; padding: 14px 20px 6px; gap: 12px; flex-wrap: wrap; }
  .hs-progress { gap: 10px; flex-basis: 100%; max-width: none; }
  .hs-nav { margin-left: 0; }
  .hs-ctl { width: 42px; height: 42px; }
  .hs-finder { position: relative; left: auto; bottom: auto; width: auto; margin: 10px 20px 24px; z-index: 6; }
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .hs-slide.swiper-slide-active .hs-in { animation: none; }
  .hs-btn, .hs-btn-ic svg, .hs-ctl, .hs-line, .hs-step b { transition: none; }
}
