html {
  scroll-behavior: smooth;
}

:root {
  /* Наш фирменный глубокий цвет */
  --primary-color: #121a17;
  --accent-gold: #d4af37;
  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --bg-light: #fcfcfc;
}

/* Общие стили */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Навигация */
.navbar {
  padding: 30px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
}

.gold {
  color: var(--accent-gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
}

/* --- СТИЛИ ДЛЯ НОВОЙ ГЛАВНОЙ СТРАНИЦЫ (HOME) --- */
.home-hero {
  padding: 180px 0 120px;
  position: relative;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
  background-color: var(--bg-light);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background-image: url("logo-bg.png.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.massive-title {
  font-family: "Playfair Display", serif;
  font-size: 80px;
  color: var(--primary-color);
  margin: 10px 0 20px;
  line-height: 1.1;
}

.home-intro {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Журнальная сетка для Главной */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 80px 0 120px;
}

.editorial-card {
  padding: 40px;
  border-top: 3px solid var(--primary-color);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.editorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.featured-card {
  grid-column: span 2;
  background: var(--bg-light);
  border-top: 4px solid var(--accent-gold);
  padding: 60px;
}

.card-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-muted);
}

.card-meta .issue-number {
  color: var(--accent-gold);
}

.card-meta .meta-divider {
  color: #ccc;
}

.editorial-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: var(--primary-color);
  margin: 0 0 25px 0;
  line-height: 1.2;
}

.editorial-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--primary-color);
  margin: 0 0 20px 0;
  line-height: 1.3;
}

/* ИСПРАВЛЕННЫЙ СПЕЙСИНГ ДЛЯ ТЕГОВ (Воздух) */
.editorial-card .tags,
.policy-card .tags,
.issue-content .tags {
  margin-bottom: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-size: 10px;
  background: #f9f9f9;
  border: 1px solid #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  color: #777;
}

.read-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent-gold);
  margin-top: auto;
  align-self: flex-start;
}

/* --- ШАПКИ ДЛЯ ОСТАЛЬНЫХ СТРАНИЦ (Policy, Opinion и т.д.) --- */
.page-header {
  padding: 140px 0;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url("logo-bg.png.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  margin: 0;
  color: var(--primary-color);
}

.section-tag {
  color: var(--accent-gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

.intro-text {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 700px;
  margin-top: 20px;
}

/* --- СТИЛИ ДЛЯ Policy Analysis --- */
.list-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin: 80px 0 40px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 0 0 100px 0;
}

.policy-card {
  background: #fff;
  border: 1px solid #eaeaea;
  padding: 40px 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.policy-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

.policy-card .issue-number {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: var(--accent-gold);
  margin-bottom: 15px;
  font-style: italic;
}

.policy-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 20px 0;
  color: var(--primary-color);
}

/* --- СТИЛИ ДЛЯ RESEARCH --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 40px 0 80px;
}

.project-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 40px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-weight: 700;
}

.upcoming {
  background: var(--bg-light);
  border-style: dashed;
}

.upcoming .status {
  color: #aaa;
}

/* --- БЛОК SUPPORT OUR RESEARCH --- */
.research-support {
  margin: 100px 0 120px;
  border-top: 1px solid #eaeaea;
  padding-top: 80px;
}

.support-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: center;
}

.support-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: var(--primary-color);
  margin: 10px 0 25px;
}

.support-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.support-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.support-pillars li {
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.support-pillars strong {
  color: var(--accent-gold);
  margin-right: 15px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
}

.support-action {
  background-color: var(--bg-light);
  border: 1px solid #eaeaea;
  padding: 50px 40px;
  text-align: center;
  position: relative;
}

.support-action::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-top: 3px solid var(--accent-gold);
  border-right: 3px solid var(--accent-gold);
}

/* Shared mobile layout overrides for pages with inline page-specific styles. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  main.container,
  .article-wrapper,
  .page-header .container,
  .opinion-hub-hero .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .navbar,
  nav.navbar {
    padding: 16px 20px !important;
  }

  .navbar .container,
  .navbar > .container,
  nav.navbar:not(:has(.container)) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .logo {
    font-size: 22px !important;
  }

  .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px !important;
    width: 100%;
  }

  .nav-links a {
    display: inline-block;
    font-size: 10px !important;
    letter-spacing: 0.7px !important;
    padding: 3px 0;
  }

  .home-hero,
  .page-header,
  .article-hero,
  .impact-hero,
  .opinion-hub-hero,
  .research-hero {
    min-height: 0 !important;
    height: auto !important;
    padding: 64px 20px !important;
  }

  .home-hero::before,
  .page-header::before {
    width: 360px !important;
    height: 360px !important;
  }

  h1,
  .massive-title,
  .article-hero h1,
  .page-header h1,
  .research-hero h1 {
    font-size: clamp(32px, 10vw, 44px) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  .home-intro,
  .intro-text,
  .article-hero .subtitle,
  .research-hero .subtitle {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .editorial-grid,
  .policy-grid,
  .project-grid,
  .value-grid,
  .support-wrapper,
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .editorial-card,
  .featured-card,
  .policy-card,
  .project-card,
  .value-card,
  .support-action {
    grid-column: auto !important;
    padding: 26px 20px !important;
    min-width: 0;
  }

  .editorial-card h2,
  .editorial-card h3,
  .support-content h2,
  .article-wrapper h2 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }

  .list-title {
    font-size: 28px !important;
    margin: 46px 0 26px !important;
  }

  .article-wrapper {
    margin-top: 36px !important;
  }

  .article-wrapper p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .lead-intro {
    padding: 24px 20px !important;
    margin-bottom: 35px !important;
  }

  .article-meta {
    flex-direction: column;
    gap: 12px !important;
    text-align: center;
  }

  .lead-member-card {
    flex-direction: column !important;
    text-align: center;
    gap: 20px !important;
    padding: 28px 20px !important;
  }

  .lead-member-card .member-photo img {
    width: 160px !important;
    height: 160px !important;
  }

  .team-grid.justify-center {
    display: grid !important;
  }

  .team-card {
    width: 100% !important;
    max-width: none !important;
  }

  .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none !important;
  padding-bottom: 0;
  margin-bottom: 0;
}

  .footer-info {
    max-width: 100% !important;
  }

  .footer-socials {
    justify-content: center !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: 10px !important;
  }

  .footer-socials a {
    padding: 10px 14px !important;
  }
}

.action-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--primary-color);
  margin: 0 0 15px 0;
}

.action-card p {
  font-size: 14px;
  color: #777;
  margin-bottom: 35px;
  line-height: 1.5;
}

.btn-solid {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 16px 35px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  transition: background-color 0.3s ease;
}

.btn-solid:hover {
  background-color: var(--accent-gold);
}

/* --- СТИЛИ ДЛЯ OPINION И DATASETS (CTA-блок) --- */
.opinion-cta {
  background-color: var(--bg-light);
  border: 1px solid #eaeaea;
  border-left: 4px solid var(--accent-gold);
  padding: 40px;
  margin: 60px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
}

.opinion-cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--primary-color);
  margin: 0 0 10px 0;
}

.opinion-cta p {
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.6;
}

.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  transition: 0.3s;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.opinion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 100px;
}

.opinion-card {
  border-top: 2px solid var(--primary-color);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
}

.opinion-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0 0 15px 0;
}

.author-name {
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 30px 0;
}

/* --- СТИЛИ ДЛЯ ABOUT US --- */
.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.centered-text {
  text-align: center;
  margin: 20px auto 0;
}

.team-section {
  margin-bottom: 80px;
}

.lead-member-card {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid #eaeaea;
  border-left: 4px solid var(--primary-color);
  padding: 40px;
  gap: 40px;
  margin-top: 30px;
  border-radius: 4px;
}

.lead-member-card .member-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.lead-member-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--primary-color);
  margin: 0 0 10px 0;
}

.member-role {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.member-edu {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading-center h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--primary-color);
  margin: 0 0 10px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.justify-center {
  justify-content: center;
}

.team-card {
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid #eaeaea;
  transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
  border-color: var(--accent-gold);
}

.team-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text-dark);
  margin: 0 0 10px 0;
}

.contributors-section {
  background-color: #f9f9f9;
  padding: 60px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 100px;
}

.contributor-block h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--primary-color);
  margin: 0 0 15px 0;
}

.contributor-block p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.elegant-divider {
  border: none;
  height: 1px;
  background-color: #eaeaea;
  margin: 40px 0;
}

/* --- СТИЛИ ДЛЯ ARCHIVE --- */
.archive-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 60px 0 100px;
}

.column-intro {
  background-color: var(--bg-light);
  border-top: 3px solid var(--primary-color);
  padding: 30px;
  margin-bottom: 40px;
}

.column-intro h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--primary-color);
  margin: 0 0 15px 0;
}

.column-intro p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.archive-item {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.archive-item:last-child {
  border-bottom: none;
}

.archive-item h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0 0 20px 0;
  transition: color 0.3s ease;
}

.archive-item:hover h3 {
  color: var(--accent-gold);
}

/* --- ГЛОБАЛЬНЫЙ ФУТЕР --- */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 80px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none !important;
  padding-bottom: 0;
  margin-bottom: 0;
}

.footer-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin: 0 0 10px 0;
  color: var(--accent-gold);
}

.footer-info p {
  margin: 0 0 15px 0;
  color: #b0b8c1;
  font-size: 15px;
}

.footer-email {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: var(--accent-gold);
}

.footer-location {
  margin-top: 15px !important;
  font-size: 14px !important;
  color: #8c9b9d !important;
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-socials a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold);
  color: var(--primary-color);
}

.footer-socials .newsletter-btn {
  background-color: var(--accent-gold);
  color: var(--primary-color);
  border-color: var(--accent-gold);
}

.footer-socials .newsletter-btn:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #667687;
  border: none !important;
  margin-top: 40px;
  padding-top: 0;
}

/* --- АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ) --- */
@media (max-width: 900px) {
  .massive-title {
    font-size: 50px;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    grid-column: span 1;
    padding: 40px 20px;
  }
  .support-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .opinion-cta {
    flex-direction: column;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }
  .lead-member-card {
    flex-direction: column;
    text-align: center;
  }
  .contributors-section {
    padding: 40px 20px;
  }
  .archive-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none !important;
  padding-bottom: 0;
  margin-bottom: 0;
}

  .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
  }
}

