:root {
  --red: #d71920;
  --red-hover: #b91319;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --panel: rgba(13, 19, 28, 0.78);
  --footer: #171d26;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #111822;
  color: var(--white);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 760px;
  background-image: url("../img/tokyo.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 9, 15, 0.83) 0%,
      rgba(4, 9, 15, 0.72) 42%,
      rgba(4, 9, 15, 0.56) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 82px;
  align-items: center;
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 760px;
  margin: 0 auto;
  padding: 80px 0;
}

.intro {
  max-width: 570px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -2.5px;
  text-transform: uppercase;
}

.intro h2 {
  margin: 20px 0 0;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 400;
  line-height: 1.3;
}

.separator {
  width: 88px;
  height: 4px;
  margin: 30px 0;
  background: var(--red);
}

.intro p {
  max-width: 540px;
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 34px;
  padding: 13px 28px;
  border: 2px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--red-hover);
  background: var(--red-hover);
  transform: translateY(-1px);
}

.services {
  display: grid;
  gap: 14px;
}

.service {
  padding: 22px 26px 21px;
  border-left: 4px solid var(--red);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(2px);
}

.service h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.service a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service a:hover,
.service a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service span {
  margin: 0 5px;
  color: rgba(255, 255, 255, 0.38);
}

.empty-space {
  min-height: 430px;
  background: #ffffff;
}

footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
}

.footer-content {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 26px 0;
  font-size: 13px;
  text-align: center;
}

.footer-content strong {
  color: var(--white);
}

.footer-content a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 90px 0;
  }

  .intro {
    max-width: 680px;
  }

  .services {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .hero-content,
  .footer-content {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .hero-content {
    gap: 42px;
    padding: 64px 0;
  }

  .hero-overlay {
    background: rgba(4, 9, 15, 0.76);
  }

  .intro h1 {
    font-size: clamp(44px, 14vw, 62px);
    letter-spacing: -1.5px;
  }

  .intro h2 {
    margin-top: 16px;
    font-size: 20px;
  }

  .separator {
    margin: 24px 0;
  }

  .intro p {
    font-size: 15px;
  }

  .button {
    width: 100%;
    margin-top: 28px;
  }

  .service {
    padding: 20px;
  }

  .service h3 {
    font-size: 18px;
  }

  .service p {
    font-size: 13px;
  }

  .empty-space {
    min-height: 220px;
  }
}

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

  .button,
  .service a {
    transition: none;
  }
}
