:root {
  font-family: Arial, sans-serif;
  color: #35105d;
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}
.news-header {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(20px, calc((100% - 1160px) / 2));
  background: #601b81;
}
.news-brand {
  display: block;
  width: 150px;
}
.news-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.news-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.news-header a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.news-shell {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 50px 0 80px;
}
.news-breadcrumbs {
  margin-bottom: 26px;
  color: #735b82;
}
.news-breadcrumbs a {
  color: #601b81;
}
.news-shell h1 {
  margin: 0;
  color: #601b81;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}
.news-lead {
  max-width: 700px;
  font-size: 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 36px;
}
.news-card {
  overflow: hidden;
  border: 1px solid #e5ddea;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 25px rgb(53 16 93 / 8%);
}
.news-card img {
  display: block;
  width: calc(100% + 40px);
  height: 210px;
  margin: -20px -20px 18px;
  object-fit: cover;
}
.news-card img[src$="afisha-september-2026.webp"] {
  object-position: center top;
}
.news-card img[src$="28-avgusta-den-goroda-2026.jpg"],
.news-card img[src$="28-avgusta-den-goroda-vmeste-2026.jpg"] {
  background: #f7f0fa;
  object-fit: contain;
}
.news-card time,
.news-article time {
  color: #6a5076;
  font-weight: 700;
}
.news-card h2 {
  margin: 8px 0;
  font-size: 25px;
  line-height: 1.2;
}
.news-card h2 a {
  color: #601b81;
  text-decoration: none;
}
.news-more {
  display: inline-block;
  margin-top: 8px;
  color: #ff7200;
  font-weight: 800;
}
.news-article {
  width: min(100% - 32px, 860px);
}
.news-article h1 {
  margin: 10px 0 28px;
}
.news-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.news-body {
  margin-top: 32px;
}
.news-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.news-gallery__item {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: zoom-in;
}
.news-gallery__image {
  display: block;
  width: 100%;
  height: auto;
}
.news-gallery__item:hover .news-gallery__image {
  filter: brightness(0.9);
}
.news-gallery__item:focus-visible {
  outline: 4px solid #ff7200;
  outline-offset: 4px;
}
.news-gallery--tiled {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news-gallery--tiled .news-gallery__item {
  width: 100%;
  aspect-ratio: 1;
}
.news-gallery--tiled .news-gallery__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.news-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding:
    max(60px, calc(env(safe-area-inset-top, 0px) + 18px))
    max(80px, calc(env(safe-area-inset-right, 0px) + 18px))
    max(60px, calc(env(safe-area-inset-bottom, 0px) + 18px))
    max(80px, calc(env(safe-area-inset-left, 0px) + 18px));
  border: 0;
  overscroll-behavior: contain;
  background: transparent;
  color: #fff;
}
.news-lightbox[open] {
  display: grid;
  grid-template: "image" minmax(0, 1fr) "status" auto / minmax(0, 1fr);
  place-items: center;
}
.news-lightbox::backdrop {
  background: rgb(20 8 31 / 80%);
}
.news-lightbox__image {
  grid-area: image;
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}
.news-lightbox__close,
.news-lightbox__nav {
  position: fixed;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  background: rgb(53 16 93 / 86%);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.news-lightbox__close:hover,
.news-lightbox__nav:hover {
  background: #ff7200;
}
.news-lightbox__close:focus-visible,
.news-lightbox__nav:focus-visible {
  outline: 4px solid #ff7200;
  outline-offset: 3px;
}
.news-lightbox__close {
  top: max(18px, calc(env(safe-area-inset-top, 0px) + 8px));
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 8px));
}
.news-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.news-lightbox__nav--previous {
  left: max(18px, calc(env(safe-area-inset-left, 0px) + 8px));
}
.news-lightbox__nav--next {
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 8px));
}
.news-lightbox__status {
  grid-area: status;
  margin: 16px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.news-body h2 {
  margin-top: 36px;
  color: #601b81;
  font-size: 30px;
  line-height: 1.2;
}
.news-body h3 {
  font-size: 24px;
}
.news-body a {
  color: #601b81;
}
.news-body blockquote {
  margin: 24px 0;
  padding: 8px 22px;
  border-left: 5px solid #ff7200;
  font-weight: 700;
}
.news-footer {
  padding: 34px max(20px, calc((100% - 1160px) / 2));
  background: #35105d;
  color: #fff;
  font-size: 18px;
}
.news-footer img {
  display: block;
  width: 160px;
  height: auto;
}
.news-footer a {
  color: #fff;
}
@media (max-width: 800px) {
  .news-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-shell {
    padding-top: 32px;
  }
  .news-card img {
    height: auto;
  }
  .news-gallery {
    grid-template-columns: 1fr;
  }
  .news-gallery--tiled {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-lightbox {
    padding:
      max(72px, calc(env(safe-area-inset-top, 0px) + 18px))
      max(16px, calc(env(safe-area-inset-right, 0px) + 8px))
      max(76px, calc(env(safe-area-inset-bottom, 0px) + 66px))
      max(16px, calc(env(safe-area-inset-left, 0px) + 8px));
  }
  .news-lightbox__image {
    max-height: calc(100dvh - 168px);
  }
  .news-lightbox__nav {
    top: auto;
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    transform: none;
  }
  .news-lightbox__nav--previous {
    left: max(16px, calc(env(safe-area-inset-left, 0px) + 8px));
  }
  .news-lightbox__nav--next {
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 8px));
  }
  .news-lightbox__status {
    margin-bottom: 6px;
  }
}

@media (max-width: 600px) {
  .news-gallery--tiled {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-gallery__item:hover .news-gallery__image {
    filter: none;
  }
}
