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

:root {
  --bg: #100E0C;
  --text: #F4EDE0;
  --muted: #A69888;
  --burgundy: #5C2235;
  --burgundy-deep: #3D1524;
  --gold: #C9A962;
  --line: rgba(201, 169, 98, 0.22);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

html { height: 100%; }

body {
  min-height: 100svh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.gate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 2rem);
  opacity: 0;
}

.gate__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.gate__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gate__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 72% 42%;
  filter: saturate(0.92) contrast(1.04) brightness(0.94);
}

.gate__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 85% at 50% 50%, rgba(16, 14, 12, 0.18) 0%, rgba(16, 14, 12, 0.48) 100%),
    linear-gradient(180deg, rgba(16, 14, 12, 0.12) 0%, rgba(16, 14, 12, 0.35) 100%);
  pointer-events: none;
}

.gate__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vh, 4.5rem);
  width: min(100%, 40rem);
  min-height: min(88svh, 52rem);
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gate__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: clamp(1.75rem, 4vh, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.gate__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: clamp(1.75rem, 4vh, 2.5rem);
  border-top: 1px solid var(--line);
}

.gate__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.gate__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.gate__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.35rem;
}

.gate__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.32;
  margin-bottom: 1.35rem;
  max-width: 22ch;
}

.gate__lead {
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}

.gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.4rem;
  background: var(--burgundy);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(201, 169, 98, 0.45);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.gate__cta:hover {
  background: var(--burgundy-deep);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.requisites {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.requisites__btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 0 0.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(154, 145, 136, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.requisites__btn:hover {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.requisites__popup {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 15rem;
  padding: 0.9rem 1rem;
  background: #1A1418;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--gold);
  z-index: 100;
  color: var(--text);
  text-align: left;
}

.requisites__popup[hidden] { display: none !important; }

.requisites__label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.requisites__field {
  font-size: 0.78rem;
  line-height: 1.45;
}

.requisites__field + .requisites__field { margin-top: 0.5rem; }

@media (max-width: 768px) {
  html, body {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .gate {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    min-height: auto;
  }

  .gate__visual {
    position: relative;
    order: 1;
    height: 48svh;
    min-height: 48svh;
    flex-shrink: 0;
  }

  .gate__image {
    position: relative;
    inset: auto;
    height: 100%;
  }

  .gate__shade {
    background: linear-gradient(180deg, rgba(16, 14, 12, 0.08) 0%, rgba(16, 14, 12, 0.45) 100%);
  }

  .gate__center {
    order: 2;
    width: 100%;
    max-width: none;
    min-height: auto;
    gap: 1.5rem;
    margin: 0;
    padding: 1.5rem 1.1rem max(1.65rem, env(safe-area-inset-bottom));
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
  }

  .gate__head {
    padding-bottom: 1.25rem;
  }

  .gate__foot {
    padding-top: 1.25rem;
  }

  .gate__brand {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .gate__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
  }

  .gate__title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    line-height: 1.38;
    margin-bottom: 1rem;
    max-width: none;
    text-wrap: pretty;
  }

  .gate__lead {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: none;
  }

  .gate__cta {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .gate__image img {
    object-position: 68% 42%;
  }

  .requisites__popup {
    max-width: min(16rem, calc(100vw - 2rem));
  }
}
