:root {
  --bg: #05080f;
  --yellow: #f5d109;
  --yellow-soft: rgba(245, 209, 9, 0.16);
  --yellow-line: rgba(245, 209, 9, 0.65);
  --text: #f5f7fa;
  --muted: #b0b8c6;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(8, 12, 20, 0.72);
  --font-display: "Oswald", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.05);
  animation: drift 20s ease-in-out infinite alternate;
}

.hero-media__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.72) 0%, rgba(5, 8, 15, 0.42) 40%, rgba(5, 8, 15, 0.78) 70%, rgba(5, 8, 15, 0.96) 100%),
    linear-gradient(105deg, rgba(5, 8, 15, 0.88) 0%, rgba(5, 8, 15, 0.35) 48%, rgba(5, 8, 15, 0.55) 100%);
}

.hero-media__map {
  position: absolute;
  inset: 8% 0 35%;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 18% 42%, rgba(245, 209, 9, 0.35) 0 2px, transparent 2.5px),
    radial-gradient(circle at 78% 38%, rgba(245, 209, 9, 0.35) 0 2px, transparent 2.5px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='90' viewBox='0 0 160 90'%3E%3Cg fill='none' stroke='%23f5d109' stroke-opacity='.22' stroke-width='.4'%3E%3Cpath d='M8 48c12-18 28-24 44-18s28 4 40-8 26-10 42 2'/%3E%3Cpath d='M4 62c18-8 34-6 50 4s30 8 46-2 34-6 52 8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-media__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.top,
.hero,
.route {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0;
  animation: rise 0.7s ease both;
}

.brand img {
  width: clamp(4.8rem, 14vw, 6.5rem);
  height: auto;
  border-radius: 0.7rem;
  box-shadow: 0 0 0 1px rgba(245, 209, 9, 0.28), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.top__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.socials {
  display: flex;
  gap: 0.4rem;
}

.socials a {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.socials a:hover {
  color: #111;
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-1px);
}

.socials svg {
  width: 1.05rem;
  height: 1.05rem;
}

.phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  text-align: right;
}

.phones a {
  font-size: clamp(0.84rem, 2.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.phones a:hover {
  color: var(--yellow);
}

.phones span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 1.25rem;
  animation: rise 0.85s ease 0.08s both;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  max-width: 28rem;
}

.route-line span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--yellow);
}

.route-line i {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 7px,
    transparent 7px 14px
  );
  opacity: 0.75;
  animation: dash 1.8s linear infinite;
  background-size: 28px 2px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 5.6rem);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero h1 span {
  display: block;
  color: var(--yellow);
}

.lead {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.3vw, 1.12rem);
  line-height: 1.55;
}

.route {
  margin: 0 0.75rem 0.9rem;
  padding: 1rem 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(12, 16, 26, 0.78), rgba(7, 10, 16, 0.88));
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: rise 0.95s ease 0.16s both;
}

.route__head {
  margin-bottom: 0.9rem;
  text-align: center;
}

.route__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route__sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.route__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 0.5rem;
}

.route__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.28rem;
}

.route__num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--yellow);
}

.route__icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.route__steps li.is-active .route__icon {
  border-color: var(--yellow);
  background: var(--yellow-soft);
  color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245, 209, 9, 0.08), 0 0 24px rgba(245, 209, 9, 0.2);
}

.route__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.route__steps strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.route__steps small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

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

@keyframes drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes dash {
  to {
    background-position: 28px 0;
  }
}

@media (min-width: 768px) {
  .top {
    padding: 1.4rem 2rem 0;
  }

  .top__contacts {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
  }

  .phones {
    border-left: 1px solid var(--line);
    padding-left: 1.1rem;
  }

  .hero {
    width: min(920px, calc(100% - 4rem));
    margin-left: 2rem;
    padding-top: 0.5rem;
  }

  .route {
    margin: 0 1.5rem 1.25rem;
    padding: 1.25rem 1.4rem 1.35rem;
  }

  .route__head {
    text-align: left;
    margin-bottom: 1.1rem;
  }

  .route__steps {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
  }

  .route__steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.05rem;
    left: calc(50% + 1.5rem);
    width: calc(100% - 3rem);
    height: 1px;
    background: repeating-linear-gradient(
      90deg,
      rgba(245, 209, 9, 0.45) 0 5px,
      transparent 5px 10px
    );
  }
}

@media (max-width: 480px) {
  .socials a {
    width: 2.1rem;
    height: 2.1rem;
  }

  .phones a {
    font-size: 0.8rem;
  }

  .hero {
    width: calc(100% - 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
