/* ===== "Новости" — список + 10 детальных страниц, namespace .geo-news-*.
   Тот же язык, что на Услугах/Документах/Обучении: double-bezel карточки,
   единственный акцент var(--geo-blue)/var(--geo-accent), reveal через
   IntersectionObserver, чередование светлых/тёмных секций. */

.geo-page-news .main-wrapper {
  background: var(--geo-paper);
  overflow-x: clip;
}

.geo-news-section {
  position: relative;
  padding: clamp(2.75rem, 5.5vw, 5rem) 0;
  overflow: hidden;
}
.geo-news-section.is-dark { background: var(--geo-ink); color: #fff; }
.geo-news-section.is-light { background: var(--geo-paper); color: var(--geo-ink); }
.geo-news-section.is-light .geo-news-body { color: rgba(6, 22, 38, 0.55); }

.geo-news-glow {
  position: absolute; width: 42rem; height: 42rem; top: -16rem; right: -10rem;
  border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, rgba(211, 231, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.geo-news-glow-a {
  width: 46rem; height: 46rem; top: -14rem; right: -10rem;
  filter: blur(80px); opacity: 0.5;
  background: radial-gradient(circle, rgba(211, 231, 255, 0.4), transparent 70%);
}
.geo-news-glow-b {
  width: 34rem; height: 34rem; top: auto; right: auto; bottom: -12rem; left: -8rem;
  filter: blur(80px); opacity: 0.5;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}
.geo-news-dotgrid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.geo-news-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 400; color: var(--geo-accent, #d3e7ff);
  margin-bottom: 1.4rem;
}
.geo-news-eyebrow::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--geo-accent, #d3e7ff); flex-shrink: 0;
}
.is-light .geo-news-eyebrow { color: var(--geo-blue); }
.is-light .geo-news-eyebrow::before { background: var(--geo-blue); }

.geo-news-h1 { font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; margin: 0 0 1.4rem; max-width: 46rem; }
.geo-news-h2 { font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; margin: 0 0 1.6rem; max-width: 40rem; }
.geo-news-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 36rem; margin: 0 0 2.2rem; color: rgba(255, 255, 255, 0.78); }
.geo-news-body { font-size: 1.02rem; line-height: 1.6; max-width: 44rem; margin: 0 0 1.2rem; }
.geo-news-body:last-child { margin-bottom: 0; }

.geo-news-hero { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; }
.geo-news-hero-inner { position: relative; z-index: 2; max-width: 46rem; }

[data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.32, 0.72, 0, 1), transform 0.9s cubic-bezier(0.32, 0.72, 0, 1), filter 0.9s cubic-bezier(0.32, 0.72, 0, 1);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- buttons ---------- */
.geo-news-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.geo-news-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 0.4rem 0.4rem 1.6rem; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.geo-news-btn-primary { background: var(--geo-accent, #d3e7ff); color: var(--geo-ink); padding-top: 0.9rem; padding-bottom: 0.9rem; }
.geo-news-btn-primary .geo-news-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(6, 22, 38, 0.12);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.geo-news-btn:hover { transform: scale(1.03) translateY(-2px); }
.geo-news-btn-primary:hover .geo-news-btn-icon { transform: translate(2px, -2px) scale(1.08); }

.geo-news-back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 600; color: var(--geo-blue); text-decoration: none;
}
.geo-news-back-link:hover { text-decoration: underline; }

/* ---------- breadcrumb (детальные страницы) ---------- */
.geo-news-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-size: 0.8rem; color: rgba(6, 22, 38, 0.45); margin-bottom: 1.6rem;
}
.geo-news-breadcrumb a { color: inherit; text-decoration: none; }
.geo-news-breadcrumb a:hover { color: var(--geo-blue); }
.geo-news-breadcrumb span[aria-hidden] { opacity: 0.5; }
.geo-news-breadcrumb .geo-news-breadcrumb-current { color: var(--geo-ink); }

/* ---------- double-bezel shell + core ---------- */
.geo-news-shell {
  position: relative; padding: 0.4rem; border-radius: 1.6rem;
  background: rgba(127, 127, 127, 0.05); border: 1px solid rgba(127, 127, 127, 0.12);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.5s ease;
}
.is-dark .geo-news-shell { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.geo-news-shell:hover { transform: translateY(-4px); border-color: rgba(211, 231, 255, 0.4); }
.geo-news-core {
  position: relative; width: 100%; height: 100%; box-sizing: border-box;
  padding: 1.6rem 1.6rem 1.8rem; border-radius: calc(1.6rem - 0.4rem);
  background: var(--geo-paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.is-dark .geo-news-core { background: #0c2233; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.geo-news-core p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

/* ---------- карточки новостей (список) ---------- */
.geo-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.geo-news-card .geo-news-core { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; height: 100%; }
.geo-news-card-photo { aspect-ratio: 4 / 3; border-radius: 0.8rem; overflow: hidden; margin-bottom: 1.1rem; background: #f4f7f8; }
.geo-news-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.geo-news-card-photo.is-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--geo-blue); background: rgba(211, 231, 255, 0.14);
}
.geo-news-card-photo.is-empty svg { width: 2.4rem; height: 2.4rem; }
.geo-news-card-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.76rem; }
.geo-news-tag {
  display: inline-flex; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgba(211, 231, 255, 0.5); color: var(--geo-blue); font-weight: 600;
}
.geo-news-card-date { opacity: 0.55; }
.geo-news-card h3 { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.geo-news-card-summary { margin: 0 0 1.1rem; font-size: 0.88rem; line-height: 1.5; opacity: 0.72; flex-grow: 1; }
.geo-news-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: var(--geo-blue); text-decoration: none;
}
.geo-news-card-link span { transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
@media (hover: hover) and (pointer: fine) {
  .geo-news-card:hover .geo-news-card-link span { transform: translateX(3px); }
}

/* ---------- детальная статья ---------- */
.geo-news-article-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.4rem; }
.geo-news-article-date { font-size: 0.85rem; color: rgba(6, 22, 38, 0.5); }
.geo-news-article-photo {
  aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden;
  margin: 0 0 2.2rem; background: #f4f7f8; max-width: 46rem;
}
.geo-news-article-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.geo-news-article-body { max-width: 42rem; }
.geo-news-article-body p { margin: 0 0 1.2rem; font-size: 1.02rem; line-height: 1.65; color: rgba(6, 22, 38, 0.72); }
.geo-news-article-body p:last-child { margin-bottom: 0; }
.geo-news-article-back { margin-top: 2.4rem; }

/* ---------- final cta ---------- */
.geo-news-cta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.geo-news-cta-copy .geo-news-h2 { color: #fff; }
.geo-news-cta-direct { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.geo-news-cta-direct p { margin: 0 0 0.3rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); }
.geo-news-cta-direct a { color: #fff; text-decoration: none; font-weight: 600; }
.geo-news-cta-direct a:hover { color: var(--geo-accent, #d3e7ff); }

.geo-news-form-core { background: #0c2233; }
.geo-news-form { display: flex; flex-direction: column; gap: 1rem; }
.geo-news-form label { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }
.geo-news-form input, .geo-news-form textarea {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04);
  color: #fff; resize: vertical; transition: border-color 0.3s ease;
}
.geo-news-form input:focus, .geo-news-form textarea:focus { outline: none; border-color: var(--geo-accent, #d3e7ff); }
.geo-news-form button { align-self: flex-start; margin-top: 0.3rem; }
.geo-news-form-note { font-size: 0.74rem; color: rgba(255, 255, 255, 0.42); margin: 0; }
.geo-news-form.is-sent .geo-news-form-note { color: var(--geo-accent, #d3e7ff); font-size: 0.9rem; }
.geo-news-form.is-sent label, .geo-news-form.is-sent button { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .geo-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-news-cta-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .geo-news-section { padding: 3.5rem 0; }
  .geo-news-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: opacity 0.3s ease; transform: none !important; filter: none !important; }
  .geo-news-shell, .geo-news-btn { transition: none; }
}

/* ---------- Архивная лента 2021–2023 ---------- */
.geo-news-archive {
  padding-top: 0;
}

.geo-news-archive[hidden] {
  display: none;
}

.geo-news-archive-head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.9rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid rgba(12, 34, 51, 0.14);
}

.geo-news-archive-note {
  margin: 0.5rem 0 0;
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.55;
  opacity: 0.75;
}

.geo-news-archive .geo-news-card {
  opacity: 0.94;
}

/* ---------- Детальная страница: дата, CTA, связанные материалы ---------- */
.geo-news-article-date {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.94rem;
  opacity: 0.7;
}

.geo-news-archive-flag {
  margin: 0 0 1.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(12, 34, 51, 0.16);
  background: rgba(12, 34, 51, 0.04);
  font-size: 0.9rem;
  line-height: 1.5;
}

.geo-news-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-radius: 16px;
  border: 1px solid rgba(12, 34, 51, 0.14);
  background: linear-gradient(165deg, #eef6fa, #dceaf1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.geo-news-inline-cta-eyebrow {
  flex: 0 0 100%;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.geo-news-inline-cta-title {
  flex: 1 1 20rem;
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
}

.geo-news-inline-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: #0c2233;
  color: #f2f9ff;
  font-weight: 500;
  text-decoration: none;
}

.geo-news-inline-cta-btn:focus-visible {
  outline: 2px solid #0c2233;
  outline-offset: 3px;
}

.geo-news-related-links {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.geo-news-related-links h2,
.geo-news-related h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
}

.geo-news-related-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.geo-news-related-links a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.geo-news-related {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.geo-news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
}

.geo-news-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(12, 34, 51, 0.14);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.geo-news-related-card:hover {
  border-color: rgba(12, 34, 51, 0.3);
  transform: translateY(-2px);
}

.geo-news-related-title {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 820px) {
  .geo-news-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .geo-news-inline-cta-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-news-related-card {
    transition: none;
  }

  .geo-news-related-card:hover {
    transform: none;
  }
}
