/* ============================================================
   Hovuz.az — editorial / minimalist redesign
   ============================================================ */

:root {
  color-scheme: light;
  --paper: #ffffff;          /* əsas fon — saf ağ */
  --surface: #f4f7fb;        /* növbələşən bölmələr — çox yüngül mavi çalar */
  --ink: #0d1017;            /* qara — əsas rəng */
  --ink-2: #59616e;
  --ink-3: #6b7481;          /* ağ üzərində 4.73:1 — kiçik yazılar oxunaqlı qalsın */
  --blue: #0b57d0;           /* mavi — əsas vurğu rəngi */
  --blue-dark: #073c92;
  --line: rgba(13, 16, 23, .14);
  --line-soft: rgba(13, 16, 23, .07);
  --tile: #ffffff;

  --header-h: 74px;
  --r: 2px;
  --maxw: 1360px;
  --pad: 40px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Sayt yalnız işıq rejimindədir — sistem qaranlıq rejimdə olsa da dəyişmir.
   Form elementləri (select, input) də işıqlı render olunsun deyə color-scheme: light. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* Inter — həm Azərbaycan (ə, ğ, ı, İ, ö, ş, ü, ç → latin-ext U+0100-02BA),
     həm də rus (kiril U+0400-045F) hərflərini əhatə edir.
     Ehtiyat zəncir də hər iki dili dəstəkləyən şriftlərdən qurulub. */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
               "Noto Sans", "Liberation Sans", "DejaVu Sans", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Scrollbar — sayt dizaynına uyğun (incə, hairline, hover-də mavi) ----------
   Track şəffaf; thumb subtle ink, `border:transparent + background-clip:padding-box` ilə
   nazik və "üzən" görünür (istənilən fonda işləyir). Firefox: scrollbar-width/color. */
html { scrollbar-width: thin; scrollbar-color: rgba(13,16,23,.24) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(13,16,23,.22);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--blue); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- Responsiv qoruma (bütün cihazlar) ----------
   Üfüqi sürüşmə qoruması: heç bir cihazda yan-scroll olmasın. `clip` scroll konteyneri
   yaratmır → sticky header-i pozmur; dəstəkləməyən köhnə brauzer qaydanı iqnor edir (regres yox). */
html, body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
/* Uzun sözlər/başlıqlar dar ekranda heç vaxt konteyneri aşmasın (yalnız aşacaqsa sınır). */
h1, h2, h3, .display, .hero-title, .sc-title, .story-h,
.page-head h1, .about-top h2, .reveal-hero-title, .cat-row h3 { overflow-wrap: break-word; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tipoqrafiya ---------- */
.label {
  display: inline-block;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--blue);
}
.display {
  font-weight: 200;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
}
h1, h2, h3 { font-weight: 300; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.lede { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 58ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Düymələr ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px;
  border: 1px solid var(--blue); border-radius: var(--r);
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  background: var(--blue); color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: border-color .35s var(--ease), gap .35s var(--ease);
}
.tlink:hover { border-color: var(--blue); color: var(--blue); gap: 15px; }
.tlink svg { transition: transform .35s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }

/* ============================================================
   HEADER — solda menyu · ortada loqo · sağda hərəkət
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 800;
  background: transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid,
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-soft);
}

/* Header video üzərində şəffafdır (yalnız index, `data-transparent`) → məzmun AĞ olmalıdır
   ki, parlaq video üzərində oxunsun. Aşağı scroll-da `.scrolled` → fon ağ, məzmun tünd.
   MENYU açılanda (`.menu-open`) overlay AĞ fon gətirir → ağ məzmun (nav, close-X, ikon, loqo)
   görünməz olardı. Ona görə `:not(.menu-open)` — o halda da rənglər normal (tünd) qalır.
   Header altında ÇOX AZ opacity-li incə ağ xətt (istifadəçi tələbi). */
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) { border-bottom-color: rgba(255,255,255,.1); }
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hnav a,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hicon,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hphone,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw button {
  color: rgba(255,255,255,.92);
}
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hnav a:hover,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hnav a.on,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hicon:hover,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hphone:hover,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw button:hover,
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw button.on { color: #fff; }
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw span { color: rgba(255,255,255,.4); }
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .burger span { background: #fff; }
/* Video üzərində: loqonun İKONU öz rəngində qalır, yalnız MƏTN ağ olur. */
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .logo-txt { fill: #fff; }
/* İkon mavisini SIRF hero-da (video üzərində) bir az açıq et — istifadəçi tələbi.
   Attribut-fill-i CSS override edir; menyu/scroll-da öz #0b57d0/#073c92 rənginə qayıdır. */
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .logo-svg path[fill="#0b57d0"] { fill: #3d82ec; }
/* İkonun TÜND GÖY (#073c92) hissəsi video üzərində AĞ olur — istifadəçi tələbi. */
.site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .logo-svg path[fill="#073c92"] { fill: #fff; }

/* ⚠️ SAĞ KLASTER ağ layer məntiqi (yalnız ≥901px — 3D + sağ ağ gradient görünür):
   telefon/ikonlar/burger/dil AĞ gradient üzərindədir → yuxarıdakı ağ rəngi ləğv edib TÜND edirik.
   ≤900px-də (ağ layer yox, video tünd) yuxarıdakı ağ qaydalar qalır → klaster ağ olur.
   Nav (sol, video üzərində) və mərkəzdəki loqo ağ qalır. */
@media (min-width: 1024px) {
  /* Ağ layer üzərində daha yüksək kontrast üçün TÜND ink (istifadəçi: "çox açıq qalmışdı"). */
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hicon,
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hphone,
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw button { color: var(--ink); }
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hicon:hover,
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .hphone:hover,
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw button:hover { color: var(--blue); }
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw button.on { color: var(--blue); }
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .langsw span { color: var(--ink-3); }
  .site-header[data-transparent="true"]:not(.scrolled):not(.menu-open) .burger span { background: var(--ink); }
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
}
/* Loqo mütləq mərkəzdədir: faizli bölgüdə naviqasiya uzananda öz payını aşıb
   loqonu itələyirdi (4-cü link əlavə olunanda 42px sürüşürdü). */
.header-inner { position: relative; }
.hsec { display: flex; align-items: center; }
.hsec--left { flex: 1 1 auto; gap: 26px; min-width: 0; }
.hsec--center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  flex: 0 0 auto; justify-content: center;
}
.hsec--right { flex: 1 1 auto; justify-content: flex-end; gap: 20px; margin-left: auto; }

/* Header mərkəzdəki loqo — ÜFÜQİ lockup (ikon + HOVUZ.AZ, nisbət 424×138),
   sayt palitrasında (mavi ikon, ink mətn). INLINE SVG — ikon və mətn ayrıca
   boyanır. Header 74px → 44px. */
.logo { display: inline-flex; }
.logo-svg { display: block; height: 44px; width: auto; }
@media (max-width: 680px) { .logo-svg { height: 38px; } }
/* "HOVUZ.AZ" mətni — normalda ink; video üzərində ağ olur (aşağıdakı qayda).
   İKON həmişə öz rəngindədir (istifadəçi tələbi) — filter işlədilmir. */
.logo-txt { fill: #0d1017; transition: fill .45s var(--ease); }

.hnav { display: flex; gap: 30px; }
.hnav a {
  position: relative;
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); transition: color .3s var(--ease);
}
.hnav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.hnav a:hover, .hnav a.on { color: var(--ink); }
.hnav a:hover::after, .hnav a.on::after { transform: scaleX(1); transform-origin: left; }

.hicon {
  display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--ink-2); transition: color .3s var(--ease);
}
.hicon:hover { color: var(--ink); }
.hphone {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--ink-2);
  transition: color .3s var(--ease); white-space: nowrap;
}
.hphone:hover { color: var(--ink); }

/* --- dil dəyişdirici (AZ / RU) --- */
.langsw { display: flex; align-items: center; gap: 5px; }
.langsw button {
  padding: 4px 2px; font-size: 11px; font-weight: 500; letter-spacing: .12em;
  color: var(--ink-3); background: none; border: 0;
  transition: color .3s var(--ease);
}
.langsw button:hover { color: var(--ink); }
.langsw button.on { color: var(--blue); }
.langsw span { color: var(--line); font-size: 10px; }

/* burger — iki xətt, X-ə çevrilir */
.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 34px; height: 34px; align-items: center;
}
.burger span {
  display: block; width: 19px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger.active span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger.active span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Tam ekran menyu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 790;
  background: var(--paper);
  /* Üfüqi boşluq .overlay-grid-in içindədir — `.wrap` ilə eyni olsun deyə.
     Burada padding versək, məzmun saytın qalan hissəsindən --pad qədər sürüşür. */
  padding: calc(var(--header-h) + 40px) 0 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
  overflow-y: auto;
}
.overlay.open { opacity: 1; visibility: visible; }
.overlay-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
}
.ov-main { display: grid; gap: 4px; align-content: start; }
.ov-main a {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 200; letter-spacing: -.03em;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.overlay.open .ov-main a { opacity: 1; transform: none; }
.overlay.open .ov-main a:nth-child(1) { transition-delay: .08s; }
.overlay.open .ov-main a:nth-child(2) { transition-delay: .14s; }
.overlay.open .ov-main a:nth-child(3) { transition-delay: .20s; }
.overlay.open .ov-main a:nth-child(4) { transition-delay: .26s; }
.ov-main a:hover { color: var(--blue); }

.ov-side { display: grid; gap: 26px; align-content: start; }
.ov-side .label { margin-bottom: 12px; }
.ov-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; }
.ov-cats a {
  font-size: 13.5px; color: var(--ink-2); padding: 5px 0;
  transition: color .3s var(--ease);
}
.ov-cats a:hover { color: var(--blue); }
.ov-contact a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 3px 0; }
.ov-contact a:hover { color: var(--blue); }

/* ============================================================
   HERO
   ============================================================ */
/* ---------- HERO: tam-fon video (thepopuphotel üslubu) ----------
   Şaquli 3 zona: yuxarı eyebrow (mərkəz) · orta nəhəng başlıq+xətt+CTA (mərkəz) ·
   aşağı iki sütun kənarlara yayılmış. Tünd scrim ağ mətnin oxunması üçün (WCAG). */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  /* +1px: header 74px + 1px (şəffaf border-bottom) = 75px. Yalnız -74px çəksək,
     y=0–1px-də ağ body fonu şəffaf header-dən görünür (yuxarı ağ xətt). */
  margin-top: calc((var(--header-h) + 1px) * -1);
  display: flex;
  overflow: hidden;
  background: #0d1017;   /* video yüklənənə qədər tünd fon */
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
/* Scrim — video parlaqdır; SOL-align mətn üçün sol + üst + alt qaralması.
   Sağda: tünd 3D modeli görünülür etmək üçün SAĞ kənardan sola opacity-si azalan
   DÜZ (linear) ağ layer. Sol yarıda (mətn) tam şəffaf → ağ mətnin kontrastı toxunulmur. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 54%, rgba(255,255,255,.55) 74%, rgba(255,255,255,.94) 100%),
    linear-gradient(180deg, rgba(13,16,23,.66) 0%, rgba(13,16,23,.26) 16%, rgba(13,16,23,0) 40%),
    linear-gradient(90deg, rgba(13,16,23,.74) 0%, rgba(13,16,23,.42) 38%, rgba(13,16,23,.12) 72%, rgba(13,16,23,0) 100%),
    linear-gradient(0deg, rgba(13,16,23,.30) 0%, rgba(13,16,23,0) 28%);
}
@media (max-width: 1023px) {   /* ≤1023px 3D gizli → sağ ağ layer də lazım deyil (klaster ağ qalır) */
  .hero-scrim { background:
    linear-gradient(180deg, rgba(13,16,23,.66) 0%, rgba(13,16,23,.26) 16%, rgba(13,16,23,0) 40%),
    linear-gradient(90deg, rgba(13,16,23,.74) 0%, rgba(13,16,23,.42) 38%, rgba(13,16,23,.12) 72%, rgba(13,16,23,0) 100%),
    linear-gradient(0deg, rgba(13,16,23,.30) 0%, rgba(13,16,23,0) 28%); }
}
/* Sol-align: məzmun digər bölmələrlə (.wrap) eyni margin/en-də, şaquli mərkəzdə. */
.hero-stage {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--header-h) + 20px) var(--pad) 46px;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: flex-start;
  flex: 0 1 auto; max-width: 560px;
}

/* ---- Sağ tərəf: interaktiv 3D obyekt (three.js, mouse ilə 360°) ---- */
.hero-3d {
  position: relative; flex: 1 1 46%; min-width: 0; align-self: center;
  height: min(76vh, 640px);
  cursor: grab; touch-action: none;   /* OrbitControls jestləri üçün */
  /* Qeyd: əvvəlki `transform: translateX(...)` çıxarıldı — dar desktop enlərində
     (viewport ≤ --maxw) obyekti stage padding-indən kənara itələyib overflow yaradırdı. */
}
.hero-3d:active { cursor: grabbing; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; outline: none; }
/* Yüklənmə / sürükləmə ipucu — obyektin altında incə, ağ, az görünən */
.hero-3d-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.72); font-size: 12.5px; letter-spacing: .02em;
  pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity .5s ease;
}
.hero-3d.ready .hero-3d-hint { opacity: 1; }
.hero-3d.dragged .hero-3d-hint { opacity: 0; }   /* ilk sürükləmədən sonra gizlət */
.hero-3d-hint svg { opacity: .85; }
@media (max-width: 1023px) {
  .hero-stage { justify-content: flex-start; }
  .hero-3d { display: none; }   /* telefon/planşet/kiçik ekranda mətn tam eni tutur */
}
.hero-eyebrow { margin-bottom: 22px; color: #7fd3f0; }   /* sol, firuzəyi (loqo ilə uyğun) */
.hero-title {
  font-size: clamp(34px, 4.6vw, 60px); color: #fff; line-height: 1.05;
  margin-bottom: 24px; text-shadow: 0 1px 30px rgba(0,0,0,.28);
}
.hero-lede {
  color: rgba(255,255,255,.9); max-width: 46ch;
  font-size: 16px; line-height: 1.55; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
/* Əsas düymə video üzərində AĞ; hover-də mavi (istifadəçi tələbi). */
.hero-btn { background: #fff; color: var(--blue); border-color: #fff; }
.hero-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.hero-tlink { color: #fff; border-bottom-color: rgba(255,255,255,.45); }
.hero-tlink:hover { color: #fff; border-bottom-color: #fff; }
/* Reduce-motion: video dayanır (ui.js), poster qalır — statik fon kimi işləyir. */

/* ============================================================
   HAQQIMIZDA
   ============================================================ */
.about {
  padding: 130px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.about-top { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; margin-bottom: 90px; }
.about-top h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 200; letter-spacing: -.03em; line-height: 1.1; }
.about-copy { display: grid; gap: 22px; }
.about-copy p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.about-copy p:first-child { color: var(--ink); font-size: 17.5px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 34px 30px 34px 0; border-top: 1px solid var(--line); }
.pillar + .pillar { padding-left: 30px; border-left: 1px solid var(--line-soft); }
.pillar .num {
  font-size: 10.5px; letter-spacing: .2em; color: var(--blue);
  display: block; margin-bottom: 18px;
}
.pillar h3 { font-size: 16px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 8px; }
.pillar p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* ============================================================
   Bölmə başlıqları
   ============================================================ */
.sec { padding: 130px 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding-bottom: 30px; margin-bottom: 54px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.sec-head .label { display: block; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 200; letter-spacing: -.03em; }

/* ============================================================
   KATEQORİYALAR — nömrəli editorial siyahı
   ============================================================ */
.cat-list { display: grid; position: relative; }
.cat-row {
  display: grid; grid-template-columns: 76px 1fr 140px 96px;
  align-items: center; gap: 26px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  transition: color .4s var(--ease), padding .45s var(--ease);
}
.cat-row:first-child { border-top: 1px solid var(--line-soft); }
.cat-row .cnum {
  font-size: 11px; letter-spacing: .18em; color: var(--blue);
  transition: color .4s var(--ease);
}
.cat-row h3 {
  font-size: clamp(20px, 2.3vw, 30px); font-weight: 200; letter-spacing: -.025em;
  color: currentColor;
}
.cat-row .cqty {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: currentColor; opacity: .55;
}
.cat-thumb {
  width: 96px; height: 72px; background: var(--tile);
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: 8px;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* --- kursoru izləyən şəkil (yalnız maus olan cihazlarda) --- */
.cat-float { display: none; }

@media (hover: hover) {
  /* siyahının üstünə gələndə hamısı solur, yalnız seçilən sətir qara qalır */
  .cat-list.hot .cat-row { color: var(--ink-3); }
  .cat-list.hot .cat-row .cnum { color: var(--ink-3); }
  .cat-list.hot .cat-row:hover { color: var(--ink); padding-left: 14px; }
  .cat-list.hot .cat-row:hover .cnum { color: var(--blue); }

  /* mausda sətirdaxili kiçik şəkil gizlənir — onun yerinə üzən şəkil işləyir */
  .cat-row .cat-thumb { display: none; }
  .cat-row { grid-template-columns: 76px 1fr 140px; }

  .cat-float {
    display: block; position: absolute; top: 0; left: 0; z-index: 3;
    width: 300px; height: 370px;
    pointer-events: none; overflow: hidden;
    background: var(--tile); border: 1px solid var(--line-soft);
    opacity: 0; transition: opacity .5s var(--ease);
    will-change: transform;
  }
  .cat-list.hot .cat-float { opacity: 1; }
  .cat-float img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 11%;
    opacity: 0; transition: opacity .4s var(--ease);
  }
  .cat-float img.on { opacity: 1; }
}

/* ============================================================
   TAM EKRAN VİTRİN — hovuz fonu üzərində ağ etiketlər
   ============================================================ */
.showcase {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 86svh;
  display: flex;
  padding: 60px var(--pad);
  background: var(--ink);
}
.sc-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
/* tünd örtük — ağ mətnin oxunması üçün */
.showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(6, 12, 26, .58), rgba(6, 12, 26, .50) 45%, rgba(6, 12, 26, .82)),
    radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(6, 12, 26, .55) 100%);
}
/* incə mavi cizgilər */
.sc-line { position: absolute; z-index: 0; background: var(--blue); opacity: .85; }
.sc-line-v { top: 0; bottom: 0; left: 32%; width: 1px; }
.sc-line-h { left: 0; right: 0; top: 18%; height: 1px; }

.sc-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column;
}
.sc-row { display: flex; justify-content: space-between; gap: 24px; }
.sc-row-mid { margin-top: 12svh; }
.sc-label {
  color: #fff; text-transform: uppercase;
  font-size: 12px; font-weight: 400; letter-spacing: .16em; line-height: 1.5;
  text-shadow: 0 1px 14px rgba(6, 12, 26, .7);
}
.sc-right { text-align: right; }

.sc-btm { margin-top: auto; text-align: right; }
.sc-title {
  color: #fff; text-transform: uppercase;
  font-size: clamp(44px, 9.5vw, 135px); font-weight: 200;
  letter-spacing: -.03em;
  /* .82 kiril üçün azdır: Й/Ё-nin üstündəki işarə mürəkkəbi 0.94em-ə qaldırır
     və sətirlər üst-üstə düşürdü (ölçülmüş çatışmazlıq 18.3px). */
  line-height: .98;
  text-shadow: 0 2px 30px rgba(6, 12, 26, .5);
}
.sc-link {
  display: inline-block; margin-top: 16px;
  color: #fff; text-transform: uppercase;
  font-size: 13px; letter-spacing: .14em;
  transition: color .35s var(--ease);
}
.sc-link:hover { color: var(--blue); }

@media (max-width: 860px) {
  .showcase { min-height: 78svh; padding: 44px var(--pad); }
  .sc-row-mid { margin-top: 8svh; }
  .sc-label { font-size: 10.5px; letter-spacing: .12em; }
  .sc-line-v { left: 26%; }
}

/* ============================================================
   MƏHSUL KARTLARI
   ============================================================ */
/* Xətləri şəbəkənin fonu deyil, hər kart öz çərçivəsi ilə çəkir.
   Mənfi kənar boşluqla qonşu sərhədlər üst-üstə düşür (2px yox, 1px görünür).
   Nəticə: yarımçıq sırada boş xanalar boz qalmır və heç bir asılı xətt qalmır. */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.card {
  display: flex; flex-direction: column; background: var(--paper);
  padding: 0; transition: background-color .4s var(--ease);
  cursor: pointer;
  border: 1px solid var(--line-soft);
  margin-right: -1px; margin-bottom: -1px;
}
.card:hover { background: var(--surface); }
/* Standart şəkil qabı — həmişə kvadrat, şəkilin öz ölçüsündən asılı deyil.
   Şəkil absolute olduğu üçün qabı dartmır (min-height:auto problemi). */
.card-img {
  position: relative; aspect-ratio: 1 / 1; background: var(--tile);
  flex: 0 0 auto; min-height: 0; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; padding: 12%;
  object-fit: contain;
  transition: transform .7s var(--ease);
}
.card:hover .card-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
/* Sətirlər bir-birinə yaxın dayanır: `margin-top: auto` verilsəydi,
   boş sahəni udub qiymət sətrini kartın dibinə itələyərdi. */
.card-body { padding: 18px 18px 30px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-cat { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.card-title { font-size: 16px; font-weight: 400; letter-spacing: -.015em; line-height: 1.35; }
.card-foot {
  padding-top: 6px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.price-ask { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.opt-n { font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }


/* ============================================================
   KATALOQ
   ============================================================ */
.page-head { padding: 70px 0 0; }
.crumbs {
  display: flex; gap: 10px; align-items: center; margin-bottom: 30px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.crumbs a:hover { color: var(--blue); }
.crumbs strong { color: var(--ink-2); font-weight: 500; }
.page-head h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 200; letter-spacing: -.035em; margin-bottom: 18px; }
.page-head .lede { margin-bottom: 46px; }

/* ============================================================
   KATALOQ — solda kateqoriya paneli, sağda məhsullar
   (13 kateqoriya bir sətrə sığmırdı; üfüqi scroll əvəzinə şaquli panel)
   ============================================================ */
.catalog-grid { display: grid; grid-template-columns: 210px 1fr; gap: 54px; align-items: start; }

.cat-rail { position: sticky; top: calc(var(--header-h) + 22px); }
.rail-box > summary { list-style: none; cursor: default; }
.rail-box > summary::-webkit-details-marker { display: none; }
.rail-now, .rail-arr { display: none; }        /* yalnız dar ekranda görünür */

.chips {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--line-soft);
}
.chips li { border-bottom: 1px solid var(--line-soft); }
.chip {
  position: relative; display: flex; align-items: baseline; justify-content: space-between;
  width: 100%; gap: 10px; padding: 10px 0; text-align: left;
  font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink-2); background: none; border: 0;
  transition: color .3s var(--ease), padding .3s var(--ease);
}
.chip::after { display: none; }                /* köhnə alt-xətt effekti */
.chip:hover { color: var(--ink); padding-left: 6px; }
.chip.active { color: var(--blue); font-weight: 500; }
.chip .n { font-size: 11px; color: var(--ink-3); }
.chip.active .n { color: var(--blue); }

.toolbar {
  position: static; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 0 16px; margin: 0 0 20px;
  background: none; backdrop-filter: none;
  border-top: 0; border-bottom: 1px solid var(--line-soft);
}
/* --- Sıralama seçicisi ---
   Native <select> deyil: brauzerin açılan siyahısını CSS tutmur (OS render edir),
   ona görə düymə + menyu şəklində yenidən quruldu. Saytın dili: hairline xətlər,
   kəskin künclər, seçilmiş element mavi, hover-də .chip kimi sürüşmə. */
.sortsel { position: relative; flex: 0 0 auto; }
.sortsel__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 13.5px; font-weight: 400; color: var(--ink);
  transition: color .3s var(--ease);
}
.sortsel__lab {
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); transition: color .3s var(--ease);
}
.sortsel__btn:hover .sortsel__lab { color: var(--ink-2); }
.sortsel__chev {
  width: 14px; height: 14px; color: var(--ink-3);
  transition: transform .35s var(--ease), color .3s var(--ease);
}
.sortsel.open .sortsel__chev { transform: rotate(180deg); color: var(--ink); }

/* visibility MÜDDƏTLƏ keçirilmir: açılanda dərhal `visible` olmalıdır, yoxsa
   klaviatura ilə açanda variant hələ `visibility:hidden` konteynerdə olur və
   .focus() işləmir. Ona görə: açılanda 0s, bağlananda 0s .25s (solma bitəndən sonra). */
.sortsel__list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40;
  min-width: 200px; padding: 4px 0;
  background: var(--tile); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.sortsel.open .sortsel__list {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}

.sortsel__opt {
  display: block; width: 100%; text-align: left; padding: 11px 16px;
  font-size: 13.5px; font-weight: 400; color: var(--ink-2);
  transition: color .3s var(--ease), padding .3s var(--ease);
}
.sortsel__opt + .sortsel__opt { border-top: 1px solid var(--line-soft); }
.sortsel__opt:hover, .sortsel__opt:focus-visible { color: var(--ink); padding-left: 22px; outline: 0; }
.sortsel__opt[aria-checked="true"] { color: var(--blue); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .sortsel__list, .sortsel__chev, .sortsel__opt { transition: none; }
}

@media (max-width: 1000px) {
  /* Dar ekranda panel akkordeona çevrilir — üfüqi scroll yoxdur. */
  .catalog-grid { grid-template-columns: 1fr; gap: 0; }
  .cat-rail { position: static; margin-bottom: 26px; }
  .rail-box {
    border: 1px solid var(--line-soft); background: var(--surface);
    padding: 14px 16px;
  }
  .rail-box > summary {
    cursor: pointer; display: flex; align-items: center; gap: 10px;
  }
  .rail-now { display: block; margin-left: auto; font-size: 13.5px; color: var(--ink); }
  .rail-arr { display: block; color: var(--ink-3); transition: transform .3s var(--ease); }
  .rail-box[open] .rail-arr { transform: rotate(180deg); }
  .chips { grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
@media (max-width: 560px) {
  .chips { grid-template-columns: 1fr; }
}

/* margin-bottom yoxdur: .count yalnız flex .toolbar-ın içindədir və alt boşluq
   `align-items:center`-i pozub sıralama düyməsi ilə ~11px sapma yaradırdı
   (toolbar-ın sticky olduğu köhnə variantdan qalma idi). */
.count {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.catalog { padding-bottom: 130px; }
.empty { text-align: center; padding: 110px 20px; }
.empty strong { display: block; font-size: 24px; font-weight: 200; letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; }
.empty span { font-size: 14px; color: var(--ink-2); }

/* ---------- Axtarış ---------- */
.search { position: relative; width: 100%; }
.search input {
  width: 100%; height: 46px; padding: 0 34px 0 30px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 300; outline: none;
  transition: border-color .35s var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-bottom-color: var(--blue); }
.search > svg { position: absolute; left: 0; top: 14px; width: 17px; height: 17px; color: var(--ink-3); }
/* Brauzerin öz ləğv ikonu söndürülür: type="search" Chrome/Safari-də əlavə ×
   çıxarır və bizim düymə ilə ikiqat görünürdü (Firefox-da isə ümumiyyətlə yoxdur).
   Öz düyməmiz bütün brauzerlərdə eyni işləyir. */
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

.search .clear {
  position: absolute; right: 0; top: 12px; width: 24px; height: 24px;
  color: var(--ink-3); display: none; font-size: 14px; line-height: 1;
}
.search .clear:hover { color: var(--ink); }

/* Axtarış paneli — axının içindədir (fixed deyil):
   açılanda aşağıdakı məzmunu örtmür, onu aşağı itələyir. */
.searchbar {
  position: relative; z-index: 1;
  background: var(--paper);
  /* border-bottom YOX: bağlı halda `1px solid transparent` ağ fonu header altında
     1px ağ xətt kimi göstərirdi. Sərhəd yalnız açıq halda. */
  max-height: 0; padding: 0; overflow: hidden;
  transition: max-height .45s var(--ease), padding .45s var(--ease);
}
.searchbar.open {
  max-height: 220px; padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}
.searchbar .wrap { max-width: 820px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 900; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(8px);
}
.modal.open { display: flex; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0 } }
.modal-box {
  background: var(--paper); border: 1px solid var(--line);
  width: min(1080px, 100%); max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: rise .45s var(--ease);
}
@keyframes rise { from { transform: translateY(20px); opacity: 0 } }
/* modal-grid modal-box-un (flex) yeganə uşağıdır: min-height:0 88vh limitini aşağı ötürür */
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; flex: 1 1 auto; }
/* Sol qalereya FIXED — scroll etmir, şaquli mərkəzdə, hündürlüyə sığışdırılır */
.m-gallery {
  padding: 34px; border-right: 1px solid var(--line-soft);
  min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.m-gallery .m-main { flex: 0 1 auto; }
.m-gallery .m-thumbs { flex: 0 0 auto; }
.m-main { position: relative; background: var(--tile); border: 1px solid var(--line-soft); aspect-ratio: 1/1; min-height: 0; overflow: hidden; }
.m-main img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 9%; object-fit: contain; }
.m-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.m-thumbs img {
  width: 58px; height: 58px; object-fit: contain; background: var(--tile); padding: 6px;
  border: 1px solid var(--line-soft); cursor: pointer;
  opacity: .5; transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.m-thumbs img:hover { opacity: 1; }
.m-thumbs img.sel { opacity: 1; border-color: var(--blue); }
.m-info {
  padding: 40px; position: relative;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
/* Başlıq + kateqoriya — yuxarıda FIXED */
.m-head { flex: 0 0 auto; }
/* Ortadakı məzmun (spesifikasiya/ölçülər) — yalnız bu şaquli SCROLL edir */
.m-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  /* scrollbar başlıqla CTA arasında qalsın deyə kiçik daxili boşluq */
  margin-right: -6px; padding-right: 6px;
}
.m-scroll > :first-child { margin-top: 0; }
.m-close {
  position: absolute; top: 22px; right: 22px; width: 34px; height: 34px;
  display: grid; place-items: center; color: var(--ink-2); font-size: 15px;
  border: 1px solid var(--line-soft); transition: .3s var(--ease);
}
.m-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.m-cat { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.m-info h3 {
  margin: 14px 0 22px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 200;
  letter-spacing: -.03em; line-height: 1.15; padding-right: 44px;
}
.m-intro { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; }
.m-sub {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.spectable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spectable td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spectable td:first-child { color: var(--ink-3); width: 42%; font-size: 12.5px; }
.blist { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.blist li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.blist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 1px; background: var(--blue); }
.spectable + .blist { margin-top: 14px; }
.optlist { display: flex; flex-wrap: wrap; gap: 6px; }
.optlist span {
  padding: 7px 13px; border: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2);
}
/* CTA düymələri — aşağıda FIXED (scroll etmir) */
.m-cta {
  flex: 0 0 auto; display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}

/* ============================================================
   HAQQIMIZDA — editorial hekayə girişi
   ============================================================ */
/* ===== Haqqımızda hero — kursor "hovuz suyu reveal" (water-reveal.js) =====
   Ağ fon; canvas arxada (z0) — ağ örtük + hover-də su/dalğa. Mətn üstdə (z2), öz rəngləri ilə,
   effekt onlara toxunmur (ayrı layer). Hadisələr section-da dinlənir (bubbling) → mətn üstündə də işləyir. */
.reveal-hero {
  position: relative; isolation: isolate;
  min-height: min(72vh, 620px);
  display: flex; align-items: center; overflow: hidden;
  background: #fff;   /* canvas yüklənənə qədər (və fallback) ağ */
}
.reveal-hero-canvas { position: absolute; inset: 0; z-index: 0; }
.reveal-hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.reveal-hero-stage { position: relative; z-index: 2; width: 100%; padding: 40px 0; }
/* İki sütun: solda başlıq, sağda qurucu sitatı (pull-quote) */
.reveal-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 60px; align-items: center;
}
.reveal-hero-inner { max-width: 640px; }
.reveal-hero .story-eyebrow { display: block; margin-bottom: 22px; }
.reveal-hero-title {
  font-size: clamp(34px, 5vw, 62px); font-weight: 200; line-height: 1.06;
  letter-spacing: -.03em; color: var(--ink); margin-bottom: 30px;
}
.reveal-hero .story-cta { display: inline-flex; }
/* Sağ pull-quote — incə/zərif: nazik hairline aksent, yüngül çəki, yumşaq rəng */
.reveal-hero-quote {
  margin: 0; align-self: center;
  border-left: 1px solid var(--line); padding-left: 26px;
}
.reveal-hero-quote p {
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 200; line-height: 1.65;
  letter-spacing: 0; color: var(--ink-2);
}
.reveal-hero-quote footer { margin-top: 20px; }
/* ⚠️ ACCESSIBILITY — kursor hero üzərində olanda parlaq hovuz suyu açılır.
   Mavi eyebrow (su üzərində mavi-mavi) və yumşaq boz mətnlər oxunmaz olur → hover-də
   hamısını TÜND ink et (tünd ink həm ağ, həm parlaq su üzərində WCAG AA keçir). Yumşaq keçid. */
.reveal-hero .story-eyebrow,
.reveal-hero-title,
.reveal-hero .story-cta,
.reveal-hero-quote p,
.reveal-hero-quote footer .label { transition: color .35s var(--ease); }
.reveal-hero:hover .story-eyebrow,
.reveal-hero:hover .story-cta,
.reveal-hero:hover .reveal-hero-quote p,
.reveal-hero:hover .reveal-hero-quote footer .label { color: var(--ink); }
@media (max-width: 900px) {
  .reveal-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .reveal-hero-quote { display: none; }   /* telefonda hero sadə qalsın */
}

/* "Hovuz dizaynı" bölməsi — hero ilə eyni su-reveal fon (ağ örtük, hover-də su+dalğa) */
.reveal-sec { position: relative; overflow: hidden; background: #fff; }
.reveal-sec-canvas { position: absolute; inset: 0; z-index: 0; }
.reveal-sec-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.reveal-sec > .wrap { position: relative; z-index: 2; }
/* Accessibility — hover-də (parlaq su açılır) etiket + mətn tünd ink olsun (oxunaqlı) */
.reveal-sec .label, .reveal-sec .about-copy p { transition: color .35s var(--ease); }
.reveal-sec:hover .label,
.reveal-sec:hover .about-copy p { color: var(--ink); }

.story { padding: 60px 0 110px; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 20px;
  align-items: start;
}
.story-eyebrow { grid-column: 1 / 5; grid-row: 1; margin-bottom: 30px; }

.story-h {
  font-size: clamp(38px, 7vw, 96px); font-weight: 200;
  letter-spacing: -.04em; line-height: .96; text-transform: uppercase;
  position: relative; z-index: 2;
}
.story-h-a { grid-column: 2 / 8; grid-row: 2; margin-top: 20px; }
.story-h-b { grid-column: 5 / 12; grid-row: 5; text-align: right; margin-top: -70px; }

.story-fig { margin: 0; overflow: hidden; background: var(--surface); }
/* Şəkillər açıqlaşdırılır: aşağı başlıq şəklin üstünə düşür və qara mətn
   orijinal tünd fotoda oxunmurdu (ölçülmüş kontrast 2.13 → 4.02). */
.story-fig img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.85) brightness(1.75) contrast(.7);
  transition: filter .6s var(--ease);
}
/* üstündə mətn olmayan şəkillər hover-də öz rənginə qayıdır */
.sf-a:hover img, .sf-b:hover img { filter: none; }
.sf-a { grid-column: 8 / 12; grid-row: 1 / 3; aspect-ratio: 4/3.2; }
.sf-b { grid-column: 1 / 6; grid-row: 3 / 5; aspect-ratio: 4/4.4; margin-top: 30px; }
.sf-c { grid-column: 7 / 13; grid-row: 4 / 6; aspect-ratio: 4/2.9; margin-top: 40px; }

.story-cta { grid-column: 7 / 10; grid-row: 3; align-self: start; margin-top: 60px; }

/* qurucunun sözü */
.founder { margin: 0; max-width: 22ch; }
.founder p {
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 200;
  letter-spacing: -.02em; line-height: 1.32; max-width: 26ch;
}
.founder footer { margin-top: 24px; }
.founder { max-width: none; }


/* niyə bizi seçirlər — 3 üstünlük kartı (sayt üslubu: hairline, radius 0, kölgə yox) */
.partners {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.why-head { text-align: center; margin-bottom: 56px; }
.why-head .label { display: block; margin-bottom: 16px; }
.why-head h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 200; letter-spacing: -.03em; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.why-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line-soft);
  margin-right: -1px; margin-bottom: -1px;   /* qonşu hairline-lar üst-üstə düşsün */
  padding: 46px 38px; transition: background-color .4s var(--ease);
}
.why-card:hover { background: var(--surface); }
.why-ic { width: 30px; height: 30px; color: var(--blue); margin-bottom: 26px; }
.why-card h3 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 12px; }
.why-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 26px; }
.why-card .tlink { margin-top: auto; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* kataloq faylları */
.cat-files { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cat-file {
  display: flex; align-items: center; gap: 20px; padding: 18px;
  border: 1px solid var(--line-soft); background: var(--paper);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.cat-file:hover { border-color: var(--blue); background: var(--surface); transform: translateY(-3px); }
.cf-thumb {
  flex: 0 0 78px; height: 104px; background: var(--tile);
  border: 1px solid var(--line-soft); overflow: hidden;
}
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-meta { display: grid; gap: 5px; }
.cf-name { font-size: 17px; font-weight: 400; letter-spacing: -.01em; }
.cf-type { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cf-arr { margin-left: auto; flex: 0 0 16px; color: var(--ink-3); transition: color .3s var(--ease); }
.cat-file:hover .cf-arr { color: var(--blue); }

/* ============================================================
   ƏLAQƏ SƏHİFƏSİ
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: start; }
.field { margin-bottom: 26px; }
.field label {
  display: block; margin-bottom: 9px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.field .req { color: var(--blue); margin-left: 3px; }
.field input, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 300;
  border-radius: 0; outline: none; transition: border-color .3s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--blue); }
.form-note { min-height: 20px; margin-bottom: 14px; font-size: 13.5px; color: var(--ink-2); }
.form-note.err { color: #c0392b; }

.contact-info { display: grid; gap: 30px; }
.ci-block .label { display: block; margin-bottom: 8px; }
.ci-block a, .ci-block p { font-size: 16.5px; font-weight: 300; color: var(--ink); }
.ci-block a { transition: color .3s var(--ease); }
.ci-block a:hover { color: var(--blue); }

/* Sosial ikonlar — Əlaqə səhifəsindəki məlumat blokunda istifadə olunur */
/* Çərçivəsiz ikonlar — saytın qalan hissəsində ikon qutusu yoxdur. */
/* --- Sosial ikon düymələri (yalnız elaqe.html) ---
   Saytın dili: hairline qutu, `--r` radius, kölgə yox; hover-də mavi dolur
   (`.btn` və `.map-card` ilə eyni məntiq). Çılpaq ikonlar əvəzinə düymə qutusu:
   toxunma hədəfi də 42px olur. */
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; color: var(--ink-2);
  transition: color .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease);
}
.socials a:hover, .socials a:focus-visible {
  color: #fff; background: var(--blue); border-color: var(--blue); outline: 0;
}
.socials svg { width: 17px; height: 17px; display: block; }

.map-sec { padding: 0 0 110px; }
/* Quraşdırılmış Google Maps — sayt üslubunda: incə hairline çərçivə, radius 0, kölgə yox.
   Bütün xəritə klik oluna bilən linkdir → Google Maps açır (iframe pointer-events:none). */
.map-embed {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--surface);
  height: clamp(320px, 46vh, 460px); overflow: hidden;
  transition: border-color .3s var(--ease);
}
.map-embed iframe {
  display: block; width: 100%; height: 100%; border: 0;
  pointer-events: none;   /* içəridə pan/zoom yox → klik anaya (linkə) düşür */
}
.map-embed:hover { border-color: var(--blue); }
/* Hover-də çox yüngül tünd örtük — klik oluna biləni bildirir (mətn/ikon yox). */
.map-embed::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(13,16,23,0); transition: background .3s var(--ease);
}
.map-embed:hover::after { background: rgba(13,16,23,.06); }

@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .cat-files { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* editorial düzülüş mobildə sadə axına çevrilir */
  .story-grid { display: block; }
  .story { padding: 40px 0 70px; }
  .story-eyebrow { margin-bottom: 18px; }
  .story-h-a, .story-h-b { margin: 0; text-align: left; }
  .story-h-b { margin-top: 26px; }
  .story-fig { margin: 26px 0 0; aspect-ratio: 4/3 !important; }
  .story-cta { display: inline-flex; margin: 30px 0 0; }
}

/* ============================================================
   FOOTER — agencyhabitat.com üslubu: üstdə şüar + naviqasiya ·
   ortada nəhəng söz-loqo (hərfin üstündə hovuz şəkli açılır) ·
   altda kateqoriyalar + sosial · ən altda hüquqi linklər.
   Əlaqə forması və əlaqə sətirləri artıq footer-də deyil (elaqe.html-dədir).
   ============================================================ */
.site-footer {
  background: var(--surface);          /* səhifədən bir ton fərqli — yüngül mavi çalar */
  border-top: 1px solid var(--line);
  padding: 40px 0 26px;
}

/* --- üst sətir: şüar + naviqasiya --- */
.f-top {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-soft);
}
.f-tagline { margin: 0; font-size: 17px; font-weight: 300; letter-spacing: -.01em; }
.f-nav ul, .f-cats ul, .f-social ul, .f-legal ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 26px;
}
.f-nav a { font-size: 15px; transition: color .3s var(--ease); }
.f-nav a:hover { color: var(--blue); }

/* --- nəhəng söz-loqo: hərflərin içindən video (ymugroup.com texnikası) ---
   Video ALTDA, üstündə footer fonu rəngində "trafaret" lövhə; hərflər lövhədəki
   deşiklərdir. YMU-da lövhə tək even-odd path-dır (şrift path-a çevrilib);
   bizdə <mask> + <text> — nəticə eynidir, amma hərflər Inter-dən gəlir.

   viewBox = "HOVUZ"-un render olunmuş ƏSL mürəkkəb qutusu (Inter 200,
   letter-spacing -.055em, font-size 1000): 3065 × 736, bazis xətti y=729.
   Hündürlük sırf cap-height deyil — `O` cap xəttindən yuxarı və bazisdən
   ~7 vahid aşağı daşır (overshoot); rəqəmlər lövhəni canvas-a render edib
   deşiklərin sərhədini ölçməklə alınıb.
   `aspect-ratio` həmin nisbətə bərabərdir → SVG konteyneri dəqiq doldurur
   (letterbox yoxdur) və hərflər kənardan-kənara oturur. Miqyaslanma CSS-siz,
   JS-siz alınır: SVG özü miqyaslanır.
   DİQQƏT: mətn/şrift çəkisi dəyişsə, 3065×736 və y=729 yenidən ölçülməlidir. */
.vmark {
  display: block; position: relative;
  aspect-ratio: 4859 / 749;
  margin: 26px 0 22px;
  overflow: hidden;
  background: var(--surface);
}
.vmark-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Lövhə videonun üstündədir; hərf deşiklərindən video görünür. */
.vmark-plate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 2; pointer-events: none;
}
.vmark-fill { fill: var(--surface); }
.vmark-text {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700; font-size: 1000px; letter-spacing: -55px;
  fill: #000;   /* maskada qara = deşik */
}

/* --- alt sətir: kateqoriyalar + sosial (mətn linklər) --- */
.f-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.f-cats a, .f-social a { font-size: 14.5px; color: var(--ink-2); transition: color .3s var(--ease); }
.f-cats a:hover, .f-social a:hover { color: var(--blue); }

/* --- ən alt: hüquqi linklər + kopirayt --- */
.f-legal {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.f-legal a { font-size: 12px; color: var(--ink-3); transition: color .3s var(--ease); }
.f-legal a:hover { color: var(--blue); }
.f-legal p { margin: 0; font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }

@media (max-width: 900px) {
  .f-top, .f-bottom, .f-legal { flex-direction: column; align-items: flex-start; gap: 16px; }
  .f-nav ul, .f-cats ul, .f-social ul, .f-legal ul { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 560px) {
  .site-footer { padding: 34px 0 24px; }
  .vmark { margin: 20px 0 18px; }
}


/* ============================================================
   HÜQUQİ SƏHİFƏLƏR — məxfilik siyasəti, istifadə şərtləri.
   Dar oxu sütunu; başlıqlar hairline xətlə ayrılır (saytın ritmi).
   ============================================================ */
.legal { max-width: none; }   /* mərkəzi konteyneri (.wrap) tam tutsun — istifadəçi tələbi */
.legal h2 {
  font-size: clamp(19px, 2vw, 25px); font-weight: 300; letter-spacing: -.02em;
  line-height: 1.3; margin: 44px 0 14px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p, .legal li { font-size: 16px; font-weight: 300; color: var(--ink-2); line-height: 1.75; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }
.legal-updated {
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}


/* ---------- Görünəndə canlanma ----------
   Yalnız JS aktiv olanda gizlədilir: JS sınsa da məzmun görünür. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSİV
   ============================================================ */
@media (max-width: 1200px) {
  :root { --pad: 28px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .hero-stage { padding: calc(var(--header-h) + 24px) var(--pad) 40px; }
  .about-top { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line-soft); }
  .overlay-grid { grid-template-columns: 1fr; gap: 42px; }
  .sec, .about { padding: 90px 0; }
}
/* 4 linklik naviqasiya ~1020px-dən dar ekranda mərkəzdəki loqonun üstünə düşür.
   Ondan aşağıda sətri gizlədirik — burger həmişə göründüyü üçün menyu itmir. */
@media (max-width: 1023px) {
  /* Tablet/mobil: naviqasiya gizli → loqo SOLA düzülür, digər elementlər
     (telefon/ikonlar/burger) SAĞA keçir. Mərkəzi mütləq mövqe ləğv olunur. */
  .hsec--left { display: none; }
  .hsec--center { position: static; transform: none; justify-content: flex-start; }
  .hsec--right { margin-left: auto; }
  /* Hero tablet/mobildə daha qısa (3D obyekt onsuz da bu enlərdə gizlidir). */
  .hero { min-height: 60svh; }
  /* haqqımızda hero-su da (kursor su-reveal) tablet/mobildə ana səhifə ilə eyni hündürlükdə. */
  .reveal-hero { min-height: 60svh; }
}

@media (max-width: 860px) {
  .hphone { display: none; }
  /* Dar ekranda fixed düzülüşü söndür — bütöv modal normal scroll etsin */
  .modal-box { overflow: auto; display: block; position: relative; }
  .modal-grid { grid-template-columns: 1fr; min-height: auto; }
  .m-gallery {
    border-right: 0; border-bottom: 1px solid var(--line-soft);
    display: block; overflow: visible;
  }
  .m-info { display: block; overflow: visible; position: static; }
  .m-scroll { overflow: visible; margin-right: 0; padding-right: 0; }
  /* Tək sütunlu modalda ✕ info panelinə yox, MODALIN üst-sağ küncünə (şəklin
     üstünə) bağlansın → .m-info static, .modal-box relative olur. Şəkil üzərində
     görünsün deyə fon + kölgə. */
  .m-close {
    top: 12px; right: 12px; z-index: 6;
    background: var(--paper); box-shadow: 0 2px 10px rgba(13, 16, 23, .14);
  }
  /* Dar ekranda üzən şəkil işləmir (yer yoxdur, toxunmada hover da yoxdur):
     onu tamamilə söndürüb sətirdaxili şəkli göstəririk.
     Spesifiklik `.cat-row .cat-thumb`-dan az olmamalıdır, yoxsa hover qaydası üstələyir. */
  .cat-float { display: none; }
  .cat-row { grid-template-columns: 40px 1fr 62px; gap: 14px; }
  .cat-row .cqty { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .cat-row .cat-thumb { display: block; grid-column: 3; grid-row: 1 / 3; width: 62px; height: 62px; }
  .cat-list.hot .cat-row:hover { padding-left: 0; }
}
@media (max-width: 680px) {
  :root { --pad: 20px; --header-h: 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-body { padding: 16px 14px 20px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; }
  .m-info, .m-gallery { padding: 24px; }
  .toolbar { gap: 14px; }
  .sortsel { display: none; }
  .sec, .about { padding: 70px 0; }
  .overlay { padding-top: calc(var(--header-h) + 26px); }
}
/* çox kiçik telefonlar — sıxılmanı yumşalt (hero/scrim/showcase başlığına toxunmuruq: WCAG tənzimlidir) */
@media (max-width: 480px) {
  .sec, .about { padding: 58px 0; }
  .page-head { padding: 52px 0 0; }
  .btn { padding: 0 22px; letter-spacing: .12em; }
  .hero-actions { gap: 12px; }
  .cat-file { padding: 14px; gap: 14px; }
  .cf-thumb { flex-basis: 64px; height: 84px; }
  .f-nav ul, .f-cats ul, .f-social ul, .f-legal ul { gap: 14px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
