:root {
  --ink: #12202f;
  --ink-soft: #405161;
  --navy: #16324a;
  --teal: #21736f;
  --teal-dark: #135a56;
  --coral: #bd5748;
  --gold: #c89a37;
  --sand: #f5f1ea;
  --paper: #fffdf9;
  --mist: #e8f0ed;
  --line: #ded8cd;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(18, 32, 47, 0.12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(222, 216, 205, 0.8);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 42px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(18, 32, 47, 0.09);
  padding: 2px;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 650;
  padding: 10px 11px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--mist);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  color: var(--white) !important;
  background: var(--teal);
  padding: 10px 14px !important;
}

.nav-action:hover {
  background: var(--teal-dark) !important;
}

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

.menu-toggle svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 72vh, 650px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 32, 47, 0.82) 0%, rgba(18, 32, 47, 0.56) 38%, rgba(18, 32, 47, 0.16) 68%, rgba(18, 32, 47, 0.02) 100%),
    url("core-community-hero.webp") center 62% / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(18, 32, 47, 0.32), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 900px);
  margin-inline: max(20px, calc((100vw - var(--container)) / 2));
  padding-block: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.8vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  line-height: 1.05;
}

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

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.section-lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  padding: 12px 18px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
}

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

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button-outline {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-outline:hover {
  border-color: var(--teal);
}

.section {
  padding-block: clamp(58px, 9vw, 104px);
}

.section-tight {
  padding-block: clamp(42px, 7vw, 72px);
}

.section-muted {
  background: var(--sand);
}

.section-teal {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--navy));
}

.section-teal h2,
.section-teal h3 {
  color: var(--white);
}

.section-teal .section-lead,
.section-teal p,
.section-teal li {
  color: rgba(255, 255, 255, 0.84);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-header > div {
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(18, 32, 47, 0.05);
}

.card p,
.card li {
  color: var(--ink-soft);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--teal);
  background: #e5f0ec;
  border-radius: var(--radius);
}

.icon-box svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 34px);
}

.fact-list,
.check-list,
.rule-list,
.policy-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.rule-list li,
.policy-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before,
.rule-list li::before,
.policy-list li::before {
  position: absolute;
  left: 0;
  top: 0.08rem;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  content: "✓";
  font-size: 0.74rem;
  font-weight: 900;
}

.rule-list li::before {
  background: var(--coral);
}

.policy-list li::before {
  background: var(--navy);
}

.fact-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.fact-list li:last-child {
  border-bottom: 0;
}

.fact-label {
  color: var(--ink-soft);
  font-weight: 750;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
}

.price-card.featured {
  border-color: rgba(33, 115, 111, 0.42);
  box-shadow: 0 22px 56px rgba(33, 115, 111, 0.16);
}

.price-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--teal-dark);
  background: #e5f0ec;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 18px;
}

.price strong {
  font-size: clamp(2.1rem, 4vw, 3.05rem);
  line-height: 1;
}

.price span {
  color: var(--ink-soft);
  font-weight: 750;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.placeholder-note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  word-break: break-word;
}

.placeholder-note code,
.inline-placeholder {
  color: var(--coral);
  background: #fff2ed;
  border: 1px solid #f0c8bd;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: normal;
}

.contact-link {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(33, 115, 111, 0.3);
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: var(--coral);
  text-decoration-color: rgba(189, 87, 72, 0.42);
}

.site-footer .contact-link {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.32);
}

.site-footer .contact-link:hover {
  color: var(--gold);
  text-decoration-color: rgba(200, 154, 55, 0.52);
}

.alert {
  border: 1px solid rgba(189, 87, 72, 0.28);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius);
  background: #fff8f4;
  padding: 24px;
}

.alert h2,
.alert h3 {
  margin-bottom: 12px;
}

.steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 62px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 32, 47, 0.82), rgba(18, 32, 47, 0.56) 56%, rgba(18, 32, 47, 0.22)),
    url("core-community-hero.webp") center 62% / cover no-repeat;
}

.page-hero .container {
  padding-block: clamp(72px, 12vw, 124px);
}

.page-hero .section-lead {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 750;
}

.legal-block {
  display: grid;
  gap: 18px;
}

.address {
  white-space: pre-line;
}

.form {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
}

.field textarea {
  min-height: 136px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  color: var(--teal-dark);
  font-weight: 750;
}

.policy-content {
  display: grid;
  gap: 24px;
}

.policy-company {
  margin: 18px 0 20px;
}

.policy-content h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.policy-content p {
  color: var(--ink-soft);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #101d2b;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 52px;
  padding-block: 42px;
}

.footer-brand {
  max-width: 560px;
}

.footer-brand p {
  margin-bottom: 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.footer-logo {
  width: 118px;
  height: auto;
  margin-bottom: 16px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.footer-contact {
  margin-top: 10px;
}

.footer-nav {
  justify-self: end;
  width: min(100%, 380px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 16px;
  font-size: 0.86rem;
}

@media (max-width: 1020px) {
  .nav-links {
    position: fixed;
    inset: 90px 16px auto;
    display: none;
    max-height: calc(100vh - 108px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .menu-toggle {
    display: grid;
  }

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

  .split,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-self: stretch;
  }
}

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

  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 610px;
    background-position: 58% 62%;
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    margin-inline: 14px;
    padding-block: 28px;
  }

  .hero .lead {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.12rem, 9.5vw, 2.85rem);
  }

  .button-row {
    margin-top: 24px;
  }

  .section-header {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-row {
    grid-template-columns: 1fr;
  }

  .fact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .card,
  .price-card,
  .info-panel {
    padding: 22px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .footer-main {
    gap: 28px;
    padding-block: 36px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .nav-links {
    inset: 82px 14px auto;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.96rem;
  }

  .brand-logo {
    width: 42px;
    height: 38px;
  }

  .hero {
    min-height: 610px;
  }
}
