:root {
  --color-black: #0b0b0b;
  --color-ink: #171717;
  --color-muted: #6e6a62;
  --color-line: #e8e0d4;
  --color-cream: #f7f3ec;
  --color-white: #ffffff;
  --color-gold: #c8a34d;
  --color-gold-dark: #9f7f2b;
  --shadow-soft: 0 24px 70px rgba(11, 11, 11, 0.12);
  --shadow-gold: 0 18px 40px rgba(200, 163, 77, 0.22);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #111, #2b2518 55%, var(--color-gold));
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--color-black);
  background: rgba(200, 163, 77, 0.35);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--color-black);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader__mark {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--color-gold);
  border: 1px solid rgba(200, 163, 77, 0.55);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 2rem;
  animation: pulseGold 1.4s ease-in-out infinite;
}

body:not(.is-loading) .preloader {
  opacity: 0;
  visibility: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(20px, 5vw, 64px);
  color: var(--color-white);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled,
body:not([data-page="home"]) .site-header {
  height: 72px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.brand__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: transparent;
}

.brand__text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.site-nav {
  gap: clamp(20px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--color-gold);
  transition: width 0.25s ease;
}

html[dir="ltr"] .site-nav a::after {
  right: auto;
  left: 0;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  gap: 12px;
}

.lang-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 163, 77, 0.42);
  border-radius: 999px;
}

.lang-toggle {
  min-width: 48px;
  height: 38px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section--cream {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  background: var(--color-cream);
}

.section--dark {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  color: var(--color-white);
  background: radial-gradient(circle at 20% 15%, rgba(200, 163, 77, 0.18), transparent 30%), var(--color-black);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  width: 100%;
  place-items: center;
  padding: 120px clamp(20px, 7vw, 90px);
  color: var(--color-white);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.68));
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.08);
  transform: scale(1.04);
  animation: slowZoom 12s ease-out forwards;
}

.hero__content {
  width: min(760px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.14;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero__actions,
.catalog-toolbar,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn,
.filter-chip,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover,
.filter-chip:hover,
.back-link:hover {
  transform: translateY(-2px);
}

.btn--gold {
  color: var(--color-black);
  background: linear-gradient(135deg, var(--color-gold), #f0d27f);
  box-shadow: var(--shadow-gold);
}

.btn--ghost,
.back-link {
  color: inherit;
  border: 1px solid rgba(200, 163, 77, 0.58);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.collection-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-black);
  box-shadow: var(--shadow-soft);
}

.collection-card img {
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.collection-card:hover img {
  opacity: 0.82;
  transform: scale(1.05);
}

.collection-card div {
  position: absolute;
  inset-inline: 34px;
  bottom: 34px;
}

.collection-card span,
.product-card__category,
.detail-meta,
.copyright {
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--color-gold);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  box-shadow: 0 16px 45px rgba(11, 11, 11, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 163, 77, 0.7);
  box-shadow: var(--shadow-soft);
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 4.7;
  overflow: hidden;
  background: linear-gradient(135deg, #111, #302713);
}

.product-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

.image-fallback {
  display: grid;
  height: 100%;
  min-height: 220px;
  place-items: center;
  padding: 20px;
  color: var(--color-gold);
  background: radial-gradient(circle at 30% 20%, rgba(200, 163, 77, 0.28), transparent 28%), linear-gradient(135deg, #080808, #2a2418);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  text-align: center;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.product-card__body p {
  color: var(--color-muted);
}

.product-card__price,
.detail-price {
  color: var(--color-black);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.product-card .btn {
  margin-top: auto;
}

.split-section {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 0;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article,
.value-card,
.contact-panel,
.faq details,
.review-card {
  border: 1px solid var(--color-line);
  background: var(--color-white);
  box-shadow: 0 18px 48px rgba(11, 11, 11, 0.05);
}

.feature-list article {
  padding: 28px;
}

.feature-list span {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  margin: 0;
  padding: 30px;
  color: var(--color-ink);
}

.review-card cite {
  color: var(--color-gold);
  font-style: normal;
  font-weight: 800;
}

.faq {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  gap: 16px;
}

.faq details {
  padding: 22px 26px;
}

.faq summary {
  color: var(--color-black);
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 16px 0 0;
  color: var(--color-muted);
}

.contact-cta {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto clamp(72px, 8vw, 110px);
  padding: clamp(52px, 7vw, 88px);
  color: var(--color-white);
  text-align: center;
  background: radial-gradient(circle at 50% 0, rgba(200, 163, 77, 0.28), transparent 36%), var(--color-black);
}

.page-hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 130px 20px 70px;
  color: var(--color-white);
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48)), url("../images/products/og-jewelry.png") center/cover;
}

.page-hero--catalog {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48)), url("../images/products/mens-gold-automatic-watch.png");
}

.page-hero--about {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48)), url("../images/products/womens-18k-gold-pendant-necklace.png");
}

.catalog-toolbar {
  justify-content: space-between;
  margin-bottom: 28px;
}

.search-box {
  display: grid;
  min-width: min(100%, 410px);
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(200, 163, 77, 0.15);
}

.filter-group {
  justify-content: flex-start;
}

.filter-chip {
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  background: var(--color-white);
}

.filter-chip.is-active {
  color: var(--color-black);
  border-color: var(--color-gold);
  background: rgba(200, 163, 77, 0.18);
}

.catalog-count {
  color: var(--color-muted);
  font-weight: 800;
}

.empty-state {
  padding: 56px 20px;
  text-align: center;
  border: 1px solid var(--color-line);
  background: var(--color-cream);
}

.product-detail {
  padding-top: 130px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 54px;
  margin-top: 26px;
}

.detail-gallery {
  display: grid;
  gap: 16px;
}

.detail-main-image {
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: var(--color-black);
}

.detail-main-image img,
.detail-main-image .image-fallback {
  height: 100%;
  object-fit: cover;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.thumbnail-row button {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-line);
  background: transparent;
}

.thumbnail-row button.is-active {
  border-color: var(--color-gold);
}

.thumbnail-row img {
  height: 110px;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

.luxury-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  color: var(--color-black);
  border-radius: 999px;
  background: rgba(200, 163, 77, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-description {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.detail-lists {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.detail-lists h2 {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-lists ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-lists li {
  padding: 9px 13px;
  color: var(--color-muted);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
}

.story,
.mission,
.contact-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stats-grid article {
  padding: 34px;
  border: 1px solid var(--color-line);
  background: var(--color-cream);
}

.stats-grid strong {
  display: block;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
}

.stats-grid span {
  color: var(--color-muted);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline article {
  position: relative;
  padding: 34px;
  border-top: 1px solid var(--color-gold);
  background: var(--color-white);
  box-shadow: 0 16px 40px rgba(11, 11, 11, 0.05);
}

.timeline span {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 2rem;
}

.mission {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card,
.contact-panel {
  height: 100%;
  padding: 32px;
}

.map-placeholder {
  display: grid;
  min-height: 430px;
  place-items: center;
  color: var(--color-gold);
  border: 1px solid var(--color-line);
  background: linear-gradient(135deg, rgba(11, 11, 11, 0.92), rgba(38, 31, 18, 0.92)), repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(200, 163, 77, 0.18) 19px, transparent 20px);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.9fr 0.45fr;
  gap: 34px;
  padding: 56px clamp(20px, 5vw, 72px) 28px;
  color: var(--color-white);
  background: var(--color-black);
}

.footer__brand p,
.footer__contact,
.site-footer nav,
.socials {
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: var(--color-gold);
}

.socials {
  grid-auto-flow: column;
  justify-content: start;
}

.socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(200, 163, 77, 0.45);
  border-radius: 50%;
}

.copyright {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--color-black);
  border: 0;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  to {
    transform: scale(1);
  }
}

@keyframes pulseGold {
  50% {
    box-shadow: 0 0 0 18px rgba(200, 163, 77, 0.08);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 16px auto;
    display: grid;
    padding: 24px;
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .collection-grid,
  .split-section,
  .detail-layout,
  .story,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .reviews,
  .timeline,
  .mission,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-toolbar {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand__text {
    display: none;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .hero {
    min-height: 92vh;
  }

  .collection-grid,
  .product-grid,
  .reviews,
  .stats-grid,
  .timeline,
  .mission,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .collection-card,
  .collection-card img {
    min-height: 380px;
  }

  .section,
  .split-section {
    padding-block: 64px;
  }

  .page-hero {
    min-height: 54vh;
  }

  .catalog-toolbar,
  .filter-group {
    width: 100%;
  }

  .filter-chip {
    flex: 1 1 auto;
  }

  .thumbnail-row img {
    height: 82px;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
