:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-muted: #eeeeee;
  --text: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --dark: #111111;
  --dark-soft: #1c1c1c;
  --white: #ffffff;
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--dark-soft);
}

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 22px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

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

.button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  transition: 0.2s ease;
}

.button.primary {
  background: var(--dark);
  color: var(--white);
}

.button.primary:hover {
  transform: translateY(-2px);
  background: var(--dark-soft);
}

.button.secondary {
  border: 1px solid var(--border);
  background: var(--white);
}

.button.secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-soft);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel-card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-card.large {
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.75), rgba(245,245,245,1)),
    var(--bg-soft);
}

.panel-card.dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.panel-card span {
  margin-bottom: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-card.dark span,
.panel-card.dark p {
  color: rgba(255, 255, 255, 0.62);
}

.panel-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 22px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-head p:not(.section-label) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.service-card {
  min-height: 330px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

.service-number {
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

.work-section {
  padding: 90px 22px;
  background: var(--bg-soft);
}

.work-section .section-head,
.work-grid {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

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

.work-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
}

.work-image {
  height: 260px;
  margin-bottom: 22px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #e9e9e9, #f7f7f7);
}

.work-card h3 {
  padding: 0 8px;
}

.work-card p {
  padding: 0 8px 8px;
  color: var(--muted);
  line-height: 1.6;
}

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

.process-item {
  padding: 28px;
  border-top: 1px solid var(--border);
}

.process-item span {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 850;
}

.process-item p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-section {
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 56px;
  border-radius: 32px;
  background: var(--dark);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.contact-section .section-label,
.contact-section p {
  color: rgba(255, 255, 255, 0.62);
}

.contact-section p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.7;
}

.contact-box {
  min-width: 280px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-box a {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 800;
}

.contact-box span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 950px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
    gap: 44px;
  }

  .service-grid,
  .work-grid,
  .process-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    margin-left: 22px;
    margin-right: 22px;
    padding: 36px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 16px 18px;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .panel-card,
  .panel-card.large {
    min-height: 220px;
  }

  .work-image {
    height: 220px;
  }

  .contact-section {
    margin-left: 18px;
    margin-right: 18px;
    padding: 28px;
  }
}