:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5d6773;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --line: #dce4ec;
  --blue: #0757c8;
  --cyan: #00a6c8;
  --green: #10a06f;
  --dark: #07111f;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 18px;
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 17, 31, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  margin-top: -14px;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav {
  position: absolute;
  top: 68px;
  left: 14px;
  right: 14px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.is-open .nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav a {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.42), rgba(7, 17, 31, 0.92)),
    linear-gradient(90deg, rgba(7, 17, 31, 0.86), rgba(7, 17, 31, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 108px 20px 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 18vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.btn.primary {
  background: var(--green);
  color: #fff;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.hero-metrics div {
  min-height: 86px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-metrics strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.section,
.process,
.contact {
  padding: 58px 20px;
}

.section-heading {
  width: min(100%, 860px);
  margin: 0 auto 24px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.75rem, 9vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro {
  display: grid;
  gap: 18px;
  background: var(--surface);
}

.intro-card {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.intro-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.intro-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-grid,
.steps {
  display: grid;
  gap: 14px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(16, 24, 32, 0.07);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card div {
  padding: 18px;
}

.service-card h3,
.step h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.18;
}

.service-card p,
.step p,
.contact p {
  margin: 10px 0 0;
  color: var(--muted);
}

.process {
  color: #fff;
  background: var(--dark);
}

.step {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--dark);
  font-weight: 900;
}

.step p {
  color: rgba(255, 255, 255, 0.72);
}

.showcase {
  background: var(--surface);
}

.showcase-track {
  display: grid;
  gap: 12px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.showcase-track img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(16, 24, 32, 0.08);
}

.contact {
  background:
    linear-gradient(180deg, rgba(247, 249, 251, 0.96), rgba(247, 249, 251, 0.96)),
    url("/assets/rm378-03-C_oirJuh.jpg") center / cover;
}

.contact-panel {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact .btn.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 24px 20px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer span:first-child {
  color: #fff;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 560px) {
  .hero-actions,
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 210px));
  }

  .intro-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    align-items: center;
  }

  .intro-card p {
    margin: 0;
  }
}

@media (min-width: 760px) {
  .site-header {
    padding: 14px 28px;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 10px 12px;
  }

  .hero {
    min-height: 88svh;
    align-items: center;
  }

  .hero-content {
    padding: 128px 28px 70px;
  }

  .hero-copy {
    font-size: 1.2rem;
  }

  .hero-metrics {
    max-width: 620px;
    gap: 12px;
  }

  .section,
  .process,
  .contact {
    padding: 82px 28px;
  }

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

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

  .showcase-track {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: stretch;
  }

  .showcase-track img:first-child {
    grid-row: span 2;
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 1080px) {
  .site-header {
    padding-inline: calc((100vw - 1180px) / 2);
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
