/* Статья: колонка, подписи. Шапка — стилизация под типичное оформление новостной полосы (демо). */
:root {
  --text: #202020;
  --muted: #5a5a5a;
  --line: #e8e8e8;
  --accent: #bb1919;
  --link: #1167a8;
  --max: 720px;
  --nexus-red: #c41212;
}

/* Акцент бренда: NEXUS / NEXUS AI */
.brand-nexus {
  color: var(--nexus-red);
  font-weight: 700;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

body.lang-en .lang-ru,
body.lang-ru .lang-en {
  display: none !important;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Полоса до разделителя — на всю ширину, красный фон */
.site-header {
  width: 100%;
  background: linear-gradient(180deg, #c41e1e 0%, #b80000 45%, #9a0a0a 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.7rem
    max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* BBC NEWS слева на общем красном фоне (без отдельной вложенной красной коробки) */
.bbc-masthead {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
}

.bbc-masthead__blocks {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bbc-masthead__block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  color: #9a0a0a;
  letter-spacing: 0;
}

.bbc-masthead__block span {
  transform: translateY(0.05em);
}

.bbc-masthead__news {
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  font-family: "Noto Sans", Helvetica, Arial, sans-serif;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.lang-switch a {
  color: #e8e8e8;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.lang-switch__sep {
  color: #666;
  font-weight: 400;
  user-select: none;
}

/* RU | EN в чёрной форме */
.lang-switch--pill {
  background: #0a0a0a;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  gap: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-switch--pill a {
  color: #f0f0f0;
}

.lang-switch--pill a[aria-current="true"] {
  color: #fff;
}

.lang-switch--pill .lang-switch__sep {
  color: #555;
}

main {
  flex: 1 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.article {
  max-width: var(--max);
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.headline-primary {
  line-height: 1.18;
  text-align: center;
  font-weight: 800;
}

.article-dek {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: #333;
  margin: 0 0 1rem;
}

.article-lead-photo {
  margin: 0 0 1.25rem;
}

.article-lead-photo .hero-photo-wrap {
  margin: 0;
}

.standfirst {
  font-size: 1.125rem;
  line-height: 1.45;
  color: #333;
  margin: 0 0 1rem;
}

.figure {
  margin: 0 0 1.25rem;
}

.figure__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.figure__cap {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.figure__cap strong {
  color: var(--text);
}

.feature-card {
  margin: 2rem 0 0;
  padding: 0;
  border: none;
}

/* Блок «What the Platform Offers» — карточки с номерами */
.platform-offers {
  margin: 1.75rem 0;
  padding: 1.5rem 1rem 1.75rem;
  background: #eef6ff;
  border-radius: 10px;
}

.platform-offers__heading {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.platform-offers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-offers__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.platform-offers__badge {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 2rem;
  text-align: center;
}

.platform-offers__text {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #1d4ed8;
}

.platform-offers__text strong {
  color: #1e3a8a;
  font-weight: 700;
}

.platform-offers__footer {
  margin: 1.25rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  color: var(--text);
}

.hero-photo-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.prose p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.prose strong {
  font-weight: 700;
}

.cta-wrap {
  margin: 1.25rem 0 1.75rem;
  text-align: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.cta:hover {
  filter: brightness(1.05);
}

/* Та же красная полоса, что в шапке — над чёрным футером, без RU/EN */
.site-bbc-bar {
  flex-shrink: 0;
  width: 100%;
  background: linear-gradient(180deg, #c41e1e 0%, #b80000 45%, #9a0a0a 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.7rem
    max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.site-bbc-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-footer {
  flex-shrink: 0;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #0a0a0a;
  color: #f0f0f0;
  padding: 0.9rem max(1rem, env(safe-area-inset-right)) 1rem
    max(1rem, env(safe-area-inset-left));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  font-size: 0.8125rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer__copy,
.site-footer__legal {
  margin: 0;
}

.site-footer__legal {
  text-align: right;
}

@media (max-width: 560px) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__legal {
    text-align: center;
  }
}
