:root {
  color-scheme: dark;
  --bg: #050816;
  --panel: rgba(8, 13, 26, 0.76);
  --line: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --accent: #f6b91f;
  --accent-soft: #ffe08a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

svg,
img {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100vw - 32px));
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 26, 0.56);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition: top 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(8, 13, 26, 0.88);
  border-color: rgba(148, 163, 184, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(246, 185, 31, 0.16));
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--cabinet {
  border-color: rgba(246, 185, 31, 0.34);
  background: rgba(246, 185, 31, 0.12);
  color: var(--accent-soft);
  box-shadow: 0 0 26px rgba(246, 185, 31, 0.12);
}

.btn--cabinet:hover {
  border-color: rgba(246, 185, 31, 0.62);
  background: rgba(246, 185, 31, 0.18);
}

.btn--primary {
  min-width: 190px;
  min-height: 54px;
  margin-top: 38px;
  background: linear-gradient(135deg, #f6b91f, #ffcc4d);
  color: #151103;
  box-shadow: 0 18px 44px rgba(246, 185, 31, 0.24);
}

.btn--primary:hover {
  box-shadow: 0 22px 58px rgba(246, 185, 31, 0.34);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 118px 18px 44px;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 185, 31, 0.1), transparent 25%),
    linear-gradient(90deg, rgba(5, 8, 22, 0.62), rgba(5, 8, 22, 0.2) 46%, rgba(5, 8, 22, 0.58)),
    linear-gradient(180deg, rgba(5, 8, 22, 0.1), rgba(5, 8, 22, 0.45));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  padding: clamp(42px, 8vw, 88px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 18%, rgba(246, 185, 31, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(10, 16, 29, 0.72), rgba(7, 11, 23, 0.58));
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(58px, 10vw, 132px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 720px;
  margin: 26px auto 0;
  color: #edf2fb;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border: 1px solid rgba(246, 185, 31, 0.32);
  border-radius: var(--radius);
  background: rgba(11, 17, 31, 0.94);
  color: var(--accent-soft);
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100vw - 20px);
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: auto;
  }

  .brand span {
    display: none;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding-top: 2px;
    gap: 28px;
  }

  .btn--cabinet {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero {
    padding-top: 134px;
  }

  .hero__content {
    padding: 34px 22px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
