:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-strong: #f0f1f7;
  --ink: #151720;
  --muted: #626878;
  --line: #e1e4ee;
  --brand: #4036a8;
  --brand-dark: #27205f;
  --accent: #e02f2f;
  --accent-dark: #b71922;
  --dark: #111219;
  --shadow: 0 24px 70px rgba(15, 17, 28, 0.13);
  --radius: 24px;
  --container: min(1120px, calc(100% - 40px));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(64, 54, 168, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0, var(--bg) 720px);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 82px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(17, 18, 25, 0.94);
  box-shadow: 0 18px 46px rgba(17, 18, 25, 0.22);
  backdrop-filter: blur(16px);
}

.logo-link,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.logo-link img,
.footer-logo img {
  width: 190px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.site-footer nav a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a {
  padding: 10px 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.phone-link {
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(224, 47, 47, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
}

.site-header .btn-primary {
  background: #ffffff;
  color: var(--dark);
  box-shadow: none;
}

.site-header .btn-primary:hover,
.site-header .btn-primary:focus-visible {
  background: #f0f1f7;
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(64, 54, 168, 0.32);
  box-shadow: 0 10px 26px rgba(17, 18, 25, 0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.hero {
  padding-top: 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-photo,
.work-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-photo::after,
.work-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(17, 18, 25, 0.8));
}

.hero-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.work-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-photo figcaption,
.work-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.35;
}

.hero-photo i,
.work-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.service-card p,
.process-step p,
.about-card p,
.systems p,
.cta-box p,
.site-footer p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.process-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 54, 168, 0.25);
  box-shadow: 0 18px 42px rgba(17, 18, 25, 0.08);
}

.icon,
.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(64, 54, 168, 0.1);
  color: var(--brand);
  font-weight: 950;
}

.systems {
  padding-top: 0;
}

.systems-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: start;
}

.systems-grid .section-heading {
  position: sticky;
  top: 118px;
  margin-bottom: 0;
}

.image-stack {
  display: grid;
  gap: 18px;
}

.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.about-card,
.why-list,
.cta-box {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(17, 18, 25, 0.06);
}

.about-card {
  display: grid;
  gap: 24px;
  align-content: center;
  padding: 30px;
}

.about-card img {
  width: 230px;
  height: auto;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--dark);
}

.why-list {
  padding: 30px;
}

.why-list ul {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.why-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbfe;
}

.why-list li i {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(224, 47, 47, 0.1);
  color: var(--accent);
}

.why-list span {
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cta {
  padding-top: 0;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: center;
  padding: 36px;
  background:
    radial-gradient(circle at 88% 8%, rgba(224, 47, 47, 0.35), transparent 26%),
    var(--dark);
  color: #ffffff;
}

.cta-box .eyebrow {
  color: #b8b3ff;
}

.cta-box p {
  color: #d2d5df;
}

.contact-card {
  display: grid;
  gap: 11px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card a:first-child {
  font-size: 1.55rem;
  font-weight: 950;
}

.contact-card a:not(:first-child),
.contact-card span {
  color: #eef0f6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  font-weight: 900;
}

.site-footer {
  padding: 42px 0 24px;
  background: var(--dark);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 34px;
  align-items: start;
}

.site-footer p {
  max-width: 430px;
  margin: 16px 0 0;
  color: #cfd2de;
}

.site-footer nav,
.site-footer address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.site-footer nav a,
.site-footer address,
.site-footer address a,
.footer-bottom {
  color: #cfd2de;
}

.site-footer nav a:hover,
.site-footer address a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open {
    border-radius: 28px;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.is-open .site-nav {
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .site-header.is-open .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header.is-open .phone-link {
    padding: 10px 14px;
  }

  .hero-grid,
  .systems-grid,
  .about-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .systems-grid .section-heading {
    position: static;
  }

  .hero-photo img {
    height: 440px;
  }

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

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .logo-link img {
    width: 146px;
    max-height: 34px;
  }

  h1 {
    font-size: clamp(2.08rem, 10vw, 2.95rem);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-photo,
  .work-card {
    border-radius: 24px;
  }

  .hero-photo img,
  .work-card img {
    height: 310px;
  }

  .service-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .why-list,
  .cta-box {
    padding: 24px;
  }

  .contact-card a:first-child {
    font-size: 1.32rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
