:root {
  --navy: #111c31;
  --black: #111111;
  --white: #ffffff;
  --paper: #f5f5f2;
  --muted: #6d7077;
  --line: rgba(17, 28, 49, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--black);
  font-family: "Manrope", Arial, sans-serif;
}

body,
button,
input {
  font-family: "Manrope", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background: var(--white);
}

.header-logo-row {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.catalog-logo img {
  width: 310px;
  height: auto;
}

.nav-user {
  position: absolute;
  right: 4vw;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--white);
}

.nav-user svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.mobile-toggle {
  display: none;
}

.main-navigation {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  background: var(--white);
  border-bottom: 1px solid rgba(17, 28, 49, 0.12);
}

.main-navigation > a,
.products-menu-button {
  position: relative;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;

  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--navy);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1px;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.main-navigation > a::after,
.products-menu-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--navy);
  transition: right 0.25s ease;
}

.main-navigation > a:hover::after,
.main-navigation > a.active::after,
.products-menu-button:hover::after,
.site-header.mega-open .products-menu-button::after {
  right: 0;
}

.products-menu-button > span {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.site-header.mega-open .products-menu-button > span {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1160px, calc(100vw - 60px));
  min-height: 455px;
  display: grid;
  grid-template-columns: 28% 36% 36%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 55px rgba(17, 28, 49, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
}

.site-header.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-intro,
.mega-categories,
.mega-subcategories {
  min-width: 0;
  padding: 42px 38px;
}

.mega-intro,
.mega-categories {
  border-right: 1px solid var(--line);
}

.mega-intro {
  position: relative;
}

.mega-intro h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 3.1vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.mega-intro small {
  position: absolute;
  left: 38px;
  bottom: 34px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.mega-label {
  min-height: 30px;
  margin: 0 0 16px;
  color: #777b84;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.mega-subcategories {
  color: var(--white);
  background: var(--navy);
}

.mega-subcategories .mega-label {
  color: #aeb9ce;
}

.mega-categories > a,
.mega-category,
.mega-subcategories a {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: transparent;
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition:
    padding 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.mega-subcategories a {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.mega-category.active {
  padding-left: 20px;
  background: var(--navy);
  color: var(--white);
}

.mega-categories > a:hover,
.mega-category:hover {
  padding-left: 20px;
  background: var(--navy);
  color: var(--white);
}

.mega-subcategories a:hover {
  padding-left: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: 760px;
  padding: 68px 2.5vw;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: stretch;
  gap: 40px;
}

.hero-copy {
  padding: 35px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-index,
.featured-heading > p,
.brand-heading > p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(72px, 7.4vw, 140px);
  font-weight: 500;
  line-height: 0.83;
  letter-spacing: -0.06em;
}

.hero h1 em,
.statement h2 em,
.spaces h2 em,
.contact-cta h2 em {
  color: var(--navy);
  font-weight: 500;
}

.hero-description {
  max-width: 570px;
  margin: 44px 0 0;
  font-size: 18px;
  line-height: 1.75;
}

.hero-image {
  position: relative;
  min-height: 650px;
  background:
    linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.25)),
    url("assets/buildmart-hero.png") center / cover no-repeat;
}

.hero-material-label {
  position: absolute;
  left: 6%;
  top: 52%;
  padding: 18px 24px;
  background: var(--white);
  font-size: 13px;
}

.hero-scroll {
  position: absolute;
  right: 5%;
  bottom: 5%;
  padding: 15px 20px;
  border-right: 1px solid var(--black);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.quick-actions {
  width: min(930px, calc(100% - 40px));
  margin: 10px auto 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.quick-card {
  position: relative;
  height: 440px;
  padding: 40px;
  border-radius: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.search-quick-card {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: var(--white);
}

.catalog-quick-card {
  color: var(--white);
  background: var(--navy);
}

.quick-number {
  position: relative;
  z-index: 2;
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.quick-content {
  position: relative;
  z-index: 2;
  padding: 0 45px;
}

.quick-line {
  width: 42px;
  height: 2px;
  margin-bottom: 25px;
  display: block;
  background: currentColor;
}

.quick-card h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(35px, 3vw, 48px);
  font-weight: 500;
  line-height: 0.98;
}

.quick-card p {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.quick-link {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.statement {
  padding: 65px 6vw;
  display: grid;
  grid-template-columns: 0.7fr 2.3fr 0.9fr;
  align-items: end;
  gap: 55px;
  border-top: 1px solid var(--line);
}

.statement h2,
.featured-heading h2,
.brand-heading h2,
.projects-heading h2,
.spaces h2,
.contact-cta h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.statement-description {
  font-size: 15px;
  line-height: 1.75;
}

.statement-description a,
.section-link {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid;
  font-size: 13px;
}

.featured-materials,
.brand-section {
  padding: 55px 0;
  overflow: hidden;
}

.featured-heading,
.brand-heading,
.projects-heading {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto 55px;
}

.material-slider,
.brand-slider {
  width: 100%;
  overflow: hidden;
}

.material-slider:hover .material-track,
.brand-slider:hover .brand-track {
  animation-play-state: paused;
}

.material-track {
  width: max-content;
  padding: 0 14px;
  display: flex;
  gap: 14px;
  animation: materialScroll 34s linear infinite;
  will-change: transform;
}

@keyframes materialScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.material-card {
  position: relative;
  flex: 0 0 clamp(320px, 34vw, 520px);
  height: 510px;
  padding: 36px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: var(--white);
  background: var(--navy);
  transition: transform 0.4s ease;
}

.material-card:hover {
  transform: translateY(-7px);
}

.material-card > span {
  position: relative;
  z-index: 3;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.material-card-text {
  position: relative;
  z-index: 3;
}

.material-card h3 {
  max-width: 420px;
  margin: 0 0 28px;

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.material-card p {
  width: fit-content;
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid;
  font-size: 13px;
  font-weight: 600;
}

/* Онцлох материалын зургууд */
.material-photo,
.material-profile,
.material-porcelain,
.material-catalog {
  color: #ffffff;
  background-color: #111c31;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.material-photo {
  flex-basis: clamp(440px, 45vw, 710px);
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.72)
    ),
    url("assets/hdf hawtan.png");
}

.material-profile {
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.72)
    ),
    url("assets/tugsgul.png");
}

.material-porcelain {
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.72)
    ),
    url("assets/CHuluu.jpg");
}

.material-catalog {
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.72)
    ),
    url("assets/All product.png");
}

.profile-lines {
  display: none;
}

.brand-section {
  background: var(--navy);
  color: var(--white);
}

.brand-heading > p {
  color: #aeb6c6;
}

.brand-track {
  width: max-content;
  padding: 0 12px;
  display: flex;
  gap: 12px;
  animation: brandScroll 38s linear infinite;
  will-change: transform;
}

@keyframes brandScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.brand-card {
  flex: 0 0 270px;
  height: 310px;
  overflow: hidden;
  background: var(--white);
}

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.brand-card:hover img {
  transform: scale(1.05);
}

.spaces {
  min-height: 800px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  color: var(--white);
  background: #111111;
}

.spaces-image {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #111111;
}

.spaces-image video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .spaces-image {
    min-height: 520px;
  }
}


.spaces-copy {
  padding: 100px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spaces-copy .section-index {
  color: #999999;
}

.spaces h2 {
  margin-bottom: 55px;
}

.spaces h2 em {
  color: #bd985c;
}

.space-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #444444;
}

.space-tabs button {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #444444;
  background: transparent;
  color: #888888;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    padding 0.2s ease;
}

.space-tabs button:hover,
.space-tabs button.active {
  padding-left: 12px;
  color: var(--white);
}

#space-description {
  color: #aaaaaa;
  line-height: 1.75;
}

.projects {
  padding: 140px 3vw;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
}

.project-item:nth-child(2) {
  margin-top: 80px;
}

.project-image {
  height: 570px;
  background-image: url("assets/buildmart-hero.png");
  background-size: cover;
}

.project-one {
  background-position: left center;
}

.project-two {
  background-position: center;
  filter: grayscale(0.65);
}

.project-three {
  background-position: right center;
}

.project-item p {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.project-item h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.contact-cta {
  min-height: 620px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #b89662;
  text-align: center;
}

.contact-cta > p {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.contact-cta h2 {
  margin: 30px 0 45px;
}

.contact-cta h2 em {
  color: var(--white);
}

.contact-cta > a {
  padding: 16px 28px;
  border: 1px solid;
  border-radius: 100px;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .header-logo-row {
    height: 105px;
  }

  .catalog-logo img {
    width: 210px;
  }

  .nav-user {
    display: none;
  }

  .mobile-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 0;
    transform: translateY(-50%);
    display: block;
    background: transparent;
  }

  .mobile-toggle span {
    width: 22px;
    height: 1px;
    margin: 6px 0;
    display: block;
    background: var(--black);
  }

  .main-navigation {
    height: auto;
    padding: 15px 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-navigation.mobile-open {
    display: flex;
  }

  .main-navigation > a,
  .products-menu-button {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
  }

  .mega-menu {
    position: static;
    width: 100%;
    min-height: 0;
    display: none;
    grid-template-columns: 1fr;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .site-header.mega-open .mega-menu {
    display: grid;
    transform: none;
  }

  .mega-intro,
  .mega-categories,
  .mega-subcategories {
    padding: 30px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mega-intro h2 {
    font-size: 38px;
  }

  .mega-intro small {
    position: static;
    margin-top: 25px;
    display: block;
  }

  .hero {
    min-height: 0;
    padding: 55px 18px 20px;
    display: flex;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 66px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-image {
    min-height: 520px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-bottom: 80px;
  }

  .quick-card {
    height: 390px;
  }

  .statement {
    padding: 90px 20px;
    display: block;
  }

  .statement h2 {
    margin: 30px 0;
  }

  .featured-heading,
  .brand-heading,
  .projects-heading {
    width: calc(100% - 36px);
  }

  .material-track {
    animation-duration: 30s;
  }

  .material-card,
  .material-photo {
    flex-basis: 310px;
    height: 450px;
    padding: 25px;
  }

  .material-card h3 {
    font-size: 38px;
  }

  .brand-card {
    flex-basis: 220px;
    height: 255px;
  }

  .spaces {
    grid-template-columns: 1fr;
  }

  .spaces-image {
    min-height: 530px;
  }

  .spaces-copy {
    padding: 80px 20px;
  }

  .projects {
    padding: 90px 16px;
  }

  .projects-grid {
    display: block;
  }

  .project-item,
  .project-item:nth-child(2) {
    margin: 0 0 55px;
  }

  .project-image {
    height: 520px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 54px;
  }

  .quick-card {
    height: 350px;
    padding: 32px;
  }

  .quick-content {
    padding: 0 30px;
  }

  .quick-card h2 {
    font-size: 35px;
  }

  .statement h2,
  .featured-heading h2,
  .brand-heading h2,
  .spaces h2,
  .projects-heading h2,
  .contact-cta h2 {
    font-size: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .material-track,
  .brand-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* =========================================
   DROPDOWN БАЙРЛАЛЫН ЭЦСИЙН ЗАСВАР
========================================= */

.site-header .mega-menu {
  /* Баруун талаас 28px зайтай байрлана */
  left: auto;
  right: 28px;

  /* Хэт өргөн болохгүй */
  width: min(1120px, calc(100vw - 56px));
  min-height: 430px;

  /* 3 баганын хэмжээ */
  grid-template-columns:
    minmax(220px, 26%)
    minmax(360px, 37%)
    minmax(360px, 37%);

  /* Хуучин голлуулах хөдөлгөөнийг цуцална */
  transform: translateY(-8px);
}

/* Нээгдэх үед */

.site-header.mega-open .mega-menu {
  transform: translateY(0);
}

/* “Бүтээгдэхүүний ангилал” гарчиг */

.site-header .mega-intro {
  overflow: hidden;
}

.site-header .mega-intro h2 {
  width: 100%;
  max-width: 100%;
  margin: 0;

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 2.25vw, 39px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;

  overflow-wrap: normal;
  word-break: normal;
}


/* Доод талын 02 / 07 */

.site-header .mega-intro small {
  left: 30px;
  bottom: 28px;
}


/* Ангиллын нэр */

.site-header .mega-label {
  min-height: 24px;
  margin: 0 0 15px;

  font-size: 11px;
  letter-spacing: 0.17em;
}


/* Ангиллын мөрүүд */

.site-header .mega-categories > a,
.site-header .mega-category,
.site-header .mega-subcategories a {
  min-height: 50px;
  padding: 0 12px;
  gap: 15px;

  font-size: 15px;
  line-height: 1.3;
}


/* Сонгогдсон ангилал */

.site-header .mega-category.active {
  padding-left: 18px;
}


/* Hover */

.site-header .mega-categories > a:hover,
.site-header .mega-category:hover,
.site-header .mega-subcategories a:hover {
  padding-left: 18px;
}


/* Жижиг дэлгэц дээр dropdown багтана */

@media (max-width: 1200px) and (min-width: 901px) {
  .site-header .mega-menu {
    right: 15px;
    width: calc(100vw - 30px);

    grid-template-columns:
      minmax(200px, 25%)
      minmax(330px, 37.5%)
      minmax(330px, 37.5%);
  }

  .site-header .mega-intro,
  .site-header .mega-categories,
  .site-header .mega-subcategories {
    padding: 32px 24px;
  }

  .site-header .mega-intro h2 {
    font-size: 31px;
  }

  .site-header .mega-intro small {
    left: 24px;
  }
}


/* Гар утасны тохиргоо */

@media (max-width: 900px) {
  .site-header .mega-menu {
    position: static;

    width: 100%;
    min-height: 0;

    grid-template-columns: 1fr;

    transform: none;
  }

  .site-header.mega-open .mega-menu {
    transform: none;
  }

  .site-header .mega-intro h2 {
    font-size: 36px;
  }
}
/* =========================================
   ХАЙЛТ, КАТАЛОГИЙН ТЕКСТ БАГТААХ ЗАСВАР
========================================= */

.quick-actions .quick-card {
  overflow: hidden;
}

.quick-actions .quick-content {
  width: 100%;
  max-width: 100%;
  padding-left: 36px;
  padding-right: 36px;
}

.quick-actions .quick-card h2 {
  width: 100%;
  max-width: 100%;
  margin: 0;

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 2.4vw, 43px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;

  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.quick-actions .quick-card p {
  width: 100%;
  max-width: 210px;
  margin: 18px 0 0;

  font-size: 12px;
  line-height: 1.55;
}
/* ХАЙЛТ — НАРИЙН ХҮРЭЭТЭЙ ИКОН */
.quick-actions .search-illustration {
  position: absolute;
  top: 105px;
  right: 24px;

  width: 155px;
  height: 155px;

  border: 0;
  border-radius: 0;
  background: none;

  color: #111c31;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 0.16;
  pointer-events: none;
}

/* КАТАЛОГ — ДАВХАР ХУУДАС */
.quick-actions .catalog-illustration {
  position: absolute;
  top: 95px;
  right: 24px;

  width: 145px;
  height: 170px;

  border: 0;
  border-radius: 0;
  background: none;

  color: #ffffff;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 0.2;
  transform: rotate(-8deg);
  pointer-events: none;
}
/* Дэлгэц бага зэрэг багасах үед */

@media (max-width: 1250px) and (min-width: 901px) {
  .quick-actions .quick-content {
    padding-left: 25px;
    padding-right: 25px;
  }

  .quick-actions .quick-card h2 {
    font-size: 35px;
  }

  .quick-actions .quick-card p {
    max-width: 175px;
    font-size: 11px;
  }
}


/* Гар утас */

@media (max-width: 900px) {
  .quick-actions .quick-content {
    padding-left: 30px;
    padding-right: 30px;
  }

  .quick-actions .quick-card h2 {
    font-size: 38px;
  }
}

/* Дэлгэц хаах цэнхэр layer */

body::after {
  content: "";

  position: fixed;
  z-index: 99999;
  inset: 0;

  background: #111c31;

  pointer-events: none;

  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}


/* Link дарагдсан үед layer дээш гарна */

body.page-leaving::after {
  transform: translateY(0);
}


/* Картны энгийн хөдөлгөөн */

.quick-card {
  transform: translateY(0) scale(1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}


/* Mouse очиход бага зэрэг дээшилнэ */

.quick-card:hover {
  transform: translateY(-9px) scale(1.012);
  box-shadow: 0 22px 45px rgba(17, 28, 49, 0.16);
}


/* Дарахад бага зэрэг агшина */

.quick-card:active {
  transform: translateY(-3px) scale(0.975);
}


/* Шилжих гэж байгаа карт үсэрнэ */

.quick-card.card-jump {
  animation: cardJump 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardJump {
  0% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(-22px) scale(1.025);
  }

  100% {
    transform: translateY(10px) scale(0.97);
  }
}


/* Motion хаасан хэрэглэгчид */

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

  body::after,
  .quick-card {
    transition: none;
  }

  .quick-card.card-jump {
    animation: none;
  }
}
/* =========================================
   LUXURY PAGE TRANSITION
========================================= */

.luxury-transition {
  position: fixed;
  z-index: 999999;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f7f6f2;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.luxury-transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Голын текст */

.luxury-transition-content {
  position: relative;
  width: min(420px, 78vw);
  text-align: center;

  opacity: 0;
  transform: translateY(12px);

  transition:
    opacity 0.45s ease 0.15s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.luxury-transition.active .luxury-transition-content {
  opacity: 1;
  transform: translateY(0);
}


/* BUILDMART бичиг */

.luxury-transition-title {
  display: block;

  color: #111c31;

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 500;
  letter-spacing: 0.08em;
}


/* PROFESSIONAL SOLUTION */

.luxury-transition-subtitle {
  display: block;
  margin-top: 9px;

  color: #777267;

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
}


/* Нимгэн алтан шугам */

.luxury-transition-line {
  width: 0;
  height: 1px;
  margin: 25px auto 0;

  display: block;

  background: linear-gradient(
    90deg,
    transparent,
    #b89561,
    transparent
  );

  transition:
    width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.luxury-transition.active .luxury-transition-line {
  width: 100%;
}


/* Картын зөөлөн hover */

.quick-card {
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease,
    filter 0.6s ease;
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(17, 28, 49, 0.11);
}


/* Дарагдсан карт зөөлөн бүдгэрнэ */

.quick-card.luxury-selected {
  transform: scale(0.985);
  filter: brightness(0.94);
}


/* Үндсэн хуудас зөөлөн бүдгэрнэ */

body.luxury-leaving main,
body.luxury-leaving header,
body.luxury-leaving footer {
  opacity: 0.3;
  transform: scale(0.995);

  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


@media (prefers-reduced-motion: reduce) {
  .luxury-transition,
  .luxury-transition-content,
  .luxury-transition-line,
  .quick-card {
    transition: none;
  }
}
/* =========================================
   BUILDMART — 3 ӨНГИЙН FINAL THEME
   ХӨХ + ХАР + ЦАГААН
========================================= */

:root {
  --navy: #111c31;
  --black: #111111;
  --white: #ffffff;
  --line-dark: rgba(17, 17, 17, 0.18);
  --line-light: rgba(255, 255, 255, 0.2);
}


/* ҮНДСЭН ӨНГӨ */

html,
body {
  background: var(--white);
  color: var(--black);
}

body {
  --paper: var(--white);
  --muted: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.16);
}


/* =========================================
   HEADER
========================================= */

.site-header,
.main-navigation {
  color: var(--black);
  background: var(--white);
}

.header-logo-row {
  color: var(--white);
  background: var(--navy);
}

.header-logo-row,
.main-navigation {
  border-color: var(--line-dark);
}

.main-navigation > a::after,
.products-menu-button::after {
  background: var(--navy);
}


/* =========================================
   DROPDOWN
========================================= */

.mega-menu,
.mega-intro,
.mega-categories {
  color: var(--black);
  background: var(--white);
}

.mega-intro,
.mega-categories {
  border-color: var(--line-dark);
}

.mega-subcategories,
.mega-category.active {
  color: var(--white);
  background: var(--navy);
}

.mega-categories > a:hover,
.mega-category:hover {
  color: var(--white);
  background: var(--navy);
}

.mega-label,
.mega-intro small {
  color: rgba(17, 17, 17, 0.62);
}

.mega-subcategories .mega-label {
  color: rgba(255, 255, 255, 0.65);
}


/* =========================================
   HERO
========================================= */

.hero {
  color: var(--black);
  background: var(--white);
}

.hero h1 em {
  color: var(--navy);
}

.eyebrow,
.hero-description {
  color: var(--black);
}

.hero-material-label {
  color: var(--black);
  background: var(--white);
}


/* =========================================
   ХАЙЛТ + КАТАЛОГИЙН КАРТ
========================================= */

.search-quick-card {
  color: var(--navy);
  background: var(--white);
  border-color: var(--navy);
}

.catalog-quick-card {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.search-illustration {
  border-color: rgba(17, 28, 49, 0.17);
}

.search-illustration::after {
  background: rgba(17, 28, 49, 0.17);
}

.catalog-illustration {
  border-color: rgba(255, 255, 255, 0.18);
}

.catalog-illustration::after {
  background: rgba(255, 255, 255, 0.18);

  box-shadow:
    0 21px rgba(255, 255, 255, 0.18),
    0 42px rgba(255, 255, 255, 0.18);
}


/* =========================================
   БИДНИЙ ТУХАЙ — ХӨХ ЗАГВАР
========================================= */

.statement {
  color: var(--white);

  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(255, 255, 255, 0.06),
      transparent 30%
    ),
    var(--navy);

  border-color: var(--navy);
}

.statement::before {
  border-color: rgba(255, 255, 255, 0.16);
}

.statement::after {
  background: linear-gradient(
    90deg,
    var(--white),
    transparent
  );
}

.statement .section-index {
  color: rgba(255, 255, 255, 0.65);
}

.statement > h2 {
  color: var(--white);
}

.statement > h2 em {
  color: var(--white);
  font-weight: 500;
}

.statement-description {
  color: var(--white);
  border-left-color: rgba(255, 255, 255, 0.45);
}

.statement-description p {
  color: rgba(255, 255, 255, 0.75);
}

.statement-description a {
  color: var(--white);
  border-bottom-color: var(--white);
}

.statement-description a:hover {
  color: var(--white);
}


/* =========================================
   ОНЦЛОХ МАТЕРИАЛ
========================================= */

.featured-materials {
  color: var(--black);
  background: var(--white);
}

.featured-heading > p {
  color: rgba(17, 17, 17, 0.62);
}

.material-profile,
.material-porcelain {
  color: var(--white);
  background-color: var(--navy);
}


/* =========================================
   БРЭНДҮҮД
========================================= */

.brand-section {
  color: var(--white);
  background: var(--navy);
}

.brand-heading > p {
  color: rgba(255, 255, 255, 0.65);
}

.brand-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}


/* =========================================
   ОРОН ЗАЙН ШИЙДЭЛ
========================================= */

.spaces {
  color: var(--white);
  background: var(--black);
}

.spaces-copy {
  background: var(--black);
}

.spaces h2 em {
  color: var(--white);
}

.spaces-copy .section-index,
#space-description {
  color: rgba(255, 255, 255, 0.65);
}

.space-tabs {
  border-color: var(--line-light);
}

.space-tabs button {
  color: rgba(255, 255, 255, 0.55);
  border-color: var(--line-light);
}

.space-tabs button:hover,
.space-tabs button.active {
  color: var(--white);
}

.projects {
  color: var(--black);
  background: var(--white);
}

.project-item p {
  color: rgba(17, 17, 17, 0.62);
}


/* =========================================
   CTA
========================================= */

.contact-cta {
  color: var(--white);
  background: var(--navy);
}

.contact-cta h2,
.contact-cta h2 em {
  color: var(--white);
}

.contact-cta > a {
  color: var(--white);
  border-color: var(--white);
  background: transparent;

  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.contact-cta > a:hover {
  color: var(--navy);
  background: var(--white);
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  color: var(--white);
  background: var(--black);
}

.footer-contact-title,
.footer-bottom {
  color: rgba(255, 255, 255, 0.65);
}

.footer-phone,
.footer-bottom a {
  color: var(--white);
}

.footer-bottom {
  border-color: var(--line-light);
}


/* =========================================
   LUXURY TRANSITION
========================================= */

.luxury-transition {
  background: var(--white);
}

.luxury-transition-title {
  color: var(--navy);
}

.luxury-transition-subtitle {
  color: var(--black);
}

.luxury-transition-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--navy),
    transparent
  );
}


/* =========================================
   БҮХ АЛТЛАГ ӨНГИЙГ АРИЛГАНА
========================================= */

.quick-line,
.section-link,
.quick-link {
  border-color: currentColor;
}

::selection {
  color: var(--white);
  background: var(--navy);
}
/* ХӨХ ХЭСЭГ */
.contact-cta {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 70px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;

  background: #111c31;
  color: #ffffff;
  text-align: center;
}

.contact-cta > * {
  margin: 0;
}

/* FOOTER — ШИНЭ ЗАГВАР */
.site-footer {
  position: relative;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 30px 5vw 18px;
  border: 0;
  border-top: 24px solid #111c31;
  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(8, 13, 25, 0.88),
      rgba(8, 13, 25, 0.96) 50%,
      rgba(8, 13, 25, 0.88)
    ),
    url("assets/buildmart-hero.png") center / cover no-repeat;
}

.site-footer::before,
.site-footer::after {
  content: none;
  display: none;
}

.site-footer .footer-inner {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  display: block;
  text-align: center;
}

.site-footer .footer-logo {
  position: static;
  display: inline-block;
  margin: 0;
  transform: none;
}

.site-footer .footer-logo img {
  display: block;
  width: 230px;
  height: auto;
}

.site-footer .footer-social {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.site-footer .footer-social a {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease;
}

.site-footer .footer-social a:hover {
  opacity: 0.65;
}
.site-footer .footer-social svg {
  display: block;
  width: 22px;
  height: 22px;
  color: #ffffff;
}
.footer-newsletter {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.footer-newsletter-text {
  max-width: 550px;
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
}

.footer-subscribe {
  min-width: 0;
  text-align: left;
}

.footer-subscribe label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-input-row {
  min-height: 48px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.footer-mail-icon {
  width: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #111c31;
  background: #ffffff;
  font-size: 18px;
}

.footer-input-row input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 12px;
}

.footer-input-row input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-input-row input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

.footer-input-row button {
  flex-shrink: 0;
  padding: 0 18px;
  border: 0;
  color: #111c31;
  background: #ffffff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.footer-form-status {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.footer-copyright {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* УТАСНЫ ДЭЛГЭЦ */
@media (max-width: 700px) {
  .contact-cta {
    padding: 52px 22px;
    gap: 22px;
  }

  .site-footer {
    padding: 28px 22px 18px;
  }

  .site-footer .footer-logo img {
    width: 200px;
  }

  .footer-newsletter {
    margin-top: 22px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-newsletter-text {
    margin: 0 auto;
  }

  .footer-input-row button {
    padding: 0 10px;
    font-size: 9px;
  }

  .footer-copyright {
    margin-top: 24px;
  }
}
.nav-user .nav-user-label {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .3px;
  color: #fff;
}