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

:root {
  --obsidian: #11100E;
  --graphite: rgba(22, 20, 18, 0.82);
  --graphite-solid: #1A1916;
  --pearl: #F0EBE3;
  --champagne: #C8B88A;
  --bronze: #8E7D5C;
  --ash: #9A948A;
  --line: rgba(200, 184, 138, 0.28);
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { height: 100%; }

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

.drive {
  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;
}

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

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

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

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

.drive__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;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-top: 2px solid var(--champagne);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.drive__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);
}

.drive__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);
}

.drive__brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.drive__brand span { color: var(--champagne); }

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

.drive__badge {
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.35rem;
}

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

.drive__lead {
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.8;
  color: var(--ash);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}

.drive__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.4rem;
  background: var(--champagne);
  color: var(--obsidian);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.drive__cta:hover {
  background: #D8C89E;
  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(--ash);
  background: transparent;
  border: none;
  padding: 0 0 0.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(142, 125, 92, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

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

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

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

.requisites__label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  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;
  }

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

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

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

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

  .drive__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;
    box-shadow: none;
  }

  .drive__head {
    padding-bottom: 1.25rem;
  }

  .drive__foot {
    padding-top: 1.25rem;
  }

  .drive__brand {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .drive__badge {
    font-size: clamp(0.75rem, 3.4vw, 0.9rem);
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
  }

  .drive__title {
    font-size: clamp(1.28rem, 4.8vw, 1.55rem);
    line-height: 1.38;
    margin-bottom: 1rem;
    max-width: none;
    text-wrap: pretty;
  }

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

  .drive__cta {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

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