/* Mebel Project — redesign
   Floema-vari: isti neytral fon, iri və yüngül tipografiya, geniş boşluq, sakit hərəkət. */

:root {
  /* Brend rəngi. Köhnə mebelproject.az loqosundan #b91e50 kimi oxunmuşdu;
     dəqiq dəyər müştəri tərəfindən verilib. */
  --brand:      #b91d4f;
  --brand-dark: #8e1440;
  --brand-mid:  #d0637f;  /* böyük rəngli blok üçün açıq ton */
  --brand-soft: #f6e7ec;  /* çox açıq fon ləkəsi */

  --bg:        #ffffff;
  --bg-deep:   #f7f4f2;
  --ink:       #16141a;
  --ink-soft:  #4a4550;
  --muted:     #8d8794;
  --line:      #e6e2e6;
  --white:     #ffffff;

  --f-sans:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-display: 'Fredoka', 'Poppins', sans-serif;

  --pad:     clamp(1.25rem, 5vw, 5.5rem);
  --gap:     clamp(1rem, 2vw, 2rem);
  --section: clamp(5rem, 14vh, 11rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: var(--white); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ ortaq */

.label {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label a:hover { color: var(--ink); }

em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
}

/* Pill düymə: mətn kapsulu + ayrıca dairəvi ox (referans üslubu) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
}
.pill > span:first-child {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  transition: background 0.35s var(--ease);
}
.pill__arrow {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.pill:hover > span:first-child,
.pill:hover .pill__arrow { background: var(--brand-dark); }
.pill:hover .pill__arrow { transform: translateX(3px); }

.pill--sm { margin-top: 0; font-size: 0.72rem; }
.pill--sm > span:first-child,
.pill--sm:not(:has(span)) { padding: 0.5rem 1rem; }

/* Rəngli blok üzərində ağ pill */
.pill--white {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
a:hover > .acard__foot .pill--white { background: var(--ink); color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--brand); border-color: var(--brand); }

.btn--light { border-color: var(--bg); color: var(--bg); }
.btn--light:hover { background: var(--bg); color: var(--ink); }

/* Skrol ilə görünmə */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ naviqasiya */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
  padding: 1.2rem var(--pad);
  color: var(--ink);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

/* Ortada brend loqosu: köhnə saytın emblemi + söz işarəsi.
   Emblem tək başına bu ölçüdə oxunmur (divan/komod detalları itir), ona görə yazı ilə birlikdə. */
.nav__brand {
  position: absolute;
  left: 50%;
  top: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
/* Emblem incə xətt qrafikasıdır — kiçik ölçüdə konturları itir, ona görə 54px. */
.nav__logo {
  width: auto;
  max-width: min(180px, 36vw);
  height: 54px;
  flex: none;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.nav__brand:hover .nav__logo { transform: scale(1.06); }

/* Solda açılıb-bağlanan şaquli menyu */
.nav__list {
  position: relative;   /* açılan ağ kart buna görə yerləşir */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav__explore {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand);
}

/* "+" işarəsi iki xətdən qurulur ki, açılanda "×"-ə çevrilə bilsin */
.nav__dot {
  position: relative;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  transition: transform 0.4s var(--ease);
}
.nav__dot::before,
.nav__dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 1.4px;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.nav__dot::after { transform: translate(-50%, -50%) rotate(90deg); }
/* Açıq vəziyyətdə 45° dönür → "+" vizual olaraq "×" olur */
.nav__list.is-open .nav__dot { transform: rotate(135deg); }

/* Açılan linklər ağ kart konteyneri içində — səhifə məzmununun üstündə üzmür.
   Mütləq mövqe: açılanda naviqasiyanın hündürlüyünü dəyişmir. */
.nav__links {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 12rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 40px -12px rgba(22, 20, 26, 0.22), 0 2px 6px rgba(22, 20, 26, 0.06);
  /* Default BAĞLI. visibility də dəyişir ki, gizli linklər klaviatura ilə fokus almasın. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav__list.is-open .nav__links {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__links a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--brand); }

.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.nav__lang {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: opacity 0.3s var(--ease);
}
.nav__lang:hover { opacity: 0.6; }

.nav__burger { display: none; align-items: center; gap: 0.6rem; }
.nav__burger span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.nav__burger em {
  font-family: var(--f-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
}

/* Dar ekran (≤860px): solda loqo, sağda yalnız hamburger ikonu.
   "Menyu" yazısı və dil düyməsi gizlənir — dil açılan overlay menyunun altındadır. */
@media (max-width: 860px) {
  .nav { align-items: center; }
  .nav__list { display: none; }              /* şaquli dropdown */
  .nav__lang { display: none; }              /* bardakı RU/AZ — dil menyu içindədir */
  .nav__brand { position: static; transform: none; }   /* loqo sola */
  .nav__right { margin-left: auto; }         /* hamburgeri sağa itələ */
  /* İki xətt şaquli yığılıb hamburger ikonu düzəldir. */
  .nav__burger { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .nav__burger em { display: none; }         /* "Menyu" yazısı — yalnız ikon qalsın */
}

/* ------------------------------------------------------------------ overlay menyu */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: var(--pad);
  background: var(--ink);
  color: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }

.menu__close {
  position: absolute;
  top: 1.4rem; right: var(--pad);
  width: 32px; height: 32px;
}
.menu__close span {
  position: absolute;
  left: 4px; top: 15px;
  width: 24px; height: 1px;
  background: currentColor;
}
.menu__close span:first-child { transform: rotate(45deg); }
.menu__close span:last-child { transform: rotate(-45deg); }

.menu__list { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s var(--ease);
}
.menu.is-open .menu__list a { opacity: 1; transform: none; }
.menu.is-open .menu__list a:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__list a:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu__list a:nth-child(3) { transition-delay: 0.29s; }
.menu.is-open .menu__list a:nth-child(4) { transition-delay: 0.36s; }
.menu__list a:hover { color: var(--brand); }

.menu__num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(251, 250, 248, 0.7);
}
.menu__foot a:hover { color: var(--bg); }

/* ------------------------------------------------------------------ hero */

/* Hero — nəhəng, kənarlardan kəsilən söz; şəkil sözün üstündə oturur. */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(88svh, 760px);
  padding: clamp(5rem, 11vh, 7.5rem) 0 clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
  background: var(--bg);
}

.hero__word {
  grid-area: 1 / 1;
  width: 100%;
  margin: 0;
  text-align: center;
  font-weight: 400;
  /* Söz ekrandan bir az taşır ki, kənarlardan kəsilsin (referans üslubu).
     Mətn dəyişilərsə uzunluğu ~10-11 hərf saxlayın. */
  font-size: clamp(3.5rem, 19vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--ink);
  user-select: none;
}
.hero__word span {
  display: inline-block;
  animation: hero-in 1.1s var(--ease) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Tablet/mobil: söz ekrana sığsın, kənarlara boşluq qalsın (duvara yapışmasın).
   Masaüstündə qəsdən daşıб kəsilir; kiçik ekranda bu cansıxıcı görünür. */
@media (max-width: 860px) {
  .hero__word { font-size: clamp(3rem, 13vw, 6rem); }
}
@media (max-width: 560px) {
  .hero__word { font-size: clamp(2.4rem, 11vw, 4rem); }
}

/* Şəffaf kompozisiya — çərçivə yoxdur, birbaşa sözün üstündə durur. */
.hero__shot {
  position: relative;
  grid-area: 1 / 1;
  z-index: 1;
  margin: 0;
  /* Şəkil təxminən kvadratdır, ona görə eni ekran HÜNDÜRLÜYÜNƏ də bağlanır —
     yoxsa alçaq ekranlarda kompozisiyanın altı kadrdan düşür. */
  width: min(58vw, 82svh, 860px);
  min-width: 330px;
  animation: hero-in 1.1s var(--ease) 0.12s both;
}

.hero__layer { display: block; width: 100%; height: auto; }
/* "main" axında qalır və yüksəkliyi müəyyən edir; qalan iki qat onun üstünə oturur. */
.hero__layer--main { position: relative; }
.hero__layer--lamp,
.hero__layer--cup { position: absolute; inset: 0; }

/* Üzmə. Keyframe tam dövrü özü təsvir edir (yuxarı → aşağı → yuxarı).
   `alternate` İŞLƏDİLMİR: onunla real dövr müddətin İKİ misli olur və
   yarım-dövrlük gecikmə əks faza yox, çərək faza verir. */
.hero__layer {
  animation: bob 6s ease-in-out infinite;
  will-change: transform;
}
/* Lampa və kreslo eyni müddətdə, yarım dövr fərqlə → biri qalxanda o biri enir. */
.hero__layer--lamp { --amp: 10px; animation-duration: 6s; animation-delay: 0s; }
.hero__layer--main { --amp: 7px;  animation-duration: 6s; animation-delay: -3s; }
/* Fincan sərbəst üzür — kompozisiyaya canlılıq verir. */
.hero__layer--cup  { --amp: 15px; animation-duration: 4.5s; animation-delay: -1.2s; }

/* offset-path üzərində tam bir dövr. Kollajdakı peyklər bunu işlədir. */
@keyframes orbit { to { offset-distance: 100%; } }

@keyframes bob {
  0%, 100% { transform: translateY(calc(var(--amp) * -1)); }
  50%      { transform: translateY(var(--amp)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__layer { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word span, .hero__shot { animation: none; }
}

/* ------------------------------------------------------------------ haqqımızda sətri */

.strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}
.strip__kicker { color: var(--muted); font-size: 0.9rem; }
.strip__what { font-weight: 600; font-size: 0.95rem; }

/* max-width mətni daraldır — sütunun sol kənarında qalmasın deyə sağa dayanır. */
.strip__right { justify-self: end; }
.strip__statement {
  max-width: 44ch;
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.5;
}

@media (max-width: 780px) {
  .strip { grid-template-columns: 1fr; gap: 1.5rem; }
  .strip__right { justify-self: start; }   /* tək sütunda sola qayıdır */
}

/* ------------------------------------------------------------------ son işlər (brend bloku) */

.arrivals {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem);
  background: var(--brand);
  color: var(--white);
}

.arrivals__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0 var(--pad);
}

.arrivals__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.arrivals__stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 clamp(0.5rem, 3vw, 3.5rem);
}

.arrivals__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  transition: background 0.3s var(--ease);
}
.arrivals__nav:hover { background: var(--white); color: var(--brand); }

.arrivals__track {
  display: flex;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem;
}
.arrivals__track::-webkit-scrollbar { display: none; }

.acard {
  flex: 0 0 auto;
  width: clamp(200px, 27vw, 300px);
  scroll-snap-align: start;
}
.acard[hidden] { display: none; }

.acard__panel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  /* Brend fonunda az fərqlənən panel — şəkil yüklənənə qədər açıq kvadrat kimi görünməsin. */
  background: rgba(255, 255, 255, 0.12);
  aspect-ratio: 1;
}
.acard__panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.acard a:hover .acard__panel img { transform: scale(1.05); }

.acard__badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  z-index: 1;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.acard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0 0.35rem;
}
.acard__name { font-weight: 600; font-size: 0.95rem; }

/* ------------------------------------------------------------------ komanda + kollaj + söz işarəsi */

.team {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  /* Alt boşluq = söz hündürlüyü + sözün aşağı offseti + söz-üstü boşluq.
     Kifayət qədər böyük olmalıdır ki, söz bento-ya dəyməsin (yuxarı boşluq)
     və eyni zamanda footer-ə qədər geniş məsafə qalsın (aşağı boşluq). */
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad) clamp(12rem, 32vw, 30rem);
  overflow: hidden;
}
.team__text {
  position: relative;
  z-index: 2;
  align-self: start;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.team__text p + p { margin-top: 1.1rem; }

/* Kollaj: iki sütunlu səliqəli şəbəkə. Şəkillər bir-birinin üstünə DÜŞMÜR;
   kollaj hissi sağ sütunun bir az aşağı sürüşməsi ilə yaranır.
   Bütövlükdə aşağıya uzanır ki, söz işarəsinin üstünə düşsün. */
/* min-height + margin-bottom bölmənin hündürlüyünü müəyyən edir — nəhəng söz işarəsi
   bölmənin altına bağlıdır, ona görə bu ölçülər dəyişsə, söz də yerini dəyişir.
   Dairələr kiçildi, amma sahə eyni qalır ki, söz öz yerində otursun. */
.team__collage {
  position: relative;
  z-index: 2;
  display: grid;
  /* Bento: 4 sütun × 3 sətir. Xanalar müxtəlif ölçüdə, aralarında bərabər boşluq.
     min-height və margin-bottom TOXUNULMUR: onlar bölmənin hündürlüyünü,
     deməli aşağıdakı nəhəng söz işarəsinin yerini müəyyən edir.
     align-content: start — bento yuxarıya yığılır ki, sözün hərflərini kəsməsin. */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, clamp(64px, 7.6vw, 98px));
  gap: clamp(6px, 0.8vw, 10px);
  align-content: start;
  min-height: clamp(320px, 42vw, 520px);
  margin-bottom: clamp(-7rem, -9vw, -3rem);
}
/* Bento xanaları — düzbucaqlı, yumşaq künclü. Ölçünü grid-area müəyyən edir. */
.team__ph {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-deep);
  box-shadow: 0 14px 30px -20px rgba(22, 20, 26, 0.4);
}
.team__ph img { width: 100%; height: 100%; object-fit: cover; }

/* Bento düzülüşü — 4 sütun × 3 sətir, boş xana qalmır:
     ┌───────┬───┬───┐
     │       │ 2 │ 3 │
     │   1   ├───┴───┤
     │       │   4   │
     ├───────┴───┬───┤
     │     5     │ 6 │
     └───────────┴───┘
   Fərqli ölçülər qəsdəndir: hamısı eyni olsaydı, adi cədvələ çevrilərdi. */
.team__ph--1 { grid-area: 1 / 1 / 3 / 3; }   /* iri kvadrat */
.team__ph--2 { grid-area: 1 / 3 / 2 / 4; }   /* kiçik */
.team__ph--3 { grid-area: 1 / 4 / 2 / 5; }   /* kiçik */
.team__ph--4 { grid-area: 2 / 3 / 3 / 5; }   /* enli */
.team__ph--5 { grid-area: 3 / 1 / 4 / 4; }   /* uzun enli */
.team__ph--6 { grid-area: 3 / 4 / 4 / 5; }   /* kiçik */



/* Nəhəng brend sözü — kollajın arxasında, tam görünür (aşağıdan kəsilmir).
   bottom müsbətdir → söz aşağı kənardan qalxır, altında footer-ə qədər boşluq açılır. */
.team__wordmark {
  position: absolute;
  z-index: 0;
  left: var(--pad);
  bottom: clamp(5rem, 12vw, 11rem);
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(4rem, 21vw, 18rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--brand);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 860px) {
  .team { grid-template-columns: 1fr; }
  .team__collage { min-height: 340px; }
}

/* ------------------------------------------------------------------ intro */

.intro {
  padding: var(--section) var(--pad);
  border-bottom: 1px solid var(--line);
}
.intro__title {
  max-width: 20ch;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.08;
}
.intro__text {
  max-width: 58ch;
  margin-top: 2rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
}

.intro__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.intro__facts dt {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}
.intro__facts dd {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ------------------------------------------------------------------ addımlar */

.steps {
  padding: var(--section) var(--pad);
  background: var(--bg-deep);
}
.steps__title {
  max-width: 16ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  font-size: clamp(1.9rem, 4.6vw, 4rem);
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.step { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.step__num {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--brand);
}
.step__title {
  margin: 0.9rem 0 0.7rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.01em;
}
.step__text { font-size: 0.92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ daxili səhifə başlığı */

.phead {
  padding: clamp(7rem, 16vh, 10rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.phead__title {
  max-width: 18ch;
  font-size: clamp(2.2rem, 6.5vw, 5.5rem);
}
.phead__lead {
  max-width: 50ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
  white-space: pre-line;
}
.phead__lead p + p { margin-top: 1rem; }
.phead__count {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ portfolio kartları */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) var(--gap);
  padding: clamp(3rem, 7vw, 5rem) var(--pad) var(--section);
}
.card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;   /* ana səhifə bento şəkilləri ilə eyni */
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card a:hover .card__media img { transform: scale(1.06); }

.card__row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.card__num {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.card__name {
  flex: 1;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  transition: color 0.4s var(--ease);
}
.card a:hover .card__name { color: var(--brand); }

/* ------------------------------------------------------------------ qalereya */

/* Bərabər şəbəkə — hər şəkil eyni ölçüdə. (Əvvəl column-count masonry idi,
   şəkillər öz təbii hündürlüyü ilə fərqli ölçülərdə görünürdü.) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) var(--section);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.grid__item { margin: 0; }
.grid__btn {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;   /* bütün şəkillər eyni çərçivə */
}
.grid__btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.5s var(--ease);
}
.grid__btn:hover img { transform: scale(1.04); opacity: 0.88; }

/* ------------------------------------------------------------------ video qalereya */

/* Videolar şaquli (480x854), ona görə şəbəkə dar sütunlardan ibarətdir. */
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: var(--gap);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) var(--section);
}

.vcard {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 9 / 16;
}
.vcard__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}

/* Oynat düyməsi yalnız video başlamayana qədər görünür */
.vcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 20, 26, 0.15);
  color: var(--white);
  transition: background 0.35s var(--ease), opacity 0.3s var(--ease);
}
.vcard__play span {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--brand);
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease);
}
.vcard__play:hover { background: rgba(22, 20, 26, 0.05); }
.vcard__play:hover span { transform: scale(1.1); }
.vcard.is-playing .vcard__play { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ növbəti kateqoriya */

.nextcat { border-top: 1px solid var(--line); }
.nextcat__link {
  display: block;
  position: relative;
  padding: var(--section) var(--pad);
  overflow: hidden;
}
.nextcat__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 6vw, 5rem);
  transition: color 0.5s var(--ease);
}
.nextcat__link .label { position: relative; z-index: 1; }
.nextcat__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.nextcat__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.nextcat__link:hover .nextcat__media { opacity: 1; }
.nextcat__link:hover .nextcat__title,
.nextcat__link:hover .label { color: var(--white); }

/* ------------------------------------------------------------------ mətn səhifəsi */

.prose {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 5rem) var(--pad) clamp(3rem, 6vw, 4.5rem);
}
.prose__body {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-line;
}
.prose__body p + p { margin-top: 1.5rem; }
.prose__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

@media (max-width: 780px) { .prose { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ sex qalereyası */

.shop {
  padding: clamp(1rem, 3vw, 2rem) var(--pad) var(--section);
}

/* Başlıq + karusel oxları bir sətirdə */
.shop__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.shop__title {
  max-width: 20ch;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
}
.shop__nav { display: flex; gap: 0.6rem; flex: none; }
.shop__arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.shop__arrow:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* Yan-yana sürüşən slaydlar. Hər slaydın hündürlüyü sabit, eni forma ilə dəyişir. */
.shop__track {
  display: flex;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.shop__track::-webkit-scrollbar { display: none; }

/* Bütün slaydlar eyni ölçüdə (kvadrat) — landşaft/portret fərqi yoxdur.
   object-fit: cover fərqli nisbətli şəkilləri eyni çərçivəyə sığdırır. */
.shop__slide {
  flex: 0 0 auto;
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-deep);
  scroll-snap-align: start;
}
.shop__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.shop__slide:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------------ əlaqə */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 5rem) var(--pad) var(--section);
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact__block { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact__block:first-child { border-top: 0; padding-top: 0; }
.contact__big {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.contact__big:hover { color: var(--brand); }
.contact__addr { max-width: 30ch; color: var(--ink-soft); }
.contact__socials { display: flex; gap: 1.25rem; }
.contact__socials a { border-bottom: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.contact__socials a:hover { border-color: var(--ink); }

/* Embed xəritə — formun yerində */
.contact__map {
  overflow: hidden;
  border-radius: 14px;
  min-height: clamp(320px, 42vw, 480px);
  background: var(--bg-deep);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 42vw, 480px);
  border: 0;
  /* Kartoqrafiyanı saytın sakit tonuna yaxınlaşdırır */
  filter: grayscale(0.2) contrast(1.02);
}

/* ------------------------------------------------------------------ altlıq */

.foot { background: var(--ink); color: var(--bg); }

.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}

/* Əlaqə sütunları arasında yerləşən WhatsApp düyməsi.
   justify-self: end — düymə sütunun sağ kənarına dayanır ki, sağ boşluq
   sol paddinglə (72px) bərabər olsun, yoxsa sağda böyük boşluq qalır. */
.foot__col--cta {
  align-self: center;
  justify-self: end;
}
/* Tünd footer üzərində ağ konturlu düymə */
.foot__col--cta .btn--light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--bg);
}
.foot__col--cta .btn--light:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.foot__label {
  margin-bottom: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.45);
}
.foot__col a, .foot__col p {
  display: block;
  color: rgba(251, 250, 248, 0.85);
  transition: color 0.3s var(--ease);
}
.foot__col a:hover { color: var(--brand); }

/* ≤1092px: WhatsApp düyməsi sütunların yanından çıxıb öz sətrinə düşür. */
@media (max-width: 1092px) {
  .foot__col--cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
  }
}

/* ≤730px: bütün footer sütunları alt-alta. */
@media (max-width: 730px) {
  .foot__grid { grid-template-columns: 1fr; }
}

/* ≤450px: aşağıdakı WhatsApp düyməsi sola dayanır və tam enə uzanır. */
@media (max-width: 450px) {
  .foot__col--cta { justify-self: stretch; }
  .foot__col--cta .btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--pad);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(251, 250, 248, 0.5);
}
.foot__bar a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.foot__bar a:hover { color: var(--bg); }

/* ------------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: rgba(12, 11, 9, 0.94);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.4rem; right: clamp(1rem, 3vw, 2.5rem);
  width: 36px; height: 36px;
  color: #fff;
}
.lightbox__close span {
  position: absolute;
  left: 6px; top: 17px;
  width: 24px; height: 1px;
  background: currentColor;
}
.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.75rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.75rem); }

.lightbox__count {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}
