:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5f6b76;
  --line: #d8ded5;
  --brand: #176b53;
  --brand-strong: #0f513e;
  --accent: #c47a2c;
  --danger: #9f2f2f;
  --shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, #fffdf7 0%, #e8f2ec 54%, #f4ebe1 100%);
  border-bottom: 1px solid var(--line);
}

.header-layout {
  min-height: 260px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.03;
}

.intro {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.access-panel {
  width: min(330px, 100%);
  flex: 0 0 330px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 222, 213, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.access-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.access-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.main-content {
  padding: 34px 0 56px;
}

.private-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
}

.private-note strong {
  display: block;
  margin-bottom: 2px;
}

.private-note p {
  margin: 0;
  color: var(--muted);
}

.section {
  margin-top: 30px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

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

.category-block {
  margin-top: 22px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.category-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.card {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.25;
}

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

.meta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf5f0;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-actions {
  margin-top: auto;
  display: flex;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--brand-strong);
}

.button-link:focus-visible {
  outline: 3px solid rgba(196, 122, 44, 0.45);
  outline-offset: 3px;
}

.unavailable {
  border-color: #ead2d2;
}

.unavailable .meta {
  background: #f8eded;
  color: var(--danger);
}

.unavailable-note {
  margin-top: auto;
  color: var(--danger);
  font-weight: 700;
}

.empty-message,
.status-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.status-panel {
  margin-top: 24px;
  border-color: #ead2d2;
  color: var(--danger);
}

@media (max-width: 860px) {
  .header-layout {
    display: block;
  }

  .access-panel {
    width: 100%;
    margin-top: 24px;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 6px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-layout {
    min-height: 220px;
    padding: 34px 0;
  }

  .private-note {
    display: block;
  }

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

  .card {
    min-height: 0;
  }
}
