/* ═══ Header + Hero ════════════════════════════════════════════════════════
   Referans: aifusionx.vamtam.com/ai-trainers — ölçüler canlı sayfadan çıkarıldı,
   ayrıntı: docs/research/aifusionx-header-hero.spec.md
   Kırılımlar referansla aynı: tablet ≤1024px, mobil ≤767px.
   Font ve renkler SİSTEMDEN gelir (Ayarlar → Görünüm: font çifti + palet; varsayılanlar site.css):
   burada font adı / marka rengi yazılmaz — bekçi: HeaderHeroGorunumTests.
   ═════════════════════════════════════════════════════════════════════════ */

:root {
    --header-h: 72px;
    --ann-h: 0px;
    --hx-font: var(--font-govde);               /* menü, alt başlık, hero butonu */
    --hx-font-baslik: var(--font-baslik);       /* h1, header butonu, logo yazısı */
    --hx-metin: var(--text);
    --hx-zemin: var(--bg);
    --hx-yuzey: var(--surface);
    --hx-vurgu: var(--accent);                  /* dönen kelime, buton hover */
    --hx-vurgu-metin: var(--accent-metin, #fff);
    --hx-hafif: color-mix(in srgb, var(--hx-metin) 6%, transparent);   /* hover zemini */
    /* Kavisli "cep" oyuğu (referans vamtam-cp-bot-right): sağ alt köşede butonun oturduğu S-eğri.
       Oyuğu taşıyan katman bulunduğu zeminin rengindedir. Kullanan: Hakkımızda, Form, SSS, CTA. */
    --hx-cep-sag-alt: polygon(100% 0%, 100% 1.5%, 100% 3%, calc(100% - 0.05px) 4.5%, calc(100% - 0.1px) 6%, calc(100% - 0.25px) 8%, calc(100% - 0.4px) 10%, calc(100% - 0.7px) 12%, calc(100% - 1px) 14%, calc(100% - 1.6px) 16.5%, calc(100% - 2.2px) 19%, calc(100% - 3.2px) 21.2%, calc(100% - 4.2px) 23.5%, calc(100% - 5.8px) 25.5%, calc(100% - 7.5px) 27.5%, calc(100% - 9.7px) 29.2%, calc(100% - 12px) 31%, calc(100% - 15px) 32.2%, calc(100% - 18px) 33.5%, calc(100% - 22px) 34.3%, calc(100% - 26px) 35.1%, calc(100% - 31px) 35.45%, calc(100% - 36px) 35.8%, calc(100% - 43px) 35.95%, calc(100% - 50px) 36.1%, calc(100% - 60px) 36.12%, calc(100% - 70px) 36.15%, calc(100% - 82px) 36.15%, calc(100% - 95px) 36.15%, 150px 36.15%, 147.5px 36.155%, 145px 36.16%, 142.5px 36.2%, 140px 36.25%, 137.5px 36.35%, 135px 36.45%, 132.5px 36.62%, 130px 36.8%, 127.5px 37.1%, 125px 37.4%, 122.5px 37.85%, 120px 38.3%, 117.5px 38.9%, 115px 39.5%, 112.5px 40.2%, 110px 41%, 107.5px 42%, 105px 43%, 102.5px 44.2%, 100px 45.5%, 97.5px 47%, 95px 48.5%, 92.5px 50.2%, 90px 52%, 87.5px 54%, 85px 56%, 82.5px 58.2%, 80px 60.5%, 77.5px 63%, 75px 65.5%, 72.5px 68.2%, 70px 71%, 67.5px 73.7%, 65px 76.5%, 62.5px 79%, 60px 81.5%, 57.5px 83.7%, 55px 86%, 52.5px 87.7%, 50px 89.5%, 47.5px 91%, 45px 92.5%, 42.5px 93.7%, 40px 95%, 37.5px 96%, 35px 97%, 32.5px 97.7%, 30px 98.5%, 27.5px 98.9%, 25px 99.3%, 22.5px 99.55%, 20px 99.8%, 17.5px 99.9%, 15px 100%, 0% 100%, 100% 100%, 100% 0%);
    /* Cam yüzeyin iç ışık/gölge kenarları (referanstaki "liquid glass") */
    --hx-cam-ic:
        inset 0 0 0 2px rgba(255, 255, 255, .4),
        inset 2px 1px 0 -1px #fff,
        inset -1.5px -1px 0 -1px #fff,
        inset -2px -6px 1px -5px #fff,
        inset -1px 2px 3px -1px rgba(0, 0, 0, .2),
        inset 0 -4px 1px -2px rgba(0, 0, 0, .2);
}
@media (max-width: 1024px) { :root { --header-h: 70px; } }

/* --ann-h: header üstü duyuru çubuğu (sabit, DuyuruCubugu bileşeni :root'u 44px'e çeker). */
body { padding-top: calc(var(--header-h) + var(--ann-h)); }

/* ─── Header satırı (logo + sağ buton sayfayla kayar) ─────────────────── */

.hx-header {
    position: absolute;
    top: var(--ann-h);
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 0 30px;
    font-family: var(--hx-font);
    color: var(--hx-metin);
}
.hx-header-ic {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.hx-header-sol,
.hx-header-sag {
    flex: 0 0 auto;
    min-width: 190px;
    min-height: 51.4px;
    display: flex;
    align-items: center;
}
.hx-header-sag { justify-content: flex-end; gap: 12px; }

.hx-logo,
.hx-logo:hover { display: inline-flex; align-items: center; color: var(--hx-metin); opacity: 1; text-decoration: none !important; }
.hx-logo img { display: block; width: auto; height: auto; max-width: 145px; max-height: 40px; }
.hx-logo-metin { font-family: var(--hx-font-baslik); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* ─── Orta menü: buzlu cam hap, kaydırırken sabit (top 15px) ───────────── */

.hx-nav {
    position: fixed;
    top: calc(var(--ann-h) + 15px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1041;
    max-width: calc(100% - 500px);
}
/* Buzlu cam hap: orta menü + yüzen dil seçici aynı yüzeyi paylaşır. */
.hx-nav-cam,
.dil-fab-btn,
.dil-fab-menu {
    position: relative;
    border: 1px solid rgba(9, 9, 9, .2);
    border-radius: 60px;
    box-shadow: var(--hx-cam-ic), 0 3px 6px 0 rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    /* "Sıvı cam" bükülmesi (SVG filtresi Header.cshtml'de). Desteklemeyen tarayıcı bu satırı
       yok sayar ve üstteki düz bulanıklıkta kalır. */
    backdrop-filter: blur(5px) url(#hx-lg-fx3);
    transition: background .3s, border .3s, box-shadow .3s, transform .4s;
}
.hx-nav-cam::before,
.dil-fab-btn::before,
.dil-fab-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--hx-yuzey);
    opacity: .7;
    pointer-events: none;
}
.hx-svg-tanim { position: absolute; width: 0; height: 0; overflow: hidden; }

.hx-menu {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px 30px;
    list-style: none;
}
.hx-menu > li { position: relative; display: flex; }

.hx-menu-link,
.hx-menu-link:hover {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    margin: 0 2px;
    padding: 8px 8.64px;
    font-size: 15px;
    line-height: 16.5px;
    font-weight: 500;
    color: var(--hx-metin);
    white-space: nowrap;
    text-decoration: none !important;
    opacity: 1;
    transition: color .4s;
}
.hx-menu > li:first-child > .hx-menu-link { margin-left: 0; }
.hx-menu > li:last-child > .hx-menu-link { margin-right: 0; }
/* Hover: öğenin arkasında beyaz hap belirir (Elementor "background" işaretçisi, fade). */
.hx-menu-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 32px;
    background: var(--hx-yuzey);
    opacity: 0;
    transition: opacity .3s;
}
.hx-menu > li:hover > .hx-menu-link,
.hx-menu-link:focus-visible { color: var(--hx-metin); }
.hx-menu > li:hover > .hx-menu-link::before,
.hx-menu-link:focus-visible::before { opacity: 1; }

.hx-menu-ev svg { display: block; width: 17px; height: 17px; }
.hx-ok { display: flex; align-items: center; margin: -10px 0; padding: 5px; }
.hx-ok svg { display: block; width: 15px; height: 15px; }

/* Açılır alt menü (Hakkımızda → "Ayrı Sayfalar" düzeni) */
.hx-alt-menu {
    position: absolute;
    top: 100%;
    left: 2px;
    z-index: 5;
    min-width: 195px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    background: var(--hx-yuzey);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
/* Link ile panel arasındaki boşlukta hover kopmasın (görünmez köprü) */
.hx-alt-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.hx-menu > li:hover > .hx-alt-menu,
.hx-menu > li:focus-within > .hx-alt-menu,
.hx-menu > li.hx-acik > .hx-alt-menu { opacity: 1; visibility: visible; transform: none; }
.hx-alt-menu a,
.hx-alt-menu a:hover {
    display: flex;
    padding: 12px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    color: var(--hx-metin);
    white-space: nowrap;
    text-decoration: none !important;
    opacity: 1;
    transition: background-color .4s, color .4s;
}
.hx-alt-menu li:first-child a { border-radius: 20px 20px 0 0; }
.hx-alt-menu li:last-child a { border-radius: 0 0 20px 20px; }
.hx-alt-menu li:only-child a { border-radius: 20px; }
.hx-alt-menu a:hover,
.hx-alt-menu a:focus-visible { background: var(--hx-hafif); color: var(--hx-metin); }

/* ─── Siyah hap buton (header + hero) ─────────────────────────────────── */

.hx-btn,
.hx-btn:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 19.2px;
    padding: 17px 25px;
    border: 1px solid var(--hx-metin);
    border-radius: 60px;
    background: var(--hx-metin);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .2);
    color: var(--hx-zemin);
    font-family: var(--hx-font);
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none !important;
    opacity: 1;
    transition: background-color .3s, border-color .3s, color .3s;
}
.hx-btn:hover,
.hx-btn:focus-visible { background: var(--hx-vurgu); border-color: var(--hx-vurgu); color: var(--hx-vurgu-metin); }
.hx-btn svg { display: block; flex: none; width: 16px; height: 16px; }

.hx-btn-header,
.hx-btn-header:hover {
    gap: 20px;
    font-family: var(--hx-font-baslik);
    font-size: 14px;
    line-height: 15.4px;
    font-weight: 700;
}
.hx-btn-header svg { width: 14px; height: 14px; }

/* ─── Hamburger + mobil panel (≤1024px) ───────────────────────────────── */

.hx-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;          /* dokunma alanı ≥ 44px (görünen ikon 22px) */
    height: 44px;
    margin-right: -8px;   /* ikon eskisi gibi sağ kenarla hizalı kalsın */
    padding: 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--hx-metin);
    cursor: pointer;
}
.hx-burger svg { display: block; width: 22px; height: 22px; }
.hx-burger .hx-ikon-kapat,
.hx-burger[aria-expanded="true"] .hx-ikon-ac { display: none; }
.hx-burger[aria-expanded="true"] .hx-ikon-kapat { display: block; }

.hx-mobil-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h) - var(--ann-h) - 20px);
    max-height: calc(100dvh - var(--header-h) - var(--ann-h) - 20px); /* mobil tarayıcı çubukları açıkken de sığsın */
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    background: var(--hx-yuzey);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.hx-mobil-panel.acik { opacity: 1; visibility: visible; transform: none; }
/* Mobil menü açıkken yüzen widget'lar gizlenir (dar/alçak ekranda panelin üstünü kapatıyorlardı) */
.hx-menu-acik #aiChatRoot,
.hx-menu-acik .wa-fab,
.hx-menu-acik .dil-fab { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.hx-mobil-menu { margin: 0; padding: 0; list-style: none; }
.hx-mobil-link,
.hx-mobil-link:hover {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    color: var(--hx-metin);
    text-decoration: none !important;
    opacity: 1;
    transition: background-color .3s, color .3s;
}
.hx-mobil-link svg { width: 17px; height: 17px; flex: none; }
.hx-mobil-link:hover,
.hx-mobil-link:focus-visible { background: var(--hx-hafif); color: var(--hx-metin); }
.hx-mobil-alt,
.hx-mobil-alt:hover { padding-left: 32px; font-size: 14px; }
/* Alt sayfalar akordeonu: varsayılan kapalı, bulunulan bölümde açık (Header.cshtml .hx-mobil-grup.acik).
   JS yoksa (.hx-js yok) düğme gizli, alt sayfalar hep görünür. */
.hx-mobil-satir { display: flex; align-items: center; gap: 4px; }
.hx-mobil-satir .hx-mobil-link { flex: 1 1 auto; min-width: 0; }
.hx-mobil-ac {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--hx-metin);
    cursor: pointer;
    transition: background-color .3s;
}
.hx-js .hx-mobil-ac { display: inline-flex; }
.hx-mobil-ac:hover,
.hx-mobil-ac:focus-visible { background: var(--hx-hafif); }
.hx-mobil-ac svg { width: 15px; height: 15px; transition: transform .25s ease; }
.hx-mobil-ac[aria-expanded="true"] svg { transform: rotate(180deg); }
.hx-mobil-alt-sar > ul { min-height: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.hx-js .hx-mobil-alt-sar { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .25s ease, visibility .25s; }
.hx-js .hx-mobil-grup.acik .hx-mobil-alt-sar { grid-template-rows: 1fr; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .hx-js .hx-mobil-alt-sar,
    .hx-mobil-ac svg { transition: none; }
}
.hx-mobil-buton { padding: 8px 8px 4px; }
.hx-mobil-buton .hx-btn { width: 100%; }

@media (max-width: 1024px) {
    .hx-header { padding: 0 20px; }
    .hx-header-ic { padding: 5px 0; }
    .hx-header-sol, .hx-header-sag { min-width: 0; min-height: 60px; flex: 1 1 0; }
    .hx-header-sag { gap: 20px; }
    .hx-nav { display: none; }
    .hx-burger { display: inline-flex; }
    .hx-btn-header, .hx-btn-header:hover { padding: 13px 21px; }
}
@media (max-width: 767px) {
    .hx-header { padding: 0 10px; }
    .hx-header-sag .hx-btn-header { display: none; }
}
@media (min-width: 1025px) {
    .hx-mobil-panel { display: none; }
}

/* ─── Hero ────────────────────────────────────────────────────────────── */

.hx-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: calc(-1 * var(--header-h));
    min-height: calc(100vh - var(--ann-h));
    min-height: calc(100dvh - var(--ann-h));
    padding: 23.5vh 0 100px;
    overflow: hidden;
    font-family: var(--hx-font);
    color: var(--hx-metin);
}

/* Arka plan: görsel / video / carousel — kaydırdıkça hafifçe uzaklaşır (scale 1.16 → 1). */
.hx-hero-medya { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--hx-zemin); }
.hx-hero-katman {
    position: absolute;
    inset: 0;
    transform: scale(var(--hx-olcek, 1.1637));
    transform-origin: 50% 50%;
    will-change: transform;
}
.hx-slayt-medya { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hx-slayt-medya.aktif { opacity: 1; }
.hx-slayt-medya picture,
.hx-slayt-medya img,
.hx-slayt-medya video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hx-hero-golge { position: absolute; inset: 0; pointer-events: none; }

/* İçerik: ortada, arkası yumuşak bulanık elips. Carousel'de slaytlar üst üste (grid) durur. */
.hx-hero-slaytlar { display: grid; width: 980px; max-width: 100%; }
.hx-hero-icerik {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    min-height: 40vh;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hx-zemin) 20%, transparent);
    box-shadow: 0 0 100px 100px color-mix(in srgb, var(--hx-zemin) 20%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}
.hx-hero-icerik.aktif { opacity: 1; visibility: visible; }
.hx-hero-icerik::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hx-hero-icerik > * { position: relative; }

.hx-yildiz { display: block; width: 35px; height: 40px; color: var(--hx-metin); }
.hx-yildiz svg { display: block; width: 35px; height: 35px; }

.hx-hero-baslik {
    max-width: 920px;
    margin: .6em 0 .3em;
    font-family: var(--hx-font-baslik);
    font-size: 60px;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--hx-metin);
}

/* Dönen kelime — Elementor "Animated Headline / blinds" uyarlaması (js/header-hero.js). */
.hx-dondur {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    overflow: hidden;
    perspective: 300px;
    white-space: nowrap;
    text-align: start;
    color: var(--hx-vurgu);
    transition: width .5s;
}
.hx-dondur-metin { position: absolute; top: 0; left: 0; display: inline-block; white-space: nowrap; }
.hx-dondur-metin.hx-ilk { position: relative; }
.hx-harf { display: inline-block; backface-visibility: hidden; transform: rotateY(180deg); }
.hx-harf.hx-giris { animation: hx-blinds-in .6s ease forwards; }
.hx-harf.hx-cikis { animation: hx-blinds-out .6s ease forwards; }
@keyframes hx-blinds-in { 0% { transform: rotateY(180deg); } 100% { transform: rotateY(0deg); } }
@keyframes hx-blinds-out { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(-180deg); } }

.hx-hero { --hx-alt-bosluk: 30px; }
.hx-hero-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 10px;
    margin: 0 0 var(--hx-alt-bosluk);
    font-size: 18px;
    line-height: 28.8px;
    font-weight: 400;
}
.hx-hero-alt-oge { display: block; }
.hx-ayrac { display: flex; align-items: center; height: 22.4px; }
.hx-ayrac svg { display: block; width: 12px; height: 12px; }

.hx-hero-aciklama {
    max-width: 640px;
    margin: 0 0 var(--hx-alt-bosluk);
    font-size: 18px;
    line-height: 28.8px;
    color: color-mix(in srgb, var(--hx-metin) 72%, transparent);
}
/* Alt başlık + açıklama birlikteyse aralarında 14px kalır; boşluk butondan önceye taşınır. */
.hx-hero-alt + .hx-hero-aciklama { margin-top: calc(4px - var(--hx-alt-bosluk)); }

/* Carousel noktaları */
.hx-hero-noktalar {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 2px;
    padding: 4px 8px;
    transform: translateX(-50%);
    border: 1px solid rgba(9, 9, 9, .12);
    border-radius: 60px;
    background: color-mix(in srgb, var(--hx-yuzey) 55%, transparent);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.hx-hero-nokta {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.hx-hero-nokta::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--hx-metin) 25%, transparent);
    transition: width .3s, background-color .3s;
}
.hx-hero-nokta[aria-current="true"]::before { width: 20px; background: var(--hx-metin); }

/* Giriş animasyonları (Elementor slideInUp / fadeIn) — slayt aktifleşince yeniden oynar. */
@media (prefers-reduced-motion: no-preference) {
    .hx-hero-icerik.aktif .hx-hero-baslik { animation: hx-slide-in-up .75s ease both; }
    .hx-hero-icerik.aktif .hx-hero-alt-oge { animation: hx-slide-in-up 1.25s ease both; }
    .hx-hero-icerik.aktif .hx-hero-aciklama { animation: hx-slide-in-up 1.25s ease .2s both; }
    .hx-hero-icerik.aktif .hx-btn-hero { animation: hx-fade-in 1.25s ease .05s both; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-hero-katman { transform: none; }
}
@keyframes hx-slide-in-up { 0% { transform: translate3d(0, 100%, 0); visibility: visible; } 100% { transform: translate3d(0, 0, 0); } }
@keyframes hx-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }

@media (max-width: 1024px) {
    .hx-hero { --hx-alt-bosluk: 20px; min-height: calc(70vh - var(--ann-h)); padding-top: calc(10vh + 25px); }
    .hx-hero-slaytlar { width: 90%; }
    .hx-hero-icerik { padding: 0 20px; }
    .hx-yildiz { width: 25px; height: 30px; }
    .hx-yildiz svg { width: 25px; height: 25px; }
    .hx-hero-baslik { font-size: 36px; }
    .hx-hero-alt,
    .hx-hero-aciklama { font-size: 17px; line-height: 27.2px; }
    .hx-btn-hero,
    .hx-btn-hero:hover { padding: 15px 22px; font-size: 14px; line-height: 15.4px; }
}
@media (max-width: 767px) {
    .hx-hero { --hx-alt-bosluk: 10px; min-height: calc(100vh - var(--ann-h)); min-height: calc(100svh - var(--ann-h)); padding-top: 22vh; }
    .hx-hero-slaytlar { width: 100%; }
    .hx-hero-icerik { min-height: 50vh; align-items: flex-start; text-align: left; }
    .hx-hero-baslik { font-size: 27px; margin-top: calc(.6em - 16px); }
    .hx-hero-alt { justify-content: flex-start; }
    .hx-btn-hero,
    .hx-btn-hero:hover { padding: 13px 20px; }
}

/* ─── Yüzen dil seçici (dil-fab) — header'daki cam hap diliyle ─────────────
   Menü YANA açılır (sağdaysa sola, soldaysa sağa): yukarı açılan eski menü üstteki AI sohbet
   balonunun (#aiChatRoot) altında kalıyordu. Konum (sağ/sol, alttan boşluk) paneldeki
   "Dil Seçici" ayarından inline gelir; js/header-hero.js dilSecici() açar/kapatır. */

.dil-fab { z-index: 1050; display: flex; font-family: var(--hx-font); }
/* Açıkken AI sohbet katmanının (#aiChatRoot, z-index 2147483000) hemen üstü — panelde konumlar
   çakışacak gibi ayarlansa bile seçenekler örtülmez. */
.dil-fab.acik { z-index: 2147483001; }

.dil-fab-btn,
.dil-fab-menu { box-shadow: var(--hx-cam-ic), 0 8px 24px rgba(0, 0, 0, .12); }

.dil-fab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 12px 0 13px;
    background: transparent;
    color: var(--hx-metin);
    font-family: var(--hx-font);
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .2s ease, box-shadow .2s ease;
}
.dil-fab-btn > *,
.dil-fab-menu > li { position: relative; z-index: 1; }
.dil-fab-btn::before { transition: opacity .2s ease; }
.dil-fab-btn:hover::before,
.dil-fab.acik .dil-fab-btn::before { opacity: .92; }
.dil-fab-btn:active { transform: scale(.97); }
.dil-fab-btn svg { display: block; flex: none; width: 18px; height: 18px; }
.dil-fab-btn .dil-fab-ok { width: 14px; height: 14px; transition: transform .2s ease; }
/* Ok menünün açılacağı yönü gösterir; açıkken geri döner. */
.dil-fab-sag .dil-fab-ok { transform: rotate(180deg); }
.dil-fab-sag.acik .dil-fab-ok { transform: rotate(0deg); }
.dil-fab-sol.acik .dil-fab-ok { transform: rotate(180deg); }

.dil-fab-menu {
    position: absolute;
    top: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    width: max-content;
    max-width: calc(100vw - 140px);
    margin: 0;
    padding: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* kapanış açılıştan kısa (çıkış ~%70); görünürlük solma BİTİNCE kapanır */
    transition: opacity .14s ease-in, transform .14s ease-in, visibility 0s linear .14s;
}
.dil-fab-sag .dil-fab-menu { right: calc(100% + 8px); transform: translate(8px, -50%) scale(.96); transform-origin: right center; }
.dil-fab-sol .dil-fab-menu { left: calc(100% + 8px); transform: translate(-8px, -50%) scale(.96); transform-origin: left center; }
.dil-fab.acik .dil-fab-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%) scale(1);
    /* görünürlük ANINDA açılır: klavyeyle açılınca odak hemen menüye geçebilsin */
    transition: opacity .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}

.dil-fab-oge,
.dil-fab-oge:hover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border-radius: 32px;
    color: var(--hx-metin);
    font-family: var(--hx-font);
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none !important;
    opacity: 1;
    transition: background-color .2s ease, color .2s ease;
}
/* Dokunma alanı 44px: menü iç boşluğunu da kapsar. */
.dil-fab-oge::after { content: ""; position: absolute; inset: -4px 0; }
.dil-fab-oge:hover { background: var(--hx-yuzey); }
/* Aktif dil: sitenin siyah hap butonlarıyla aynı dolgu. */
.dil-fab-oge[aria-current="true"],
.dil-fab-oge[aria-current="true"]:hover { background: var(--hx-metin); color: var(--hx-zemin); }

.dil-fab-btn:focus-visible,
.dil-fab-oge:focus-visible { outline: 2px solid var(--hx-vurgu); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .dil-fab-menu,
    .dil-fab.acik .dil-fab-menu { transform: translate(0, -50%); transition: opacity .01ms, visibility .01ms; }
    .dil-fab-btn:active { transform: none; }
}

/* ─── Görünür olunca giriş animasyonları (Elementor fadeIn / slideInUp karşılığı) ──────
   Öğe: data-hx-gorunce + data-hx-anim="belir|belir-hizli|belir-yavas|yukari|yukari-yavas|asagi|buyu"; sıralı gecikme
   inline --hx-gecikme ile (ör. style="--hx-gecikme:100ms"). js/header-hero.js gorunceGoster()
   görünür alana girince .hx-gorundu ekler. JS yoksa / hareket azaltılmışsa öğe hep görünür. */
@media (prefers-reduced-motion: no-preference) {
    .hx-js [data-hx-anim]:not(.hx-gorundu) { visibility: hidden; }
    [data-hx-anim].hx-gorundu { animation-delay: var(--hx-gecikme, 0s); animation-fill-mode: both; animation-timing-function: ease; }
    [data-hx-anim="belir"].hx-gorundu        { animation-name: hx-fade-in; animation-duration: 1.25s; }
    [data-hx-anim="belir-hizli"].hx-gorundu  { animation-name: hx-fade-in; animation-duration: .75s; }
    [data-hx-anim="belir-yavas"].hx-gorundu  { animation-name: hx-fade-in; animation-duration: 2s; }
    [data-hx-anim="yukari"].hx-gorundu       { animation-name: hx-slide-in-up; animation-duration: .75s; }
    [data-hx-anim="yukari-yavas"].hx-gorundu { animation-name: hx-slide-in-up; animation-duration: 1.25s; }
    [data-hx-anim="asagi"].hx-gorundu        { animation-name: hx-slide-in-down; animation-duration: .75s; }
    [data-hx-anim="buyu"].hx-gorundu         { animation-name: hx-zoom-in; animation-duration: .75s; }
}
@keyframes hx-zoom-in { 0% { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } }
@keyframes hx-slide-in-down { 0% { transform: translate3d(0, -100%, 0); visibility: visible; } 100% { transform: translate3d(0, 0, 0); } }
