/* ==========================================================================
   page.css — типовые внутренние страницы (по структуре сайта).
   Использует переменные из base.css.
   ========================================================================== */

.s-page {
  padding-block: 48px 80px;
}

.s-page__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.s-page__breadcrumbs {
  margin-bottom: 24px;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-secondary);
}
.s-page__breadcrumbs a { color: var(--c-secondary); text-decoration: none; }
.s-page__breadcrumbs a:hover { color: var(--c-accent); }
.s-page__breadcrumbs .sep { opacity: .5; margin-inline: 8px; }

.s-page__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.s-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  color: var(--c-text);
  margin: 0;
}

.s-page__content {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text);
}
.s-page__content > * + * { margin-top: 20px; }
.s-page__content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
  margin-top: 40px;
}
.s-page__content h3 { font-size: 22px; margin-top: 28px; }
.s-page__content ul { padding-left: 22px; list-style: disc; }
.s-page__content li + li { margin-top: 8px; }
.s-page__content a { color: var(--c-accent); }
.s-page__lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--c-secondary);
}

/* ---------- Список новостей (страница /novosti/) ---------- */
.s-page__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.s-page__news-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.s-page__news-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-12);
}
.s-page__news-card time { color: var(--c-secondary); opacity: var(--o-readmore); font-size: 15px; }
.s-page__news-card h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
}
.s-page__news-card:hover h3 { color: var(--c-accent); }

.s-page__news-pager { margin-top: 40px; }

/* ---------- Детальная новость ---------- */
.s-page__detail-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-16);
  margin-bottom: 28px;
}
.s-page__detail-date { color: var(--c-secondary); opacity: var(--o-readmore); }

/* ---------- Заглушка «в разработке» ---------- */
.s-page__stub {
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  padding: 40px;
  color: var(--c-secondary);
}

/* ---------- Дропдаун фильтра по году (страница новостей) ---------- */
.yeardd > summary { list-style: none; }
.yeardd > summary::-webkit-details-marker { display: none; }
.yeardd[open] > summary svg { transform: rotate(180deg); }
.yeardd__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-8);
  box-shadow: 0 10px 28px rgba(9, 30, 37, .14);
  display: flex;
  flex-direction: column;
}
.yeardd__item {
  padding: 8px 12px;
  border-radius: var(--r-4);
  font: 400 15px/20px var(--font-text);
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}
.yeardd__item:hover { background: var(--c-bg); }
.yeardd__item.is-active { background: var(--c-dark); color: #fff; }

/* ---------- Сообщение формы подписки ---------- */
.subscribe__msg {
  margin: 0 0 14px;
  font: 500 15px/22px var(--font-text);
}
.subscribe__msg--ok { color: #8fe3b0; }
.subscribe__msg--err { color: #ffc3b6; }

@media (max-width: 900px) {
  .s-page__news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .s-page__news-grid { grid-template-columns: 1fr; }
  .s-page { padding-block: 32px 56px; }
}
