*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #2e2e2e;
  background-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.icon {
  flex-shrink: 0;
}

.icon--accent {
  color: #b45309;
}

/* Top utility bar */
.top-bar {
  background-color: #1e293b;
  color: #f7f7f7;
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
}

.top-bar__inner {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.top-bar__item--center {
  flex: 1;
  text-align: center;
  min-width: 12rem;
}

.top-bar__email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
}

.top-bar__email:hover {
  color: #fff;
}

.top-bar__email:focus-visible {
  outline: 2px solid #fcd34d;
  outline-offset: 2px;
  border-radius: 2px;
}

/* White header with logo */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e4e4e4;
  padding: 1rem;
}

.site-header__inner {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__logo {
  display: block;
  line-height: 0;
}

.site-header__logo img {
  display: block;
  width: 9.375rem;
  max-width: 100%;
  height: auto;
}

.site-header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.site-header__phone a {
  color: #2e2e2e;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__phone a:hover {
  color: #b45309;
}

.site-header__phone a:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Yellow nav strip */
.nav-bar {
  background-color: #fcd34d;
  padding: 0.75rem 1rem;
}

.nav-bar__text {
  margin: 0;
  max-width: 75rem;
  margin-inline: auto;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
}

/* Hero (maintenance) */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background-color: #1a1a1a;
  background-image: url(../images/banner-bg.jpg);
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  width: 100%;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: #fff;
  background-color: rgba(15, 23, 42, 0.72);
  border-radius: 0.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  text-align: left;
}

.hero__bullet {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  background-color: #e67e22;
}

.hero__message {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hero__company {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e2e8f0;
}

.contacts {
  list-style: none;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  max-width: 20rem;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contacts__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.contacts__link {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #fcd34d;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contacts__link:hover {
  color: #fde68a;
}

.contacts__link:focus-visible {
  outline: 2px solid #fcd34d;
  outline-offset: 2px;
  border-radius: 2px;
}

.page__footer {
  background-color: #1e293b;
  color: #e2e8f0;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
}

.page__footer p {
  margin: 0;
}

@media (max-width: 767px) {
  .top-bar__item--center {
    display: none;
  }

  .top-bar__inner {
    justify-content: space-between;
  }

  .top-bar__item {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
  }

  .site-header__inner {
    justify-content: center;
    text-align: center;
  }

  .site-header__phone {
    width: 100%;
    justify-content: center;
  }

  .hero__title {
    font-size: 1.125rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__bullet {
    display: none;
  }
}

@media (min-width: 768px) {
  .top-bar {
    font-size: 0.875rem;
    padding: 0.5rem 2rem;
  }

  .site-header {
    padding: 1.25rem 2rem;
  }

  .site-header__logo img {
    width: 11.25rem;
  }

  .site-header__phone {
    font-size: 1.125rem;
  }

  .nav-bar {
    padding: 0.875rem 2rem;
  }

  .nav-bar__text {
    font-size: 0.9375rem;
  }

  .hero {
    padding: 3.5rem 2rem;
  }

  .hero__content {
    padding: 2rem 2rem;
  }

  .hero__title {
    font-size: 1.75rem;
    justify-content: center;
    text-align: center;
  }

  .hero__message {
    font-size: 1.0625rem;
  }

  .contacts {
    padding: 1.5rem 2rem;
  }

  .contacts__link {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 2rem;
  }
}
