:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-blue: #edf4fb;
  --text: #0c172b;
  --muted: #526175;
  --line: #d7e1ec;
  --blue: #155dc7;
  --blue-dark: #0c3f8f;
  --steel: #31445f;
  --blue-soft: #e7f0fb;
  --shadow: 0 24px 70px rgba(25, 58, 99, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
  font-family: "Inter", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 16px max(16px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 253, 0.94);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(12, 23, 43, 0.06);
}

.brand,
.nav,
.hero-actions,
.trust-row,
.panel-top,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(12, 63, 143, 0.22);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-cta,
.button {
  border-radius: 8px;
  font-weight: 800;
}

.header-cta {
  padding: 11px 16px;
  color: #ffffff;
  border: 1px solid var(--blue);
  background: var(--blue);
}

.hero,
.section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 64px;
  padding: 70px 0 38px;
}

.hero-copy,
.hero-panel {
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 5vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-text,
.section-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(21, 93, 199, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--blue);
  border: 1px solid var(--line);
  background: var(--surface);
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span,
.package-label {
  border-radius: 999px;
  font-weight: 750;
}

.trust-row span {
  padding: 8px 12px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(21, 93, 199, 0.09), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-brand strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.panel-brand p {
  margin: 0;
  color: var(--muted);
}

.panel-top {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-top p {
  margin: 0;
  color: var(--blue);
  font-weight: 850;
}

.panel-top span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.hero-panel ul {
  margin-top: 22px;
}

.section {
  padding: 48px 0;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 26px;
}

.pricing-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

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

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

.pricing-card,
.feature-grid article,
.work-card,
.contact-card,
.contact-faq article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(25, 58, 99, 0.05);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 22px;
}

.pricing-card.featured {
  border-color: rgba(21, 93, 199, 0.35);
  background: linear-gradient(180deg, var(--surface-blue), #ffffff 58%);
}

.pricing-card h3 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.pricing-card h3 span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}

.package-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 24px;
  padding: 7px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.8rem;
}

.pricing-card p,
.feature-grid p,
.contact-card p,
.contact-faq p {
  color: var(--muted);
  line-height: 1.65;
}

.pricing-card small {
  display: block;
  margin: auto 0 18px;
  padding-top: 16px;
  color: var(--blue-dark);
  font-weight: 750;
}

.pricing-card .button {
  width: 100%;
}

.pricing-note {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-blue);
  font-size: 0.92rem;
  line-height: 1.6;
}

.work-section {
  padding-top: 36px;
}

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

.work-card {
  overflow: hidden;
  padding: 22px;
}

.work-preview {
  display: block;
  margin: -22px -22px 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-blue);
}

.work-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 180ms ease;
}

.work-card:hover .work-preview img {
  transform: scale(1.02);
}

.work-type {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.work-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.work-card p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.work-card a {
  color: var(--blue);
  font-weight: 800;
}

.work-card a:hover {
  color: var(--blue-dark);
}

.legal-page {
  padding-top: 34px;
}

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

.legal-content h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.18;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--blue);
  font-weight: 800;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.privacy-summary,
.legal-grid article,
.legal-panel,
.legal-contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(25, 58, 99, 0.05);
}

.privacy-summary {
  padding: 22px;
  background: var(--surface-blue);
}

.privacy-summary strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.05rem;
}

.privacy-summary ul {
  margin-top: 0;
}

.legal-panel {
  padding: 28px;
}

.privacy-block + .privacy-block {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.privacy-block h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.privacy-block p + p {
  margin-top: 10px;
}

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

.legal-grid article {
  padding: 22px;
}

.legal-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-grid h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.legal-contact {
  margin-top: 18px;
  padding: 22px;
  background: var(--surface-blue);
}

.legal-contact h2 {
  margin-top: 0;
}

ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid article {
  min-height: 210px;
  padding: 22px;
  text-align: center;
}

.feature-grid span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(21, 93, 199, 0.16);
  font-size: 1.08rem;
  font-weight: 850;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-card {
  margin-top: 24px;
  padding: 22px;
  background: var(--surface-blue);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.contact-faq {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.contact-faq article {
  padding: 18px;
}

.contact-faq h3 {
  margin-bottom: 6px;
}

.contact-faq p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 132px;
  padding: 12px;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(21, 93, 199, 0.16);
  border-color: var(--blue);
}

.full-field {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.contact-form .button {
  border: 0;
  cursor: pointer;
}

.contact-form .button:hover {
  background: var(--blue-dark);
}

.contact-form .button:focus-visible,
.button:focus-visible,
.header-cta:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(21, 93, 199, 0.25);
  outline-offset: 3px;
}

.contact-form button.full-field {
  width: 100%;
}

.contact-form .button-primary {
  color: #ffffff;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #14532d;
}

.form-status.is-error {
  color: #b42318;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 44px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .contact-section,
  .legal-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding-top: 58px;
  }

  .pricing-grid,
  .feature-grid,
  .work-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-text,
  .section-intro {
    font-size: 1rem;
  }

  .section {
    padding: 54px 0;
  }

  .hero-panel {
    padding: 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
