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

:root {
  --burgundy: #4A1528;
  --burgundy-mid: #5C2235;
  --burgundy-deep: #2E0D18;
  --gold: #C9A962;
  --gold-light: #D4B87A;
  --gold-soft: rgba(201, 169, 98, 0.35);
  --ivory: #F4EDE0;
  --muted: rgba(244, 237, 224, 0.68);
  --font-display: 'Noto Serif SC', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

html { height: 100%; }

body {
  min-height: 100svh;
  font-family: var(--font-body);
  background: var(--burgundy-deep);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 769px) {
  html, body {
    height: 100%;
    max-height: 100svh;
    overflow: hidden;
  }
}

.lacquer {
  display: grid;
  grid-template-columns: minmax(18rem, 42%) 1fr;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  opacity: 0;
}

.lacquer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background:
    linear-gradient(165deg, var(--burgundy-mid) 0%, var(--burgundy) 42%, var(--burgundy-deep) 100%);
  border-right: 2px solid var(--gold);
  z-index: 2;
}

.lacquer__frame {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}

.lacquer__head {
  position: relative;
}

.lacquer__hanzi {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: 1;
  color: rgba(201, 169, 98, 0.2);
  margin-bottom: 0.5rem;
}

.lacquer__brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.lacquer__brand span { color: var(--gold); }

.lacquer__main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.lacquer__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
  max-width: 22ch;
}

.lacquer__lead {
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 30ch;
  margin-bottom: 1.75rem;
}

.lacquer__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--burgundy-deep);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lacquer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.lacquer__legal {
  position: relative;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.lacquer__visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: #140A10;
}

.lacquer__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.lacquer__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(46, 13, 24, 0.6) 0%, transparent 38%);
  pointer-events: none;
}

.requisites { position: relative; display: inline-flex; }

.requisites--seal .requisites__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--gold-soft);
  padding: 0.5rem 0.85rem 0.5rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.requisites--seal .requisites__btn:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--gold);
}

.requisites__seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--burgundy-deep);
  background: var(--gold);
  border-radius: 3px;
  flex-shrink: 0;
}

.requisites--seal .requisites__popup {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 0;
  min-width: 15rem;
  padding: 0.9rem 1rem;
  background: #1E1218;
  border: 1px solid var(--gold-soft);
  border-top: 2px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.requisites__popup[hidden] { display: none !important; }

.requisites__label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.requisites__field {
  font-size: 0.78rem;
  line-height: 1.45;
}

.requisites__field + .requisites__field { margin-top: 0.5rem; }

@media (max-width: 768px) {
  html, body {
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .lacquer {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow: visible;
  }

  .lacquer__panel {
    order: 2;
    border-right: none;
    border-top: 2px solid var(--gold);
    height: auto;
    min-height: auto;
    padding: 1rem 1rem max(1.15rem, env(safe-area-inset-bottom));
    flex-shrink: 0;
  }

  .lacquer__frame { inset: 0.65rem; }

  .lacquer__hanzi {
    font-size: 2.75rem;
    margin-bottom: 0.25rem;
  }

  .lacquer__brand { font-size: 1.65rem; }

  .lacquer__main {
    padding: 0.85rem 0 0;
  }

  .lacquer__title {
    font-size: clamp(1.15rem, 4.6vw, 1.35rem);
    line-height: 1.4;
    margin-bottom: 0.65rem;
    max-width: none;
    text-wrap: pretty;
  }

  .lacquer__lead {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: none;
  }

  .lacquer__cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.15rem;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
  }

  .lacquer__legal {
    padding-top: 0.85rem;
    margin-top: 0.25rem;
  }

  .lacquer__visual {
    order: 1;
    position: relative;
    height: 48svh;
    min-height: 48svh;
    max-height: 48svh;
    flex-shrink: 0;
  }

  .lacquer__image {
    position: relative;
    inset: auto;
    height: 100%;
  }

  .lacquer__shade {
    background: linear-gradient(180deg, rgba(20, 10, 16, 0.05) 0%, rgba(20, 10, 16, 0.35) 100%);
  }

  .requisites--seal .requisites__popup {
    max-width: min(16rem, calc(100vw - 2rem));
  }
}
