:root {
  --background: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f1f3f6;
  --text: #182230;
  --muted: #5a6573;
  --border: #dfe4ea;
  --accent: #ed1b2f;
  --accent-dark: #bf1424;
  --accent-soft: #fff1f3;
  --shadow: 0 18px 45px rgba(24, 34, 48, 0.08);
  --shadow-strong: 0 24px 60px rgba(24, 34, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(90deg, rgba(237, 27, 47, 0.06), transparent 24%, transparent 76%, rgba(237, 27, 47, 0.04)),
    linear-gradient(180deg, #ffffff 0%, var(--background) 46%, #ffffff 100%);
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(24, 34, 48, 0.04);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0 clamp(54px, 8vw, 96px);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 27, 47, 0.32), transparent);
  content: "";
}

.hero-copy {
  max-width: 760px;
  padding-left: clamp(18px, 3vw, 28px);
  border-left: 4px solid var(--accent);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.55;
}

.hero-logo {
  justify-self: end;
  width: min(100%, 280px);
  height: auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.section,
.legal-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 54px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-header h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-header p,
.page-title p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card,
.contact-list,
.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
}

.service-card:hover {
  border-color: rgba(237, 27, 47, 0.28);
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-section {
  padding-bottom: 80px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}

.contact-list div {
  padding: 22px;
  border-right: 1px solid var(--border);
}

.contact-list div:last-child {
  border-right: 0;
}

.contact-list dt {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 8px 0 0;
  font-weight: 700;
}

.legal-page {
  padding: clamp(56px, 8vw, 92px) 0 80px;
}

.page-title {
  max-width: 760px;
  margin-bottom: 30px;
}

.legal-content {
  max-width: 820px;
  padding: clamp(26px, 4vw, 42px);
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer p {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-list div {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .contact-list div:nth-child(2n) {
    border-right: 0;
  }

  .contact-list div:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1120px);
    padding-top: 54px;
  }

  .hero-logo {
    justify-self: start;
    width: 150px;
  }

  .section,
  .legal-page,
  .site-footer p {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 42px 0;
  }

  .service-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .contact-list div,
  .contact-list div:nth-child(2n),
  .contact-list div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .contact-list div:last-child {
    border-bottom: 0;
  }
}
