:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --ink: #1f2a2a;
  --muted: #66736d;
  --line: #ddd7cd;
  --primary: #0f766e;
  --primary-dark: #0a514c;
  --primary-soft: #e0f2ef;
  --accent: #b95f45;
  --accent-soft: #f7e5dd;
  --gold: #aa7a16;
  --gold-soft: #f8edcf;
  --blue: #386fa4;
  --blue-soft: #e6f0f8;
  --danger: #9d3d35;
  --shadow: 0 18px 42px rgba(45, 55, 51, 0.13);
  --radius: 8px;
  --space: clamp(16px, 2vw, 28px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.top-actions a {
  padding: 9px 10px;
  border-radius: 8px;
}

.top-actions a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.community-tabs {
  position: sticky;
  top: 72px;
  z-index: 19;
  display: flex;
  gap: 8px;
  padding: 10px clamp(18px, 4vw, 56px);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.community-tabs a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.community-tabs a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: #b8dfd8;
}

main {
  min-height: calc(100vh - 128px);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.wide-band {
  margin-inline: calc(50% - 50vw);
  padding: 48px max(16px, calc((100vw - 1180px) / 2));
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: stretch;
  gap: clamp(20px, 4vw, 48px);
  min-height: 520px;
  padding: clamp(26px, 4vw, 54px) 0 26px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.eyebrow {
  width: fit-content;
  padding: 7px 11px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #b7ded7;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.hero-media {
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img,
.image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

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

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

.button.secondary {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: #b8dfd8;
}

.button.ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.warning {
  color: #54380b;
  background: var(--gold-soft);
  border-color: #e2ca85;
}

.section {
  margin-top: 52px;
}

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

.section-header p {
  max-width: 680px;
  color: var(--muted);
}

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

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

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

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

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(45, 55, 51, 0.06);
}

.card.featured {
  background: linear-gradient(180deg, #ffffff 0%, #ecf8f5 100%);
  border-color: #a8d9d1;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.12);
}

.card p,
.muted {
  color: var(--muted);
}

.card .button {
  margin-top: auto;
}

.image-strip {
  height: 138px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #41504b;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.primary {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.badge.accent {
  color: #743823;
  background: var(--accent-soft);
}

.badge.gold {
  color: #684809;
  background: var(--gold-soft);
}

.badge.blue {
  color: #244f78;
  background: var(--blue-soft);
}

.badge.danger {
  color: #7d2c26;
  background: #f5dfdc;
}

.event-card {
  min-height: 280px;
}

.event-card .meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.price {
  color: var(--primary-dark);
  font-weight: 900;
}

.recommendation {
  border-left: 5px solid var(--primary);
}

.subscription-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  background: #102f2c;
  color: #fff;
  border-radius: var(--radius);
}

.subscription-banner p {
  color: #cfe4de;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 138px;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-group {
  display: grid;
  gap: 8px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-title {
  font-weight: 900;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  color: var(--muted);
}

.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 16px;
}

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

.field label {
  color: #475751;
  font-weight: 900;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.detail-panel,
.summary-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-panel {
  position: sticky;
  top: 138px;
  display: grid;
  gap: 14px;
}

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

.fact {
  padding: 13px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.fact strong {
  display: block;
}

.trust-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}

.coach-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
}

.avatar {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toggle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.segmented button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented button.active {
  color: #fff;
  background: var(--primary);
}

.map-placeholder {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.11) 1px, transparent 1px),
    #eef6f3;
  background-size: 54px 54px;
  border: 1px solid #bfdad4;
  border-radius: var(--radius);
}

.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--primary);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 900;
}

.wizard {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
}

.steps {
  display: grid;
  gap: 8px;
  align-self: start;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: var(--muted);
  font-weight: 800;
}

.step-button span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
}

.step-button.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.wizard-panel {
  min-height: 420px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wizard-fields {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.my-section {
  display: grid;
  gap: 12px;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty {
  padding: 24px;
  background: #fff;
  border: 1px dashed #c7beb0;
  border-radius: var(--radius);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 28, 26, 0.55);
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 340px;
  padding: 13px 15px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 980px) {
  .top-actions {
    display: none;
  }

  .community-tabs {
    top: 69px;
  }

  .hero,
  .detail-hero,
  .layout,
  .wizard {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 300px;
  }

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

  .filters,
  .summary-panel {
    position: static;
  }
}

@media (max-width: 660px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .page {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .community-tabs {
    top: 68px;
  }

  .grid.cards-5,
  .grid.cards-3,
  .grid.cards-2,
  .facts,
  .toolbar,
  .subscription-banner,
  .coach-card,
  .list-item {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .hero-media {
    min-height: 240px;
  }
}
