:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #101010;
  --text: #ffffff;
  --muted: #b7b7b7;
  --soft: #777777;
  --line: rgba(255, 255, 255, 0.15);
  --primary: #d8b15a;
  --primary-strong: #f0c86a;
  --field: transparent;
  --max: 1040px;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(216, 177, 90, 0.12), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(216, 177, 90, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
textarea {
  max-width: 100%;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.loaded .preloader {
  opacity: 0;
  visibility: hidden;
}

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

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #080808;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.preloader span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--primary);
  animation: pulse 900ms infinite ease-in-out;
}

.preloader span:nth-child(2) {
  animation-delay: 110ms;
}

.preloader span:nth-child(3) {
  animation-delay: 220ms;
}

.preloader span:nth-child(4) {
  animation-delay: 330ms;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(520px, calc(100% - 48px));
  text-align: center;
}

.section {
  position: relative;
  padding: 64px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.scrolled {
  background: rgba(8, 8, 8, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  min-height: 66px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 142px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0;
}

.logo small {
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 160ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  min-width: 142px;
  gap: 8px;
}

.social-icons a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  margin: 7px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero {
  display: flex;
  min-height: min(100svh, 780px);
  align-items: center;
  padding-top: 88px;
  padding-bottom: 44px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: auto -10% 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 177, 90, 0.4), transparent);
}

.hero-inner {
  padding-top: 12px;
}

.hero-row {
  animation: fadeUp 800ms ease both;
}

.hero-row:nth-child(2) {
  animation-delay: 120ms;
}

.hero-row:nth-child(3) {
  animation-delay: 240ms;
}

.hero h1,
.hero h2,
.hero h3,
.notify h2,
.section-head h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.hero h3 {
  font-size: clamp(3.2rem, 8.6vw, 7.4rem);
  line-height: 0.86;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  align-items: end;
  gap: 24px;
}

.split p {
  max-width: 390px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.42vw, 1.26rem);
  line-height: 1.28;
}

.split h2 {
  text-align: right;
}

.bottom-line {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
}

.circle-link {
  position: relative;
  display: grid;
  width: clamp(72px, 8vw, 96px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--primary);
}

.circle-link svg {
  width: 100%;
  height: 100%;
  animation: rotateText 18s linear infinite;
}

.circle-link text {
  fill: currentColor;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 12px;
  text-transform: uppercase;
}

.circle-link span {
  position: absolute;
  width: 34%;
  height: 34%;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.circle-link span::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46%;
  height: 2px;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: right;
}

.notify-line {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.notify-line i {
  display: block;
  flex: 1;
  height: 1px;
  min-width: 52px;
  background: var(--line);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #080808;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.btn:hover {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
  transform: translateY(-2px);
}

.wide {
  width: 100%;
}

.kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.notify h2,
.section-head h2 {
  font-size: clamp(2.25rem, 4.8vw, 3.9rem);
  line-height: 0.95;
}

.separator {
  width: 1px;
  height: 48px;
  margin: 20px auto 28px;
  border: 0;
  background: var(--primary);
  opacity: 1;
}

.lead {
  margin: 0 0 22px;
  font-size: clamp(1.06rem, 1.55vw, 1.28rem);
  font-weight: 700;
  line-height: 1.3;
}

.line-form {
  display: grid;
  gap: 12px;
}

.line-form label {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.narrow .line-form label {
  text-align: center;
}

.line-form input,
.line-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease;
}

.line-form textarea {
  min-height: 96px;
  padding-top: 8px;
}

.line-form input:focus,
.line-form textarea:focus {
  border-color: var(--primary);
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--primary);
  font-size: 0.98rem;
  text-align: center;
}

.section-head {
  margin-bottom: 34px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: clamp(32px, 5.8vw, 68px);
}

.contact-copy h3,
.contact-form h3 {
  margin: 0 0 30px;
  font-size: clamp(1.65rem, 2.8vw, 2.65rem);
  line-height: 1.12;
}

.contact-copy h3 span {
  color: var(--primary);
}

.contact-copy h3 em {
  display: inline;
  color: rgba(255, 255, 255, 0.42);
  font-style: normal;
}

.contact-copy h4 {
  margin: 20px 0 4px;
  font-size: 1rem;
}

.contact-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.45;
}

.contact-copy a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.contact-copy a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.contact-form h3 {
  margin-bottom: 24px;
}

.footer {
  padding-top: 52px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-links a:hover,
.footer p a {
  color: var(--primary);
}

.footer p {
  margin: 20px 0 0;
  color: var(--soft);
  font-size: 0.98rem;
}

.footer p + p {
  margin-top: 8px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top::before {
  width: 11px;
  height: 11px;
  content: "";
  border-top: 2px solid var(--text);
  border-left: 2px solid var(--text);
  transform: translateY(4px) rotate(45deg);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@keyframes pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.65);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateText {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .container,
  .narrow,
  .nav {
    width: min(100% - 40px, var(--max));
  }

  .section {
    padding: 60px 0;
  }

  .nav {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 24px;
    right: 24px;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: max-height 220ms ease, border-color 220ms ease;
  }

  .nav-menu.open {
    max-height: 240px;
    border-color: var(--line);
  }

  .nav-menu a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .social-icons {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 56px;
  }

  .hero h1,
  .hero h2,
  .hero h3 {
    font-size: clamp(3rem, 12.2vw, 7rem);
    line-height: 0.9;
  }

  .split,
  .bottom-line,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 16px;
  }

  .split h2 {
    text-align: left;
  }

  .split p {
    max-width: 620px;
    margin-bottom: 0;
  }

  .bottom-line {
    gap: 18px;
  }

  .circle-link {
    width: 86px;
  }

  .notify-line {
    width: 100%;
  }

  .contact-grid {
    gap: 44px;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow,
  .nav {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 42px;
  }

  .hero h1,
  .hero h2,
  .hero h3 {
    font-size: clamp(2.72rem, 15.2vw, 4.9rem);
    line-height: 0.94;
  }

  .split p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .circle-link {
    width: 72px;
  }

  .bottom-line {
    gap: 18px;
  }

  .notify-line {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .notify-line i {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .notify h2,
  .section-head h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
    line-height: 1;
  }

  .separator {
    height: 36px;
    margin: 16px auto 24px;
  }

  .lead {
    font-size: 1rem;
  }

  .line-form label {
    font-size: 0.95rem;
  }

  .contact-copy h3,
  .contact-form h3 {
    font-size: clamp(1.45rem, 8vw, 2.35rem);
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .footer-links {
    gap: 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 430px) {
  .container,
  .narrow,
  .nav {
    width: min(100% - 24px, var(--max));
  }

  .logo {
    min-width: 0;
    font-size: 1.12rem;
  }

  .menu-toggle {
    width: 36px;
  }

  .menu-toggle span {
    width: 26px;
  }

  .nav-menu {
    left: 12px;
    right: 12px;
  }

  .hero h1,
  .hero h2,
  .hero h3 {
    font-size: clamp(2.35rem, 14.5vw, 4rem);
  }

  .circle-link {
    width: 64px;
  }

  .circle-link text {
    font-size: 34px;
    letter-spacing: 10px;
  }

  .contact-grid {
    gap: 34px;
  }

  .footer-links {
    display: grid;
    gap: 12px;
  }
}

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