/* Page-specific styles */
.lead {
  color: var(--muted-text);
  margin-top: 0.05rem;
  margin-bottom: 0.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-header h1 {
  font-size: clamp(1.95rem, 4vw, 2.65rem);
  color: #ffffff;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  
}

.header-details {
  width: 100%;
}

h2 {
  width: 100%;
  color: #232d1f;
  padding: 0.7rem 0.8rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion {
  margin-bottom: 0.8rem;
}

.accordion-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(48, 61, 41, 0.45);
  background: linear-gradient(145deg,  rgba(40, 49, 47, 0.94), rgba(170, 183, 74, 0.96));
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(16, 24, 13, 0.24);
  color: #fff67a;
}

.accordion-header:hover {
  background: linear-gradient(145deg, rgba(247, 232, 131, 0.98), rgba(233, 215, 97, 0.98));
  border: 2px solid rgba(89, 220, 216, 0.7);
  box-shadow: 0 10px 24px rgba(15, 24, 12, 0.26);
  color: #1f281d;
}

.accordion.active .accordion-header {
  background: linear-gradient(145deg, rgba(53, 75, 48, 0.98), rgba(43, 56, 44, 0.96));
  border: 1px solid #dbc740;
  color: #f4e898;
  box-shadow: 0 10px 24px rgba(9, 16, 8, 0.4);
}
.triangle {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.76rem;
  color: #c7bb52;
}
.accordion.active .triangle {
  color: #f5e682;
  transform: rotate(90deg);
}
.nested-accordion {
  --nested-60: rgba(249, 237, 156, 0.95);
  --nested-30: rgba(241, 224, 110, 0.97);
  --nested-30-hover: rgba(248, 232, 132, 0.98);
  --nested-10: #24301f;
  margin-top: 0rem;
  margin-bottom: 0.42rem;
}
.nested-accordion-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--nested-30);
  color: #28231d;
  padding: 0.56rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(60, 74, 50, 0.5);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  margin: 0;
}
.nested-accordion-header:hover {
  background: var(--nested-30-hover);
  box-shadow: 0 6px 14px rgba(16, 24, 13, 0.24);
  border: 1px solid rgba(52, 65, 43, 0.68);
}
.nested-accordion-header .triangle {
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--nested-10);
}

.nested-accordion-header:hover .triangle {
  color: var(--nested-10);
}
.nested-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.24s ease;
  opacity: 0;
  padding: 0;
}
.nested-accordion-content > p,
.nested-accordion-content > ul {
  background: rgba(249, 237, 156, 0.78);
  padding: 0.78rem 0.84rem;
  border-radius: 8px;
  color: #20291b;
  margin: 0;
  border-left: 4px solid var(--nested-10);
  box-shadow: inset 0 0 0 1px rgba(77, 93, 64, 0.2);
}
.nested-accordion-content > ul {
  padding-left: 1.5rem;
}
.nested-accordion-content > ul li {
  color: #20291b;
  margin-bottom: 0.25rem;
}

.nested-accordion-content a {
  color: var(--nested-10);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nested-accordion-content a:hover {
  color: #151d13;
  text-decoration: underline;
}

.nested-accordion.active .nested-accordion-content {
  max-height: 300px;
  padding-top: 0.5rem;
  opacity: 1;
}

.nested-accordion.active .nested-accordion-header {
  background: linear-gradient(145deg, rgba(255, 170, 0, 0.98), rgba(230, 144, 24, 0.98));
  border: 1px solid rgba(218, 199, 72, 0.85);
  box-shadow: 0 8px 18px rgba(8, 15, 7, 0.35);
  color: var(--nested-10);
}

.nested-accordion.active .nested-accordion-header .triangle {
  color: var(--nested-10);
}

.nested-accordion.active .nested-accordion-header .triangle {
  transform: rotate(-90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.26s ease;
  opacity: 0;
  background: transparent;
  border: none;
  margin-top: 0;
  border-radius: 0;
  padding: 0 0.85rem;
}

.accordion.active .accordion-content {
  max-height: 1000px;
  opacity: 1;
  padding: 0.82rem 0.85rem 0.9rem;
}

.accordion:first-of-type .accordion-content > p {
  background: rgba(249, 237, 156, 0.78);
  border: none;
  border-left: 4px solid #24301f;
  padding: 0.84rem;
  border-radius: 8px;
  color: #20291b;
  box-shadow: inset 0 0 0 1px rgba(77, 93, 64, 0.2);
  margin: 0 0 0.5rem 0;
}

.accordion:first-of-type .accordion-content > p:last-child {
  margin-bottom: 0;
}

.accordion-content > ul {
  background: rgba(249, 237, 156, 0.78);
  border: none;
  border-left: 4px solid #24301f;
  padding: 0.84rem 0.84rem 0.84rem 1.5rem;
  border-radius: 8px;
  color: #20291b;
  box-shadow: inset 0 0 0 1px rgba(77, 93, 64, 0.2);
  margin: 0;
}

.accordion-content > ul li {
  color: #20291b;
  margin-bottom: 0.25rem;
}

.accordion-content > ul li:last-child {
  margin-bottom: 0;
}

.contact-form {
  margin-top: 0.35rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #293322;
}

.required {
  color: #ffabab;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.58rem 0.65rem;
  border: 1px solid rgba(70, 86, 58, 0.4);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(251, 241, 176, 0.8);
  color: #1e271c;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2b3824;
  box-shadow: 0 0 0 2px rgba(43, 56, 36, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 105px;
}

.submit-btn {
  background: linear-gradient(140deg, #f1df6f, #ddc84b);
  color: #1f281d;
  padding: 0.62rem 1.45rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submit-btn:hover {
  background: linear-gradient(140deg, #f6e989, #e5d562);
  box-shadow: 0 8px 16px rgba(16, 24, 13, 0.25);
  transform: translateY(-1px);
}

@media (min-width: 700px) {
  .site-header h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 640px) {
  .site-header h1 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 0.9rem;
    line-height: 1.35;
    margin-top: 0.15rem;
  }

  .accordion {
    margin-bottom: 0.65rem;
  }

  .accordion-header,
  h2 {
    padding: 0.62rem 0.72rem;
    font-size: 1rem;
  }

  .nested-accordion-header {
    font-size: 0.9rem;
    padding: 0.5rem 0.62rem;
  }

  .accordion-content {
    padding: 0 0.55rem;
  }

  .accordion.active .accordion-content {
    max-height: 2500px;
    padding: 0.72rem 0.55rem 0.82rem;
  }

  .nested-accordion.active .nested-accordion-content {
    max-height: 900px;
  }

  .accordion:first-of-type .accordion-content > p,
  .accordion-content > ul,
  .nested-accordion-content > p,
  .nested-accordion-content > ul {
    padding: 0.72rem 0.76rem;
  }

  .accordion-content > ul,
  .nested-accordion-content > ul {
    padding-left: 1.25rem;
  }

  .submit-btn {
    width: 100%;
  }
}
