/* ===== Tokens ===== */
:root {
  --ink: #1B2420;
  --pine: #14453A;
  --pine-light: #2C6E5C;
  --paper: #F7F6F2;
  --mist: #E4EAE5;
  --clay: #B5542E;
  --clay-dark: #8F4223;
  --stone: #8B948C;
  --white: #FFFFFF;

  --font-display: 'Newsreader', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --max-width: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.dh-root {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

.dh-root * { box-sizing: border-box; }

.dh-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Utility bar ===== */
/* ===== Main header ===== */
.dh-header {
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 40;
}

.dh-header .dh-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.dh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.dh-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  flex-shrink: 0;
}

.dh-brand-text p:first-child {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.dh-brand-text p:last-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  margin: 0;
  letter-spacing: 0.03em;
}

.dh-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dh-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.dh-nav a:hover { color: var(--pine); }

.dh-cta-btn {
  background: var(--clay);
  color: var(--white);
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.dh-cta-btn:hover { background: var(--clay-dark); }

.dh-cta-ghost {
  border: 1px solid var(--pine);
  color: var(--pine);
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}

.dh-cta-ghost:hover { background: var(--mist); }

.dh-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
}

/* ===== Hero ===== */
.dh-hero {
  padding: 72px 0 88px;
}

.dh-hero .dh-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.dh-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay-dark);
  background: #F5E6DE;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.dh-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.dh-hero h1 em {
  font-style: italic;
  color: var(--pine);
}

.dh-hero p.dh-lead {
  font-size: 17px;
  color: #45524B;
  max-width: 46ch;
  margin: 0 0 32px;
}

.dh-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.dh-photo-frame {
  position: relative;
  background: var(--mist);
  border-radius: var(--radius);
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-photo-frame .dh-photo-placeholder {
  color: var(--stone);
  font-size: 72px;
}

.dh-badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(20, 69, 58, 0.16);
  max-width: 220px;
}

.dh-badge p:first-child {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--pine);
}

.dh-badge p:last-child {
  font-size: 12px;
  color: var(--stone);
  margin: 0;
}

/* ===== Sections ===== */
.dh-section {
  padding: 72px 0;
}

.dh-section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.dh-section-head .dh-eyebrow { margin-bottom: 14px; }

.dh-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.2;
}

.dh-section-head p {
  color: #45524B;
  font-size: 16px;
  margin: 0;
}

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

.dh-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 30px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 69, 58, 0.1);
  border-color: var(--pine-light);
}

.dh-card.dh-card-accent {
  border-color: var(--pine-light);
}

.dh-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pine-light);
  margin: 0 0 10px;
}

.dh-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px;
}

.dh-card p {
  color: #45524B;
  font-size: 15px;
  margin: 0;
}

/* ===== Symptom chips ===== */
.dh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.dh-chip {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
}

/* ===== Trust quote ===== */
.dh-quote {
  background: var(--pine);
  color: var(--paper);
  padding: 64px 0;
}

.dh-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  max-width: 760px;
  margin: 0 auto 20px;
  font-style: italic;
}

.dh-quote cite {
  display: block;
  text-align: center;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #9FC2B4;
}

/* ===== Closing CTA band ===== */
.dh-cta-band {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 44px;
  margin: 0 24px 72px;
  max-width: calc(var(--max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dh-cta-band h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
}

.dh-cta-band p {
  margin: 0;
  color: #45524B;
  font-size: 14px;
}

/* ===== Footer ===== */
.dh-footer {
  background: var(--ink);
  color: #B7C0BA;
  padding: 48px 0 28px;
}

.dh-footer .dh-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.dh-footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 18px;
  margin: 0 0 6px;
}

.dh-footer-col p {
  font-size: 13px;
  margin: 4px 0;
}

.dh-footer-col a {
  color: #B7C0BA;
  text-decoration: none;
  font-size: 13px;
  display: block;
  margin: 6px 0;
}

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

.dh-footer-bottom {
  border-top: 1px solid #2C3733;
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #6C766F;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .dh-nav { display: none; }
  .dh-menu-toggle { display: block; }
  .dh-hero .dh-wrap { grid-template-columns: 1fr; }
  .dh-photo-frame { max-width: 340px; margin: 0 auto; order: -1; }
  .dh-cards { grid-template-columns: 1fr; }
  .dh-cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .dh-nav.dh-nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    padding: 20px 24px 24px;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .dh-hero { padding: 48px 0 56px; }
  .dh-section { padding: 52px 0; }
  .dh-badge { position: static; margin-top: 14px; box-shadow: none; border: 1px solid var(--mist); }
}

/* ===== Trust note ===== */
.dh-trust {
  background: var(--white);
  border: 1px solid var(--mist);
  border-left: 3px solid var(--pine);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}

.dh-trust p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

/* ===== Symptom categories (grouped by body system) ===== */
.dh-symptom-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.dh-symptom-group {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 22px;
}

.dh-symptom-group h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--pine);
}

.dh-symptom-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dh-symptom-group li {
  font-size: 14px;
  color: #45524B;
  padding: 6px 0;
  border-top: 1px solid var(--mist);
}

.dh-symptom-group li:first-child { border-top: none; padding-top: 0; }

/* ===== FAQ ===== */
.dh-faq {
  max-width: 760px;
}

.dh-faq-item {
  border-bottom: 1px solid var(--mist);
  padding: 18px 0;
}

.dh-faq-item summary {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

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

.dh-faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--pine);
  flex-shrink: 0;
  margin-left: 12px;
}

.dh-faq-item[open] summary::after { content: '−'; }

.dh-faq-item p {
  font-size: 14px;
  color: #45524B;
  margin: 12px 0 0;
  line-height: 1.6;
}

/* ===== MCAS page hero (simpler than home hero) ===== */
.dh-page-hero {
  padding: 56px 0 40px;
}

.dh-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  margin: 14px 0 16px;
}

.dh-page-hero p {
  font-size: 16px;
  color: #45524B;
  max-width: 60ch;
  margin: 0;
}

@media (max-width: 860px) {
  .dh-symptom-groups { grid-template-columns: 1fr; }
}

/* ===== Active nav link ===== */
.dh-nav a.dh-nav-active {
  color: var(--pine);
  font-weight: 600;
}

/* ===== MCAS symptom form ===== */
.dh-symptom-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.dh-symptom-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--stone);
  padding: 8px 6px;
  border-bottom: 1px solid var(--mist);
}

.dh-symptom-table th.dh-radio-col {
  text-align: center;
  width: 70px;
}

.dh-symptom-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--mist);
  font-size: 14px;
}

.dh-symptom-table td.dh-radio-col {
  text-align: center;
}

.dh-symptom-table input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.dh-category-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--pine);
  margin: 24px 0 8px;
}

.dh-episode-q {
  margin-bottom: 24px;
}

.dh-episode-q label.dh-q-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.dh-radio-list, .dh-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dh-radio-list label, .dh-checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.dh-radio-list input, .dh-checkbox-list input {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .dh-symptom-table { font-size: 12px; }
  .dh-symptom-table th, .dh-symptom-table td { padding: 6px 3px; }
}

/* ===== Post grid (Aktualności) ===== */
.dh-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dh-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dh-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 69, 58, 0.1);
  border-color: var(--pine-light);
}

.dh-post-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--mist);
}

.dh-post-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-post-card-body {
  padding: 22px;
}

.dh-post-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  margin: 0 0 8px;
}

.dh-post-card-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.dh-post-card-body p {
  font-size: 14px;
  color: #45524B;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .dh-post-grid { grid-template-columns: 1fr; }
}
