:root {
  --pine-900: #16291c;
  --pine-800: #2d4d31;
  --birch: #d7dbd5;
  --gold: #f8b203;
  --gold-soft: #f8c94d;
  --text-dim: rgba(215, 219, 213, 0.66);
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--birch);
  background: #2d4d31 url(Russian_Restaurant.png) no-repeat center center / cover;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#leaves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.stage {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1080px, 100%);
}

.card {
  flex: 1 1 340px;
  max-width: 350px;
  text-align: center;
  background: rgba(19, 34, 24, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(248, 178, 3, 0.3);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.brand { margin-bottom: 1.3rem; }

.logo-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.7rem;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}

.logo-mark svg { width: 100%; height: 100%; }

.brand-name-ru {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--birch);
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold);
  margin-top: 0.12rem;
  text-transform: uppercase;
}

.brand-tagline {
  margin-top: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--birch);
  line-height: 1.1;
}

.subtitle {
  margin: 0.7rem auto 0;
  max-width: 34ch;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-dim);
}

.subtitle-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gold-soft);
}

.location svg { width: 15px; height: 15px; }

.location-ru {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0 1rem;
}

.divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(248, 178, 3, 0.4), transparent);
}

.invite { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 0.85rem; }

#notify {
  display: flex;
  gap: 0.5rem;
  max-width: 360px;
  margin: 0 auto;
}

#email {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 178, 3, 0.3);
  background: rgba(11, 22, 15, 0.7);
  color: var(--birch);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#email::placeholder { color: rgba(215, 219, 213, 0.4); }

#email:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(248, 178, 3, 0.15);
}

#notify button {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #231a06;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

#notify button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(248, 178, 3, 0.35);
}

#notify button:active { transform: translateY(0); }

.form-msg {
  margin-top: 0.75rem;
  min-height: 1rem;
  font-size: 0.8rem;
  color: var(--gold-soft);
}

.form-msg.error { color: #e08a7c; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (min-width: 901px) {
  .content { align-items: flex-start; padding-left: clamp(1.5rem, 8vw, 6rem); }
}

@media (max-width: 900px) {
  .stage {
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  .content { padding: 2.5rem 1rem 1.5rem; }
  .card { padding: 1.5rem 1.2rem; }
  #notify { flex-direction: column; }
  #notify button { width: 100%; }
  .brand-name-ru { font-size: 1.3rem; letter-spacing: 0.07em; }
  .location { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark { animation: none; }
  #leaves { display: none; }
}