:root {
  color-scheme: light;
  --text: #242a31;
  --muted: #56606b;
  --accent: #245d96;
  --accent-hover: #194a7a;
  --border: #e3e7eb;
  --cream: #fafaf7;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.35;
}

p {
  margin-bottom: 20px;
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: 1208px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 24px;
  z-index: 2;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 88px;
  padding-block: 16px;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 360px;
  max-width: 100%;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.brand-logo {
  display: block;
  position: absolute;
  top: 50%;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
}

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.main-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.main-nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.main-nav a:hover,
.wordmark:hover {
  color: var(--accent);
}

.section {
  padding-block: 80px;
  scroll-margin-top: 24px;
}

.hero {
  padding-block: 80px;
  background: var(--cream);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgb(36 42 49 / 7%);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  max-width: 760px;
}

.hero-subheadline {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.5;
}

.hero-content > p:last-of-type {
  max-width: 710px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.text-content {
  max-width: 740px;
}

.text-content > :last-child {
  margin-bottom: 0;
}

.section-tinted {
  background: var(--cream);
}

.services-grid,
.projects-grid {
  display: grid;
  gap: 24px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 2px 8px rgb(36 42 49 / 3%);
}

.card p:last-child {
  margin-bottom: 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.projects-note {
  margin-top: 24px;
  margin-bottom: 0;
}

.contact-email {
  color: var(--accent);
  font-size: 21px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-name {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.copyright,
.footer-nav {
  margin-bottom: 0;
  font-size: 14px;
}

.legal-content {
  max-width: 740px;
}

.legal-notice {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}

.legal-notice > :last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
}

@media (max-width: 999px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    max-width: 740px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 799px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 699px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 20px;
  }

  .main-nav {
    column-gap: 20px;
  }

  .section {
    padding-block: 52px;
  }

  .hero {
    padding-block: 64px;
  }

  .hero-subheadline {
    font-size: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .projects-grid {
    gap: 20px;
  }

  .card {
    padding: 24px;
  }

  .contact-email {
    font-size: 19px;
  }
}
