:root {
  --bg: #f8f8fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-muted: #eef3fb;
  --surface-warm: #fff6f4;
  --text: #1d2433;
  --text-soft: #667085;
  --brand: #0038a8;
  --brand-soft: #2852b8;
  --accent: #d52b1e;
  --accent-soft: #ffe2df;
  --border: rgba(0, 56, 168, 0.1);
  --shadow: 0 18px 42px rgba(26, 44, 88, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(213, 43, 30, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

code {
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: #eef3fb;
  color: var(--brand);
  font-size: 0.92em;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 56, 168, 0.96), rgba(213, 43, 30, 0.92));
  color: #ffffff;
}

.hero--flag {
  background:
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.08), transparent 14%),
    linear-gradient(135deg, rgba(0, 56, 168, 0.98) 0%, rgba(0, 56, 168, 0.94) 52%, rgba(213, 43, 30, 0.9) 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.16), transparent 20%);
  pointer-events: none;
}

.hero--flag .hero__overlay {
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.08) 58% 62%, transparent 62% 100%),
    linear-gradient(120deg, transparent 0 63%, rgba(213, 43, 30, 0.12) 63% 68%, transparent 68% 100%),
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.08), transparent 10%),
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 52%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0.65rem 0 1.55rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0 0.8rem;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.topbar__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

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

.topbar__link {
  color: rgba(255, 250, 242, 0.8);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.language-switcher__button {
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.language-switcher__button.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(13, 30, 68, 0.16);
}

.badge,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.eyebrow {
  color: #f7b9b3;
  margin-bottom: 0.7rem;
}

.hero__grid {
  display: grid;
  gap: 1rem;
}

.hero__text h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4.3vw, 2.35rem);
  line-height: 1.03;
  max-width: 15ch;
}

.hero__lead {
  max-width: 32rem;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff8ef;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.hero__stats {
  display: grid;
  gap: 0.7rem;
}

.stat-card,
.step-card,
.helper-card,
.filters,
.modal__panel {
  backdrop-filter: blur(12px);
}

.stat-card {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
}

.stat-card__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-card__label {
  color: rgba(255, 250, 242, 0.8);
  font-size: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(213, 43, 30, 0.22);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button--small {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  font-size: 0.86rem;
}

.helper-card .button--ghost,
.modal-detail__contact .button--ghost {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid rgba(0, 56, 168, 0.14);
}

.helper-card__media {
  margin: -0.8rem -0.8rem 0.5rem;
  border-radius: 16px 16px 12px 12px;
  overflow: hidden;
  aspect-ratio: 16 / 6.2;
  background: linear-gradient(135deg, #dbe7ff, #f5f8ff);
}

.helper-card__image,
.modal-detail__image,
.provider-profile-card__image,
.admin-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.field__hint {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.image-upload-preview {
  margin-top: 0.6rem;
  width: min(100%, 420px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe7ff, #f5f8ff);
  aspect-ratio: 16 / 10;
}

.image-upload-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  padding: 3rem 0;
}

.section--compact {
  padding: 2rem 0 0.75rem;
}

.notice-banner {
  margin-bottom: 1.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(213, 43, 30, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7f6 0%, #fffdfd 100%);
  color: #7c2d26;
  line-height: 1.6;
}

.notice-banner--soft {
  border-color: rgba(0, 56, 168, 0.12);
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  color: var(--text);
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.results {
  color: var(--text-soft);
}

.steps {
  display: grid;
  gap: 1rem;
}

.quick-start-grid {
  margin-bottom: 1.15rem;
}

.step-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
}

.step-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.step-card--warning {
  border-color: rgba(213, 43, 30, 0.12);
  background: linear-gradient(180deg, #fffaf9 0%, #ffffff 100%);
}

.roadmap-card {
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.96));
  box-shadow: var(--shadow);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

.pricing-card {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow);
}

.pricing-card--popular {
  border-color: rgba(213, 43, 30, 0.18);
  background: linear-gradient(180deg, #fff8f6 0%, #ffffff 100%);
  box-shadow: 0 20px 40px rgba(213, 43, 30, 0.08);
}

.pricing-card--featured {
  border-color: rgba(213, 43, 30, 0.18);
  background: linear-gradient(180deg, #fff9f8 0%, #ffffff 100%);
}

.pricing-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d52b1e 0%, #0038a8 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.pricing-card__label,
.pricing-card__price {
  display: block;
}

.pricing-card__label {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card h3 {
  margin: 0.35rem 0 0.6rem;
}

.pricing-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.pricing-card__price {
  margin-top: 0.95rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.pricing-card__meta {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.package-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.package-cta {
  margin-top: 1rem;
}

.pricing-table-wrapper {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(0, 56, 168, 0.08);
  text-align: left;
}

.pricing-table th {
  background: #f4f8ff;
}

.pricing-table__plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.pricing-table__plan--free {
  background: #eef4ff;
  color: var(--brand-blue);
}

.pricing-table__plan--premium {
  background: linear-gradient(180deg, #fff4f2 0%, #fffdfd 100%);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(213, 43, 30, 0.12);
}

.pricing-table__plan--featured {
  background: linear-gradient(135deg, #d52b1e 0%, #0038a8 100%);
  color: #ffffff;
}

.pricing-table__badge {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4f2 0%, #fffdfd 100%);
  box-shadow: inset 0 0 0 1px rgba(213, 43, 30, 0.12);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.pricing-table__value {
  font-weight: 600;
}

.pricing-table__value--yes,
.pricing-table__value--strong {
  color: #0f5132;
}

.pricing-table__value--no {
  color: #8a94a6;
}

.pricing-table__value--featured {
  color: var(--brand);
  font-weight: 800;
}

.pricing-table__value--price,
.pricing-table__value--price-featured {
  font-size: 1.02rem;
  font-weight: 800;
}

.pricing-table__value--price-featured {
  color: var(--brand);
}

.pricing-table__row--highlight td {
  background: linear-gradient(180deg, #fffdfd 0%, #fff8f8 100%);
}

.pricing-table__row--price td {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.roadmap-card__header {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.roadmap-card__lead,
.roadmap-card__meta {
  margin: 0;
}

.roadmap-card__lead {
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
  font-size: 0.92rem;
}

.roadmap-card__meta {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.roadmap-progress {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.roadmap-progress__bar {
  overflow: hidden;
  width: min(100%, 260px);
  height: 10px;
  border-radius: 999px;
  background: #e9efff;
}

.roadmap-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 180ms ease;
}

.roadmap-list {
  display: grid;
  gap: 0.6rem;
}

.roadmap-item {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(0, 56, 168, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.roadmap-item__check {
  flex: 0 0 auto;
}

.roadmap-item__checkbox {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.roadmap-item__content {
  min-width: 0;
}

.roadmap-item__title,
.roadmap-item__description {
  margin: 0;
}

.roadmap-item__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.roadmap-item__description {
  margin-top: 0.2rem;
  color: var(--text-soft);
  line-height: 1.4;
  font-size: 0.84rem;
}

.roadmap-item__outcome {
  margin: 0.42rem 0 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.roadmap-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.roadmap-item--done {
  background: linear-gradient(180deg, #f7fbff 0%, #fdfefe 100%);
  border-color: rgba(0, 56, 168, 0.14);
}

.roadmap-item--done .roadmap-item__title {
  color: var(--brand);
}

.roadmap-summary {
  margin-top: 0.95rem;
}

.filters {
  display: grid;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.96));
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(20, 38, 31, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
}

.field input:focus,
.field select:focus {
  outline: 3px solid rgba(0, 56, 168, 0.12);
  border-color: rgba(0, 56, 168, 0.35);
}

.helpers-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.helper-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 16px 36px rgba(21, 42, 84, 0.08);
  position: relative;
}

.helper-card--premium {
  border-color: rgba(0, 56, 168, 0.24);
  box-shadow: 0 22px 48px rgba(18, 47, 109, 0.14);
}

.helper-card--featured {
  border-color: rgba(213, 43, 30, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 248, 247, 0.98) 0%, rgba(251, 252, 255, 0.98) 100%);
  box-shadow: 0 28px 60px rgba(163, 42, 31, 0.18);
}

.helper-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(213, 43, 30, 0.7), rgba(0, 56, 168, 0.6));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.favorite-button {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(0, 56, 168, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-soft);
  cursor: pointer;
}

.favorite-button.is-active {
  background: #fff1ef;
  color: var(--accent);
  border-color: rgba(213, 43, 30, 0.18);
}

.helper-card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem;
}

.helper-card__location,
.helper-card__languages,
.helper-card__summary {
  margin: 0;
}

.helper-card__type {
  margin: 0 0 0.2rem;
  color: var(--brand-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
}

.helper-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge--verified {
  background: #edf4ff;
  color: var(--brand);
}

.status-badge--free {
  background: #f2f5fb;
  color: #53627d;
}

.status-badge--premium {
  background: #eef3ff;
  color: #0f3e9a;
}

.status-badge--featured {
  background: linear-gradient(135deg, #d52b1e 0%, #0038a8 100%);
  color: #ffffff;
}

.helper-card__name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.helper-card__location,
.helper-card__languages,
.helper-card__summary {
  color: var(--text-soft);
  line-height: 1.32;
  font-size: 0.76rem;
}

.helper-card__location {
  margin-top: 0.12rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.helper-card__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.helper-card__meta-item {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: #f6f9ff;
  border: 1px solid rgba(0, 56, 168, 0.08);
}

.helper-card__meta-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-soft);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.helper-card__response-time,
.helper-card__member-since,
.helper-card__price-range,
.helper-card__main-service,
.helper-card__lead-count {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.helper-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.helper-card__actions .button {
  flex: 1 1 140px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip,
.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 600;
}

.price-pill {
  background: #e8efff;
  color: #1f46a4;
  font-size: 0.68rem;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.2;
}

.stars {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.empty-state {
  padding: 2rem 1.2rem;
  border: 1px dashed rgba(20, 38, 31, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-soft);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 15, 0.64);
}

.modal__panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(90vh, 860px);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.98);
  box-shadow: 0 30px 80px rgba(5, 23, 18, 0.32);
}

.modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-detail {
  display: grid;
  gap: 0.75rem;
}

.modal-detail__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
}

.modal-detail__image-wrap {
  margin-bottom: 0.45rem;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 6.8;
  background: linear-gradient(135deg, #dbe7ff, #f5f8ff);
}

.modal-detail__header h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
}

.modal-detail__description,
.modal-detail__info p {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.88rem;
}

.modal-detail__grid {
  display: grid;
  gap: 0.7rem;
}

.modal-detail__info {
  padding: 0.75rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.modal-detail__info h4 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.modal-detail__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modal-detail__notice {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: #fff8f7;
  border: 1px solid rgba(213, 43, 30, 0.12);
  color: #7c2d26;
  line-height: 1.45;
  font-size: 0.84rem;
}

.legal-grid {
  display: grid;
  gap: 1rem;
}

.legal-card {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.legal-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(0, 56, 168, 0.08);
}

.site-footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}

.site-footer__content p {
  margin: 0;
  max-width: 48rem;
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-footer__links a {
  color: var(--brand);
  font-weight: 600;
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(0, 56, 168, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  transform: translateY(-2px);
  background: var(--brand-soft);
  box-shadow: 0 16px 34px rgba(0, 56, 168, 0.28);
}

.hero--compact .hero__content {
  padding-bottom: 1.05rem;
}

.hero--compact .hero__text h1 {
  max-width: 18ch;
}

.form-layout {
  display: grid;
  gap: 1rem;
}

.form-layout--wide {
  grid-template-columns: 1fr;
}

.form-card {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow);
}

.submission-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(20, 38, 31, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  resize: vertical;
}

.field textarea:focus {
  outline: 3px solid rgba(0, 56, 168, 0.12);
  border-color: rgba(0, 56, 168, 0.35);
}

.consent-list {
  display: grid;
  gap: 0.75rem;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 56, 168, 0.08);
  border-radius: 16px;
  background: #ffffff;
}

.checkbox-row input {
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.form-feedback {
  margin: 0;
  color: var(--brand);
  font-weight: 600;
  line-height: 1.6;
}

.form-feedback--success {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4fff7 0%, #ffffff 100%);
  color: #166534;
}

.form-feedback--error {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(213, 43, 30, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff6f4 0%, #ffffff 100%);
  color: #9f1239;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.auth-layout {
  display: grid;
  gap: 1rem;
}

.auth-card {
  max-width: 620px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 0.8rem;
}

.admin-card {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow);
}

.admin-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-card__media,
.provider-profile-card__media {
  margin-bottom: 1rem;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dbe7ff, #f5f8ff);
}

.admin-card__header h3 {
  margin: 0;
}

.admin-card__grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-metrics {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.metric-card {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow);
}

.metric-card__value,
.metric-card__label {
  display: block;
}

.metric-card__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
}

.metric-card__label {
  margin-top: 0.35rem;
  color: var(--text-soft);
}

.admin-analytics-panel {
  margin-bottom: 1.4rem;
}

.provider-profile-list {
  display: grid;
  gap: 1rem;
}

.provider-dashboard-grid {
  margin-bottom: 1.4rem;
}

.provider-inquiry-list,
.provider-package-status {
  display: grid;
  gap: 1rem;
}

.provider-package-status .admin-card {
  height: 100%;
}

.provider-profile-card h3 {
  margin: 0.2rem 0 0.4rem;
}

.provider-profile-card .hero__actions {
  margin-top: 0.9rem;
}

.assistant-card,
.assistant-sidecard {
  align-self: start;
}

.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.assistant-prompt {
  border: none;
  cursor: pointer;
}

.assistant-chat {
  display: grid;
  gap: 0.9rem;
  max-height: 540px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.assistant-message {
  max-width: 90%;
  padding: 1rem 1rem 0.9rem;
  border-radius: 18px;
  line-height: 1.65;
}

.assistant-message p,
.assistant-message h3,
.assistant-message h4,
.assistant-message ul {
  margin-top: 0;
}

.assistant-message--assistant {
  justify-self: start;
  background: #ffffff;
  border: 1px solid rgba(0, 56, 168, 0.08);
}

.assistant-message--user {
  justify-self: end;
  background: #eef4ff;
  border: 1px solid rgba(0, 56, 168, 0.12);
}

.assistant-form {
  display: grid;
  gap: 1rem;
}

.assistant-bullets ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.assistant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.assistant-suggestions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.assistant-helper-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}

.assistant-helper-card h4,
.assistant-helper-card p {
  margin: 0.2rem 0;
}

.assistant-disclaimer {
  margin-top: 1rem;
  color: #7c2d26;
}

.assistant-sidecard__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.assistant-sidecard__list p {
  margin: 0;
}

.cta-panel {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow);
}

.cta-panel__text {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 700px) {
  .hero__grid,
  .steps,
  .helpers-grid,
  .modal-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .roadmap-card__header {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }

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

  .form-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

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

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

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

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

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

@media (min-width: 1100px) {
  .admin-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 1.25rem);
  }

  .container,
  .hero__grid,
  .hero__text,
  .hero__stats,
  .topbar,
  .topbar__links,
  .hero__actions,
  .trust-strip,
  .section-heading--row,
  .steps,
  .filters,
  .helpers-grid,
  .roadmap-card__header,
  .roadmap-item__content {
    min-width: 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .brand {
    display: block;
    width: 100%;
    max-width: none;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .topbar__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .topbar__links::-webkit-scrollbar {
    display: none;
  }

  .topbar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    white-space: normal;
  }

  .hero__content {
    padding-bottom: 1.8rem;
  }

  .hero__text h1 {
    max-width: 12ch;
    line-height: 1.08;
  }

  .hero__lead {
    width: 100%;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .trust-strip {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .trust-pill {
    justify-content: center;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .button,
  .roadmap-item__actions .button,
  .section-cta .button {
    width: 100%;
    min-width: 0;
  }

  .hero__stats,
  .stat-card {
    width: 100%;
    max-width: 100%;
  }

  .section-heading--row {
    align-items: start;
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .results {
    width: 100%;
  }

  .roadmap-card__header {
    gap: 0.75rem;
  }

  .helper-card {
    padding: 1rem;
  }

  .helper-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .price-pill {
    align-self: start;
  }

  .helper-card__trust {
    grid-template-columns: 1fr;
  }

  .modal__panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .pricing-table-wrapper {
    margin-inline: -0.35rem;
    padding-inline: 0.35rem;
  }
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.35fr 0.8fr;
    align-items: end;
  }

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

  .filters {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    align-items: end;
  }

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

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

  .modal-detail__grid {
    grid-template-columns: 1.2fr 0.9fr;
  }
}
