:root {
  --bg: #f9fbf3;
  --surface: #ffffff;
  --surface-soft: #f1f8e6;
  --text: #161b2f;
  --muted: #5c6678;
  --line: #dde7d5;
  --primary: #4650ff;
  --primary-dark: #3038d7;
  --primary-soft: #eef0ff;
  --lime: #c8ff00;
  --lime-soft: #f3ffd1;
  --accent: #9be600;
  --genus: #4d2ffd;
  --shadow: 0 18px 42px rgba(33, 38, 116, 0.09);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 104px;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 251, 243, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(33, 38, 116, 0.06);
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(70, 80, 255, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle span + span {
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--lime-soft);
  color: var(--primary-dark);
}

.section {
  padding: 84px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: 58px;
  background:
    linear-gradient(180deg, #ffffff 0, rgba(243, 255, 209, 0.52) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 52px;
  align-items: center;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(2.55rem, 5.8vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.34;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.48;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 13px 20px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.primary-button {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(70, 80, 255, 0.2);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--primary-dark);
}

.secondary-button {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--lime-soft);
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(200, 255, 0, 0.18), rgba(238, 240, 255, 0.78)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.visual-logo-card {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(22, 27, 47, 0.06);
  overflow: hidden;
}

.visual-logo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.visual-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.visual-summary span {
  border: 1px solid rgba(70, 80, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 14px;
}

.two-column,
.solution-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}

.text-block p,
.section-text,
.narrow-content p,
.contact-intro,
.solution-card p {
  color: var(--muted);
  font-size: 1.04rem;
}

.text-block p:last-child,
.narrow-content p:last-child,
.contact-intro:last-child,
.solution-card p:last-child {
  margin-bottom: 0;
}

.muted-section {
  background: linear-gradient(180deg, #f6fbef, var(--surface-soft));
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

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

.service-card {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(33, 38, 116, 0.04);
  padding: 20px;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.solution-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.solution-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.solution-brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(77, 47, 253, 0.16);
}

.solution-kicker {
  margin-bottom: 4px;
  color: var(--genus);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-card h3 {
  font-size: 1.55rem;
}

.solution-card .button {
  margin-top: 8px;
}

.narrow-content {
  max-width: 820px;
}

.contact-card {
  font-style: normal;
}

.contact-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.contact-card strong {
  color: var(--text);
}

.contact-card a:not(.button) {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card .button {
  margin-top: 12px;
}

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

.footer-content {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-page {
  background:
    linear-gradient(180deg, #ffffff 0, rgba(243, 255, 209, 0.4) 38%, var(--bg) 100%);
}

.legal-hero {
  padding-bottom: 42px;
}

.legal-hero-content {
  max-width: 860px;
}

.legal-hero h1 {
  max-width: 860px;
  margin-bottom: 12px;
}

.legal-updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.legal-section {
  padding-top: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
}

.legal-aside a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  font-weight: 800;
  padding: 12px 14px;
  text-decoration: none;
}

.legal-aside a:hover,
.legal-aside a:focus-visible {
  background: var(--lime-soft);
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.legal-card h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
}

.legal-card h2:first-of-type {
  margin-top: 30px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 1.02rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid rgba(200, 255, 0, 0.72);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .solution-grid,
  .contact-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .legal-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  [id] {
    scroll-margin-top: 86px;
  }

  .header-content {
    min-height: 70px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    padding: 10px;
  }

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

  .service-card {
    min-height: 128px;
  }

  .solution-card,
  .contact-card {
    padding: 22px;
  }
}
