/* ===== Академия наук социальных технологий — основные стили ===== */

:root {
  --burgundy: #5C0A22;        /* основной бордовый (фон логотипа) */
  --burgundy-dark: #4A0719;   /* тёмный бордовый (хедер/футер) */
  --accent: #8B1E3F;          /* акцент/hover */
  --section-light: #F7F2F3;   /* светлый фон секций */
  --text: #1E1E1E;
  --text-muted: #5b5b5b;
  --white: #ffffff;
  --border: #e3d9dc;
  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(74, 7, 25, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "PT Sans", Tahoma, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; display: block; }

/* ===== Шапка ===== */
.site-header {
  background: var(--burgundy-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.brand:hover { color: var(--white); }

.brand .logo {
  width: 68px;
  height: 56px;
  flex: 0 0 68px;
  margin-left: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
}
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
  max-width: 320px;
}

.header-info {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}
.header-info .info-block { line-height: 1.5; }
.header-info .info-block strong { display: block; font-weight: 600; }
.header-info a { color: var(--white); }
.header-info a:hover { color: #f1c6d2; }
.header-info .muted { color: rgba(255, 255, 255, 0.65); font-size: 13px; }

/* ===== Навигация ===== */
.main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-list a {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.nav-list a:hover {
  background: var(--burgundy);
  color: var(--white);
}
.nav-list a.is-active {
  border-bottom-color: #f1c6d2;
  color: #f7dce4;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 10px 0;
}

/* ===== Hero ===== */
.hero {
  background: var(--section-light);
  padding: 48px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo img {
  max-width: 320px;
  width: 100%;
  height: auto;
}
.hero-photo { text-align: center; }
.hero-photo .photo-frame {
  width: 280px;
  height: 320px;
  margin: 0 auto 14px;
}
.hero-photo .person-name { font-weight: 700; font-size: 18px; }
.hero-photo .person-role { color: var(--text-muted); font-size: 15px; }

.hero-text h1 {
  color: var(--burgundy);
  font-size: 34px;
  margin: 0 0 20px;
  text-transform: uppercase;
  line-height: 1.2;
}
.hero-text p { color: #3a3a3a; font-size: 16px; }

.btn {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 18px;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent); color: var(--white); }

/* ===== Плейсхолдер-аватары ===== */
.photo-frame,
.avatar {
  background: linear-gradient(135deg, var(--burgundy), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo-frame { font-size: 48px; }
.avatar {
  width: 90px;
  height: 120px;
  border-radius: 6px;
  font-size: 24px;
  flex: 0 0 90px;
  letter-spacing: 1px;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Секции ===== */
.section { padding: 54px 0; }
.section.alt { background: var(--section-light); }

.section-title {
  text-align: center;
  color: var(--burgundy);
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 0 36px;
}

.page-header {
  background: var(--burgundy);
  color: var(--white);
  padding: 40px 0;
}
.page-header h1 {
  margin: 0;
  font-size: 30px;
  text-transform: uppercase;
}
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 6px; }
.breadcrumbs a { color: #f1c6d2; }

/* ===== Карточки (новости / советы) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card .card-media {
  height: 150px;
  background: linear-gradient(135deg, var(--burgundy), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card .card-body { padding: 18px 20px; }
.card .card-body h3 { margin: 0 0 8px; color: var(--burgundy); font-size: 17px; }
.card .card-body p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ===== Состав: сетка персон ===== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.person {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.person .person-info .role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.person .person-info .name { font-weight: 700; font-size: 16px; margin-top: 3px; }
.person .person-info .note { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.leadership-grid {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.leadership-single { grid-template-columns: minmax(0, 380px); }

.block-heading {
  color: var(--burgundy);
  font-size: 22px;
  text-transform: uppercase;
  border-left: 5px solid var(--burgundy);
  padding-left: 14px;
  margin: 0 0 26px;
}

/* ===== Об Академии ===== */
.goal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--burgundy);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  font-size: 19px;
  font-weight: 600;
  color: var(--burgundy);
}
.tasks-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tasks-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 18px 52px;
  position: relative;
  box-shadow: var(--shadow);
  color: #333;
}
.tasks-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  background: var(--burgundy);
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.prose { max-width: 860px; }
.prose-figure {
  margin: 22px 0;
  text-align: center;
}
.prose-figure img {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.prose-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.prose-figure.small img { max-width: 340px; }
.prose h2 {
  color: var(--burgundy);
  font-size: 20px;
  margin: 32px 0 10px;
}
.prose p { margin: 0 0 14px; color: #333; }
.prose ul { color: #333; }

/* ===== Контакты ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.contact-card h3 { margin: 0 0 6px; color: var(--burgundy); }
.contact-card .role { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.contact-card .contact-line { margin: 8px 0; font-size: 16px; }
.contact-card .contact-line .label { color: var(--text-muted); font-size: 13px; display: block; }

/* ===== Список проектов (карточки) ===== */
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(74, 7, 25, 0.18);
  color: var(--text);
}
.project-card-media {
  height: 190px;
  background: var(--section-light);
  overflow: hidden;
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card-body { padding: 20px 22px; }
.project-card-body h3 { margin: 0 0 10px; color: var(--burgundy); font-size: 19px; }
.project-card-body p { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; }
.project-card-link {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.4px;
}

/* ===== Страница проекта ===== */
.project-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.project-lead {
  text-align: center;
  margin-bottom: 26px;
}
.project-lead img {
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.project-title {
  color: var(--burgundy);
  font-size: 30px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
.project-intro-text { max-width: 860px; margin-bottom: 8px; }
.project-intro-text p { margin: 0 0 12px; color: #333; }
.project-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
.project-intro img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.project-intro p { margin: 0 0 12px; color: #333; }

.project-note {
  background: var(--section-light);
  border-left: 5px solid var(--burgundy);
  padding: 12px 18px;
  margin: 24px 0 14px;
  font-weight: 600;
  color: var(--burgundy);
}
.project-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.project-thumbs img {
  height: 110px;
  width: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.clusters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.cluster {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--burgundy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.cluster h3 {
  color: var(--burgundy);
  margin: 0 0 12px;
  font-size: 18px;
}
.cluster p { margin: 0 0 10px; color: #333; font-size: 14px; }
.cluster p strong { color: var(--text); }

/* ===== Мероприятия (галерея) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gallery-item .gallery-media {
  height: 220px;
  background: var(--section-light);
  overflow: hidden;
}
.gallery-item .gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 16px 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

/* ===== Документы ===== */
.docs-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.docs-list li { margin: 0 0 14px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--burgundy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.doc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(74, 7, 25, 0.16);
  color: var(--text);
}
.doc-item .doc-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.doc-item .doc-name { font-weight: 600; font-size: 16px; }
.doc-item .doc-meta { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ===== Заглушка ===== */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 54px;
  color: var(--burgundy);
  opacity: 0.4;
  margin-bottom: 16px;
}
.empty-state h2 { color: var(--burgundy); margin: 0 0 10px; }

/* ===== Футер ===== */
.site-footer {
  background: var(--burgundy-dark);
  color: rgba(255,255,255,0.88);
  padding: 38px 0 22px;
  margin-top: 10px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.site-footer h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
}
.site-footer a { color: #f1c6d2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ===== Адаптив ===== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo .photo-frame { width: 220px; height: 260px; }
  .cards-grid,
  .people-grid,
  .project-cards,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-info { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { justify-content: flex-end; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  .nav-list.open { display: flex; }
  .nav-list a { border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
  .tasks-list,
  .contact-grid,
  .clusters-grid { grid-template-columns: 1fr; }
  .project-intro { grid-template-columns: 1fr; }
  .project-intro img { max-width: 280px; }
}

@media (max-width: 560px) {
  .cards-grid,
  .people-grid,
  .leadership-grid,
  .project-cards,
  .gallery-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 26px; }
  .brand-name { font-size: 13px; }
}
