:root {
  --bg: #f6f8fb;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #e2e8f0;
  --header: #005b84;
  --accent: #ff6a3d;
  --accentHover: #e85b32;
  --success: #16a34a;
  --danger: #dc2626;
  --headerActive: #2f88b1;
  --headerActiveHover: #27789d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.main {
  padding: 1.25rem 0 3rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 0.75rem;
}

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

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.text-content,
.post-body {
  line-height: 1.7;
}

.post-body ul,
.post-body ol,
.card ul,
.card ol {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.section,
.services,
.cta,
.quiz {
  padding: 1rem 0;
}

.hero,
.hero-section {
  padding: 1.5rem 0 1rem;
}

.hero.compact {
  padding-bottom: 0.5rem;
}

.hero p {
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.brand-icon {
  width: 95px;
  height: 95px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  grid-column: 1 / -1;
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
}

.header-inner.nav-open .site-nav {
  display: flex;
}

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: "";
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  padding: 0.42rem 0.65rem;
  border-radius: 0.6rem;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.is-active {
  color: #fff;
  background: var(--headerActive);
}

.site-footer {
  margin-top: 2rem;
  background: var(--header);
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 0;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-nav a:hover {
  color: #fff;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.62rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary,
.button,
button.button,
button.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.button:hover,
button.button:hover,
button.btn-primary:hover {
  background: var(--accentHover);
  border-color: var(--accentHover);
}

.btn-ghost,
.button.ghost {
  background: var(--headerActive);
  color: #fff;
  border-color: var(--headerActive);
}

.btn-ghost:hover,
.button.ghost:hover {
  background: var(--headerActiveHover);
  border-color: var(--headerActiveHover);
  color: #fff;
}

.grid-2,
.grid-3,
.cards {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.card,
.cards > li,
details.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.cards > li {
  display: flex;
  flex-direction: column;
}

.cards > li .button,
.cards > li .btn {
  margin-top: auto;
  align-self: flex-start;
}

.pricing-grid .featured {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(255, 106, 61, 0.2);
}

.faq-list {
  gap: 0.7rem;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  margin-bottom: 0.6rem;
}

.lead-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

label {
  display: block;
  font-weight: 500;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.38rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.62rem 0.75rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.16);
}

label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

label.checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.18rem;
}

.notice,
.message {
  margin: 0.7rem 0;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  background: #fff;
}

.notice.success,
.message.success {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
  color: #0f6b31;
}

.notice.error,
.notice.danger,
.message.error,
.message.danger {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quiz-step,
.quiz-result,
.quiz-thanks {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 1rem;
}

.quiz-progress {
  margin: 0;
  color: var(--muted);
}

.quiz-options {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  background: #fff;
}

.quiz-option input {
  width: auto;
  margin: 0;
}

@media (min-width: 768px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn,
  .hero-actions .button {
    width: auto;
  }

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

@media (min-width: 920px) {
  .main {
    padding-top: 1.5rem;
  }

  .section,
  .services,
  .cta,
  .quiz {
    padding: 1.25rem 0;
  }

  .hero,
  .hero-section {
    padding-top: 2rem;
  }

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