:root {
  --ink: #07142d;
  --muted: #4d5668;
  --blue: #2f7dff;
  --blue-deep: #0950c9;
  --header: #020b1c;
  --surface: #ffffff;
  --soft: #f4f6fa;
  --line: #e1e6f0;
  --shadow: 0 12px 32px rgba(14, 31, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #fff;
}

img,
svg {
  display: block;
}

button,
a {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 15.6vw;
  background: rgba(2, 11, 28, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 1.8rem);
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  height: 54px;
}

.nav-links a,
.nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a.active,
.nav-button:hover,
.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active::after,
.nav-button:hover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 40px);
  align-items: center;
  min-height: 32px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.language-option {
  min-height: 26px;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-option:hover,
.language-option.is-active {
  color: #fff;
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 58px 20px 52px;
  overflow: hidden;
  isolation: isolate;
  background-image: linear-gradient(
      rgba(3, 13, 31, 0.66),
      rgba(3, 13, 31, 0.72)
    ),
    url("./assets/hero-city.jpg");
  background-position: center 58%;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 95px;
  z-index: -1;
  background: linear-gradient(transparent, rgba(2, 11, 28, 0.48));
  content: "";
}

.hero-content {
  width: min(780px, 100%);
  text-align: center;
  color: #fff;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero-title-accent {
  display: block;
  color: var(--blue);
  font-size: clamp(2.9rem, 5.8vw, 4.6rem);
}

.hero p {
  width: min(710px, 100%);
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.primary-button {
  min-width: 190px;
  min-height: 54px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(47, 125, 255, 0.32);
}

.primary-button:hover {
  background: #1c6ff5;
}

.about-section {
  padding: 22px 20px 16px;
}

.section-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6.8rem);
}

.eyebrow {
  position: relative;
  margin: 0 0 10px 31px;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  position: absolute;
  top: 50%;
  left: -31px;
  width: 25px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateY(-50%);
  content: "";
}

.about-copy h2,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.16;
}

.about-copy p:not(.eyebrow),
.contact-section p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-image {
  width: 100%;
  aspect-ratio: 2.25 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.services-section {
  padding: 13px 20px 18px;
  background: var(--soft);
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 11px;
}

.section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 37px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  content: "";
}

.services-grid {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 120px;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(16, 31, 59, 0.08);
}

.service-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 20%, #2374ff, #0647b8);
}

.service-icon svg,
.stat-item svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 5px;
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.stats-section {
  color: #fff;
  background: linear-gradient(90deg, #064bbb, #1266e8, #0748b8);
}

.stats-grid {
  width: min(1180px, 100%);
  min-height: 100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 70px;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item svg {
  width: 46px;
  height: 46px;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
}

.portfolio-section {
  padding: 15px 20px 44px;
}

.portfolio-grid {
  width: min(1180px, 100%);
  margin: 19px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 7px;
  background: #101827;
  box-shadow: var(--shadow);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.portfolio-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 42%, rgba(3, 10, 24, 0.84));
  content: "";
}

.portfolio-caption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  color: #fff;
}

.portfolio-caption h3 {
  margin: 0 0 5px;
  font-size: 1.16rem;
}

.portfolio-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.contact-section {
  padding: 42px 20px;
  background: #06142c;
}

.contact-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
}

.contact-section h2,
.contact-section .eyebrow {
  color: #fff;
}

.contact-section p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-details a {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-weight: 700;
}

.contact-details a:hover {
  border-color: var(--blue);
  color: #9ec2ff;
}

@media (max-width: 940px) {
  .site-header {
    padding: 0 24px;
  }

  .header-actions {
    gap: 18px;
  }

  .section-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-wrap: wrap;
    min-height: 86px;
    padding: 0 16px;
    align-content: center;
    gap: 0;
  }

  .brand {
    width: 100%;
    font-size: 1.1rem;
  }

  .nav-links {
    height: 34px;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .language-switch {
    grid-template-columns: repeat(2, 34px);
  }

  .hero {
    min-height: 475px;
    padding-top: 72px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-title-accent {
    font-size: 2.6rem;
  }

  .about-section,
  .services-section,
  .portfolio-section,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .about-image {
    aspect-ratio: 1.45 / 1;
  }

  .service-card {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .service-icon {
    width: 58px;
    height: 58px;
  }

  .service-icon svg {
    width: 31px;
    height: 31px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item,
  .stat-item:nth-child(2) {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }
}
