:root {
  --bg: #0b1018;
  --bg-soft: #111722;
  --card: #151c28;
  --card-2: #1a2230;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f7fb;
  --muted: #9ca6b5;
  --muted-soft: #707b8c;

  --accent: #ff315a;
  --accent-hover: #e92a50;
  --accent-soft: rgba(255, 49, 90, 0.12);
  --accent-dark: #bd1f42;

  --success: #36c98f;
  --warning: #f4b942;
  --danger: #ff5d6c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.2);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);

  --header-height: 70px;
  --container: 1240px;
}

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

html {
  min-width: 320px;
  overflow-x: clip;

  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding: 0;

  overflow-x: hidden;

  font-family: Inter, Arial, sans-serif;

  color: var(--text);

  background: radial-gradient(circle at 50% -10%, rgba(255, 49, 90, 0.055), transparent 34%), linear-gradient(180deg, #0b1018 0%, #0c111a 45%, #0a0f17 100%);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}
a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;

  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.site-main {
  width: 100%;
  min-height: 50vh;
  padding-top: var(--header-height);
}

.site-main h2,
.site-main h3 {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* Sections */

.section {
  padding: 44px 0;
}

.section-sm {
  padding: 26px 0;
}

.section-title {
  margin: 0 0 22px;

  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-title--small {
  font-size: 22px;
}

.eyebrow {
  margin: 0 0 10px;

  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Buttons */

.btn {
  min-height: 46px;
  padding: 12px 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-align: center;

  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);

  box-shadow: 0 10px 24px rgba(255, 49, 90, 0.18);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);

  box-shadow: 0 14px 30px rgba(255, 49, 90, 0.24);
}

.btn-secondary {
  color: #fff;
  background: transparent;
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Scroll to top */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 95px;
  z-index: 900;

  width: 48px;
  height: 48px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 18px;
  font-weight: 800;

  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;

  cursor: pointer;

  box-shadow: 0 12px 28px rgba(255, 49, 90, 0.2);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);

  box-shadow: 0 16px 32px rgba(255, 49, 90, 0.26);
}

/* 404 */

.error-404 {
  padding: 76px 0;
}

.error-404__card {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 30px;

  text-align: center;

  background: radial-gradient(circle at 50% 0%, rgba(255, 49, 90, 0.08), transparent 38%), var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow);
}

.error-404__code {
  margin-bottom: 14px;

  color: var(--accent);
  font-size: clamp(72px, 14vw, 136px);
  font-weight: 900;
  line-height: 0.9;
}

.error-404 h1 {
  margin: 0 0 16px;

  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 850;
  line-height: 1.1;
}

.error-404 p {
  max-width: 520px;
  margin: 0 auto 26px;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.error-404__actions {
  display: flex;
  justify-content: center;
}

@media (max-width: 960px) {
  :root {
    --header-height: 66px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .section {
    padding: 30px 0;
  }

  .section-sm {
    padding: 20px 0;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .scroll-top {
    right: 14px;
    bottom: 16px;

    width: 44px;
    height: 44px;

    border-radius: 10px;
  }

  .error-404 {
    padding: 46px 0;
  }

  .error-404__card {
    padding: 36px 20px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
