:root {
  color-scheme: light;
  --ink: #17120c;
  --muted: #6d6254;
  --paper: #fffaf1;
  --surface: #f5efe4;
  --charcoal: #070707;
  --gold: #c28a2c;
  --bright-gold: #f4c46b;
  --pearl: #fffdf8;
  --emerald: #165f55;
  --rose: #9f4852;
  --line: rgba(23, 18, 12, 0.14);
  --shadow: 0 22px 60px rgba(23, 18, 12, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 7, 7, 0.92);
  color: var(--pearl);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: 0;
  font-weight: 700;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(244, 196, 107, 0.55);
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.94rem;
}

.main-nav a,
.nav-drop-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-drop-button:hover,
.nav-drop-button:focus-visible {
  color: var(--bright-gold);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-drop-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(244, 196, 107, 0.28);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255, 253, 248, 0.82);
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(244, 196, 107, 0.12);
  color: var(--bright-gold);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 58px) clamp(38px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.97) 0%, rgba(7, 7, 7, 0.84) 43%, rgba(7, 7, 7, 0.28) 70%),
    url("assets/lyxora-hero.png") right center / cover no-repeat;
  color: var(--pearl);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0), var(--paper));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2.8rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.button.primary {
  background: linear-gradient(135deg, var(--bright-gold), var(--gold));
  color: #160f05;
  box-shadow: 0 14px 34px rgba(194, 138, 44, 0.28);
}

.button.secondary {
  border-color: rgba(244, 196, 107, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 52vh;
}

.hero-media img {
  width: 100%;
  height: min(68vh, 680px);
  object-fit: cover;
  object-position: center right;
  border: 1px solid rgba(244, 196, 107, 0.28);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2.8rem);
  line-height: 1.12;
}

.categories,
.product-band,
.about,
.contact {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 58px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.category-tile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: 0 12px 30px rgba(23, 18, 12, 0.06);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 850;
}

.category-tile:hover,
.category-tile:focus-visible {
  border-color: rgba(194, 138, 44, 0.62);
  transform: translateY(-2px);
}

.category-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #14110d;
  overflow: hidden;
}

.bracelet-icon::before,
.bracelet-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.bracelet-icon::before {
  inset: 11px;
  border: 5px solid var(--bright-gold);
}

.bracelet-icon::after {
  inset: 23px 9px auto auto;
  width: 9px;
  height: 9px;
  background: #fff;
  box-shadow: -22px 3px 0 rgba(255, 255, 255, 0.85);
}

.pendant-icon::before,
.pendant-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pendant-icon::before {
  top: 8px;
  width: 1px;
  height: 22px;
  background: var(--bright-gold);
}

.pendant-icon::after {
  top: 27px;
  width: 23px;
  height: 23px;
  border: 4px solid var(--bright-gold);
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.14);
}

.chain-icon::before {
  content: "";
  position: absolute;
  inset: 15px 8px;
  border-top: 6px dotted var(--bright-gold);
  transform: rotate(-18deg);
}

.product-band.surface {
  background: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1fr);
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-visual {
  position: relative;
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(22, 95, 85, 0.82), rgba(7, 7, 7, 0.96)),
    url("assets/lyxora-hero.png") center / cover;
}

.product-visual.alt {
  background:
    linear-gradient(135deg, rgba(159, 72, 82, 0.78), rgba(7, 7, 7, 0.96)),
    url("assets/lyxora-hero.png") center / cover;
}

.product-visual span {
  position: absolute;
  inset: 42px;
}

.visual-bracelet span {
  border: 9px solid rgba(244, 196, 107, 0.95);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.12),
    0 0 34px rgba(244, 196, 107, 0.34);
}

.visual-pendant span::before,
.visual-pendant span::after,
.visual-chain span::before,
.visual-chain span::after {
  content: "";
  position: absolute;
}

.visual-pendant span::before {
  top: 0;
  left: 50%;
  width: 2px;
  height: 72px;
  background: rgba(244, 196, 107, 0.95);
}

.visual-pendant span::after {
  top: 68px;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 9px solid rgba(244, 196, 107, 0.95);
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 34px rgba(244, 196, 107, 0.32);
}

.visual-chain span::before {
  inset: 36px 4px auto;
  height: 38px;
  border-top: 10px dotted rgba(244, 196, 107, 0.95);
  transform: rotate(-15deg);
}

.visual-chain span::after {
  inset: 92px 14px auto;
  height: 38px;
  border-top: 10px dotted rgba(255, 255, 255, 0.72);
  transform: rotate(15deg);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 38px);
}

.tag {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.22;
}

.product-info p:not(.tag) {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--rose);
  font-weight: 850;
  text-decoration-color: rgba(159, 72, 82, 0.35);
  text-underline-offset: 5px;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  background: #11100d;
  color: var(--pearl);
}

.about p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 253, 248, 0.74);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.contact .button.primary {
  margin-top: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 18, 12, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(159, 72, 82, 0.12);
}

.field-error,
.form-status {
  min-height: 1.2em;
  font-size: 0.82rem;
  line-height: 1.35;
}

.field-error {
  color: var(--rose);
}

.form-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-form .button {
  width: 100%;
  color: var(--ink);
}

.success-dialog {
  width: min(430px, calc(100vw - 36px));
  padding: 34px 28px 28px;
  border: 1px solid rgba(194, 138, 44, 0.36);
  border-radius: 8px;
  background: var(--pearl);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.success-dialog::backdrop {
  background: rgba(7, 7, 7, 0.64);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.dialog-close svg,
.success-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog-close svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(22, 95, 85, 0.12);
  color: var(--emerald);
}

.success-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.5;
}

.success-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.success-dialog p {
  margin: 12px 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.success-dialog .button {
  min-width: 120px;
}

.site-footer {
  padding: clamp(38px, 6vw, 64px) clamp(18px, 4vw, 58px) 22px;
  background: var(--charcoal);
  color: rgba(255, 253, 248, 0.75);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.6fr) minmax(230px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border: 1px solid rgba(244, 196, 107, 0.45);
  border-radius: 50%;
}

.footer-brand p {
  max-width: 430px;
  margin: 16px 0 0;
  line-height: 1.75;
}

.footer-brand strong,
.footer-links h2,
.footer-contact h2 {
  color: var(--bright-gold);
  font-family: Georgia, "Times New Roman", serif;
}

.footer-links h2,
.footer-contact h2 {
  margin: 0 0 16px;
  font-size: 1.18rem;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-contact {
  font-style: normal;
}

.footer-contact p {
  margin: 0;
  line-height: 1.65;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 253, 248, 0.78);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--bright-gold);
}

.footer-credit {
  display: flex;
  justify-content: center;
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-credit svg {
  width: 16px;
  height: 16px;
  fill: var(--rose);
  flex: 0 0 auto;
}

.collection-hero {
  min-height: 390px;
  display: grid;
  align-items: end;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.96), rgba(7, 7, 7, 0.66), rgba(7, 7, 7, 0.2)),
    url("assets/lyxora-hero.png") center right / cover no-repeat;
  color: var(--pearl);
}

.collection-hero-copy {
  max-width: 680px;
}

.collection-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.collection-hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
}

.catalog-section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 58px);
}

.catalog-heading {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.catalog-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2.8rem);
  line-height: 1.12;
}

.catalog-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: 0 16px 42px rgba(23, 18, 12, 0.1);
  overflow: hidden;
}

.catalog-image {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 210px;
  overflow: hidden;
  background: #100d09;
}

.catalog-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(194, 138, 44, 0.34), rgba(7, 7, 7, 0.12) 50%, rgba(7, 7, 7, 0.42));
  pointer-events: none;
}

.catalog-image.accent-emerald::after {
  background: linear-gradient(145deg, rgba(22, 95, 85, 0.42), rgba(7, 7, 7, 0.1) 50%, rgba(7, 7, 7, 0.46));
}

.catalog-image.accent-rose::after {
  background: linear-gradient(145deg, rgba(159, 72, 82, 0.38), rgba(7, 7, 7, 0.1) 50%, rgba(7, 7, 7, 0.46));
}

.catalog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.catalog-image span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(244, 196, 107, 0.45);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.72);
  color: var(--bright-gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.catalog-info h3 {
  margin: 0;
  min-height: 3.7em;
  font-size: 1.08rem;
  line-height: 1.24;
}

.catalog-code {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.catalog-price {
  margin: 16px 0 20px;
  color: var(--emerald);
  font-size: 1.08rem;
  font-weight: 900;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bright-gold), var(--gold));
  color: #160f05;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(194, 138, 44, 0.24);
}

.buy-button:hover,
.buy-button:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-media img {
    height: 420px;
  }

  .category-grid,
  .product-grid,
  .catalog-grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 18px;
    font-size: 0.9rem;
  }

  .dropdown-menu {
    left: 0;
    transform: translate(0, -8px);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    transform: translate(0, 0);
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.72) 72%, rgba(7, 7, 7, 0.45) 100%),
      url("assets/lyxora-hero.png") center / cover no-repeat;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 0;
  }

  .hero-media img {
    height: 300px;
  }

  .category-tile {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 82px;
  }

  .category-icon {
    width: 48px;
    height: 48px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

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

  .product-visual {
    min-height: 210px;
  }

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    padding-bottom: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-credit {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-credit a {
    flex-wrap: wrap;
  }
}
