:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3f7;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dce3ea;
  --line-strong: #c8d2dc;
  --green: #0d7a68;
  --green-soft: #d9f3ec;
  --blue: #285cc4;
  --blue-soft: #e5edff;
  --red: #d85845;
  --yellow: #f2bd3a;
  --shadow: 0 18px 48px rgba(29, 41, 57, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  border-bottom: 1px solid rgba(220, 227, 234, 0.86);
  padding: 0 40px;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-action {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

main {
  min-height: 100vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.22;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
}

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

.primary {
  background: var(--ink);
  color: #fff;
}

.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-line span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-head p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.panel-head strong {
  font-size: 22px;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.score-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-muted);
}

.score-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score-row strong {
  font-size: 28px;
}

.platform-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.platform-row {
  display: grid;
  grid-template-columns: 112px 1fr 34px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

meter {
  width: 100%;
  height: 10px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: var(--surface-muted);
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: var(--blue);
}

.panel-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fbfcfe;
  color: var(--muted);
  line-height: 1.5;
}

.panel-note strong {
  color: var(--ink);
}

.section {
  padding: 76px 0;
}

.section-heading,
.service-grid,
.case-feature-grid,
.gallery-grid,
.package-grid,
.order-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.service-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

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

.service-card,
.case-card,
.package-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 220px;
  padding: 22px;
}

.service-card span {
  display: inline-grid;
  width: 36px;
  height: 30px;
  place-items: center;
  margin-bottom: 40px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.service-card p,
.case-card p,
.package-card p,
.package-card li,
.order-copy p:not(.eyebrow),
.form-status {
  color: var(--muted);
  line-height: 1.55;
}

.cases-section {
  background: var(--page);
}

.case-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.case-card {
  overflow: hidden;
}

.case-card img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: contain;
  padding: 12px;
  background: #fdfdfd;
  border-bottom: 1px solid var(--line);
}

.case-card div {
  padding: 18px;
}

.case-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.gallery-item span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(17, 24, 39, 0.84);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.packages-section {
  background: var(--surface);
}

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

.package-card {
  min-height: 310px;
  padding: 24px;
}

.package-card.accent {
  border-color: rgba(13, 122, 104, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf8 100%);
}

.package-card h3 {
  font-size: 32px;
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: start;
}

.order-copy {
  padding-top: 8px;
}

.compliance-note {
  margin-top: 24px;
  border: 1px solid rgba(216, 88, 69, 0.24);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 16px;
  background: #fff8f6;
  color: var(--muted);
  line-height: 1.55;
}

.compliance-note strong {
  color: var(--ink);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.lead-form textarea {
  min-height: 104px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 92, 196, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.estimate-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-muted);
  color: var(--muted);
  line-height: 1.45;
}

.estimate-panel strong {
  color: var(--ink);
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.72);
}

.modal.is-open {
  display: grid;
}

.modal-content {
  width: min(940px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.modal-title {
  margin: 0;
  font-weight: 900;
}

.modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
}

.modal-content img {
  width: 100%;
  background: #fff;
}

@media (max-width: 1060px) {
  .hero,
  .order-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel,
  .hero-copy {
    max-width: 760px;
  }

  .service-grid,
  .case-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-heading,
  .service-grid,
  .case-feature-grid,
  .gallery-grid,
  .package-grid,
  .order-section {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding: 42px 0 54px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-panel {
    padding: 16px;
  }

  .score-row,
  .service-grid,
  .case-feature-grid,
  .package-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 54px 0;
  }

  .platform-row {
    grid-template-columns: 92px 1fr 30px;
  }
}

@media (max-width: 430px) {
  .button,
  .nav-action {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }

  .nav-action {
    justify-self: stretch;
    text-align: center;
  }

  .hero-actions {
    display: grid;
  }

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