*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --bg-soft: #070705;
  --bg-card: #0c0b09;
  --gold: #c9a96e;
  --gold-soft: #e8d5a3;
  --gold-dim: rgba(201, 169, 110, 0.28);
  --text: #f4efe6;
  --muted: #9a8f7c;
  --line: rgba(201, 169, 110, 0.18);
  --win-w: 210px;
  --win-h: 390px;
  --radius: 360px;
  --step: 60deg;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: Outfit, Inter, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 110, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(201, 169, 110, 0.04), transparent 50%),
    radial-gradient(ellipse 40% 30% at 90% 70%, rgba(120, 90, 40, 0.05), transparent 50%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

.win:focus-visible .win__frame,
.card__hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 18px;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-on {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 12px;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.header .nav .lang-switch--nav {
  display: none;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.22));
}

.logo__img--foot {
  height: 72px;
  max-width: 240px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 28px;
}

.nav__link {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link--gold {
  color: var(--gold-soft);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.auth-btn:hover,
.auth-btn--solid {
  background: var(--gold);
  color: #111;
}

.auth-btn--solid:hover {
  background: var(--gold-soft);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.auth-modal.is-open {
  display: block;
}

.auth-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.auth-modal__box {
  position: relative;
  width: min(420px, calc(100% - 32px));
  margin: max(16px, 8vh) auto;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  background: #0c0b09;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.auth-modal__logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 12px;
}

.auth-modal__box h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  text-align: center;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--gold);
  color: #111;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form label {
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  margin-bottom: 6px;
}

.auth-form input:focus {
  border-color: var(--gold);
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-form[hidden] {
  display: none;
}

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch__btn.active {
  background: var(--gold);
  color: #111;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--gold);
  color: #111;
}

.btn--solid {
  background: var(--gold);
  color: #111;
  font-weight: 600;
}

.btn--solid:hover {
  background: var(--gold-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 0 40px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.hero__copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 8px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--gold-soft);
}

.hero__desc {
  margin: 16px auto 22px;
  color: var(--muted);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stage {
  position: relative;
  height: 620px;
  perspective: 1800px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  isolation: isolate;
}

.stage.is-drag {
  cursor: grabbing;
}

.stage__glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 169, 110, 0.14), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.stage__floor {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 560px;
  height: 70px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(201, 169, 110, 0.16), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  z-index: 1;
}

.ring {
  position: relative;
  width: var(--win-w);
  height: var(--win-h);
  transform-style: preserve-3d;
  transform: rotateX(-4deg) rotateY(var(--rot, 0deg));
  will-change: transform;
}

.win {
  position: absolute;
  inset: 0;
  transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--radius));
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.win__frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.win__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.win.is-front .win__img {
  filter: drop-shadow(0 20px 28px rgba(201, 169, 110, 0.18));
}

.front-cap {
  text-align: center;
  min-height: 52px;
  margin-top: -8px;
}

.front-cap strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.front-cap span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ring-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

.ring-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ring-btn svg {
  width: 18px;
  height: 18px;
}

.ring-hint {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage:hover ~ .ring-controls .ring-hint {
  color: var(--gold);
}

.section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.section-head h2,
.about__copy h2,
.contact__copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--gold-soft);
  line-height: 1.12;
}

.section-head p,
.about__copy p,
.contact__copy p {
  color: var(--muted);
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, #12100c, #090807);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 110, 0.45);
  }
}

.card__hit {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.card__visual {
  height: 280px;
  background: radial-gradient(circle at 50% 30%, #1a1712, #050505);
  display: grid;
  place-items: center;
}

.card__visual img {
  height: 240px;
  width: auto;
  max-width: 86%;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55));
}

.card__body {
  padding: 18px 18px 12px;
}

.card__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.card__line {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__price {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-top: 12px;
}

.card__order {
  margin: 4px 18px 18px;
  width: calc(100% - 36px);
}

.about {
  background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.04), transparent);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  border: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.8);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
}

.metric strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-soft);
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(12, 11, 9, 0.7);
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-link--ig svg { color: #e1306c; }
.contact-link--tt svg { color: #fff; }
.contact-link--wa svg { color: #25d366; }
.contact-link--fb svg { color: #1877f2; }

.form {
  display: grid;
  gap: 14px;
  background: #0c0b09;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.form label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.form input,
.form textarea {
  width: 100%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--gold);
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer a,
.footer p {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.socials {
  display: flex;
  gap: 10px;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #0c0b09;
  cursor: default;
  pointer-events: none;
}

.social svg {
  width: 18px;
  height: 18px;
}

.social--ig svg { color: #e1306c; }
.social--tt svg { color: #fff; }
.social--wa svg { color: #25d366; }
.social--fb svg { color: #1877f2; }

.footer__copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.modal__box {
  position: relative;
  width: min(860px, calc(100% - 32px));
  margin: 8vh auto;
  background: #0c0b09;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal__visual {
  background: radial-gradient(circle at 50% 30%, #1c1812, #000);
  display: grid;
  place-items: center;
  min-height: 420px;
}

.modal__visual img {
  height: 360px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.modal__body {
  padding: 32px 28px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #000;
  color: var(--gold);
  border-radius: 50%;
  cursor: pointer;
}

.modal h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-soft);
}

.notes {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.note strong {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note span {
  color: var(--muted);
}

@media (max-width: 980px) {
  :root {
    --win-w: 150px;
    --win-h: 290px;
    --radius: 210px;
  }

  .header,
  .header.is-on {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  }

  .nav {
    display: none;
  }

  .header__tools .lang-switch {
    display: none;
  }

  .header-auth .auth-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    min-height: 40px;
  }

  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #0c0b09;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    z-index: 50;
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav__link {
    padding: 12px 10px;
    font-size: 1rem;
  }

  .header .nav.is-open .lang-switch--nav {
    display: flex;
    margin-top: 8px;
    align-self: flex-start;
  }

  .about__inner,
  .contact__inner,
  .footer__grid,
  .modal__box {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage {
    height: 440px;
  }

  .stage__glow {
    width: 280px;
    height: 280px;
  }

  .stage__floor {
    width: 280px;
  }

  .modal__box {
    margin: max(12px, env(safe-area-inset-top, 0px)) auto 16px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    width: min(860px, calc(100% - 24px));
  }

  .modal__visual {
    min-height: 240px;
  }

  .modal__visual img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  :root {
    --win-w: 128px;
    --win-h: 240px;
    --radius: 148px;
  }

  .wrap {
    width: min(1180px, calc(100% - 24px));
  }

  .header__inner {
    gap: 10px;
  }

  .hero {
    min-height: 0;
    padding: calc(88px + env(safe-area-inset-top, 0px)) 0 28px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero__desc {
    margin: 12px auto 16px;
    font-size: 0.95rem;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .logo__img {
    height: 40px;
    max-width: 40px;
  }

  .logo__img--foot {
    height: 56px;
    max-width: 56px;
  }

  .header-auth {
    gap: 6px;
  }

  .header-auth .auth-btn {
    padding: 7px 10px;
    font-size: 0.72rem;
    min-height: 36px;
  }

  .header__right {
    gap: 8px;
  }

  .stage {
    height: 340px;
    touch-action: pan-y;
  }

  .front-cap strong {
    font-size: 1.25rem;
  }

  .ring-hint {
    display: none;
  }

  .ring-controls {
    gap: 18px;
    margin-top: 4px;
  }

  .ring-btn {
    width: 44px;
    height: 44px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card__visual {
    height: 240px;
  }

  .card__visual img {
    height: 200px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 18px;
  }

  .form input,
  .form textarea,
  .auth-form input {
    font-size: 16px;
  }

  .form .btn,
  .auth-form .btn,
  .card__order {
    min-height: 46px;
  }

  .footer {
    padding: 36px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .auth-modal__box {
    width: calc(100% - 24px);
    padding: 24px 18px 20px;
    margin: max(12px, env(safe-area-inset-top, 0px)) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring {
    transition: none;
  }
}
