:root {
  --purple: #2c2664;
  --purple-dark: #211b55;
  --gold: #df9a16;
  --lavender: #f3f1fa;
  --paper: #fbfaf7;
  --white: #ffffff;
  --text: #302f3a;
  --muted: #676572;
  --line: #dedbe9;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

::selection { background: var(--gold); color: var(--purple-dark); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--purple);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img,
.footer-brand img { display: block; object-fit: contain; }

.header-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 19px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 750;
}

.hero {
  display: grid;
  min-height: calc(100vh - 82px);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { color: var(--purple); }

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.4rem, 6.3vw, 6.2rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.hero-text {
  max-width: 610px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid var(--purple);
  border-radius: 10px;
  background: var(--purple);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--gold); }
.helper-text { margin: 15px 0 0; color: var(--muted); font-size: 12px; }

.logo-panel {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: clamp(26px, 5vw, 58px);
  border-radius: 30px;
  background: var(--lavender);
}

.logo-panel img { display: block; width: min(100%, 500px); height: auto; }

.services { padding-block: 112px; border-top: 1px solid var(--line); }

.services h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.4rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

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

.service-grid article {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.service-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 900;
}

.service-grid h3 { margin: 54px 0 12px; font-size: 22px; letter-spacing: -0.035em; line-height: 1.1; }
.service-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  padding: clamp(42px, 7vw, 78px);
  border-radius: 24px;
  background: var(--purple);
  color: var(--white);
}

.eyebrow-light,
.contact h2 { color: var(--white); }

.contact > div > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: #e2dff2;
  font-size: 17px;
}

.contact-action { text-align: center; }
.button-gold { width: 100%; border-color: var(--gold); background: var(--gold); color: var(--purple-dark); }
.button-gold:hover { box-shadow: 5px 5px 0 var(--white); }
.contact :focus-visible { outline-color: var(--white); }
.contact-phone {
  display: inline-block;
  margin-top: 16px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact small { display: block; margin-top: 8px; color: #c6c1dd; font-size: 13px; line-height: 1.45; }

.footer {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 64px 88px; }
  .logo-panel { min-height: 440px; }
  .service-grid, .contact { grid-template-columns: 1fr; }
  .contact { gap: 42px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 72px; }
  .brand { font-size: 17px; }
  .brand img { width: 44px; height: auto; }
  .header-link { min-height: 44px; padding-inline: 15px; }
  .hero { padding-block: 52px 72px; }
  h1 { font-size: clamp(2.8rem, 13.5vw, 4rem); }
  .button { width: 100%; }
  .logo-panel { min-height: auto; padding: 26px; border-radius: 20px; }
  .services { padding-block: 78px; }
  .service-grid article { min-height: 240px; }
  .contact { width: 100%; padding: 52px 22px; border-radius: 0; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; padding-block: 32px; }
}

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