/* Фирменный шрифт холдинга (как на apsaburovo.ru) */
@font-face {
  font-family: 'Stem';
  src: url('https://static.tildacdn.com/tild6162-3234-4134-b961-626132336133/Stem-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --card-w: 33vw;   /* ~25% ширины экрана */

  /* Фирменная палитра «Агрополис Сабурово» */
  --green: #7db713;         /* основной акцент */
  --green-dark: #00643e;    /* тёмно-зелёный */
  --green-tint: #e3ecb8;    /* светлый оттенок */
  --ink: #1a1a1a;           /* основной текст */
  --gray: #9d9d9c;          /* второстепенный текст */
  --card-bg: #ffffff;

  --card-radius: 16px;
  --font: 'Stem', Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font);
  color: var(--ink);
}

/* --- Видео на весь экран --- */
.promo-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #0a0f0a;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 80% at 100% 50%,
              rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 55%);
}

/* --- Логотип холдинга --- */
.brand-logo {
  position: fixed;
  top: 34px;
  left: 40px;
  z-index: 3;
  height: 92px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

/* --- Панель на всю высоту (белая, полупрозрачная) --- */
.news-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  height: 100vh;
  width: var(--card-w);
  min-width: 360px;
  max-width: 92vw;

  display: flex;
  align-items: center;      /* полоса — по центру по вертикали */
  justify-content: stretch;

  background: rgba(255, 255, 255, 0.28);   /* белая, частично прозрачная */
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  border-left: 1px solid rgba(255, 255, 255, 0.35);

  /* спрятана справа за краем экрана */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s ease;
  will-change: transform, opacity;
}

.news-panel.is-visible {
  transform: translateX(0);
  opacity: 1;
}

/* --- Полоса с новостью (плотный фон другого цвета) --- */
.news-strip {
  width: 100%;
  overflow: hidden;

  background: rgba(0, 100, 62, 0.90);   /* тёмно-зелёный, менее прозрачный */
  color: #fff;
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55);
}

.news-strip__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.news-strip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-strip__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-strip__category {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}

.news-strip__category:empty { display: none; }

.news-strip__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 400;
  color: #fff;

  /* максимум 4 строки */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-strip__date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Новость и достижение — независимые блоки; показывается ровно один.
   ВАЖНО: не задаём display у самих блоков в базовом правиле, иначе оно
   перебьёт `.strip-view { display:none }` и блок будет виден всегда. */
.strip-view { display: none; }
.strip-view.is-active { display: block; }
.ach.is-active { display: flex; }   /* достижению нужен flex — только когда активно */

/* --- Вид «Достижение» (как карточки на apsaburovo.ru) --- */
.ach {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 8vh 40px 40px;
  flex-direction: column;
  justify-content: flex-start;   /* текст сверху */
  gap: 16px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ink);
}

/* светлая подложка сверху — чтобы тёмный текст читался на любом фото */
.ach::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(255, 255, 255, 0.85) 0%,
              rgba(255, 255, 255, 0.45) 22%,
              rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.ach__value,
.ach__text { position: relative; z-index: 1; }

.ach__value {
  font-size: clamp(56px, 6.5vw, 104px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.ach__text {
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.3;
  max-width: 80%;
  color: var(--ink);
}

@media (max-width: 640px) {
  :root { --card-w: 340px; }
  .news-strip__title { font-size: 18px; }
  .brand-logo { top: 20px; left: 20px; height: 72px; }
}
