/* Главная — вариант A (маршрут читателя) */

.home-page .title-strip--hero .title-strip__hero-frame {
  max-height: 220px;
}

.home-page .title-strip--hero .title-strip__hero-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.home-start {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  border-radius: var(--radius-md, 14px);
  background: #fff;
  border: 1px solid rgba(15, 52, 88, 0.1);
  box-shadow: var(--shadow-sm);
}

.home-start__hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 52, 88, 0.08);
  font-size: 0.9rem;
}

.home-start__hours-label {
  font-weight: 800;
  color: var(--color-heading, #0f4d7a);
}

.home-start__hours-item {
  color: #243447;
}

.home-start__hours-sep {
  opacity: 0.45;
}

.home-start__hours-link {
  margin-left: auto;
  font-weight: 700;
  text-decoration: none;
  color: #0b6ead;
  white-space: nowrap;
}

.home-start__hours-link:hover {
  text-decoration: underline;
  color: #0a5aac;
}

.home-start__sanitary {
  margin: -4px 0 0;
  font-size: 0.82rem;
  color: #5a6f82;
  line-height: 1.35;
}

.home-cta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-cta__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0a5aac 0%, #074a73 100%);
  box-shadow: 0 1px 0 rgba(15, 52, 88, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-cta__link:hover,
.home-cta__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 110, 173, 0.28);
  color: #ffffff !important;
  filter: brightness(1.05);
}

.home-cta__num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
}

.home-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #ffffff;
}

.home-cta__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  color: #ffffff;
}

.home-cta__hint {
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 600;
  color: #eaf4fc;
  opacity: 1;
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-section-head h3 {
  margin: 0;
}

.home-section-head__link {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: #0b6ead;
}

.home-section-head__link:hover {
  color: #0a5aac;
  text-decoration: underline;
}

.home-events {
  display: flex;
  flex-direction: column;
}

.home-event {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  margin: 0 -4px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(15, 52, 88, 0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.home-event:last-child {
  border-bottom: 0;
}

.home-event:hover,
.home-event:focus-visible {
  background: rgba(11, 110, 173, 0.06);
}

.home-event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(11, 110, 173, 0.08);
  color: #0b6ead;
  font-weight: 800;
  line-height: 1.1;
}

.home-event__date b {
  font-size: 1.25rem;
}

.home-event__date span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-event__title {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading, #0f4d7a);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-event:hover .home-event__title {
  color: #0a5aac;
}

.home-event__meta {
  margin: 0;
  font-size: 0.85rem;
  color: #5a6f82;
}

.home-news-list {
  display: flex;
  flex-direction: column;
}

.home-news-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 52, 88, 0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.home-news-row:last-child {
  border-bottom: 0;
}

.home-news-row:hover .home-news-row__title,
.home-news-row:focus-visible .home-news-row__title {
  color: #0a5aac;
}

.home-news-row__media {
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #dfe9f3 center / cover no-repeat;
  overflow: hidden;
}

.home-news-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-row__date {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0b6ead;
}

.home-news-row__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading, #0f4d7a);
  line-height: 1.25;
}

.home-news-row__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  opacity: 0.78;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-about-short p {
  margin: 0 0 12px;
}

.home-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.home-bottom-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 110, 173, 0.08);
  color: #0f4d7a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.home-bottom-links a:hover,
.home-bottom-links a:focus-visible {
  background: rgba(11, 110, 173, 0.14);
  color: #0a5aac;
  transform: translateY(-1px);
}

.home-empty-note {
  margin: 0;
  opacity: 0.7;
}

/* Как у остальных карточек главной (у .news-card раньше был transparent) */
.home-page .main-content > .card.news-card {
  background: #fff;
}

/* Календарь не обрезать анимацией overflow:hidden у .card */
.home-page .main-content > .card.anons-calendar-card {
  overflow: visible;
}

html.vision-mode .home-cta__link,
html.vision-mode .home-cta__link:hover,
html.vision-mode .home-cta__link:focus-visible {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  text-decoration: none !important;
  filter: none !important;
  box-shadow: none !important;
}

html.vision-mode .home-cta__label,
html.vision-mode .home-cta__hint,
html.vision-mode .home-cta__num,
html.vision-mode .home-cta__text {
  color: #fff !important;
}

html.vision-mode .home-event,
html.vision-mode .home-news-row,
html.vision-mode .home-bottom-links a {
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .home-cta {
    grid-template-columns: 1fr;
  }

  .home-start__hours-link {
    margin-left: 0;
    width: 100%;
  }

  .home-event {
    grid-template-columns: 56px 1fr;
  }

  .home-news-row {
    grid-template-columns: 72px 1fr;
  }

  .home-news-row__media {
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cta__link,
  .home-bottom-links a,
  .home-event,
  .home-news-row {
    transition: none;
  }

  .home-cta__link:hover,
  .home-cta__link:focus-visible,
  .home-bottom-links a:hover,
  .home-bottom-links a:focus-visible {
    transform: none;
  }
}
