/*
 Theme Name: Ялтинский театр духовой музыки (Astra Child)
 Theme URI: https://yaltaband.ru
 Description: Дочерняя тема Astra с кастомным дизайном для Ялтинского театра духовой музыки.
 Author: Yaltaband
 Template: astra
 Text Domain: yaltaband
 Version: 1.0.0
*/

/* Базовая типографика и сетка */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #202131;
}

a {
  color: #ffd54f;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-main {
  min-height: 60vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #363885;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.site-header__branding {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.15);
}

.site-header__text {
  display: flex;
  flex-direction: column;
}

.site-header__title {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-header__title-big {
  display: block;
  font-size: 18px;
}

.site-header__title-small {
  display: block;
  font-size: 14px;
}

.site-header__tagline {
  font-size: 12px;
  color: #a0a0b8;
}

.site-header__nav {
  flex: 1;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.primary-menu > li > a {
  color: #e5e5f0;
  padding: 6px 0;
  position: relative;
}

.primary-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffd54f, #ff8a65);
  transition: width 0.2s ease;
}

.primary-menu > li:hover > a::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-menu-ancestor > a::after {
  width: 100%;
}

.primary-menu li {
  position: relative;
}

.primary-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  margin: 8px 0 0;
  background: #2b2e6a;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.primary-menu li:hover > ul {
  display: block;
}

.primary-menu li ul li a {
  display: block;
  padding: 8px 16px;
  color: #e5e5f0;
  font-size: 13px;
}

.site-header__contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.icon-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.icon {
  display: inline-block;
}

.icon-logo {
  width: 22px;
  height: 22px;
  display: block;
}

.icon--vk::before,
.icon--tg::before {
  font-size: 16px;
}

.icon--vk::before {
  content: "VK";
  font-weight: 700;
}

.icon--tg::before {
  content: "TG";
  font-weight: 700;
}

.icon--phone::before {
  content: "☎";
  font-size: 14px;
}

.icon--mail::before {
  content: "✉";
  font-size: 14px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.phone-link__text {
  white-space: nowrap;
}

/* Hero-блок на главной */
.hero {
  position: relative;
  min-height: 450px;
  color: #ffffff;
  background: #000000;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
}

.hero__title {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
}

.hero__title-big {
  display: block;
  font-size: 48px;
}

.hero__title-small {
  display: block;
  font-size: 34px;
}

.hero__subtitle {
  font-size: 20px;
  color: #f1ebff;
  max-width: 420px;
  margin-bottom: 26px;
}

.hero__meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffc46b;
  margin-bottom: 10px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ffd54f, #ff8a65);
  color: #221b00;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary-link {
  font-size: 13px;
  color: #f5f5f7;
  opacity: 0.9;
}

.hero__visual {
  align-self: stretch;
  border-radius: 24px;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.14), transparent 40%), radial-gradient(circle at 90% 90%, rgba(114, 138, 235, 0.3), transparent 45%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
  z-index: 1;
}

.hero__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero__visual-content {
  position: relative;
  z-index: 1;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 7, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4caf50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
}

.hero__city {
  font-size: 13px;
  color: #e0e0ff;
  margin-top: 8px;
}

.hero__quote {
  font-size: 14px;
  line-height: 1.5;
  color: #f5f5ff;
  margin-top: 14px;
  max-width: 320px;
}

.hero__author {
  margin-top: 8px;
  font-size: 12px;
  color: #d0d0f5;
}

.hero__strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e0e0ff;
}

.hero__strip span {
  opacity: 0.9;
}

/* Блок истории на главной */
.home-about {
  padding: 70px 0 40px;
  background: #ffffff;
}

.home-about__title {
  font-size: 26px;
  margin-bottom: 20px;
}

.home-about__image {
  margin: 0 0 20px;
}

.home-about__image img {
  max-width: 100%;
  border-radius: 16px;
  display: block;
}

.home-about__text {
  column-count: 1;
  column-gap: 40px;
  font-size: 17px;
  line-height: 1.9;
  color: #202131;
}

.home-about__text p {
  margin: 0 0 16px;
}

/* Афиша на главной */
.home-afisha {
  padding: 20px 0 70px;
  background: #f5f6fb;
}

.section-title {
  font-size: 20px;
  margin-bottom: 18px;
}

.afisha-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 26px;
  padding: 24px;
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(255, 213, 79, 0.08), transparent 55%), #20224a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
}

.afisha-card__visual {
  border-radius: 18px;
  min-height: 220px;
  background: url('../../uploads/afisha1.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.afisha-card__label {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.afisha-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.afisha-card__date {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: #e0e0ff;
  margin-bottom: 8px;
}

.afisha-card__title {
  font-size: 22px;
  margin: 8px 0;
  color: #ffffff;
}

.afisha-card__place {
  font-size: 14px;
  color: #c0c0e5;
  margin-bottom: 8px;
}

.afisha-card__desc {
  font-size: 14px;
  color: #e5e5f5;
  margin-bottom: 12px;
}

.afisha-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.afisha-card__link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Страница Документы */
.page-documents {
  padding: 60px 0 80px;
}

.page-title {
  font-size: 26px;
  margin-bottom: 20px;
}

.documents-requisites {
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.7;
}

.documents-requisites p {
  margin: 0 0 10px;
}

.documents-list ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.documents-list li {
  margin-bottom: 8px;
}

.documents-list a {
  font-size: 15px;
  color: #363885;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.documents-list a:hover {
  color: #5c5fd0;
  text-decoration: underline;
}

/* Страница О нас */
.page-about {
  padding: 60px 0 80px;
  background: #ffffff;
}

.page-about__content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__image {
  margin: 0 0 30px;
}

.page-about__image img {
  max-width: 100%;
  border-radius: 16px;
  display: block;
}

.page-about__text {
  font-size: 17px;
  line-height: 1.9;
  color: #202131;
}

.page-about__text p {
  margin: 0 0 16px;
}

/* Страница Контакты */
.page-contacts {
  padding: 60px 0 80px;
  background: #ffffff;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: flex-start;
}

.contacts-main {
  font-size: 15px;
  line-height: 1.8;
  color: #202131;
}

.contacts-main p {
  margin: 0 0 14px;
}

.contacts-block {
  padding: 20px 22px;
  border-radius: 16px;
  background: #f5f6fb;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contacts-block__title {
  font-size: 20px;
  margin: 0 0 16px;
  color: #202131;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contacts-list__item {
  display: flex;
}

.contacts-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #202131;
  text-decoration: none;
}

.contacts-link .icon {
  width: 20px;
  text-align: center;
}

.contacts-link__text {
  white-space: nowrap;
}

.contacts-link:hover {
  text-decoration: underline;
}

.contacts-social__title {
  font-size: 15px;
  margin: 0 0 10px;
  color: #373955;
}

.contacts-social__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Футер */
.site-footer {
  padding: 20px 0;
  background: #10112a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a0a0b8;
  font-size: 13px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer__name {
  font-size: 13px;
  color: #e5e5f5;
}

.site-footer__tagline {
  display: block;
  font-size: 11px;
}

.site-footer__nav {
  flex: 1;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.footer-menu a {
  color: #d5d5e8;
}

.site-footer__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__contacts .icon-link {
  width: 28px;
  height: 28px;
}

.site-footer__contacts .phone-link {
  font-size: 12px;
  padding: 3px 10px;
}

.accessibility-toggle {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.accessibility-toggle .icon-eye {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.accessibility-toggle:hover .icon-eye {
  stroke: #ffd54f;
}

/* Версия для слабовидящих */
.accessibility-mode {
  font-size: 18px !important;
  line-height: 1.8 !important;
}

.accessibility-mode * {
  font-size: inherit !important;
}

.accessibility-mode body,
.accessibility-mode .site-main,
.accessibility-mode .container,
.accessibility-mode .home-about,
.accessibility-mode .home-afisha,
.accessibility-mode .home-news {
  background: #ffffff !important;
  color: #000000 !important;
}

.accessibility-mode h1,
.accessibility-mode h2,
.accessibility-mode h3,
.accessibility-mode h4,
.accessibility-mode h5,
.accessibility-mode h6,
.accessibility-mode .hero__title,
.accessibility-mode .hero__subtitle,
.accessibility-mode .section-title,
.accessibility-mode .home-about__title {
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 1.5em !important;
}

.accessibility-mode p,
.accessibility-mode .home-about__text,
.accessibility-mode .afisha-card__desc,
.accessibility-mode .home-news__excerpt {
  color: #000000 !important;
  font-size: 1.2em !important;
  line-height: 1.8 !important;
}

.accessibility-mode a {
  color: #0000ff !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.accessibility-mode a:hover {
  color: #000080 !important;
}

.accessibility-mode .btn-primary {
  background: #0000ff !important;
  color: #ffffff !important;
  font-size: 1.2em !important;
  padding: 15px 30px !important;
  border: 3px solid #000000 !important;
}

.accessibility-mode .site-header {
  background: #ffffff !important;
  border-bottom: 3px solid #000000 !important;
}

.accessibility-mode .site-header__title,
.accessibility-mode .site-header__title-big,
.accessibility-mode .site-header__title-small {
  color: #000000 !important;
  font-size: 1.3em !important;
}

.accessibility-mode .primary-menu a,
.accessibility-mode .footer-menu a {
  color: #000000 !important;
  font-size: 1.1em !important;
  padding: 8px 12px !important;
  border: 2px solid transparent !important;
}

.accessibility-mode .primary-menu a:hover,
.accessibility-mode .footer-menu a:hover {
  border-color: #000000 !important;
  background: #ffff00 !important;
}

.accessibility-mode .hero {
  background: #ffffff !important;
  min-height: 450px !important;
}

.accessibility-mode .hero__video {
  opacity: 0.3 !important;
}

.accessibility-mode .hero__title,
.accessibility-mode .hero__title-big,
.accessibility-mode .hero__title-small {
  color: #000000 !important;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8) !important;
  font-size: 2em !important;
}

.accessibility-mode .hero__subtitle {
  color: #000000 !important;
  font-size: 1.3em !important;
}

.accessibility-mode .afisha-card {
  background: #ffffff !important;
  border: 3px solid #000000 !important;
}

.accessibility-mode .afisha-card__title {
  color: #000000 !important;
  font-size: 1.5em !important;
}

.accessibility-mode .home-news__item {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
}

.accessibility-mode .home-news__title {
  color: #000000 !important;
  font-size: 1.3em !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__nav {
    width: 100%;
  }

  .footer-menu {
    justify-content: flex-start;
  }

  .site-footer__contacts {
    margin-top: 8px;
  }
}

/* Адаптивность */
@media (max-width: 960px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .site-header__nav {
    order: 3;
    width: 100%;
  }

  .primary-menu {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-about__text {
    column-count: 1;
  }

  .afisha-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 10px 16px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__inner {
    padding-top: 56px;
  }

  .afisha-card__visual {
    min-height: 180px;
  }
}

/* Блок новостей на главной */
.home-news {
  padding: 40px 0 80px;
  background: #ffffff;
}

.home-news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-news__all-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5f5f7;
  opacity: 0.8;
}

.home-news__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.home-news__item {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f5f6fb;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.home-news__image {
  margin: 0 0 10px;
}

.home-news__image img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.home-news__date {
  font-size: 12px;
  color: #6b708f;
  margin-bottom: 4px;
}

.home-news__title {
  font-size: 15px;
  color: #202131;
  font-weight: 600;
  margin-bottom: 6px;
}

.home-news__excerpt {
  font-size: 14px;
  color: #373955;
}




/* Страница Афиша */
.page-afisha {
  padding: 60px 0 80px;
  background: #ffffff;
}

.afisha-full {
  max-width: 900px;
  margin: 0 auto;
}

.afisha-full__header {
  margin-bottom: 40px;
  text-align: center;
}

.afisha-full__title {
  font-size: 36px;
  font-weight: 700;
  color: #202131;
  margin: 0 0 30px;
  line-height: 1.2;
}

.afisha-full__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.afisha-full__date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  color: #363885;
  font-weight: 600;
}

.afisha-full__date-day {
  font-size: 32px;
  font-weight: 700;
}

.afisha-full__date-month {
  text-transform: lowercase;
}

.afisha-full__date-weekday {
  color: #666;
  font-weight: 400;
}

.afisha-full__date-year {
  color: #666;
  font-weight: 400;
  font-size: 16px;
}

.afisha-full__time {
  font-size: 18px;
  color: #202131;
  font-weight: 500;
}

.afisha-full__location {
  font-size: 16px;
  color: #666;
}

.afisha-full__visual {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.afisha-full__visual img {
  width: 100%;
  height: auto;
  display: block;
}

.afisha-full__content {
  margin-top: 40px;
}

.afisha-full__description {
  margin-bottom: 40px;
}

.afisha-full__description h2 {
  font-size: 24px;
  color: #202131;
  margin: 0 0 20px;
  font-weight: 700;
}

.afisha-full__description p {
  font-size: 17px;
  line-height: 1.8;
  color: #373955;
  margin: 0 0 20px;
}

.afisha-full__tickets {
  padding: 24px;
  background: #f5f6fb;
  border-radius: 12px;
  border-left: 4px solid #363885;
}

.afisha-full__tickets h3 {
  font-size: 20px;
  color: #202131;
  margin: 0 0 12px;
  font-weight: 600;
}

.afisha-full__tickets p {
  font-size: 16px;
  color: #373955;
  margin: 0;
  line-height: 1.6;
}

.afisha-full__tickets a {
  color: #363885;
  font-weight: 600;
  text-decoration: none;
}

.afisha-full__tickets a:hover {
  text-decoration: underline;
}

.afisha-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

/* Фото и видео */
.page-photovideo {
  padding: 60px 0 80px;
  background: #ffffff;
}

.photovideo__section {
  margin-top: 40px;
}

.photovideo__subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #202131;
  margin: 0 0 24px;
}

.photovideo__videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.photovideo__video-item video {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.photovideo__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.photovideo__thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photovideo__thumb img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.photovideo__thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.photovideo__empty {
  margin-top: 40px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

/* Лайтбокс для фото */
body.photovideo-lightbox-open {
  overflow: hidden;
}

.photovideo-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.photovideo-lightbox.is-open {
  display: flex;
}

.photovideo-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.photovideo-lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.photovideo-lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.photovideo-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photovideo-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photovideo-lightbox__arrow--prev {
  left: -56px;
}

.photovideo-lightbox__arrow--next {
  right: -56px;
}

@media (max-width: 1024px) {
  .photovideo__videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .photovideo__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photovideo-lightbox__arrow--prev {
    left: -40px;
  }

  .photovideo-lightbox__arrow--next {
    right: -40px;
  }
}

@media (max-width: 768px) {
  .photovideo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photovideo-lightbox__close {
    top: -32px;
  }

  .photovideo-lightbox__arrow {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .afisha-full__title {
    font-size: 28px;
  }

  .afisha-full__date {
    flex-wrap: wrap;
    justify-content: center;
  }

  .afisha-full__date-day {
    font-size: 28px;
  }
}
