/* =========================================================
   Emfiss Group — SAYT STİLLƏRİ
   Rəng, şrift və ölçüləri dəyişmək üçün theme.css faylına baxın.
   ========================================================= */
body { overflow-x: hidden; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

/* ---------- Naviqasiya ---------- */
.nav-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; padding: 0 4vw; pointer-events: none; }
.nav { pointer-events: auto; width: 100%; max-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 10px 10px 24px; border-radius: var(--radius-pill); }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo img { width: 30px; height: 30px; }
.logo span { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo small { font-size: inherit; font-weight: 500; color: var(--muted); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 12px 22px; }

/* Marşrut: dartılan xətt + stansiya nöqtələri */
.route { position: relative; width: min(380px, 34vw); height: 40px; cursor: grab; touch-action: none; }
.route.dragging { cursor: grabbing; }
.route-line, .route-fill { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.route-line { right: 0; background: rgba(255,255,255,.14); }
.route-fill { width: 0; background: var(--accent); }
.route-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: rgba(255,255,255,.32); box-shadow: 0 0 0 3px rgba(9,15,22,.95); transition: background .3s; }
.route-dot.done { background: var(--accent); }
.route-handle { position: absolute; top: 50%; left: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 999px; background: var(--ink); box-shadow: 0 0 0 4px rgba(125,155,255,.35), 0 0 18px rgba(125,155,255,.7); pointer-events: none; }

/* ---------- Bölmələr ---------- */
.content { position: relative; z-index: 1; pointer-events: none; transition: opacity .4s; }
.content.is-hidden { opacity: 0; }
.section { min-height: 100vh; display: flex; align-items: center; padding: 110px var(--page-pad); }
.section.left { justify-content: flex-start; }
.section.right { justify-content: flex-end; }
.card { pointer-events: auto; position: relative; z-index: 1; width: 100%; max-width: 460px; padding: 30px 30px 28px; border-radius: var(--radius-lg); }
.card.hero { max-width: 500px; border-radius: var(--radius-xl); padding: 38px 38px 30px; }
.card.wide { max-width: 520px; padding: 34px; }
.card h1, .card .h1 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 50px; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.card h2, .card .h2 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 36px; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.card p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.card.hero p { margin-top: 16px; font-size: 16.5px; line-height: 1.6; }
.card .icon { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--accent-soft); }
.icon svg { width: 55%; height: 55%; fill: none; stroke: #c9d4ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Siyahı sətirləri (ana səhifə həlləri və stansiya məhsulları) */
.rows { display: flex; flex-direction: column; gap: 2px; margin: 18px -12px 0; }
.rows.bordered { margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(160,175,255,.1); }
.row-link { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 18px; cursor: pointer; transition: background .2s; }
.row-link:hover { background: var(--chip); }
a.row-link, a.row-link:hover, .link:hover { color: inherit; }
.link:hover { color: var(--accent-hover); }
.row-link .icon { width: 42px; height: 42px; border-radius: 13px; }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.row-text b { font-size: 15.5px; font-weight: 600; }
.row-text span { font-size: 13.5px; color: var(--muted); }
.row-link > i { font-style: normal; font-size: 22px; color: var(--muted); }

/* Əlaqə forması */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.form .input { border: none; background: var(--chip); border-radius: 18px; }
.form textarea { grid-column: 1 / -1; resize: none; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.link { font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: progress; }
.recaptcha-note { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: var(--faint); }
.recaptcha-note a { color: var(--muted); text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }
.contact-info { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(160,175,255,.1); font-style: normal; font-size: 14px; color: var(--muted); }
.contact-info a { color: var(--ink); }
.contact-info a:hover { color: var(--accent-hover); }

/* Aşağıdakı stansiya adı */
.pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 5; padding: 12px 22px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; white-space: nowrap; max-width: 80vw; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.pill.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- "Proqrama bax" paneli ---------- */
.detail { position: fixed; top: 96px; right: 4vw; bottom: 40px; width: min(820px, 62vw); z-index: 6; display: none; flex-direction: column; gap: 18px; overflow: auto; overscroll-behavior: contain; padding: 28px; border-radius: var(--radius-lg); background: rgba(9,15,22,.8); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid rgba(160,175,255,.18); box-shadow: var(--shadow-strong); }
.detail.is-open { display: flex; }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-head small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.detail-head h1, .detail-head h2 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; }
.icon-btn { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; background: var(--chip); font-size: 17px; }
.icon-btn:hover { background: var(--chip-hover); }
.detail > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.detail .actions { margin-top: auto; }

/* Slaydlar: Z oxu üzrə 3D yığın */
.stack-wrap { position: relative; flex-shrink: 0; padding-top: 46px; }
.stack-wrap.single { padding-top: 0; }
.stack { position: relative; width: 86%; aspect-ratio: 16 / 10; perspective: 1400px; perspective-origin: 80% 0%; }
.single .stack { width: 100%; }
.layer { position: absolute; inset: 0; border-radius: var(--radius-md); overflow: hidden; background: #0b1018; border: 1px solid rgba(160,175,255,.2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s, filter .9s; }
.layer[data-pos="0"] { transform: translate3d(0,0,0); opacity: 1; z-index: 3; }
.layer[data-pos="1"] { transform: translate3d(9%,-7%,-160px) rotateY(-10deg); opacity: .6; filter: blur(1px) brightness(.7); z-index: 2; pointer-events: none; }
.layer[data-pos="2"] { transform: translate3d(18%,-14%,-320px) rotateY(-16deg); opacity: .3; filter: blur(2px) brightness(.5); z-index: 1; pointer-events: none; }
.layer[data-pos="hidden"] { transform: translate3d(24%,-18%,-420px) rotateY(-18deg); opacity: 0; z-index: 0; pointer-events: none; }
.layer img, .layer video, .layer iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.layer video { background: #000; }
.slide-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px; }
.slide-text { width: 100%; height: 100%; overflow: auto; padding: clamp(18px, 4%, 36px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.slide-text b { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.1; }
.slide-text span { font-size: clamp(13.5px, 1.4vw, 15.5px); line-height: 1.6; color: #b6c0c9; white-space: pre-line; }
.slide-table { width: 100%; height: 100%; overflow: auto; padding: clamp(14px, 3%, 26px); }
.slide-table b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 22px; margin-bottom: 12px; }
.slide-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.4; }
.slide-table th, .slide-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid rgba(160,175,255,.12); overflow-wrap: anywhere; }
.slide-table th { font-weight: 600; color: var(--ink); }
.slide-table td { color: #b6c0c9; }
.stack-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.stack-nav span { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.stack-nav div { display: flex; gap: 8px; }

/* ===================== PLANŞET ===================== */
@media (max-width: 900px) {
  :root { --page-pad: 5vw; }
  .detail { left: 4vw; right: 4vw; width: auto; top: 88px; bottom: 20px; }
  .card h1, .card .h1 { font-size: 42px; }
  .route { width: 30vw; }
}

/* ===================== MOBİL ===================== */
@media (max-width: 640px) {
  .nav-wrap { top: 10px; padding: 0 10px; }
  .nav { flex-wrap: wrap; gap: 4px 10px; padding: 8px 8px 6px 16px; border-radius: 26px; }
  .nav .btn { padding: 11px 18px; font-size: 14px; }
  .nav-right { display: contents; }
  .route { order: 3; width: auto; flex: 1 0 100%; height: 34px; margin: 0 8px; }

  /* Kartlar aşağıda, 3D səhnə yuxarıda görünür */
  .section { align-items: flex-end; padding: 120px 10px 76px; min-height: 100svh; }
  .section.left, .section.right { justify-content: center; }
  .card, .card.hero, .card.wide { max-width: none; padding: 20px; border-radius: 26px; }
  .card h1, .card .h1 { font-size: 32px; }
  .card h2, .card .h2 { font-size: 28px; }
  .card p { font-size: 15px; }
  .card .icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .rows { margin: 12px -8px 0; }
  .row-link { padding: 10px 8px; gap: 12px; }
  .form { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .pill { bottom: 14px; font-size: 12.5px; padding: 10px 16px; }

  .detail { inset: 0; border-radius: 0; padding: 18px 16px 28px; }
  .detail-head h1, .detail-head h2 { font-size: 27px; }
  .stack { width: 88%; }
  .stack-wrap { padding-top: 34px; }
}
