:root {
  color-scheme: dark;
  --navy: #05091f;
  --navy-deep: #020617;
  --white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.78);
  --white-faint: rgba(255, 255, 255, 0.12);
  --orange: #fe8709;
  --orange-light: #feab09;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: "Lato", "Ubuntu Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(3, 7, 30, 0.88) 39%, rgba(6, 12, 51, 0.42) 70%, rgba(2, 6, 23, 0.78) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0) 48%),
    url("assets/hero-spb.jpg");
  background-position: center, center, center 42%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(7, 12, 48, 0.12);
  pointer-events: none;
}

.header,
.content,
.footer {
  width: min(100% - 160px, 1280px);
  margin-inline: auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding-block: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: block;
  width: 162px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.status {
  color: var(--white-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.header-phone {
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  border-color: var(--orange);
  background: rgba(254, 135, 9, 0.12);
}

.content {
  align-self: center;
  padding-block: 58px 72px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--orange-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 970px;
  margin: 0;
  font-family: "Inter", "Ubuntu Sans", "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(48px, 5.55vw, 80px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.copy {
  max-width: 590px;
  margin-top: 36px;
  color: var(--white-muted);
  font-size: 18px;
  line-height: 1.45;
}

.copy p {
  margin: 0;
}

.copy p + p {
  margin-top: 12px;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.contact {
  display: flex;
  min-width: 285px;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 25px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact span {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.78;
  text-transform: uppercase;
}

.contact strong {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-primary {
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  box-shadow: 0 12px 34px rgba(254, 135, 9, 0.24);
}

.contact-secondary {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(4, 8, 30, 0.36);
  backdrop-filter: blur(8px);
}

.contact:hover,
.contact:focus-visible {
  transform: translateY(-2px);
}

.contact-primary:hover,
.contact-primary:focus-visible {
  box-shadow: 0 16px 40px rgba(254, 135, 9, 0.34);
}

.contact-secondary:hover,
.contact-secondary:focus-visible {
  border-color: var(--orange);
  background: rgba(254, 135, 9, 0.12);
}

.header-phone:focus-visible,
.contact:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.response-note {
  margin: 17px 0 0 25px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 26px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

@media (max-width: 900px) {
  .header,
  .content,
  .footer {
    width: min(100% - 64px, 760px);
  }

  .hero {
    background-image:
      linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(3, 7, 30, 0.78) 64%, rgba(2, 6, 23, 0.58) 100%),
      linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.08) 52%),
      url("assets/hero-spb.jpg");
    background-position: center, center, 62% center;
  }

  .content {
    padding-block: 54px 64px;
  }

  h1 {
    max-width: 720px;
    font-size: clamp(46px, 7.2vw, 64px);
  }
}

@media (max-width: 620px) {
  .header,
  .content,
  .footer {
    width: calc(100% - 40px);
  }

  .hero {
    min-height: 100dvh;
    background-image:
      linear-gradient(180deg, rgba(2, 6, 23, 0.5) 0%, rgba(2, 6, 23, 0.87) 39%, rgba(2, 6, 23, 0.98) 100%),
      url("assets/hero-spb.jpg");
    background-position: center, 58% top;
    background-size: cover, auto 62vh;
  }

  .header {
    min-height: 74px;
    padding-block: 18px;
  }

  .logo {
    width: 145px;
  }

  .status,
  .header-phone {
    display: none;
  }

  .content {
    align-self: end;
    padding-block: 42px 30px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(38px, 11.5vw, 54px);
    line-height: 1;
  }

  .copy {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.42;
  }

  .copy p:first-child {
    display: none;
  }

  .copy p + p {
    margin-top: 0;
  }

  .contacts {
    display: grid;
    gap: 10px;
    margin-top: 26px;
  }

  .contact {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding-inline: 22px;
  }

  .contact strong {
    font-size: 16px;
  }

  .response-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .footer {
    padding-block: 14px 20px;
  }

  .footer span:last-child {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 621px) {
  .header {
    min-height: 70px;
    padding-block: 16px;
  }

  .content {
    padding-block: 34px 40px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(44px, 5vw, 64px);
  }

  .copy,
  .contacts {
    margin-top: 24px;
  }

  .copy {
    font-size: 16px;
  }
}

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