@charset "utf-8";

:root {
  --bg: #050505;
  --overlay: rgba(10, 10, 10, 0.34);
  --text: #f7f4ef;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #a40000;
  --shadow: rgba(0, 0, 0, 0.26);
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  inset: 0;
}

.bg-video,
.video-fallback,
.page-overlay {
  position: fixed;
  inset: 0;
}

.bg-video {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  background: #000;
}

.video-fallback {
  background:
    linear-gradient(rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.1)),
    url("../images/bg.jpg") center center / cover no-repeat;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 0;
}

.video-fallback.is-visible {
  opacity: 1;
}

.page-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), var(--overlay));
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}

.hero-controls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 58, 34, 0.97), rgba(22, 101, 52, 0.92));
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.explore-button:hover,
.explore-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(20, 83, 45, 1), rgba(21, 128, 61, 0.94));
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.88), rgba(8, 10, 14, 0.78));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(8px);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(20, 26, 34, 0.94), rgba(10, 12, 18, 0.86));
}

.sound-toggle__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sound-toggle__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sound-toggle.is-muted .sound-toggle__icon--muted,
.sound-toggle.is-unmuted .sound-toggle__icon--unmuted {
  opacity: 1;
  transform: scale(1);
}

.sound-toggle.is-unmuted {
  border-color: rgba(74, 222, 128, 0.48);
  background: linear-gradient(180deg, rgba(16, 58, 34, 0.97), rgba(22, 101, 52, 0.92));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(74, 222, 128, 0.18),
    0 0 28px rgba(34, 197, 94, 0.28);
  color: #ecfdf5;
}

.sound-toggle.is-unmuted .sound-toggle__icon svg {
  stroke: #dcfce7;
}

.contactModal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 12, 0.6);
  backdrop-filter: blur(8px);
}

.contactModal.is-hidden {
  display: none;
}

.contactDialog {
  width: min(920px, 95vw);
  max-height: 88vh;
  overflow: auto;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(10, 16, 26, 0.82), rgba(6, 10, 18, 0.9)),
    linear-gradient(135deg, rgba(20, 83, 45, 0.18), rgba(0, 0, 0, 0.15));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  padding: 26px 24px 22px;
}

.contactDialog h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  font-family: "Raleway", sans-serif;
}

.contactIntro {
  margin: 8px 0 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.contactClose {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.96);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.contactClose:hover {
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 255, 255, 0.7);
}

.contactForm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contactEmailPhoneRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: start;
}

.contactFieldGroup {
  display: grid;
  gap: 10px;
}

.contactCommentRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 12px;
  align-items: start;
}

.fieldLabel {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.fieldLabel .requiredMark {
  color: #4ade80;
  font-weight: 900;
}

.fieldInput {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 11px 12px;
  font-size: 15px;
}

.fieldInput:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.65);
  outline-offset: 1px;
}

.fieldTextarea {
  resize: vertical;
  min-height: 130px;
}

.contactActions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}

.captchaBlock {
  width: 100%;
  margin-top: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.captchaPromptRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.captchaPrompt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.captchaRefresh {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.captchaRefresh:hover,
.captchaRefresh:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.contactHoneypot,
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  min-width: 170px;
  transition: 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.contactActions .btn.primary,
.contactActions .btn.primary:hover,
.contactActions .btn.primary:disabled,
.contactActions .btn.primary.is-disabled,
.contactActions .btn.primary:disabled:hover,
.contactActions .btn.primary.is-disabled:hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 60px;
  padding: 14px 24px;
  border-radius: 18px;
  border-color: rgba(34, 197, 94, 0.42);
  background: linear-gradient(180deg, rgba(16, 94, 54, 0.97), rgba(21, 128, 61, 0.86)) !important;
  background-image: none !important;
  box-shadow: 0 12px 30px rgba(8, 17, 30, 0.28);
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.contactActions .btn.primary:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(20, 110, 62, 1), rgba(22, 101, 52, 0.92)) !important;
}

.contactActions .btn.primary:disabled,
.contactActions .btn.primary.is-disabled,
.contactActions .btn.primary:disabled:hover,
.contactActions .btn.primary.is-disabled:hover {
  border-color: rgba(148, 163, 184, 0.42);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.45), rgba(100, 116, 139, 0.42)) !important;
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.hero__inner {
  width: min(1100px, 100%);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  position: relative;
  z-index: 4;
  color: var(--muted);
  font-family: "Raleway", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.headline-stack {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 42vh, 420px);
}

.headline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  row-gap: 0.08em;
  padding-top: clamp(18px, 3.5vh, 42px);
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Raleway", sans-serif;
  font-size: clamp(2.35rem, min(8vw, 15vh), 7.25rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.9;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  text-shadow:
    0 3px 18px var(--shadow),
    0 1px 0 rgba(255, 255, 255, 0.1);
}

.headline.is-active {
  opacity: 1;
  transform: translateY(0);
}

.headline span {
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero {
    padding: 24px;
  }

  .explore-button {
    min-width: 148px;
    min-height: 50px;
    padding: 12px 18px;
  }

  .hero-controls {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .sound-toggle {
    width: 50px;
    height: 50px;
  }

  .eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.28em;
  }

  .headline-stack {
    min-height: clamp(190px, 38vh, 300px);
  }
}

@media (max-width: 720px) {
  .contactDialog {
    width: min(100vw - 20px, 720px);
    max-height: 90vh;
    padding: 22px 18px 18px;
  }

  .contactEmailPhoneRow,
  .contactCommentRow {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 500px) {
  .hero {
    padding: 18px 20px;
  }

  .hero__inner {
    width: min(980px, 100%);
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .headline-stack {
    min-height: clamp(155px, 46vh, 230px);
  }

  .headline {
    font-size: clamp(1.8rem, min(7vw, 12vh), 4.6rem);
    line-height: 0.86;
  }
}

@media (max-height: 420px) {
  .headline {
    font-size: clamp(1.55rem, min(6.2vw, 11vh), 3.8rem);
    line-height: 0.84;
  }

  .headline-stack {
    min-height: clamp(132px, 44vh, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-fallback,
  .headline {
    transition: none;
  }
}
