:root {
  color-scheme: dark;
  --black: #030303;
  --black-soft: #100e0c;
  --cream: #f2e3bc;
  --red: #bd0713;
  --red-dark: #87020b;
  --gold: #d6a735;
  --gold-light: #f0cf76;
  --muted: #b9aa8a;
  --line: rgba(214, 167, 53, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 18%, rgba(214, 167, 53, 0.09), transparent 31rem),
    var(--black);
  content: "";
}

body.sheet-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at 50% 31%, rgba(214, 167, 53, 0.075), transparent 33%),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(214, 167, 53, 0.018) 20px 21px),
    var(--black);
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  z-index: -1;
  width: min(58vw, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 167, 53, 0.13);
  border-radius: 50%;
  content: "";
}

.page-shell::before {
  top: -34vw;
  left: -19vw;
  box-shadow: 0 0 0 25px rgba(214, 167, 53, 0.025), 0 0 0 58px rgba(189, 7, 19, 0.02);
}

.page-shell::after {
  right: -32vw;
  bottom: -31vw;
  box-shadow: 0 0 0 25px rgba(214, 167, 53, 0.025), 0 0 0 58px rgba(189, 7, 19, 0.02);
}

.hero {
  display: flex;
  width: min(100% - 40px, 720px);
  margin: auto;
  padding: 44px 0 36px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.brand-logo {
  display: block;
  width: min(76vw, 440px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.lead {
  max-width: 510px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.actions {
  display: grid;
  width: min(100%, 480px);
  margin-top: 32px;
  gap: 12px;
}

.button {
  display: flex;
  min-height: 62px;
  padding: 16px 22px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  align-items: center;
  justify-content: space-between;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.close-button:focus-visible,
.max-link:focus-visible,
.phone:focus-visible {
  outline: 3px solid rgba(240, 207, 118, 0.78);
  outline-offset: 4px;
}

.button svg,
.max-link svg,
.close-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button--primary {
  background: var(--red);
  color: #fff7e5;
  border-color: var(--red);
}

.button--primary:hover {
  background: var(--red-dark);
}

.button--secondary {
  background: transparent;
  color: var(--gold-light);
}

.button--secondary:hover {
  background: rgba(214, 167, 53, 0.09);
}

footer {
  display: flex;
  padding: 22px 24px 28px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(242, 227, 188, 0.47);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-align: center;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.footer-flourish {
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.ornament {
  position: absolute;
  z-index: -1;
  width: 108px;
  height: 108px;
  opacity: 0.8;
  background:
    linear-gradient(45deg, transparent 42%, var(--gold) 42% 48%, transparent 48%),
    linear-gradient(-45deg, transparent 42%, var(--red) 42% 48%, transparent 48%);
}

.ornament--top {
  top: -39px;
  right: -34px;
  transform: rotate(45deg);
}

.ornament--bottom {
  bottom: -39px;
  left: -34px;
  transform: rotate(45deg);
}

.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
}

.sheet-layer[hidden] {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  cursor: default;
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity 240ms ease;
}

.sheet {
  position: relative;
  width: min(100%, 860px);
  max-height: calc(100svh - 32px);
  margin: 0 auto;
  padding: 18px clamp(22px, 5vw, 54px) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(214, 167, 53, 0.32);
  border-bottom: 0;
  background:
    radial-gradient(circle at 90% 5%, rgba(189, 7, 19, 0.15), transparent 19rem),
    var(--black-soft);
  box-shadow: var(--shadow);
  transform: translateY(105%);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-layer.is-visible .sheet-backdrop {
  opacity: 1;
}

.sheet-layer.is-visible .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 24px;
  border-radius: 10px;
  background: rgba(214, 167, 53, 0.42);
}

.sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.sheet-heading .eyebrow {
  margin-bottom: 7px;
}

h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2.15rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}

.close-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  place-items: center;
  cursor: pointer;
}

.contacts {
  display: grid;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}

.contact-card {
  padding: 28px 30px 4px 0;
}

.contact-card + .contact-card {
  padding-right: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.contact-purpose {
  min-height: 2.8em;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 6px;
  color: var(--gold-light);
  font-size: 2rem;
  font-weight: 400;
}

.phone {
  display: inline-block;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  text-decoration: none;
}

.phone:hover {
  color: var(--gold-light);
}

.max-link {
  display: flex;
  min-height: 50px;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.max-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.max-link svg {
  width: 18px;
  margin-left: auto;
}

.max-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

@media (min-width: 900px) {
  .page-shell {
    width: min(100% - 64px, 1320px);
    min-height: calc(100svh - 64px);
    margin: 32px auto;
    border-radius: 3px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 620px) {
  .hero {
    width: min(100% - 32px, 520px);
    padding-top: 24px;
  }

  .lead {
    margin-top: 10px;
  }

  .actions {
    margin-top: 36px;
  }

  footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-flourish {
    width: 20px;
  }

  .sheet {
    max-height: calc(100svh - 14px);
  }

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

  .contact-card {
    padding: 24px 0;
  }

  .contact-card + .contact-card {
    padding: 24px 0 4px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-purpose {
    min-height: auto;
  }
}

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