@font-face {
  font-family: "DS Standart";
  src:
    url("../fonts/DSStandartCyr.woff") format("woff"),
    url("../fonts/DSStandartCyr.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #0a0708;
  --noir-deep: #050304;
  --rouge: #8b1a2b;
  --rouge-hot: #c41e3a;
  --rouge-glow: #e83a55;
  --rouge-soft: #5c1220;
  --cream: #f3e6d8;
  --gold: #c9a46a;
  --gold-soft: #a88b5c;
  --leopard-a: #2a1a12;
  --leopard-b: #6b3e24;
  --leopard-c: #c9a46a;
  --lace: rgba(243, 230, 216, 0.14);
  --font-display: "DS Standart", "Bad Script", cursive;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --ease-glam: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  background: var(--noir-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(139, 26, 43, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(90, 18, 32, 0.45), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(20, 8, 10, 0.9), transparent 70%),
    linear-gradient(160deg, #12080b 0%, #050304 45%, #1a0a10 100%);
}

/* Леопардовый шёлк — тонкий паттерн */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(ellipse 18px 12px at 20% 30%, var(--leopard-a) 40%, transparent 42%),
    radial-gradient(ellipse 14px 10px at 22% 32%, var(--leopard-b) 35%, transparent 38%),
    radial-gradient(ellipse 16px 11px at 55% 55%, var(--leopard-a) 40%, transparent 42%),
    radial-gradient(ellipse 12px 9px at 57% 57%, var(--leopard-b) 35%, transparent 38%),
    radial-gradient(ellipse 20px 13px at 78% 22%, var(--leopard-a) 40%, transparent 42%),
    radial-gradient(ellipse 15px 10px at 80% 24%, var(--leopard-b) 35%, transparent 38%),
    radial-gradient(ellipse 17px 12px at 35% 75%, var(--leopard-a) 40%, transparent 42%),
    radial-gradient(ellipse 13px 9px at 37% 77%, var(--leopard-b) 35%, transparent 38%),
    radial-gradient(ellipse 15px 11px at 88% 70%, var(--leopard-a) 40%, transparent 42%),
    radial-gradient(ellipse 11px 8px at 90% 72%, var(--leopard-b) 35%, transparent 38%);
  background-size: 220px 220px;
  mix-blend-mode: soft-light;
  animation: leopardDrift 40s linear infinite;
}

@keyframes leopardDrift {
  from { background-position: 0 0; }
  to { background-position: 220px 110px; }
}

.lace-frame {
  position: relative;
}

.lace-frame::before,
.lace-frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lace), var(--gold-soft), var(--lace), transparent);
  pointer-events: none;
}

.lace-frame::before { top: 0; }
.lace-frame::after { bottom: 0; }

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  padding-top: 0.5rem;
}

.progress span {
  flex: 1;
  height: 2px;
  background: rgba(243, 230, 216, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--rouge), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-glam);
}

.progress span.is-done::after,
.progress span.is-active::after {
  transform: scaleX(1);
}

.progress span.is-active::after {
  animation: pulseBar 1.6s ease-in-out infinite;
}

@keyframes pulseBar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.stage {
  flex: 1;
  display: none;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: none;
}

.stage.is-active {
  display: block;
  animation: stageIn 0.7s var(--ease-glam) forwards;
}

@keyframes stageIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 13vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: var(--cream);
  opacity: 0.95;
  animation: brandGlow 4s ease-in-out infinite;
}

.stage.stage-intro.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.stage-intro .eyebrow,
.stage-intro .brand,
.stage-intro .lead,
.stage-intro .meta-line {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.stage-intro .lead {
  max-width: 28ch;
}

.stage-intro .hero-actions {
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@keyframes brandGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(243, 230, 216, 0.82);
  margin: 0 0 1.5rem;
  max-width: 34ch;
}

.lead em {
  font-style: italic;
  color: var(--rouge-glow);
}

.meta-line {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 164, 106, 0.75);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 2rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-glam), box-shadow 0.35s var(--ease-glam), border-color 0.35s, color 0.35s, background 0.35s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-glam);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rouge-hot), var(--rouge));
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(232, 58, 85, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(201, 164, 106, 0.45);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 164, 106, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
  color: rgba(243, 230, 216, 0.92);
}

.section-sub {
  margin: 0 0 2rem;
  color: rgba(243, 230, 216, 0.7);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 38ch;
}

.details {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.detail {
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(243, 230, 216, 0.1);
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.35s, padding-left 0.35s var(--ease-glam);
}

.detail:hover {
  border-color: rgba(196, 30, 58, 0.45);
  padding-left: 0.4rem;
}

.detail-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(243, 230, 216, 0.9);
}

.thanks-time {
  margin: 1.5rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  line-height: 1.35;
  color: var(--gold);
}

.detail-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 106, 0.4);
  transition: color 0.3s, border-color 0.3s;
}

.detail-value a:hover {
  color: var(--rouge-glow);
  border-color: var(--rouge-glow);
}

.map-wrap {
  margin: 0.5rem 0 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 106, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: #1a1216;
  z-index: 1;
}

.map-wrap iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  /* чуть выше контейнера — прячем нижнюю белую панель виджета */
  height: calc(100% + 72px);
  border: 0;
  display: block;
  background: #1a1216;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}

.map-link:hover {
  color: var(--rouge-glow);
  gap: 0.65rem;
}

.form-stack {
  display: grid;
  gap: 1.35rem;
}

.field label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  width: 100%;
  background: rgba(10, 7, 8, 0.55);
  border: 1px solid rgba(243, 230, 216, 0.16);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(196, 30, 58, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.18);
  background: rgba(20, 8, 12, 0.75);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  gap: 0.65rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(243, 230, 216, 0.16);
  background: rgba(10, 7, 8, 0.4);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-glam), box-shadow 0.3s;
  font-size: 0.95rem;
}

.choice:hover span {
  border-color: rgba(201, 164, 106, 0.5);
  transform: translateX(4px);
}

.choice input:checked + span {
  border-color: var(--rouge-hot);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.28), rgba(10, 7, 8, 0.6));
  box-shadow: inset 0 0 0 1px rgba(196, 30, 58, 0.35), 0 8px 24px rgba(196, 30, 58, 0.2);
}

.alcohol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

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

.custom-alcohol {
  display: none;
}

.custom-alcohol.is-visible {
  display: block;
  animation: stageIn 0.45s var(--ease-glam) forwards;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: space-between;
}

.form-error {
  color: var(--rouge-glow);
  font-size: 0.9rem;
  min-height: 1.25rem;
  margin-top: 0.75rem;
}

.thanks {
  text-align: center;
  padding: 3rem 0 2rem;
}

.thanks .brand {
  font-size: clamp(2.4rem, 10vw, 3.8rem);
}

.ornament {
  width: 72px;
  height: 1px;
  margin: 1.5rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.ornament::before,
.ornament::after {
  content: "◆";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  color: var(--rouge-glow);
  letter-spacing: 0;
}

.footer-note {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 230, 216, 0.35);
  text-align: center;
}

/* Декор кружева по краям экрана */
.corner {
  position: fixed;
  width: 90px;
  height: 90px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 5;
  border-color: var(--gold-soft);
}

.corner-tl {
  top: 12px;
  left: 12px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-tr {
  top: 12px;
  right: 12px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-bl {
  bottom: 12px;
  left: 12px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-br {
  bottom: 12px;
  right: 12px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.corner::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(196, 30, 58, 0.55);
}

.corner-tl::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.corner-tr::before { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.corner-bl::before { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.corner-br::before { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body::after {
    animation: none;
  }
}
