:root {
  --ink: #07142c;
  --muted: #5f6b82;
  --blue: #244fae;
  --blue-2: #173889;
  --sky: #36afe3;
  --red: #ed1f2f;
  --paper: #f5f8ff;
  --card: #ffffff;
  --line: rgba(7, 20, 44, 0.12);
  --shadow: 0 24px 70px rgba(20, 52, 122, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(54, 175, 227, 0.32), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(237, 31, 47, 0.14), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 72%, #eef5ff 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(120deg, rgba(36, 79, 174, 0.08), transparent 34%);
}

a {
  color: inherit;
}

.site-header,
.hero,
.section,
footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-2);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center 43%;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(36, 79, 174, 0.18);
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

nav a,
footer a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--blue);
  background: rgba(36, 79, 174, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 52px;
  align-items: center;
  padding: 64px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(237, 31, 47, 0.18);
  border-radius: 999px;
  color: var(--red);
  background: rgba(237, 31, 47, 0.07);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

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

.lead,
.section p,
address {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lead {
  max-width: 640px;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(36, 79, 174, 0.25);
}

.button.secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: auto -18% -42% 12%;
  height: 58%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--red));
  opacity: 0.18;
  transform: rotate(-8deg);
}

.hero-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  justify-self: center;
  border-radius: 26px;
}

.hero-card div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-card span {
  padding: 14px 12px;
  border-radius: 16px;
  color: #fff;
  background: var(--blue-2);
  font-size: 0.95rem;
  font-weight: 850;
  text-align: center;
}

.hero-card span:nth-child(2) {
  background: var(--sky);
}

.hero-card span:nth-child(3) {
  background: var(--red);
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
}

.text-stack {
  display: grid;
  gap: 14px;
}

.text-stack p,
.legal-card p {
  margin-bottom: 0;
}

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

.cards article,
.contact,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 44px rgba(7, 20, 44, 0.08);
}

.cards article {
  padding: 26px;
}

.cards article::before {
  content: '';
  display: block;
  width: 44px;
  height: 7px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--red));
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 34px;
  padding: 34px;
}

address {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-style: normal;
}

address a {
  color: var(--blue);
  font-weight: 900;
}

.legal-page {
  min-height: calc(100vh - 178px);
}

.legal-card {
  max-width: 860px;
  padding: 38px;
}

.muted {
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .split,
  .cards,
  .contact,
  footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-header,
  footer {
    gap: 16px;
  }

  nav {
    justify-self: start;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .hero {
    gap: 32px;
    padding: 42px 0 58px;
  }

  .section {
    padding: 42px 0;
  }

  .contact,
  .legal-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .brand span {
    max-width: 180px;
  }

  .hero-card div {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
