

/* Шапка */
#pora-header {
    --pora-blue: #0169d2;
    --pora-ice: #d2ebff;
    box-sizing: border-box;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--pora-ice);
    color: #17324d;
    font-family: Arial, Helvetica, sans-serif;
  }
  #pora-header *, #pora-header *::before, #pora-header *::after {
    box-sizing: border-box;
  }
  #pora-header .pora-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1240px;
    min-height: 92px;
    margin: 0 auto;
    padding: 16px 24px;
  }
  #pora-header a {
    color: inherit;
    text-decoration: none;
  }
  #pora-header .pora-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 14px;
    color: var(--pora-blue);
  }
  #pora-header .pora-logo {
    display: block;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    max-width: none;
    border-radius: 12px;
    object-fit: contain;
  }
  #pora-header .pora-title {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.6px;
    white-space: nowrap;
  }
  #pora-header .pora-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #pora-header .pora-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
  }
  #pora-header .pora-links a:hover { color: var(--pora-blue); }
  #pora-header .pora-links .pora-telegram {
    padding: 0 14px;
    border-radius: 999px;
    background: #eef7ff;
    color: var(--pora-blue);
  }
  #pora-header .pora-links .pora-telegram:hover {
    background: var(--pora-ice);
  }
  #pora-header a:focus-visible, #pora-header button:focus-visible {
    outline: 3px solid var(--pora-blue);
    outline-offset: 4px;
  }
  #pora-header .pora-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--pora-ice);
    border-radius: 10px;
    background: #fff;
    color: var(--pora-blue);
    cursor: pointer;
  }
  #pora-header .pora-toggle svg { display: block; }
  #pora-header .pora-icon-close { display: none; }
  #pora-header[data-open="true"] .pora-icon-menu { display: none; }
  #pora-header[data-open="true"] .pora-icon-close { display: block; }

  @media (max-width: 1100px) {
    #pora-header .pora-inner { flex-wrap: wrap; gap: 0; }
    #pora-header .pora-brand { margin-right: auto; }
    #pora-header .pora-nav { width: 100%; }
    #pora-header .pora-links {
      align-items: stretch;
      flex-direction: column;
      gap: 4px;
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid var(--pora-ice);
    }
    #pora-header .pora-links a {
      display: flex;
      padding: 10px 12px;
      border-radius: 10px;
      white-space: normal;
    }
    #pora-header .pora-links a:hover { background: #eef7ff; }
    #pora-header[data-ready] .pora-toggle { display: inline-flex; }
    #pora-header[data-ready] .pora-nav { display: none; }
    #pora-header[data-ready][data-open="true"] .pora-nav { display: block; }
  }
  @media (max-width: 480px) {
    #pora-header .pora-inner { min-height: 80px; padding: 14px 16px; }
    #pora-header .pora-brand { gap: 10px; }
    #pora-header .pora-logo { width: 44px; height: 44px; border-radius: 10px; }
    #pora-header .pora-title { font-size: 22px; letter-spacing: -0.4px; }
  }
  @media (prefers-reduced-motion: reduce) {
    #pora-header .pora-links a { transition: none; }
  }

  /* Главная страница */
#pora-home {
    --pora-blue: #0169d2;
    --pora-sky: #69beff;
    --pora-ice: #d2ebff;
    --pora-ink: #17324d;
    --pora-text: #435e77;
    width: 100%;
    background: #fff;
    color: var(--pora-ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
  }

  #pora-home,
  #pora-home *,
  #pora-home *::before,
  #pora-home *::after {
    box-sizing: border-box;
  }

  #pora-home h2,
  #pora-home h3,
  #pora-home p {
    margin: 0;
    padding: 0;
  }

  #pora-home a {
    color: inherit;
    text-decoration: none;
  }

  #pora-home .pora-home-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
  }

  #pora-home #about,
  #pora-home #research {
    scroll-margin-top: 24px;
  }

  /* Первый блок: о ресурсе. */
  #pora-home .pora-home-intro {
    padding: 88px 0 80px;
    background: linear-gradient(115deg, #eef7ff 0%, #f6fbff 65%, #fff 100%);
    border-bottom: 1px solid #e2effb;
  }

  #pora-home .pora-home-intro-content {
    max-width: 1040px;
  }

  #pora-home .pora-home-intro h2 {
    max-width: 1000px;
    color: var(--pora-ink);
    font-size: clamp(38px, 5.2vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
  }

  #pora-home .pora-home-intro h2 span {
    color: var(--pora-blue);
  }

  #pora-home .pora-home-intro p {
    max-width: 880px;
    margin-top: 30px;
    color: var(--pora-text);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.65;
  }

  /* Второй блок: исследования. */
  #pora-home .pora-home-research {
    padding: 72px 0 88px;
  }

  #pora-home .pora-home-research h2 {
    margin-bottom: 32px;
    color: var(--pora-ink);
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  #pora-home .pora-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
  }

  #pora-home .pora-home-card {
    min-width: 0;
    margin: 0;
  }

  #pora-home .pora-home-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dce9f5;
    border-radius: 24px;
    background: #fff;
    color: var(--pora-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  #pora-home .pora-home-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--pora-ice);
  }

  #pora-home .pora-home-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
  }

  #pora-home .pora-home-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }

  #pora-home .pora-home-card h3 {
    color: var(--pora-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
  }

  #pora-home .pora-home-card p {
    margin-top: 16px;
    margin-bottom: 28px;
    color: var(--pora-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
  }

  #pora-home .pora-home-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    max-width: 100%;
    margin-top: auto;
    padding: 13px 20px;
    border-radius: 10px;
    background: var(--pora-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    transition: background-color 0.2s ease;
  }

  #pora-home .pora-home-card-button svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }

  #pora-home .pora-home-card-link:focus-visible {
    outline: 3px solid var(--pora-blue);
    outline-offset: 5px;
  }

  @media (hover: hover) {
    #pora-home .pora-home-card-link:hover {
      border-color: #8fc4f0;
      box-shadow: 0 12px 36px rgba(1, 105, 210, 0.09);
    }
    #pora-home .pora-home-card-link:hover h3 {
      color: var(--pora-blue);
    }
    #pora-home .pora-home-card-link:hover img {
      transform: scale(1.035);
    }
    #pora-home .pora-home-card-link:hover .pora-home-card-button {
      background: #0058b5;
    }
  }

  @media (max-width: 960px) {
    #pora-home .pora-home-intro { padding: 64px 0; }
    #pora-home .pora-home-intro p { font-size: 19px; }
    #pora-home .pora-home-research { padding: 56px 0 64px; }
    #pora-home .pora-home-grid { gap: 20px; }
    #pora-home .pora-home-card-body { padding: 24px; }
    #pora-home .pora-home-card h3 { font-size: 25px; }
  }

  @media (max-width: 700px) {
    #pora-home .pora-home-container { padding-right: 16px; padding-left: 16px; }
    #pora-home .pora-home-intro { padding: 44px 0 48px; }
    #pora-home .pora-home-intro h2 {
      font-size: clamp(34px, 7.2vw, 46px);
      line-height: 1.12;
      letter-spacing: -0.03em;
    }
    #pora-home .pora-home-intro p { margin-top: 24px; font-size: 17px; line-height: 1.6; }
    #pora-home .pora-home-research { padding: 44px 0 56px; }
    #pora-home .pora-home-research h2 { margin-bottom: 24px; font-size: 30px; }
    #pora-home .pora-home-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    #pora-home .pora-home-card-link { border-radius: 18px; }
    #pora-home .pora-home-card-body { padding: 24px 22px; }
    #pora-home .pora-home-card h3 { font-size: 26px; }
    #pora-home .pora-home-card p { font-size: 16px; line-height: 1.6; }
  }

  @media (prefers-reduced-motion: reduce) {
    #pora-home .pora-home-card-link,
    #pora-home .pora-home-card-media img,
    #pora-home .pora-home-card h3,
    #pora-home .pora-home-card-button {
      transition: none;
    }
    #pora-home .pora-home-card-link:hover img { transform: none; }
  }

/* Страница исследования «Небо над Арктикой»: встраивание под общей шапкой. */
#pora-sky-page {
  --pora-sky-header-height: 92px;
  box-sizing: border-box;
  width: 100%;
  height: calc(100vh - var(--pora-sky-header-height));
  height: calc(100dvh - var(--pora-sky-header-height));
  min-height: 320px;
  overflow: hidden;
  background: #050d1f;
}

#pora-sky-page iframe {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
}

@media (max-width: 480px) {
  #pora-sky-page { --pora-sky-header-height: 80px; }
}

/* «О ресурсе»: отдельный блок T123 после исследований. */
#about.pora-about {
  box-sizing: border-box;
  width: 100%;
  padding: 72px 0 80px;
  scroll-margin-top: 24px;
  border-top: 1px solid #d2ebff;
  background: #eef7ff;
  color: #17324d;
  font-family: Arial, Helvetica, sans-serif;
}

#about.pora-about *,
#about.pora-about *::before,
#about.pora-about *::after {
  box-sizing: border-box;
}

#about.pora-about .pora-about-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
  gap: 48px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

#about.pora-about h2 {
  margin: 0;
  padding: 0;
  color: #17324d;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

#about.pora-about p {
  margin: 0;
  padding: 0;
  color: #435e77;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

#about.pora-about p + p { margin-top: 20px; }

@media (max-width: 960px) {
  #about.pora-about { padding: 56px 0 64px; }
  #about.pora-about .pora-about-inner { gap: 32px; }
}

@media (max-width: 700px) {
  #about.pora-about { padding: 44px 0 48px; }
  #about.pora-about .pora-about-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 16px;
  }
  #about.pora-about h2 { font-size: 30px; }
  #about.pora-about p { font-size: 17px; line-height: 1.65; }
}

/* Общий футер: логотип слева, копирайт по центру, ссылки справа. */
#pora-footer {
  box-sizing: border-box;
  width: 100%;
  background: #0b2a5b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

#pora-footer *,
#pora-footer *::before,
#pora-footer *::after {
  box-sizing: border-box;
}

#pora-footer .pora-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1240px;
  min-height: 100px;
  margin: 0 auto;
  padding: 28px 24px;
}

#pora-footer a {
  color: #d2ebff;
  text-decoration: none;
  text-underline-offset: 4px;
}

#pora-footer .pora-footer-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#pora-footer .pora-footer-logo {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  max-width: none;
  border-radius: 7px;
  object-fit: contain;
}

#pora-footer .pora-footer-copyright {
  margin: 0;
  padding: 0;
  color: #b1d2f1;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

#pora-footer .pora-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

#pora-footer .pora-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

#pora-footer .pora-footer-separator { color: #69beff; }

#pora-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

#pora-footer a:focus-visible {
  outline: 2px solid #69beff;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 960px) {
  #pora-footer .pora-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 28px 16px;
  }
  #pora-footer .pora-footer-brand,
  #pora-footer .pora-footer-links { justify-self: center; }
  #pora-footer .pora-footer-links { justify-content: center; }
}

</style>
