/* Ana səhifə: redaksiya tipli tək sütun — hero, layihə şəbəkəsi,
   xidmətlər, proses, əlaqə. Yalnız index.html yükləyir. */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- naviqasiya ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
}
.logo i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0;
}
.nav nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
/* Hər iki element eyni qaydadadır: naviqasiya bəndləri `<a>`-dır,
   CTA isə modal açdığına görə `<button>`. Düymə şrifti və boşluğu
   MİRAS ALMIR — qayda yalnız `a`-ya yazılanda CTA 16px/400 ölçüsünə,
   kəskin küncə və brauzerin öz çərçivəsinə düşürdü. */
.nav nav a,
.nav nav button {
  appearance: none;
  border: 0;
  background: none;
  font-family: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.nav nav a:hover,
.nav nav button:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.nav .cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
}
.nav .cta:hover {
  background: var(--accent) !important;
  filter: brightness(1.06);
}

/* ---------- hero ---------- */
.hero {
  padding-block: 56px 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-size: 18px;
  max-width: 34ch;
  margin: 0 0 28px;
}
.hero .actions .btn {
  padding: 13px 18px;
  font-size: 15px;
}

/* canlı render + üzərindəki ölçü işarələri */
.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--stage);
  aspect-ratio: 16 / 10;
  max-width: 100%;
  box-shadow: 0 30px 60px -30px rgba(10, 24, 32, .55);
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.shot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shot .band {
  fill: var(--ok);
  fill-opacity: .35;
  stroke: #fff;
  stroke-opacity: .5;
  stroke-width: .4;
}
.shot .band.hot {
  fill: #fff;
  fill-opacity: 1 !important;
  stroke: var(--accent);
  stroke-width: 2.5;
}
.shot .dim {
  stroke: #fff;
  stroke-width: .8;
  fill: none;
}
.shot .dimtxt {
  font-family: var(--f-mono);
  font-size: 10px;
  fill: #fff;
}

/* render üzərindəki status kartı */
.hcard {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 210px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hcard small {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hcard b {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.1;
}
.hcard span {
  font-size: 13px;
  color: var(--muted);
}
.hcard .pill {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- rəqəm zolağı ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  margin-block: 8px 0;
}
.facts div {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}
.facts div:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts b {
  display: block;
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: -.02em;
}
.facts span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- bölmə başlığı ---------- */
section.block {
  padding-block: 72px 8px;
}

.sh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sh h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 6px 0 0;
  text-wrap: balance;
  max-width: 20ch;
}
.sh p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

/* ---------- layihə şəbəkəsi ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.proj {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.proj .thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stage);
  max-width: 100%;
}
.proj .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .15, 1);
  max-width: none;
}
.proj:hover .thumb img {
  transform: scale(1.035);
}
.proj .tech {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(5, 15, 20, .78);
  color: #E8F1F3;
  font-family: var(--f-mono);
  font-size: 11px;
  border-radius: 6px;
  padding: 4px 8px;
  letter-spacing: .02em;
}
.proj .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.proj h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.proj .loc {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--f-mono);
}
.proj p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}
.feats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feats li {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--ink);
}
.open {
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.open span {
  transition: transform .2s;
}
.proj:hover .open span {
  transform: translateX(3px);
}

/* ---------- xidmətlər ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.svc {
  padding: 24px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc:not(:nth-child(3n+1)) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.svc svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc h3 {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: -.01em;
}
.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- proses ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.step h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: -.01em;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.step .dur {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  border-top: 1px dashed var(--line);
}

/* sayt qurulmasının pulsuz olduğunu bildirən qeyd */
.freebie {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line));
  background: color-mix(in srgb, var(--ok) 7%, transparent);
  border-radius: 12px;
  font-size: 15px;
}
.freebie b {
  font-weight: 700;
  color: var(--ink);
}
.freebie span:last-child {
  color: var(--muted);
  max-width: 68ch;
}

/* qəbul edilən fayl formatları */
.formats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
}
.formats .l {
  font-size: 13px;
  color: var(--muted);
  margin-right: 6px;
}
.formats code {
  font-family: var(--f-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
}

/* ---------- əlaqə ---------- */
.contact {
  margin-block: 80px 40px;
  background: var(--stage);
  color: var(--stage-ink);
  border-radius: 18px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.contact h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0 0 14px;
  text-wrap: balance;
}
.contact p {
  margin: 0;
  color: var(--stage-muted);
  max-width: 44ch;
}
.cl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 12px 14px;
}
.crow small {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stage-muted);
}
.crow b {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  user-select: all;
  word-break: break-all;
}
.copy {
  border: 1px solid rgba(255, 255, 255, .25);
  background: none;
  color: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 20px 32px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- uyğunlaşma ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 36px 24px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .svc:not(:nth-child(3n+1)) {
    padding-left: 0;
    border-left: 0;
  }
  .svc:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .facts div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .facts div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-inline: 16px;
  }
  .services,
  .steps {
    grid-template-columns: 1fr;
  }
  .svc:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .contact {
    padding: 24px;
  }
  .hcard {
    left: auto;
    right: 8px;
    bottom: 8px;
    min-width: 0;
    padding: 8px 10px;
    gap: 2px;
  }
  .hcard b {
    font-size: 15px;
  }
  .hcard .sub,
  .hcard .pill {
    display: none;
  }

  /* Naviqasiya linkləri sətirə sığmır: gizlətmək yerinə yatay sürüşən lent */
  .nav .wrap {
    gap: 12px;
  }
  .nav nav {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav nav::-webkit-scrollbar {
    display: none;
  }
  .nav nav a {
    padding: 6px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* ======================================================================
   AÇILIŞ EKRANI — yenidən qurulmuş

   Əvvəl iki sütun idi: mətn solda, render sağda. Hər ikisi yarım ekranda
   sıxılırdı və nə başlıq, nə görüntü öz gücünü verirdi. İndi tək sütun,
   mərkəzi: başlıq kadrın bütün enini tutur, render isə onun altında tam
   enli lentdir.

   Qaydalar faylın SONUNDADIR, yəni yuxarıdakı köhnə `.hero` qaydalarını
   üstələyir — eyni spesifiklikdə sonuncu qalib gəlir.
   ====================================================================== */
.hero {
  display: block;
  text-align: center;
  padding-block: 64px 44px;
}
/* BAŞLIQ BÖYÜK HƏRFLƏRLƏDİR — ölçülər ona görə dəyişdi

   Üç şey eyni səbəbdən gəlir: böyük hərflər kiçiklərdən enlidir və
   enliliyi azalmır.
     · ölçü 88px-dən 60px-ə endi — "INTERACTIVE SALES TOOL FOR REAL
       ESTATE." 88px-də noutbuk ekranında üç sətrə yayılırdı;
     · sıxılma −.04em-dən −.015em-ə qalxdı — böyük hərflərdə o qədər
       sıxılma hərfləri bir-birinə yapışdırır;
     · `max-width: 18ch` getdi və `text-wrap` söndürüldü: sətirlər
       artıq `<br>` ilə ƏL İLƏ bölünür (bax i18n `hero.title`), eni
       məhdudlaşdırmaq isə həmin bölgünü pozurdu.
   Sətir hündürlüyü 1.08-dir: .95 böyük hərflərdə sətirləri
   üst-üstə yapışdırırdı, çünki onların hamısı tam hündürlükdədir. */
.hero h1 {
  font-size: clamp(31px, 4.3vw, 60px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 auto 22px;
  max-width: 24ch;
  text-wrap: initial;
}
.hero p.lead {
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 62ch;
  margin: 0 auto 30px;
}
.hero .actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Xəbər lenti: başlığın üstündəki kiçik həb. */
.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
}
.badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: 1px;
}

/* Etibar sətri: rəqəm + izah, dörd sütun. */
.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 42px;
  margin: 34px 0 40px;
  padding: 0;
  list-style: none;
}
.trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.trust b {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.trust span {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--f-mono);
}

/* Render açılış ekranının tam enli lentidir.

   `display: block` VACİBDİR: `.shot` <a> elementidir, yəni sətiriçidir,
   sətiriçi elementə isə `aspect-ratio` tətbiq olunmur — hündürlük sıfıra
   düşür və lentin yerinə yalnız üstündəki kart görünürdü. */
.hero .shot {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  text-align: left;
}

/* ======================================================================
   EKOSİSTEM — altı kart
   ====================================================================== */
.eco {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.eco-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .16s, transform .16s;
}
.eco-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}
.eco-card h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.eco-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- "hazır deyil" nişanları ----------
   Açıq demək ucuz başa gəlir: müştəri nəyin bu gün, nəyin sonra
   olduğunu bilsin. İkisi eyni formadır, yalnız rəngləri fərqlidir. */
.wip,
.soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
  vertical-align: 2px;
}
.wip { background: rgba(232, 177, 63, .18); color: #9a7212 }
.soon { background: rgba(11, 110, 127, .14); color: var(--accent) }

/* ======================================================================
   QİYMƏT — üç paket
   ====================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
/* Orta paket seçilir: çərçivə vurğulu, kart bir az qalxıb. */
.plan.is-best {
  border-color: var(--accent);
  box-shadow: 0 24px 50px -32px color-mix(in srgb, var(--accent) 60%, transparent);
}
.plan .flag {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.plan h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.plan .price {
  margin: 0;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.plan .note {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.plan ul {
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { justify-content: center; text-align: center }

/* ======================================================================
   KATALOQ — daha "jurnal" görünüşü

   Əvvəl şəkil, başlıq və mətn ayrı-ayrı dayanırdı. İndi kart bütöv
   lövhədir: ad və yer ŞƏKLİN ÜSTÜNDƏ, qalanı isə onun altında sakit
   sətirlərlə. Kataloq vərəqi kimi oxunur.
   ====================================================================== */
.proj {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color .16s, transform .18s, box-shadow .18s;
}
.proj:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -40px rgba(10, 24, 32, .6);
}
.proj .thumb {
  border-radius: 0;
  aspect-ratio: 16 / 9;
}
/* Şəklin altına qaranlıq keçid: üstündəki yazı həmişə oxunur. */
.proj .thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(6, 16, 22, .82), transparent);
  pointer-events: none;
}
.proj .meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #fff;
}
.proj .meta h3 { color: #fff; font-size: 23px }
.proj .meta .loc { color: rgba(255, 255, 255, .78) }
.proj > p {
  margin: 0;
  padding: 16px 20px 0;
  font-size: 14.5px;
}
.proj .feats { padding: 12px 20px 0 }
.proj .open { padding: 14px 20px 18px }

@media (max-width: 1000px) {
  .eco, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 680px) {
  .eco, .plans { grid-template-columns: minmax(0, 1fr) }
  .trust { gap: 14px 26px }
  .trust b { font-size: 22px }
  .hero .shot { aspect-ratio: 16 / 10 }
}

/* ======================================================================
   KATALOQ SLAYDERİ

   Kartlar EYNİ ÖLÇÜDƏDİR: en sabitdir (`flex: 0 0 …`), hündürlüyü isə
   flex konteynerinin "stretch" davranışı bərabərləşdirir — ən uzun kart
   qalanlarının da boyunu təyin edir. Mətn uzunluğu fərqli olduğuna görə
   təsvir üç sətirdə kəsilir və "Demonu açın" sətri `margin-top: auto`
   ilə həmişə kartın dibinə yapışır.

   Sürüşdürmə BRAUZERİNDİR: `overflow-x: auto` + `scroll-snap`. Barmaq,
   toxunma paneli, Shift+təkər və klaviatura (lent fokus alır) onsuz da
   işləyir; JS yalnız iki oxu idarə edir.
   ====================================================================== */
.slider { position: relative }

.projects {
  display: flex;
  grid-template-columns: none;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 2px;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  outline: none;
}
.projects::-webkit-scrollbar { display: none }

.projects .proj {
  flex: 0 0 clamp(272px, 31.4%, 400px);
  scroll-snap-align: start;
}
/* Təsvir üç sətirdir: mətn uzunluğu kartın boyunu idarə etməsin. */
.proj > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj .open { margin-top: auto }

/* ---------- oxlar ----------
   Lentin ÜSTÜNDƏ üzür, kənarlardan yarı çıxır. Son kartda sönür
   (`disabled`), yəni istifadəçi lentin bitdiyini görür. */
.sl-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(10, 24, 32, .5);
  transition: opacity .16s, transform .16s, border-color .16s;
}
.sl-nav.prev { left: -18px }
.sl-nav.next { right: -18px }
.sl-nav svg {
  width: 12px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sl-nav:hover { border-color: var(--accent); transform: scale(1.06) }
.sl-nav[disabled] { opacity: 0; pointer-events: none }

@media (max-width: 900px) {
  .projects .proj { flex-basis: min(82%, 340px) }
  .sl-nav { display: none }
}

/* ======================================================================
   AÇILIŞ EKRANI — FON FİLMİ

   Fon tam enlidir, ona görə bölmə `.wrap`-dan KƏNARDADIR; mətn isə öz
   `.wrap`-ındadır. Üç qat var:

     .film-vid    — həqiqi video (fayl qoyulanda; yoxdursa görünmür)
     .film-shots  — layihə kadrları, bir-birinin üstündə sönüb-yanır
     .film-veil   — tünd keçid: başlıq hər şəklin üstündə oxunur

   Kadr yavaş-yavaş böyüyür (Ken Burns): sabit şəkil "slayd", yavaş
   hərəkətli şəkil isə "video" kimi oxunur. Hərəkəti azaltma rejimində
   dayanır.
   ====================================================================== */
.film-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  /* Sütun AÇIQ verilir: avtomatik sütun məzmunun eninə yığılırdı və
     mətn kadrın yalnız sol yarısını tuturdu. */
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: min(86vh, 760px);
  padding-block: 72px 96px;
  text-align: center;
  overflow: hidden;
}
.film {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0A1820;
}
/* Mətn qutusu sütunun ortasındadır və tam enini alır. */
.film-hero > .hero-in {
  justify-self: center;
  width: 100%;
}
.film-vid,
.film-shots,
.film-shots img,
.film-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film-vid {
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s;
}
/* Video YALNIZ fayl həqiqətən açılanda görünür (home.js sinfi qoyur). */
.film-vid.is-on { opacity: 1 }

.film-shots img {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 9s linear;
}
.film-shots img.is-on {
  opacity: 1;
  transform: scale(1.14);
}
/* Video oynayanda şəkil dövrəsi gizlənir. */
.film.has-video .film-shots { opacity: 0 }

.film-veil {
  background:
    linear-gradient(to bottom, rgba(6, 18, 24, .78), rgba(6, 18, 24, .62) 42%, rgba(6, 18, 24, .9)),
    radial-gradient(120% 80% at 50% 0%, rgba(11, 110, 127, .34), transparent 62%);
  transition: background .9s ease;
}

/* AĞ FONLU KADRLAR ÜÇÜN AYRI PƏRDƏ

   Səkkiz kadrın altısı 3D səhnədir — tünd və doymuş. İkisi isə
   məhsulun ÖZ ekranıdır (mərtəbə planı, mənzilin yuxarıdan
   görünüşü) və ağ fondadır: eyni pərdə altında açıq boz qalır,
   ağ başlıq isə onun üstündə oxunmur. Ona görə pərdənin gücü
   kadrdan asılıdır — şəkli qaraltmaqdansa, çünki o halda kadr
   başqa yerdə də tünd olardı. */
.film.is-light .film-veil {
  background:
    linear-gradient(to bottom, rgba(6, 18, 24, .9), rgba(6, 18, 24, .82) 42%, rgba(6, 18, 24, .95)),
    radial-gradient(120% 80% at 50% 0%, rgba(11, 110, 127, .26), transparent 62%);
}

/* ---------- fonun üstündəki mətn ---------- */
.film-hero .badge {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
}
.film-hero h1 { color: #fff }
.film-hero h1 em { color: #7FD4E0 }
.film-hero p.lead { color: rgba(255, 255, 255, .84) }
.film-hero .trust b { color: #fff }
.film-hero .trust span { color: rgba(255, 255, 255, .64) }
.film-hero .btn:not(.primary) {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  backdrop-filter: blur(6px);
}
.film-hero .btn:not(.primary):hover { background: rgba(255, 255, 255, .18) }

/* ---------- ekrandakı layihənin adı ---------- */
.film-tag {
  position: absolute;
  /* Yazı mətnin sol kənarı ilə düzlənir: .wrap 1180 pikseldir və
     24 piksel iç kənarı var (bax faylın başı). */
  left: max(24px, calc((100% - 1180px) / 2 + 24px));
  bottom: 22px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, .9);
  font-family: var(--f-mono);
  font-size: 12.5px;
}
.film-tag .l {
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10.5px;
}
.film-tag b { font-weight: 600 }
.film-tag span:last-child { color: rgba(255, 255, 255, .55) }

/* Canlı render bandı: açılışdan sonrakı birinci izah. */
.live { padding-block: 44px 8px }
.live .shot { display: block; width: 100%; aspect-ratio: 21 / 9 }

@media (prefers-reduced-motion: reduce) {
  .film-shots img { transition: opacity .4s; transform: none }
  .film-shots img.is-on { transform: none }
}
@media (max-width: 680px) {
  .film-hero { min-height: 78vh; padding-block: 56px 78px }
  .film-tag { left: 18px; bottom: 14px }
  .live .shot { aspect-ratio: 16 / 10 }
}

/* ======================================================================
   DEMO SORĞUSU — modal forma

   <dialog> seçilib: fokusu özü tutur, Esc ilə bağlanır, arxa fonu özü
   kilidləyir. `::backdrop` isə fonun tündləşməsini pulsuz verir.
   ====================================================================== */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(6, 18, 24, .7);
  overflow: visible;
}
/* FONDA BULANIQLIQ YOXDUR — ÖLÇÜLMÜŞ QƏRAR

   `backdrop-filter` bütün pəncərəni HƏR KADRDA yenidən bulanıqlaşdırır.
   Demo maşınında GPU yoxdur: arxada açılış kadrı (9 saniyəlik miqyas
   keçidi) işləyirdi və modal açılan kimi səhifə dondu — brauzer skriptə
   45 saniyə ərzində cavab vermədi. Tünd rəng eyni işi pulsuz görür. */
.modal::backdrop { background: rgba(6, 18, 24, .76) }

/* Modal açıqdırsa açılış kadrı DONDURULUR: o, onsuz da tünd fonun
   altındadır, amma keçid davam edirsə prosessor onu boş yerə rəsm edir. */
body.modal-open .film-shots img {
  transition: none;
  transform: none;
}
.modal-in {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 30px 30px 26px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.modal-in h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.modal-lead {
  margin: -6px 0 4px;
  color: var(--muted);
  font-size: 14px;
}
/* Bağlama düyməsi `right` ilə yazılsaydı, ərəbcədə BAŞLIĞIN üstünə
   düşərdi — `inset-inline-end` istiqaməti dilin özündən götürür. */
.modal-x {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover { background: rgba(10, 24, 32, .07); color: var(--ink) }

/* ---------- sahələr ---------- */
.fld { display: flex; flex-direction: column; gap: 5px }
.fld > span {
  font-size: 13px;
  font-weight: 600;
}
/* ULDUZ SAHƏNİN ÖZÜNDƏN GƏLİR

   Mətnə əl ilə yazılsaydı, altı dilin hər birində təkrarlanacaq və
   bir gün biri unudulacaqdı. Yeri ilə də seçmirik (`:last-of-type`
   razılıq sətrini sayırdı və "Mesaj" səhvən ulduzlanırdı) — ölçü
   `required` atributudur, yəni ulduz və yoxlama HƏMİŞƏ üst-üstə düşür.
   `:has()` tanınmayan brauzerdə qayda düşür: ulduz görünmür, yoxlama
   isə yerindədir. */
.fld:has(input[required]) > span::after,
.fld:has(textarea[required]) > span::after { content: " *"; color: var(--accent) }
.fld small { color: var(--muted); font-size: 11.5px; margin-top: -2px }
.fld input,
.fld textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  font-size: 14.5px;
  transition: border-color .14s, box-shadow .14s;
}
.fld textarea { resize: vertical; min-height: 74px }
.fld input:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.fld input.is-bad,
.fld textarea.is-bad { border-color: var(--sold) }

.err {
  display: block;
  min-height: 0;
  color: var(--sold);
  font-size: 12px;
  font-style: normal;
}
.err:empty { display: none }

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.agree input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent) }

.modal-act {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.modal-note { color: var(--muted); font-size: 12.5px; font-family: var(--f-mono) }

.modal-msg {
  margin: 2px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
}
.modal-msg.is-ok { background: rgba(44, 149, 99, .12); color: #1f7a4f }
.modal-msg.is-bad { background: rgba(226, 105, 92, .14); color: #a33a2e }

/* Futerdəki imza. */
footer .by { color: var(--muted) }
footer .by b { color: var(--ink); font-weight: 600 }

@media (max-width: 560px) {
  .modal-in { padding: 26px 20px 22px }
}

/* Kataloq başlığındakı bələdçi düyməsi: ikinci dərəcəli hərəkətdir,
   ona görə dolu deyil — çərçivəlidir. */
.guidebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.guidebtn svg { flex: none }

/* Futerdəki studiya adı linkdir, amma sətrin içində sakit qalır:
   altı yalnız üstünə gələndə cızılır. */
.by a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.by a:hover { border-bottom-color: currentColor }
