:root {
  --bg: #050816;
  --panel: #0d1430;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(242, 178, 70, 0.36);
  --text: #f6f5f1;
  --muted: rgba(246, 245, 241, 0.78);
  --gold: #f2b246;
  --shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 178, 70, 0.16), transparent 24%),
    radial-gradient(circle at 82% 6%, rgba(126, 167, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #060818 0%, #080b1d 48%, #050715 100%);
  color: var(--text);
  font-family: "Montserrat", "Avenir Next", sans-serif;
}

body {
  display: grid;
  place-items: center;
  padding: 14px 18px;
}

.site-menu {
  position: fixed;
  top: 14px;
  left: 18px;
  z-index: 80;
}

.site-menu__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 13, 30, 0.84);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.site-menu__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-menu.is-open .site-menu__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu.is-open .site-menu__toggle span:nth-child(2) {
  opacity: 0;
}

.site-menu.is-open .site-menu__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 13, 30, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.site-menu__panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-menu__panel a:hover {
  background: rgba(242, 178, 70, 0.12);
  color: var(--gold);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: min(720px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(8, 13, 30, 0.94);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.cookie-banner[hidden],
.cookie-settings[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.35;
}

.cookie-banner__link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__button,
.cookie-settings {
  border: 1px solid rgba(242, 178, 70, 0.38);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 178, 70, 0.96), rgba(214, 152, 42, 0.96));
  color: #101522;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner__button {
  min-height: 34px;
  padding: 0 14px;
}

.cookie-banner__button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-settings {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  min-height: 32px;
  padding: 0 12px;
}

.contact-page { width: min(100%, 720px); }

.contact-panel {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  pointer-events: none;
}

.contact-panel__eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.04;
}

.contact-panel__intro,
.contact-panel--success p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.contact-panel__error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 99, 99, 0.24);
  border-radius: 16px;
  background: rgba(255, 99, 99, 0.08);
  color: #ffd4d4;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 12px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form__field { display: grid; gap: 8px; }

.contact-form__field:nth-of-type(5),
.contact-form__actions {
  grid-column: 1 / -1;
}

.contact-form__field span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(242, 178, 70, 0.08);
}

.contact-form__field small {
  color: #ffd4d4;
  font-size: 0.84rem;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.contact-form__actions button,
.contact-panel__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 10, 27, 0.64);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.contact-form__actions button {
  background: linear-gradient(90deg, #f2b246 0%, #d49b37 100%);
  color: #111527;
  border-color: rgba(242, 178, 70, 0.4);
}

.contact-panel--success { text-align: center; }
.contact-panel--success .contact-panel__back { margin: 6px auto 0; }

@media (max-width: 640px) {
  body { padding: 14px; }
  .contact-panel { padding: 20px 16px; border-radius: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__field:nth-of-type(5),
  .contact-form__actions { grid-column: auto; }
  .contact-form__actions { flex-direction: column-reverse; align-items: stretch; }
  .contact-form__actions button,
  .contact-panel__back { width: 100%; }
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 10px;
    width: calc(100vw - 24px);
    padding: 12px;
  }
  .cookie-banner__actions { justify-content: flex-end; }
  .cookie-settings { right: 14px; }
}
