:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #b9c3d6;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.22), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-title span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.hero {
  padding: 56px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.card,
.side-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

.hero-card {
  padding: 38px;
}

.eyebrow {
  color: #9ec0ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.14);
}

.button.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.button:hover {
  transform: translateY(-1px);
}

.side-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-card h2 {
  margin-top: 0;
}

.side-card p {
  color: var(--muted);
}

.section {
  padding: 24px 0 56px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.card-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bcd3ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer {
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.social-links svg {
  width: 17px;
  height: 17px;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .header-inner,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 28px;
  }
}

.header-emcomm-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-left: auto;
}

@media (max-width: 860px) {
  .header-emcomm-logo {
    margin-left: 0;
  }
}

.header-emcomm-logo {
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.nav-row {
  margin-top: 14px;
}

.nav-row .nav {
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .header-emcomm-logo {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
  }

  .nav-row .nav {
    justify-content: flex-start;
  }
}

.header-nav {
  flex: 1;
  justify-content: center;
}

@media (max-width: 860px) {
  .header-nav {
    justify-content: flex-start;
    flex: none;
  }
}

.fund-logo-wrap {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.fund-logo {
  display: block;
  max-width: min(680px, 100%);
  height: auto;
}

.project-card {
  margin-top: 22px;
}


.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .partner-head {
    align-items: flex-start;
  }

  .partner-head .partner-logo {
    max-width: 58px;
  }
}



.partner-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.card .partner-head img.partner-logo {
  display: block;
  width: 64px;
  max-width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0;
  flex: 0 0 64px;
}

.card .partner-head h3 {
  margin: 0;
  line-height: 1.2;
}


.step-card .badge {
  font-size: 1rem;
  min-width: 2.2rem;
  text-align: center;
}

.highlight-card {
  border-color: rgba(0, 210, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(25, 39, 70, 0.9));
}

.clean-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.clean-list li {
  margin: 0.35rem 0;
}


/* NRC NEWS MODULE */

.news-hero {
  padding: 56px 0 28px;
}

.news-hero-card {
  padding: 38px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.news-hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.news-hero-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.7;
}

.news-empty {
  padding: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.news-empty h2 {
  margin-top: 0;
}

.news-empty p {
  margin-bottom: 24px;
  color: #64748b;
}

@media (max-width: 640px) {
  .news-hero-card {
    padding: 28px 22px;
  }

  .news-empty {
    padding: 30px 20px;
  }
}


/* NRC PUBLIC NEWS */

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

.news-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.news-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.025);
}

.news-card-content {
  padding: 26px;
}

.news-card-meta,
.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #64748b;
  font-size: .92rem;
  font-weight: 700;
}

.news-card h2 {
  margin: 12px 0;
  font-size: 1.65rem;
  line-height: 1.18;
}

.news-card h2 a {
  color: #0f172a;
  text-decoration: none;
}

.news-card h2 a:hover {
  color: #1d4ed8;
}

.news-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.65;
}

.news-card-author {
  margin: 0 0 20px;
  color: #64748b;
  font-size: .92rem;
}

.news-article-section {
  padding: 48px 0 70px;
}

.news-article {
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.12);
}

.news-article-cover {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  background: #0f172a;
}

.news-article-inner {
  max-width: 850px;
  margin: 0 auto;
  padding: 44px 46px 58px;
}

.news-back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.news-article h1 {
  margin: 16px 0 18px;
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.news-article-summary {
  margin: 0 0 24px;
  color: #475569;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
}

.news-language-links {
  display: flex;
  gap: 8px;
  margin: 24px 0 32px;
}

.news-language-links a {
  min-width: 44px;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.news-language-links a.active {
  border-color: #1d4ed8;
  color: #fff;
  background: #1d4ed8;
}

.news-article-body {
  color: #1e293b;
  font-size: 1.08rem;
  line-height: 1.78;
}

.news-article-body p {
  margin: 0 0 1.35em;
}

.news-article-body h2,
.news-article-body h3 {
  margin: 1.6em 0 .7em;
  color: #0f172a;
  line-height: 1.2;
}

.news-article-body figure {
  margin: 32px 0;
}

.news-article-body img,
.news-article-body video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 16px;
  background: #0f172a;
}

.news-article-body figcaption {
  margin-top: -18px;
  color: #64748b;
  font-size: .9rem;
  text-align: center;
}

.news-article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid #1d4ed8;
  color: #334155;
  background: #f1f5f9;
}

.news-article-source {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: .93rem;
}

@media (max-width: 760px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-article-section {
    padding: 22px 0 45px;
  }

  .news-article {
    border-radius: 18px;
  }

  .news-article-inner {
    padding: 30px 21px 42px;
  }

  .news-card-content {
    padding: 22px;
  }
}

/* Уменьшенное главное фото на странице новости */
.news-article-cover {
  width: 100%;
  height: min(420px, 45vw);
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

/* Карточки в списке новостей также делаем компактнее */
.news-card-image {
  aspect-ratio: 16 / 8.5;
  max-height: 310px;
}

@media (max-width: 760px) {
  .news-article-cover {
    height: 240px;
    max-height: 240px;
  }

  .news-card-image {
    max-height: 230px;
  }
}

/* Окончательные размеры изображений новостей */
.news-card-image {
  height: 260px !important;
  max-height: 260px !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
}

.news-card-image > img {
  display: block !important;
  width: 100% !important;
  height: 260px !important;
  max-height: 260px !important;
  object-fit: cover !important;
}

.news-article-cover {
  display: block !important;
  width: 100% !important;
  height: 380px !important;
  max-height: 380px !important;
  object-fit: cover !important;
}

.news-article-body img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 650px !important;
  margin: 28px auto !important;
  object-fit: contain !important;
}

.news-article-body video {
  display: block !important;
  width: 100% !important;
  max-width: 820px !important;
  max-height: 650px !important;
  margin: 28px auto !important;
}

@media (max-width: 760px) {
  .news-card-image,
  .news-card-image > img {
    height: 190px !important;
    max-height: 190px !important;
  }

  .news-article-cover {
    height: 230px !important;
    max-height: 230px !important;
  }

  .news-article-body img,
  .news-article-body video {
    max-height: 460px !important;
  }
}


/* NEWS SHARE BUTTONS */

.news-share {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.news-share-title {
  margin-bottom: 14px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.news-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff !important;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition:
    transform .15s ease,
    filter .15s ease;
}

.news-share-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.news-share-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-size: 1.1rem;
  font-weight: 900;
}

.news-share-facebook {
  background: #1877f2;
}

.news-share-twitter {
  background: #111827;
}

.news-share-telegram {
  background: #229ed9;
}

@media (max-width: 520px) {
  .news-share-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-share-button {
    width: 100%;
  }
}

.news-share-email {
  background: #475569;
}
