/* ─── Общие сбросы ─────────────────────────────────────── */
  
body {
  margin:  0;
  padding: 0;
  font-family: Inter, "Source Sans Pro", sans-serif;
}

/* убираем стандартные отступы Quarto вокруг контента */
  #quarto-content {
  padding: 0 !important;
  margin:  0 !important;
  max-width: 100% !important;
}

/* ─── HERO ─────────────────────────────────────────────── */
  
  #hero {
  position:            relative;
  width:               100%;
  height:              50vh;
  background-image:    url("images/hero.jpg");
  background-size:     cover;
  background-position: center;
  display:             flex;
  align-items:         center;
  justify-content:     center;
}

/* затемняющий оверлей поверх фото */
  #hero-overlay {
  position:         absolute;
  inset:            0;
  background-color: rgba(0, 0, 0, 0.3);
  display:          flex;
  align-items:      center;
  justify-content:  center;
  text-align:       center;
  padding:          0 2rem;
}

#hero-text {
color:     #ffffff;
  max-width: 800px;
}

.hero-title {
  font-size:   2.8rem;
  font-weight: 700;
  margin:      0 0 0.5rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

#hero-text p {
  font-size:   1.2rem;
  font-weight: 400;
  margin:      0;
  opacity:     1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* подпись к фото — правый нижний угол */
#hero-credit {
  position:  absolute;
  bottom:    0.6rem;
  right:     0.8rem;
  color:     rgba(255, 255, 255);
  font-size: 0.72rem;
  z-index:   10;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ─── HIGHLIGHTS ────────────────────────────────────────── */
  
#highlights {
  display:          flex;
  justify-content:  center;
  gap:              1.5rem;
  padding:          2rem 3rem;
  background-color: #f8f9fa;
}

.highlight-card {
  flex:             1;
  max-width:        220px;
  background:       #ffffff;
  border-radius:    12px;
  box-shadow:       0 2px 12px rgba(0, 0, 0, 0.08);
  padding:          1.4rem 1rem;
  text-align:       center;
  display:          flex;
  flex-direction:   column;
  align-items:      center;
  gap:              0.4rem;
  transition:       transform 0.2s, box-shadow 0.2s;
}

.highlight-card:hover {
  transform:  translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.highlight-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.highlight-value {
  font-size:   1.9rem;
  font-weight: 700;
  color:       #2c6e49;
  line-height: 1;
}

.highlight-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.highlight-icon {
  font-size: 1.8rem;
  line-height: 1;
  color: #2c6e49;
}

/* ─── CONTENT ───────────────────────────────────────────── */

#content {
  display:          flex;
  align-items:      center;
  justify-content:  center;
  padding:          2rem 3rem;
  background-color: #ffffff;
  min-height:       18vh;
}

#content-inner {
  max-width:   800px;
  text-align:  center;
  font-size:   1.05rem;
  line-height: 1.7;
  color:       #343a40;
}

/* контейнер кнопок */
#content-buttons {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             1rem;
  margin-top:      1.2rem;
  flex-wrap:       wrap;   /* на узких экранах кнопки переносятся */
}

#content-buttons p {
  margin: 0;
}

/* ── общие свойства обеих кнопок ── */
.btn-primary-cta,
.btn-outline-cta {
  display:         inline-block;
  padding:         0.55rem 1.6rem;
  border-radius:   6px;
  font-size:       0.95rem;
  font-weight:     500;
  text-decoration: none;
  transition:      background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space:     nowrap;
  margin: 0 1.5rem;
}

/* ── primary: заливка ── */
.btn-primary-cta {
  background-color: #2c6e49;
  color:            #ffffff !important;
  border:           2px solid #2c6e49;
}

.btn-primary-cta:hover {
  background-color: #1f5235;
  border-color:     #1f5235;
}

/* ── outline: контур ── */
.btn-outline-cta {
  background-color: transparent;
  color:            #2c6e49 !important;
  border:           2px solid #2c6e49;
}

.btn-outline-cta:hover {
  background-color: #2c6e49;
  color:            #ffffff !important;
}

/* ─── CITATION ──────────────────────────────────────────── */
  
#citation {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.citation-card {
  flex: 1;
  background-color: #f8f9fa;
  padding: 2rem 3rem;
  text-align: center;
}

.citation-card a {
  color: #495057;
  text-decoration: none;
}

.citation-card a:hover {
  color: #495057;
  text-decoration: underline;
}

.citation-title {
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2c6e49;
}

@media (max-width: 768px) {
  #citation {
    flex-direction: column;
  }
}

/* Цвет иконки ORCID и удаление оформления ссылки */
.orcid-link {
    color: #A6CE39 !important; /* Фирменный зеленый */
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important; /* Убирает тени в некоторых темах */
}

.orcid-link:hover {
    color: #8db030 !important; /* Чуть темнее при наведении */
}
