:root {
  --ink: #140910;
  --plum: #2a121c;
  --wine: #4a1d2c;
  --rose: #d9a8b4;
  --blush: #f0d4d0;
  --cream: #f6ebe3;
  --paper: #fff7f0;
  --gold: #c9a36a;
  --copper: #b8734a;
  --mute: rgba(246, 235, 227, 0.62);
  --line: rgba(201, 163, 106, 0.28);
  --shadow: 0 28px 80px rgba(8, 2, 6, 0.45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(184, 115, 74, 0.18), transparent 55%),
    radial-gradient(700px 480px at 100% 8%, rgba(74, 29, 44, 0.7), transparent 50%),
    url("../img/texture.jpg") center / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.page { position: relative; z-index: 2; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  backdrop-filter: blur(16px);
  background: rgba(20, 9, 16, 0.55);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.nav-links a:hover { color: var(--cream); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  background: transparent;
  color: var(--mute);
  border: 0;
  padding: 7px 11px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
}

.lang button.is-on {
  background: var(--gold);
  color: var(--ink);
}

.ghost, .solid, .text-btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.ghost, .solid {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
}

.solid {
  background: linear-gradient(120deg, var(--gold), #e0c08a);
  color: #2a160c;
}

.ghost:hover, .solid:hover { transform: translateY(-2px); }

.text-btn {
  background: none;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 0;
  padding: 36px 0 72px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 16px 0 22px;
}

.hero-lead {
  max-width: 38rem;
  color: var(--blush);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.hero-note { color: var(--mute); font-size: 0.92rem; }

.portrait-wrap {
  position: relative;
  margin-left: auto;
  width: min(420px, 100%);
}

.orbit {
  position: absolute;
  inset: -26px;
  border: 1px dashed rgba(201, 163, 106, 0.45);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  top: 12%;
  left: 18%;
  box-shadow: 0 0 16px var(--gold);
}

.portrait {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
  border: 1px solid rgba(201, 163, 106, 0.4);
}

.portrait img {
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.94) contrast(1.03);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

section { padding: 88px 0; }

.num {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  margin: 8px 0 22px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about p + p { margin-top: 16px; }
.about p { color: var(--blush); }

.stats {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.stat {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(42, 18, 28, 0.62);
  border-radius: 18px;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card, .voice, .price, .step {
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.05), rgba(42, 18, 28, 0.55));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}

.card h3, .price h3, .step h3 {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.card p, .voice p, .for p, .path p { color: var(--blush); }

.for-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.for-list { display: grid; gap: 16px; }

.for-item {
  padding: 20px 22px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 247, 240, 0.03);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.voice span {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-size: 0.92rem;
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 10px 0 6px;
}

.price small { color: var(--mute); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.form .full { grid-column: 1 / -1; }

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--mute);
}

input, select, textarea {
  font: inherit;
  color: var(--cream);
  background: rgba(20, 9, 16, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

textarea { min-height: 120px; resize: vertical; }

.hint, .ok, .err { grid-column: 1 / -1; font-size: 0.95rem; }
.ok { color: #d8e7c7; }
.err { color: #f0b4b4; }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--mute);
  font-size: 0.92rem;
}

.foot a { color: var(--gold); text-decoration: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 40;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 8, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}

.overlay.is-on { display: flex; }

.modal {
  width: min(520px, 100%);
  background: #211018;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal.wide { width: min(760px, 100%); max-height: 86vh; overflow: auto; }

.modal h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 18px;
}

.modal form, .stack { display: grid; gap: 12px; }

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.close {
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
}

.log-item, .req-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--blush);
  font-size: 0.95rem;
}

.reveal {
  animation: rise 0.9s ease both;
}

.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.22s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero, .about, .cards, .for-grid, .path-grid, .voices, .prices, .form {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .hero { min-height: auto; padding-top: 28px; }
  .portrait-wrap { margin: 20px auto 0; width: min(340px, 86%); }
  .nav { flex-wrap: wrap; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
}
