:root {
  color-scheme: dark light;
  --bg: #0a0b0d;
  --bg-2: #11141a;
  --ink: #f5f2ec;
  --ink-dim: rgba(245, 242, 236, 0.66);
  --ink-faint: rgba(245, 242, 236, 0.4);
  --line: rgba(245, 242, 236, 0.16);
  --accent: #d4b07a;
  --pearl: #c9d6db;

  --light-bg: #f5f1ea;
  --light-bg-edge: #ebe4d8;
  --light-ink: #2a2823;
  --light-ink-dim: rgba(42, 40, 35, 0.62);
  --light-ink-faint: rgba(42, 40, 35, 0.38);
  --light-line: rgba(42, 40, 35, 0.16);
  --light-accent: #8a6d3f;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-ui: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.72;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: 1.2rem var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.78), rgba(10, 11, 13, 0));
  font-family: var(--font-ui);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.logo-bird {
  width: 22px;
  height: 30px;
  color: var(--ink);
  flex-shrink: 0;
  transform: translateY(-1px);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.34em;
  font-size: 0.82rem;
}

.logo-x {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
}

.logo-partner {
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.header__nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 2.4vw, 2.4rem);
  color: var(--ink-dim);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.header__nav a {
  position: relative;
  padding: 0.4rem 0;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.header__nav a:hover {
  color: var(--ink);
  opacity: 1;
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

.header__cta {
  padding: 0.9rem 1.45rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(212, 176, 122, 0.06);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  opacity: 1;
}

.catalog-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7.5rem var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  text-align: center;
}

.catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(10, 11, 13, 0.35) 60%, rgba(10, 11, 13, 0.75) 100%);
}

.catalog-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 28vh;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0), var(--bg) 88%);
  pointer-events: none;
}

.catalog-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}

.catalog-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.34), rgba(10, 11, 13, 0.04) 50%, rgba(10, 11, 13, 0.34)),
    linear-gradient(180deg, rgba(10, 11, 13, 0.12), rgba(10, 11, 13, 0.48));
  pointer-events: none;
}

.catalog-hero__inner {
  position: relative;
  z-index: 3;
  width: min(1100px, 100%);
}

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(212, 176, 122, 0.42);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(10, 11, 13, 0.16);
}

.hero-title {
  margin: 2rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 9.5rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  width: min(58ch, 100%);
  margin: 0 auto;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-style: italic;
  line-height: 1.65;
  text-wrap: balance;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.4rem;
  margin-top: 2.6rem;
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-meta span {
  position: relative;
}

.hero-meta span + span::before {
  content: "";
  position: absolute;
  left: -0.72rem;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.hero-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.catalog-section {
  position: relative;
  padding: 7rem var(--gutter) 7.5rem;
  background: var(--light-bg);
  color: var(--light-ink);
}

.catalog-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(235, 228, 216, 0.6), rgba(245, 241, 234, 0) 16rem),
    linear-gradient(90deg, rgba(42, 40, 35, 0.035), transparent 40%, rgba(42, 40, 35, 0.035));
}

.catalog-head,
.toolbar,
.catalog-grid,
.empty-state {
  position: relative;
  z-index: 1;
}

.catalog-head {
  max-width: 820px;
  margin: 0 auto 3.4rem;
  text-align: center;
}

.catalog-head .section-eyebrow {
  display: inline-flex;
  color: var(--light-ink);
  border-color: rgba(138, 109, 63, 0.35);
  background: rgba(255, 252, 245, 0.55);
}

.catalog-head h2 {
  margin: 1.2rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.8vw, 5.8rem);
  font-weight: 300;
  line-height: 0.98;
}

.catalog-head p {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--light-ink-dim);
  font-size: 1.02rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem 1.2rem;
  max-width: 1120px;
  margin: 0 auto 2rem;
  z-index: 5;
}

.search {
  position: relative;
  flex: 1 1 420px;
  width: min(100%, 560px);
  max-width: 560px;
}

.search input {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem 0 3.2rem;
  border: none;
  border-bottom: 1px solid rgba(42, 40, 35, 0.26);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--light-ink);
}

.search input::placeholder {
  color: rgba(42, 40, 35, 0.42);
}

.search input:focus {
  border-bottom-color: var(--light-ink);
}

.search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(42, 40, 35, 0.52);
  border-radius: 50%;
  transform: translateY(-58%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 1px;
  background: rgba(42, 40, 35, 0.52);
  transform: rotate(45deg);
}

.sort-control {
  flex: 0 1 260px;
  display: grid;
  gap: 0.45rem;
  color: rgba(42, 40, 35, 0.58);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sort-control select {
  min-height: 54px;
  width: 100%;
  border: 1px solid rgba(42, 40, 35, 0.2);
  border-radius: 4px;
  background: rgba(255, 252, 245, 0.72);
  color: var(--light-ink);
  padding: 0 1rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: none;
  outline: none;
}

.sort-control select:focus {
  border-color: var(--light-ink);
}

.sort-control > label,
.sort-control > span {
  line-height: 1;
}

.sort-control--enhanced {
  position: relative;
  z-index: 10;
}

.sort-control select.sort-control__native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.sort-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
}

.sort-dropdown__button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2.3rem 0 1rem;
  border: 1px solid rgba(42, 40, 35, 0.2);
  border-radius: 4px;
  background: rgba(255, 252, 245, 0.72);
  color: var(--light-ink);
  font: inherit;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  outline: none;
}

.sort-dropdown__button::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
}

.sort-dropdown__button[aria-expanded="true"]::after {
  transform: translateY(-28%) rotate(225deg);
}

.sort-dropdown__button:focus-visible {
  border-color: var(--light-ink);
}

.sort-dropdown__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 100;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(138, 109, 63, 0.52);
  border-radius: 4px;
  background: #171717;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.sort-dropdown__option {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0.72rem 0.9rem;
  border-radius: 2px;
  background: #171717;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: none;
}

.sort-dropdown__option:hover,
.sort-dropdown__option.is-highlighted {
  background: var(--light-accent);
  color: var(--light-bg);
}

.catalog-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--light-line);
  background: var(--light-line);
}

.product-card {
  min-height: 100%;
  border: 0;
  background: rgba(255, 252, 245, 0.58);
  color: var(--light-ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: left;
  transition: background 0.35s ease, transform 0.35s ease;
}

.product-card:hover,
.product-card:focus-visible {
  background: rgba(255, 252, 245, 0.86);
  transform: translateY(-2px);
  outline: none;
}

.card-title {
  min-height: 122px;
  padding: 1.45rem 1.45rem 1rem;
}

.card-title h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
  font-weight: 400;
  line-height: 1;
}

.card-image {
  min-height: 300px;
  aspect-ratio: 4 / 4.8;
  padding: 1.2rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(245, 241, 234, 0), rgba(235, 228, 216, 0.52)),
    rgba(255, 255, 255, 0.12);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(42, 40, 35, 0.16));
}

.card-meta {
  padding: 1rem 1.45rem 1.35rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.9rem;
  border-top: 1px solid rgba(42, 40, 35, 0.1);
}

.meta-row,
.card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--light-ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-row strong,
.card-price strong {
  color: var(--light-ink);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

.card-price {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(42, 40, 35, 0.1);
}

.card-price strong {
  color: var(--light-accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.card-purchase {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(1.45rem, 1fr) auto;
  align-items: start;
  gap: 0;
  height: 100%;
  min-height: 0;
  margin-top: 0;
}

.card-purchase .card-price {
  grid-row: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0;
  border-top: 0;
}

.card-purchase .card-price span {
  display: none;
}

.card-purchase--price-hidden {
  grid-template-rows: minmax(1.45rem, 1fr) auto;
}

.card-purchase--price-hidden .card-order-button {
  grid-row: 2;
}

.card-order-button {
  position: relative;
  top: 0;
  grid-row: 3;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.card-order-button:hover,
.card-order-button:focus-visible {
  background: #e1bd82;
  border-color: #e1bd82;
  color: #fff;
  opacity: 1;
  outline: none;
  transform: translateY(-1px);
}

.empty-state {
  margin: 3rem auto 0;
  color: var(--light-ink-dim);
  text-align: center;
}

.catalog-messages {
  width: min(760px, 100%);
  margin: 0 auto 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.catalog-message {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(245, 242, 236, 0.14);
  background: rgba(245, 242, 236, 0.08);
  color: rgba(245, 242, 236, 0.86);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.catalog-message--success {
  border-color: rgba(212, 176, 122, 0.44);
  color: #f5f2ec;
}

.catalog-message--error {
  border-color: rgba(186, 77, 77, 0.38);
  color: #ffd9d2;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(18px);
}

.modal-dialog {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  background: var(--light-bg);
  color: var(--light-ink);
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.9fr);
  max-height: calc(100vh - 32px);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
}

.icon-button,
.gallery-button,
.thumbs button {
  border: 1px solid rgba(42, 40, 35, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.82);
  color: var(--light-ink);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

.gallery {
  min-height: 620px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.88), rgba(17, 20, 26, 0.96)),
    var(--bg-2);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
}

.gallery-frame {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.gallery-frame img {
  width: 100%;
  height: min(66vh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.38));
}

.gallery-button {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.thumbs button {
  width: 72px;
  height: 72px;
  padding: 4px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: rgba(245, 242, 236, 0.06);
}

.thumbs button[aria-current="true"] {
  border-color: var(--accent);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-content {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 3rem 2.6rem 2.7rem;
}

.modal-original {
  margin: 0 0 0.7rem;
  color: var(--light-accent);
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
}

.modal-heading h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  font-weight: 300;
  line-height: 0.94;
}

.modal-short {
  margin: 0;
  color: var(--light-ink-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.price-block {
  margin: 2rem 0 1.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(42, 40, 35, 0.16);
  border-bottom: 1px solid rgba(42, 40, 35, 0.16);
  display: grid;
  gap: 0.35rem;
}

.price-label {
  color: var(--light-ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.price-block strong {
  color: var(--light-accent);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 1.8rem;
  border: 1px solid rgba(42, 40, 35, 0.14);
  background: rgba(42, 40, 35, 0.14);
}

.spec-list div {
  min-width: 0;
  padding: 1rem;
  background: rgba(255, 252, 245, 0.46);
}

.spec-list dt {
  margin: 0 0 0.5rem;
  color: var(--light-ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 400;
  line-height: 1.42;
}

.section-block {
  margin-top: 1.7rem;
}

.section-block h3 {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-block p,
.material-list {
  color: rgba(42, 40, 35, 0.78);
  line-height: 1.72;
}

.section-block p {
  margin: 0;
}

.material-list {
  margin: 0;
  padding-left: 1.1rem;
}

.material-list li + li {
  margin-top: 0.7rem;
}

.variant-table {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

.variant-card {
  flex: 0 0 90px;
  width: 90px;
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(5, 6, 7, 0.16);
  border-radius: 4px;
  background: #ffffff;
  color: #050607;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.variant-card:hover,
.variant-card:focus-visible {
  border-color: rgba(5, 6, 7, 0.44);
  outline: none;
  transform: translateY(-1px);
}

.variant-card.is-active,
.variant-card[aria-pressed="true"] {
  border-color: #050607;
  box-shadow: 0 0 0 2px #d4b07a;
}

.variant-card__image {
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: #ececec;
}

.variant-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1080px) {
  .header {
    grid-template-columns: auto 1fr;
  }

  .header__nav {
    justify-content: flex-end;
  }

  .header__cta {
    display: none;
  }
}

@media (max-width: 860px) {
  .header {
    position: absolute;
  }

  .header__nav {
    display: none;
  }

  .catalog-hero {
    min-height: 100svh;
    padding-top: 6.5rem;
  }

  .modal-layout,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    overflow-y: auto;
  }

  .modal-layout,
  .gallery,
  .modal-content {
    max-height: none;
  }

  .gallery {
    min-height: auto;
  }

  .gallery-frame {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 0.85rem var(--gutter);
  }

  .logo-text,
  .logo-partner {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  .logo-bird {
    width: 18px;
    height: 25px;
  }

  .catalog-hero {
    min-height: 100svh;
    padding-bottom: 4.5rem;
  }

  .eyebrow,
  .section-eyebrow {
    max-width: 100%;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    line-height: 1.4;
  }

  .hero-title {
    margin-top: 1.4rem;
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .hero-meta {
    gap: 0.65rem 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .catalog-section {
    padding: 4.8rem var(--gutter) 5rem;
  }

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

  .card-title {
    min-height: auto;
  }

  .modal-dialog {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .gallery {
    padding: 0.9rem;
  }

  .gallery-frame img {
    height: min(54vh, 440px);
  }

  .modal-content {
    padding: 2rem 1.1rem 2.2rem;
  }

  .modal-heading h2 {
    padding-right: 2.8rem;
  }

  .variant-row {
    grid-template-columns: 1fr;
  }
}

/* Dark catalog pass */
:root {
  color-scheme: dark;
  --light-bg: #0a0b0d;
  --light-bg-edge: #050607;
  --light-ink: #f5f2ec;
  --light-ink-dim: rgba(245, 242, 236, 0.68);
  --light-ink-faint: rgba(245, 242, 236, 0.42);
  --light-line: rgba(245, 242, 236, 0.14);
  --light-accent: #d4b07a;
}

body,
main,
.catalog-section {
  background: #0a0b0d;
  color: var(--ink);
}

.header {
  background: linear-gradient(to bottom, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.42) 72%, rgba(5, 6, 7, 0));
}

.catalog-section {
  padding-top: 6rem;
}

.catalog-section::before {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.9), rgba(10, 11, 13, 0) 18rem),
    linear-gradient(90deg, rgba(245, 242, 236, 0.035), transparent 42%, rgba(245, 242, 236, 0.025));
}

.catalog-head .section-eyebrow,
.eyebrow,
.section-eyebrow {
  color: var(--accent);
  border-color: rgba(212, 176, 122, 0.42);
  background: rgba(245, 242, 236, 0.045);
}

.catalog-head h2,
.catalog-head p,
.empty-state {
  color: var(--ink);
}

.catalog-head p,
.hero-sub,
.hero-meta,
.header__nav,
.logo-partner {
  color: var(--ink-dim);
}

.toolbar {
  margin-bottom: 2.2rem;
}

.search input {
  color: var(--ink);
  border-bottom-color: rgba(245, 242, 236, 0.28);
}

.search input::placeholder {
  color: rgba(245, 242, 236, 0.44);
}

.search input:focus {
  border-bottom-color: var(--accent);
}

.search-icon {
  border-color: rgba(245, 242, 236, 0.58);
}

.search-icon::after {
  background: rgba(245, 242, 236, 0.58);
}

.sort-control {
  color: rgba(245, 242, 236, 0.58);
}

.sort-control select {
  border-color: rgba(245, 242, 236, 0.2);
  background: rgba(245, 242, 236, 0.06);
  color: var(--ink);
  color-scheme: dark;
}

.sort-control select:focus {
  border-color: var(--accent);
}

.sort-control select option {
  background: #171717;
  color: #ffffff;
}

.sort-control select option:hover,
.sort-control select option:focus,
.sort-control select option:active {
  background: var(--accent);
  color: #050607;
}

.sort-control--enhanced .sort-dropdown__button {
  border-color: rgba(245, 242, 236, 0.2);
  background: rgba(245, 242, 236, 0.06);
  color: var(--ink);
}

.sort-control--enhanced .sort-dropdown__button:focus-visible,
.sort-control--enhanced .sort-dropdown__button[aria-expanded="true"] {
  border-color: var(--accent);
}

.sort-control--enhanced .sort-dropdown__list {
  border-color: rgba(212, 176, 122, 0.65);
  background: #171717;
}

.sort-control--enhanced .sort-dropdown__option {
  background: #171717;
  color: #ffffff;
}

.sort-control--enhanced .sort-dropdown__option:hover,
.sort-control--enhanced .sort-dropdown__option.is-highlighted {
  background: var(--accent);
  color: #050607;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  border: 0;
  background: transparent;
}

.product-card {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #050607;
  color: #050607;
  border-radius: 10px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.product-card:hover,
.product-card:focus-visible {
  background: #050607;
  transform: translateY(-4px);
}

.card-title {
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

.card-title h2 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0.45rem;
  color: #050607;
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.18;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: #050607;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: none;
}

.card-meta {
  min-height: 0;
  padding: 1.45rem 1.9rem 1.45rem;
  border-top: 0;
  background: #f6f6f6;
  color: #050607;
  align-content: stretch;
  gap: 0.7rem;
}

.meta-row,
.card-price {
  color: rgba(5, 6, 7, 0.62);
}

.meta-row {
  display: block;
  font-size: 0.72rem;
  line-height: 1.55;
}

.meta-row span {
  display: inline;
}

.meta-row span::after {
  content: " - ";
}

.meta-row strong,
.card-price strong {
  display: -webkit-box;
  overflow: hidden;
  color: #050607;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.card-price {
  display: block;
  padding-top: 0.55rem;
  border-top: 0;
  color: transparent;
}

.card-price strong {
  color: #050607;
  font-family: var(--font-body);
  font-size: 1.31rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  -webkit-line-clamp: 1;
}

.card-order-button {
  border-color: #d4b07a;
  background: #d4b07a;
  color: #fff;
  min-height: 40px;
  padding-inline: 1rem;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.card-order-button:hover,
.card-order-button:focus-visible {
  background: #e1bd82;
  border-color: #e1bd82;
  color: #fff;
}

.modal-dialog {
  background: #0a0b0d;
  color: var(--ink);
  border-color: rgba(245, 242, 236, 0.16);
}

.modal-content {
  background: #0a0b0d;
}

.modal-original,
.price-block strong,
.variant-row strong {
  color: var(--accent);
}

.modal-short,
.section-block p,
.material-list,
.variant-row {
  color: var(--ink-dim);
}

.price-block {
  border-top-color: rgba(245, 242, 236, 0.16);
  border-bottom-color: rgba(245, 242, 236, 0.16);
}

.price-label,
.spec-list dt {
  color: var(--ink-faint);
}

.spec-list {
  border-color: rgba(245, 242, 236, 0.13);
  background: rgba(245, 242, 236, 0.13);
}

.spec-list div {
  background: rgba(245, 242, 236, 0.045);
}

.section-block h3,
.spec-list dd {
  color: var(--ink);
}

.variant-table {
  border-color: rgba(245, 242, 236, 0.13);
}

.variant-row {
  border-bottom-color: rgba(245, 242, 236, 0.1);
}

.icon-button,
.gallery-button,
.thumbs button {
  border-color: rgba(245, 242, 236, 0.2);
  background: rgba(245, 242, 236, 0.08);
  color: var(--ink);
}

.gallery,
.gallery-frame {
  background: #050607;
}

.thumbs img {
  object-fit: cover;
  object-position: center;
}

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

/* Light product modal */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: none;
}

.modal-dialog {
  width: min(1023px, calc(100% - 40px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow-y: auto;
  background: #f7f7f7;
  color: #050607;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.modal-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 30px;
  max-height: none;
  padding: clamp(28px, 5vw, 58px) clamp(24px, 3.8vw, 30px) clamp(30px, 5vw, 52px);
}

.modal-content {
  max-height: none;
  overflow: visible;
  padding: 0;
  background: transparent;
  color: #050607;
}

.modal-close {
  right: 18px;
  top: 18px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: rgba(5, 6, 7, 0.12);
  background: #050607;
  color: #ffffff;
}

.gallery {
  min-height: 0;
  padding: 0;
  background: transparent;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 34px;
}

.gallery-frame {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background: #ececec;
  overflow: hidden;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.gallery-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(5, 6, 7, 0.42);
  color: #ffffff;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.thumbs {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 10px;
  overflow: visible;
  padding: 0;
}

.thumbs button {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid rgba(5, 6, 7, 0.16);
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.thumbs button[aria-current="true"] {
  border-color: #050607;
  box-shadow: 0 0 0 2px #d4b07a;
}

.thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-heading h2 {
  margin: 0 0 1rem;
  color: #050607;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.08rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-short {
  margin: 0 0 1.35rem;
  color: rgba(5, 6, 7, 0.62);
  font-size: 0.8rem;
  line-height: 1.5;
}

.price-block {
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
}

.price-label {
  display: none;
}

.price-block strong {
  color: #050607;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3vw, 1.58rem);
  font-weight: 800;
  line-height: 1.2;
}

.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 40px;
  margin: 0.2rem 0 1.7rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #d4b07a;
  background: #d4b07a;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.order-button:hover,
.order-button:focus-visible {
  background: #e1bd82;
  border-color: #e1bd82;
  color: #ffffff;
  opacity: 1;
  outline: none;
}

.info-list {
  display: grid;
  gap: 0.78rem;
  margin: 0 0 1.6rem;
}

.info-list div {
  display: block;
}

.info-list dt {
  margin: 0 0 0.12rem;
  color: rgba(5, 6, 7, 0.54);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
  color: #050607;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.section-block {
  margin-top: 1.15rem;
}

#variantsBlock {
  margin: 1.15rem 0 0.95rem;
}

.section-block h3 {
  color: #050607;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-block p,
.material-list {
  color: rgba(5, 6, 7, 0.72);
  font-size: 0.78rem;
  line-height: 1.58;
}

.variant-table {
  border-color: rgba(5, 6, 7, 0.1);
}

.variant-row {
  color: rgba(5, 6, 7, 0.68);
  border-bottom-color: rgba(5, 6, 7, 0.1);
}

.variant-row strong {
  color: #050607;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
}

.order-dialog {
  width: min(590px, calc(100% - 40px));
}

.order-content {
  padding: clamp(28px, 5vw, 48px);
}

.order-head {
  margin: 0 0 1.7rem;
}

.order-head h2 {
  margin: 0.45rem 0 0.9rem;
  color: #050607;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.order-product {
  margin: 0;
  color: #050607;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.order-product-meta {
  margin: 0.35rem 0 0;
  color: rgba(5, 6, 7, 0.58);
  font-size: 0.78rem;
  line-height: 1.5;
}

.order-form .field-row {
  gap: 1rem;
}

.order-form .contact__submit {
  justify-self: stretch;
  background: #050607;
  color: #ffffff;
  border-color: #050607;
  margin-top: 0.2rem;
}

.order-form .contact__submit:hover {
  background: #2a2823;
  border-color: #2a2823;
}

.order-form .contact__privacy {
  color: rgba(5, 6, 7, 0.68);
}

.order-form .contact__privacy a {
  color: #050607;
  border-bottom-color: rgba(5, 6, 7, 0.26);
}

.order-form .contact__privacy-input {
  accent-color: #050607;
}

@media (max-width: 780px) {
  .modal {
    --modal-mobile-gap-x: clamp(12px, 3.5vw, 18px);
    --modal-mobile-gap-y: clamp(10px, 2.5vh, 16px);
    inset: auto;
    left: var(--modal-vv-left, 0px);
    top: var(--modal-vv-top, 0px);
    width: var(--modal-vv-width, 100vw);
    height: 100vh;
    height: 100dvh;
    height: var(--modal-vv-height, 100dvh);
    box-sizing: border-box;
    overflow: hidden;
    padding: var(--modal-mobile-gap-y) var(--modal-mobile-gap-x);
    padding:
      calc(var(--modal-mobile-gap-y) + env(safe-area-inset-top))
      calc(var(--modal-mobile-gap-x) + env(safe-area-inset-right))
      calc(var(--modal-mobile-gap-y) + env(safe-area-inset-bottom))
      calc(var(--modal-mobile-gap-x) + env(safe-area-inset-left));
  }

  .modal-dialog {
    width: min(100%, 1023px);
    max-width: 100%;
    max-height: calc(100vh - (var(--modal-mobile-gap-y) * 2));
    max-height: calc(100dvh - (var(--modal-mobile-gap-y) * 2));
    max-height: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }

  .modal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-frame {
    max-height: 58vh;
  }

  .order-dialog {
    width: min(100%, 590px);
  }

  .order-content {
    padding: 28px 20px 24px;
    overflow-wrap: anywhere;
  }

  .order-form,
  .order-form .field,
  .order-form .field-row,
  .order-form .contact__privacy {
    min-width: 0;
  }

  .order-form .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-form .field__input,
  .order-form .field__select,
  .order-form .field__textarea {
    min-width: 0;
  }

  .order-form .contact__submit {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: 1.2rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

@media (max-width: 780px) {
  #productModal {
    overflow: hidden;
  }

  #productModal .modal-dialog {
    width: min(100%, 1023px);
    max-width: none;
    min-height: 0;
    max-height: calc(100vh - (var(--modal-mobile-gap-y) * 2));
    max-height: calc(100dvh - (var(--modal-mobile-gap-y) * 2));
    max-height: 100%;
    margin: 0;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #productModal .modal-layout {
    --product-modal-pad: clamp(16px, 4.5vw, 24px);
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    width: 100%;
    min-width: 0;
    padding: var(--product-modal-pad);
    padding: calc(var(--product-modal-pad) + env(safe-area-inset-top)) var(--product-modal-pad) calc(var(--product-modal-pad) + env(safe-area-inset-bottom));
  }

  #productModal .modal-close {
    position: fixed;
    top: calc(var(--modal-vv-top, 0px) + var(--modal-mobile-gap-y) + env(safe-area-inset-top) + 8px);
    right: auto;
    left: calc(var(--modal-vv-left, 0px) + var(--modal-vv-width, 100vw) - var(--modal-mobile-gap-x) - env(safe-area-inset-right) - 52px);
    z-index: 5;
    width: 44px;
    height: 44px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  }

  #productModal .gallery,
  #productModal .modal-content {
    width: 100%;
    min-width: 0;
  }

  #productModal .gallery {
    gap: 12px;
  }

  #productModal .gallery-frame {
    width: 100%;
    height: min(calc(100vw - 32px), 52vh);
    height: min(calc(100vw - 32px), 52svh);
    min-height: 0;
    max-height: 420px;
  }

  #productModal .gallery-frame img {
    display: block;
    max-width: 100%;
  }

  #productModal .gallery-button {
    width: 44px;
    height: 44px;
  }

  #productModal .gallery-prev {
    left: 8px;
  }

  #productModal .gallery-next {
    right: 8px;
  }

  #productModal .thumbs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #productModal .thumbs::-webkit-scrollbar {
    display: none;
  }

  #productModal .thumbs button {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    scroll-snap-align: start;
  }

  #productModal .variant-table {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #productModal .variant-table::-webkit-scrollbar {
    display: none;
  }

  #productModal .variant-card {
    scroll-snap-align: start;
  }

  #productModal .modal-heading h2 {
    padding-right: 54px;
  }

  #productModal .modal-short,
  #productModal .section-block p,
  #productModal .material-list {
    overflow-wrap: anywhere;
  }

  #productModal .order-button {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  #productModal .variant-row {
    grid-template-columns: 1fr;
  }
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  flex: 1 0 100%;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.category-chip {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 999px;
  background: rgba(245, 242, 236, 0.04);
  color: rgba(245, 242, 236, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.category-chip:hover,
.category-chip:focus-visible {
  border-color: rgba(212, 176, 122, 0.65);
  color: var(--ink);
  outline: none;
}

.category-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

@media (max-width: 900px) {
  .catalog-body .header {
    grid-template-columns: auto 1fr auto;
  }

  .catalog-body .header__nav {
    position: fixed;
    inset: 0;
    top: 64px;
    z-index: 49;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(10, 11, 13, 0.97);
    color: var(--ink-dim);
    font-size: 1.05rem;
    letter-spacing: 0.28em;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .catalog-body.menu-open .header__nav {
    transform: translateX(0);
  }

  .catalog-body .header__cta {
    display: none;
  }

  .catalog-body .header__burger {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .search,
  .sort-control {
    flex-basis: 100%;
    max-width: none;
  }

  .category-filter {
    gap: 0.5rem;
  }

  .category-chip {
    flex: 1 1 auto;
    min-width: min(100%, 150px);
    padding-inline: 0.75rem;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }
}
