/**
 * GnT — Page-specific styles (Figma 1-100)
 * Hero section — desktop 1440px, no absolute for layout
 */

/* --- Home page --- */
.page--home {
  padding-block-start: 0;
  padding:10px;
}

.page--home .hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 90vh;
  margin: 0;
  border-radius: 50px;
  overflow: hidden;
  background-color: #b3b3b3;
  
}

.page--home .hero > * {
  grid-column: 1;
  grid-row: 1;
  min-block-size: 0;
}

/* Homepage navbar: fixed full-width header above hero */
body.page-home .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition:
    background-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease;
}

/* Homepage default (hero) nav: oq fonli nav blok */
body.page-home .navbar__nav {
  background: #ffffff;
}

body.page-home .navbar--scrolled {
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Inner elements transparent so navbar background shows behind logo, nav, lang */
body.page-home .navbar__container,
body.page-home .navbar__inner,
body.page-home .navbar__brand,
body.page-home .navbar__actions {
  background: transparent !important;
  background-color: transparent !important;
}

/* Navbar content: full width, edge padding handled by base rule */
body.page-home .navbar__container {
  width: 100%;
}

@media (min-width: 1001px) {
  body.page-home .navbar__brand,
  body.page-home .navbar__actions {
    margin-top: 14px;
  }

  body.page-home .navbar--scrolled .navbar__brand,
  body.page-home .navbar--scrolled .navbar__actions {
    margin-top: 0;
  }
}

/* Nav transparent when scrolled so .navbar white shows behind logo, nav, lang */
body.page-home .navbar--scrolled .navbar__nav {
  background: transparent !important;
}

body.page-home .navbar--scrolled .navbar__link {
  color: #000;
}

/* Homepage: burger visible on transparent hero and on white when scrolled */
body.page-home .navbar .navbar__burger {
  color: #ffffff;
}
body.page-home .navbar.navbar--scrolled .navbar__burger {
  color: #000000;
}

/* Lang tugmasi scroll da oq fonda — blur o‘chirilsin, orqada navbar oq ko‘rinsin */
body.page-home .navbar--scrolled .navbar__lang {
  color: #000000;
  background-color: transparent !important;
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-home .navbar--scrolled .navbar__lang:hover {
  background-color: rgba(0, 0, 0, 0.06) !important;
}

/* Hero background: poster + video + overlay (Figma 18-58) */
.page--home .hero__bg {
  order: 1;
  overflow: hidden;
}

.page--home .hero__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.page--home .hero.is-playing .hero__poster {
  opacity: 0;
}

.page--home .hero__overlay {
  order: 2;
  background-color: rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.page--home .hero__content {
  order: 3;
  display: flex;
  align-items: flex-end;
  padding: 0 84px 84px;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.page--home .hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.page--home .hero__title {
  font-family: var(--font-pretendard);
  font-weight: 700;
  font-size: 80px;
  line-height: 1.21;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  text-align: left;
}

/* --- Intro section (Figma 1-121) — below hero, desktop 1440px --- */
.page--home .intro {
  background-color: #ffffff;
  margin-block-start: 4.75rem;
  padding-block: 5rem;
  padding-inline: 2rem;
}

.intro__container {
  display: flex;
  flex-direction: column;
  gap: 4.7rem;
}

.intro__text-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 2.25rem;
}

.intro__headline-block {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.intro__label {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #cf0006;
  margin: 0;
}

.intro__title {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #151515;
  margin: 0;
  text-align: left;
}

.intro__desc {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #4a4d53;
  margin: 0;
  max-width: 563px;
}

/* Figma 7479:393 — full width, no crop */
.intro__image-wrap {
  width: min(100%, 1280px);
  margin-inline: auto;
  border-radius: 30px;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 1440 / 860;
}

.intro__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* --- Product section (Figma 1-125) — desktop 1440px --- */
.page--home .product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 5rem;
  padding-inline: 2rem;
  gap: 4.25rem;
  overflow: hidden;
}

.product__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/home/productBgImg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.product__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.product__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.25rem;
  width: 100%;
}

.product__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.25rem;
  text-align: left;
  width: 100%;
  max-width: 1560px;
}

.product__label {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #cf0006;
  margin: 0;
}

.product__title {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}

.product__main {
  width: 100%;
}

/* Figma 7479:396 — horizontal product carousel (left aligned, bleeds right only) */
.product__carousel-wrap {
  overflow: hidden;
  width: calc(100% + (100vw - 100%) / 2);
  margin-right: calc((100vw - 100%) / -2);
}

.product__carousel {
  overflow: hidden;
  padding-inline: 0;
  cursor: grab;
  touch-action: pan-y;
}

.product__carousel .product__slide {
  cursor: grab;
}

.product__carousel.is-dragging,
.product__carousel.is-dragging .product__slide {
  cursor: grabbing;
}

.product__carousel.is-dragging .product__carousel-track {
  user-select: none;
  -webkit-user-select: none;
}

.product__slide-media img,
.product__slide-arrow {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.product__carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.product__slide {
  flex: 0 0 clamp(260px, 32vw, 506px);
  text-decoration: none;
  color: inherit;
}

.product__slide-card {
  position: relative;
  display: block;
  height: clamp(380px, 42vw, 464px);
  background-color: #f2f2f2;
  border-radius: 12px;
  overflow: hidden;
}

.product__slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 138px);
  padding: 16px 25px 0;
  box-sizing: border-box;
}

.product__slide-media img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product__slide-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 114px;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.product__slide-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.product__slide-title {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
}

.product__slide-desc {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__slide-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: block;
}

.product__slide:focus-visible .product__slide-card {
  outline: 2px solid #cf0006;
  outline-offset: 4px;
}

.product__slide:hover .product__slide-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* --- PR Center section (Figma 1-237) — desktop 1440px --- */
.pr-center {
  padding-block: 5rem;
  padding-inline: 2rem;
}

.pr-center__container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.pr-center__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pr-center__title {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #151515;
  margin: 0;
}

.pr-center__link {
  font-family: var(--font-pretendard);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #4a4d53;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.pr-center__link:hover {
  color: #151515;
}

.pr-center__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pr-center__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pr-center__card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #d9dfe9;
  border-radius: 30px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pr-center__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pr-center__card-img-wrap {
  aspect-ratio: 4 / 3;
  background-color: #e5e5e5;
  width: 100%;
  overflow: hidden;
}

.pr-center__card-img-wrap .pr-center__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pr-center__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.875rem 1.875rem 2.5rem;
}

.pr-center__card-title {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #151515;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pr-center__card-date {
  font-family: var(--font-pretendard);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #90939b;
}
