/*.oval-container {
    position: relative;
    width: 100%;
    padding-top: 100%; 
}

.oval-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: ellipse(45% 47% at 50% 50%);
    transform: rotate(-306deg);
}
*/
html{
  scroll-behavior: smooth;
}

p {
    font-weight: 400;
    font-size: 18px;
    line-height: 133%;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

ul.text-list {
  color: rgba(59, 59, 59, 1);
}

.header .header-container .header-nav .header-nav-list > li .header-nav-dropdown { 
  pointer-events: auto; 
}

@media (min-width: 992px){ 
  .header .header-container .header-nav .header-nav-list > li .header-nav-dropdown { 
    pointer-events: none; 
  }
}

/*main-page*/

/*slider*/
.main-slider-section .main-slider-hero .main-slider-hero-btn {
    z-index: 3;
}
.main-slider-section .main-slider-hero .main-slider-hero-preview {
     width: auto; 
   
}
.main-slider-section .main-slider-hero .main-slider-hero-preview img {
    left: 0;
    top: 0%;
     width: 100%;
     height: 100%; 
}
.main-slider-section .main-slider-hero .main-slider-hero-preview img.mobile {
  display: none;    
}
@media (max-width: 767px) {
    .main-slider-section .main-slider-hero .main-slider-hero-preview img.mobile {
      display: block;  
      aspect-ratio: 310/382;
      margin-bottom: unset;  
    } 

    .main-slider-section .main-slider-hero .main-slider-hero-preview img.desktop {
      display: none;    
    }    
}
/*</slider>*/

.header .header-container .header-nav .header-nav-list > li .header-nav-dropdown li a:hover:before {
  background-color: #efb900;
}

.home .main-movies-slider .card .card-preview img {
  object-fit: cover;
  aspect-ratio: 1.55 / 1;
}

.home .main-theatre-section .card .card-preview img {
  height: auto;
  object-fit: cover;
  aspect-ratio: .68 / 1;
}

.section-pb-30 { 
  padding-bottom: 30px !important;
}

.single-event .event-about-content .event-about-preview img {
  border-radius: 40px;
  width: 100% !important;
}

.single-event .main-movies-slider .card .card-preview img, 
.single-cinema .main-movies-slider .card .card-preview img  {
    object-fit: cover;
    aspect-ratio: 1.78 / 1;
}

.single-cinema .event-about-content .event-about-preview img {
     border-radius: 35px;
     max-width: 400px;
}


.page-template-cinema-afisha .card .card-content .card-button-aligner .card-time span  {
  display: none;
}

.page-template-cinema-afisha .card .card-content .card-button-aligner .card-button:hover  {
  background: var(--color-accent);
  color: #fff;
}

.dates-slider-el {
    position: relative;
}

.dates-slider-el .reset-date {
    position: absolute;
    top: -1px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dates-slider-el .reset-date:before,
.dates-slider-el .reset-date:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: #000;
    top: 50%;
    left: 50%;
}

.dates-slider-el .reset-date:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.dates-slider-el .reset-date:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


.page-template-pushkin-card .main-events-section  { 
   padding-top: 0px !important;
}



/*contacts*/
.page-template-contacts .contact-col .text-p b {
    display: inline-block;
    margin-bottom: 2px;
}

.contacts-section .text-p a{ 
  color: inherit;
  text-transform: uppercase;
}

.contacts-section  .btn.exhibition { 
  background: #fff;
  font-weight: 600; 
}

.management-element .text-p { 
  font-weight: 700;
  color: #525050;
  margin-bottom: 10px;
}

.management-row .management-element .management-element-role {
  max-width: 331px;
  min-height: 90px;
}

.management-row {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 40px 50px;
  flex-wrap: wrap;
  margin: 40px 0 0;
}

.business-hours{ 
  margin-top: 40px; 
}

@media (max-width: 1280px) {
  .management-row {
    gap: 30px 40px;
    margin: 30px 0 0;
  }
  .management-row .management-element .management-element-role {
     min-height: 65px;
  }
}

@media (max-width: 992px) {
  .management-row {
    gap: 24px 30px;
  }
}

.management-element {
  display: grid;
  grid-template-rows: auto auto auto; /* Ряды: роль, имя, контактная информация */
  width: calc(33.333% - (50px * 2)/3);
  box-sizing: border-box;
}

/* Стили для информации о менеджере */
.management-info {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1280px) {
  .management-element {
    width: calc(33.333% - (40px * 2)/3);
  }
}

@media (max-width: 992px) {
  .management-element {
    width: calc(33.333% - (30px * 2)/3);
  }
}

@media (max-width: 767px) {
  .management-element {
    width: calc(50% - 15px);
  }
  .single-cinema .event-about-content .event-about-preview img {
    max-width: 100%;
  }
}

@media (max-width: 450px) {
  .management-element {
    width: 100%;
  }
  .management-row .management-element .management-element-role {
     min-height: unset;
  }
}

.management-element-role {
  font-weight: 700;
  font-size: 26px;
  line-height: 125%;
  color: #464646;
  margin-bottom: 10px;
}

@media (max-width: 1280px) {
  .management-element-role {
    font-size: 20px;
    margin-bottom: 8px;
  }
}

@media (max-width: 992px) {
  .management-element-role {
    font-size: 16px;
    margin-bottom: 6px;
  }
}

@media (max-width: 767px) {
  .management-element-role {
    margin-bottom: 4px;
  }
}

@media (max-width: 1280px) {
  .text-p {
    font-size: 16px;
    margin-bottom: 8px;
  }
}

@media (max-width: 992px) {
  .text-p {
    font-size: 14px;
    margin-bottom: 6px;
  }
}

@media (max-width: 767px) {
  .text-p {
    margin-bottom: 4px;
  }
}

.contact-info {
  margin-top: auto; /* Отталкивает контактную информацию вниз */
}

.contact-info .phone,
.contact-info .email {
    font-size: 16px;
    color: #565656;
    margin-bottom: 5px;
    text-transform: uppercase;
}

@media (max-width: 1280px) {
  .contact-info .phone,
  .contact-info .email {
    font-size: 14px;
  }
}

@media (max-width: 450px) {
  .management-element .text-p br {
    display: none;
  }
}


.socials li a {
    width: 47px;
    height: 47px;
}

.socials li a.yt {
  background-image: url(../img/yt.png);
  background-size: 32px !important;
  background-position: center;
}

/*ryzanov*/

.ryzanov-header .container {
  width: 100%;
}

.ryzanov-header  .ryzanov-header-hero{ 
  width: 100%;
  left: 0px;
}

.filmography-section .filmography-row .filmography-element img {
  -webkit-transition: -webkit-transform ease-in-out .3s;
  transition: -webkit-transform ease-in-out .3s;
  transition: transform ease-in-out .3s;
  transition: transform ease-in-out .3s, -webkit-transform ease-in-out .3s;
}

.filmography-section .filmography-row .filmography-element img:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.filmography-element .caption{ 
  margin-top: 12px; 
  font-size: 18px; 
  font-weight: 700;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #000000;
}

@media (max-width: 1414px) and (min-width: 1281px) {
  .ryzanov-header .ryzanov-header-hero {
   top: 0px;
  }
  .ryzanov-header .ryzanov-header-hero img {
    width: auto;
    height: 100%;
  }
  .contacts-section .text-p a{ 
    font-size: 14px; 
  }
}

@media (max-width: 768px) {
  .ryzanov-header .ryzanov-header-hero {
    top: 0px;
    left: -250px;
  }
  .ryzanov-header .ryzanov-header-hero img {
    height: 100%;
     width: auto;
  }
}

.btn.exhibition { 
  margin-top: 40px; 
}


@media (min-width: 1281px) {
 
   .page-template-cinema-afisha .card .card-preview img {
    object-fit: cover;
    aspect-ratio: 1.6 / 1;
  }

  .pushkin-header .container {
    min-height: 540px;
  }
  /*about elsar building*/
  .hall-header .container {
    min-height: 500px;
  }
  .hall-header .hall-header-building {
    width: 1040px;
    bottom: 0px;
  }

  .filmography-section .filmography-row {
    margin-top: 30px;
    gap: 80px;
    row-gap: 45px;
  }

  .filmography-section .filmography-row .filmography-element {
    width: calc(33.3333% - ((80px * 2) / 3));
  }

  .contacts-section .text-p a{ 
    font-size: 16px; 
  }

  .footer-main .footer-main-image {
    right: -85px;
    bottom: -65px;
    width: 422px;
  }
}

/*afisha*/
.afisha-list .afisha .afisha-row .afisha-image .afisha-mask img {
    display: block;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1 / 1.172;
    max-width: 184px;
}

.afisha-list .afisha .afisha-row .afisha-text-row .afisha-pushkin-shield {
   left: 60px;
}


.afisha-list .afisha .afisha-row .afisha-text-row .afisha-text .afisha-date .afisha-date-dm {
    min-width: 175px;
}


@media (max-width: 1280px) {
  .afisha-list .afisha .afisha-row .afisha-text-row .afisha-text .afisha-date .afisha-date-dm {
      min-width: 136px;
  }
  .hall-header .hall-header-building {
      left: 200px;
      width: 950px;
      bottom: 0px; 
  }
    .filmography-element .caption{ 
      font-size: 16px; 
    }
}

@media (max-width: 1280px) and (min-width: 993px) {
    .pushkin-header .container {
        min-height: 410px;
    }
}

@media (max-width: 992px) {
  .afisha-list .afisha .afisha-row .afisha-text-row .afisha-text .afisha-date .afisha-date-dm {
      min-width: 105px;
  }
  .filmography-element .caption {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .afisha-list .afisha .afisha-row .afisha-text-row .afisha-text .afisha-date .afisha-date-dm {
    min-width: auto;
  }
  .afisha-list .afisha .afisha-row .afisha-text-row .afisha-pushkin-shield {
    left: auto;
  }
  .container-small {
    width: 100%;
    padding: 0 15px;
  }
  .hall-header .hall-header-building {
      width: 120vw;
      left: auto;
      right: calc(-20vw - 15px);
      bottom: 0;
  }
}


.event-gallery-slider .event-gallery-link figure img {
    aspect-ratio: 1.56 / 1;
    object-fit: cover;
}

.card {
    position: relative;
    display: block;
}

.card-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-button-aligner {
    position: absolute;
    right: 0;
    top: 0;
}

.main-theatre-section .main-theatre-slider {
    border-radius: unset;
}

.main-theatre-slider .card .card-preview { 
  border-radius: unset !important;
}

 .main-events-section .card .card-preview img {
    object-fit: cover;
}

.documents-list .document-link {
  justify-content: center;
  text-align: center;
}

.blind-btn span {
  color: #1e1d1d;
}

.event-tickets-list li .event-ticket-row .event-ticket-dotw {
    min-width: 82px;
}

/*rental form*/
.rental-form-section .section-title { 
  color: var(--color-accent);
}
.rental-form-section {
  background-color: #f5f5f5;
  padding: 40px 0;
}

.rental-form-intro {
  margin-bottom: 30px;
  color: #3B3B3B;
  font-size: 18px;
  line-height: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.end-event-time { 
  font-size: 29px; 
}

.mb-60{ 
  margin-bottom: 60px !important; 
}
.form-label {
  font-size: 30px; 
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #3B3B3B;
}

.form-required {
  color: #EFB900;
  margin-left: 8px;
  font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #EAEAEA;
    border-radius: 20px;
    background-color: #fff;
    font-family: inherit;
    height: 60px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.event-type-options {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.event-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #EAEAEA;
  border-radius: 8px;
  cursor: pointer;
}

.file-upload span {
  margin-left: 8px;
  color: #666;
}

.submit-button {
  background: #EFB900;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
}

.requirements-list {
    margin-top: 30px;
    padding-left: 20px;
    color: #666;
}

.requirements-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .event-type-options {
        flex-direction: column;
    }
}

/*page-template-feedback*/

.page-template-feedback .email-form  { 
  width: 90% 
}

.page-template-feedback .rent-form-btn {
    margin-top: 10px;
}

@media (min-width: 767px) {
  .page-template-feedback .email-form .nice-select span.current {
    min-width: 280px;   
  }
}

@media (max-width: 1280px) {
    .card .card-preview img  {
        height: 202px;
    }

    .card .card-content .card-description {
        font-size: 15px;
    }

    .footer-main .footer-main-image {
        right: -90px;
    }
}

@media (max-width: 992px) {
   .card .card-preview img  {
        height: 155px;
    }
    .yellow-mobile-bar {
      display: flex;
    }

    .footer-main .footer-main-image {
       right: -88px;
    }
}

@media (max-width: 767px) {
    .footer-main .footer-main-image {
        right: 25px;
    }
}

@media (max-width: 500px) {
     .main-events-cards .card .card-preview img  {
        height: 223px;
    }
    .footer-main .footer-main-image {
      right: 0;
      width: 100vw;
      bottom: -20px;
    }

    .filmography-element .caption {
      font-size: 12px;
    }

    .btn.exhibition {
      margin-top: 15px;
      margin-bottom: 15px;
    }
}

@media (max-width: 440px) {
   .event-tickets-list li .event-ticket-row .event-ticket-dotw {
      min-width: 38px;
    }
}

/*photo-archive*/
.photo-archive .main-events-cards {
  gap: 70px 52px;
}

.photo-archive .card {
  width: calc(33.3333333333% - 35px);
}

.photo-archive .section-h3{
  color: #626262;
}

.photo-archive-select-wrap { 
  margin-top: 40px;
  display: inline-block;
  position: relative;
  margin-bottom: 40px; 
}

.photo-archive #select-year {
  font-size: 30px;
  font-weight: 600; 
  color: rgba(98, 98, 98, 1);
  padding-left: 28px;
  background-color: #D9D9D9; 
  width: 427px; 
  appearance: none; /* Убираем стандартный выпадающий список */
  -webkit-appearance: none; /* Для WebKit браузеров */
  -moz-appearance: none; /* Для Firefox */
} 

.photo-archive #select-year option[selected] {
    font-size: 30px;
}

.photo-archive #select-year  {
  /*font-size: 30px;*/
} 


.photo-archive .select-arrow {
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
   transition: transform .3s ease; /* Добавляем плавный переход */
}

.photo-archive-select-wrap:hover .select-arrow {
   transform: translateY(-50%) scale(1.15); /* Увеличиваем на 10% */
}

.photo-archive .card .card-preview img {
    object-fit: cover;
    aspect-ratio: 1.54 / 1;
    aspect-ratio: 1.65 / 1;
}

@media (max-width: 1280px) {
  .photo-archive-select-wrap {
    margin-top: 18px
  }

  .photo-archive #select-year {
    font-size: 26px;
    width: 320px;
  }

  .photo-archive .main-events-cards {
      gap: 46px 24px;
  }
  .photo-archive .main-events-cards .card {
      width: calc(33.3333333333% - 16px);
  }
}

@media (max-width: 992px) {
     .photo-archive .card .card-preview img {
        height: auto;
    }
}


@media (max-width: 767px) {
   .photo-archive .main-events-cards {
        gap: 20px 15px;
    }
    .photo-archive .main-events-cards .card {
        width: calc(50% - 7.5px);
    }
}

@media (max-width: 440px) {
    .photo-archive-select-wrap {
       width: 100%;
    }
    .photo-archive #select-year {
      width: inherit;
    }
    .photo-archive  .main-events-cards .card {
        width: 100%;
    }
    .photo-archive .card .card-preview img {
       aspect-ratio: 1.65 / 1;
    }
}
/*</photo-archive>*/

/*pay-page*/

.pay-page .cards-image { 
  max-width: 650px;
  margin-top: 40px;  
}

.pay-page .cards-image  +  .section-h3 { 
   margin-top: 27px; 
}

.pay-page .text-main {
  max-width: 847px; 
  padding: 26px 60px 26px 40px;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.03em;
  color: #3B3B3B;
  background: rgba(239, 185, 0, 0.82);
}


@media (max-width: 767px) {
  
  .pay-page .cards-image {
    width: 100%;
     margin-top: 20px;
  }
  .pay-page .cards-image  +  .section-h3 { 
   margin-top: 18px; 
  }
  .pay-page .text-main {
      padding: 20px 15px;
      font-weight: 700;
      font-size: 14px;
      line-height: 16px;
      letter-spacing: 0.03em;
  }
}



@media (min-width: 1281px) {
    
    .main-events-section .card .card-preview img {
      height: 230px;
      object-fit: cover;
    }

    .card .card-content .card-title {
        font-weight: 700;
        font-size: 26px;
        line-height: 100%;
        letter-spacing: 0.03em;
    }

   .card .card-content .card-description {
      font-size: 17px;
      line-height: 133%;
      letter-spacing: unset;
      margin-top: 7px;
  }

  .card .card-content .card-time .card-date {
       font-size: 22px;
       letter-spacing: unset;
  }

  .card .card-content .card-button-aligner .card-shields {
        gap: 16px;
        width: 45px;
    }
    .card .card-content .card-button {
      padding: 10px 12px;
      line-height: 1.2; 
      font-weight: 600;
      font-size: 18px;
      margin-top: 12px;
  }

    .main-events-section .main-events-cards {
       gap: 60px 40px;
    }
    .main-events-section .main-events-cards .card {
      display: block;
      width: calc(33.3333333333% - 30px);
  }
}



.header .header-container .header-nav .header-nav-list > li .header-nav-dropdown li a {
     line-height: 140%;
}

.main-slider-section .main-slider-hero .main-slider-hero-btn{ 
   transition: transform ease-in-out 0.3s;
}

.main-slider-section .main-slider-hero .main-slider-hero-btn:hover { 
  color: #ffffff;
  background-color: #ffcc1d;
}

.main-slider-section .swiper-controls-slider .swiper-next img, 
.main-slider-section .swiper-controls-slider .swiper-prev img {
    transition: transform 0.3s;
}

.main-slider-section .swiper-controls-slider .swiper-next:hover img {
    transform: translate(-8%) !important;
}

.main-slider-section .swiper-controls-slider .swiper-prev:hover img {
    transform: translate(-8%) !important;
}


.main-events-section .main-events-tags-list .main-events-tag.active {
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 500;
}

.main-slider-section .swiper-controls-slider .swiper-prev:hover img {
    transform: translate(-8%) !important;
}

@media (min-width: 441px) {
    .main-events-section .main-events-cards {
    	justify-content: left;
    }
}

/* Задаём высоту и включаем прокрутку */
.nice-select .list {
  max-height: 200px; /* или любая желаемая высота */
  overflow-y: auto !important;        /* вертикальная прокрутка, если много элементов */
}

/* Стилизация скролл-бара (для WebKit-браузеров: Chrome, Safari, новые Edge) */
.nice-select .list::-webkit-scrollbar {
  width: 6px;              /* ширина полосы прокрутки */
}
.nice-select .list::-webkit-scrollbar-track {
  background: #f0f0f0;     /* цвет трека (полосы) */
  border-radius: 3px;
}
.nice-select .list::-webkit-scrollbar-thumb {
  background-color: #bcbcbc; /* цвет «ползунка» */
  border-radius: 3px;
}
.nice-select .list::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0; /* цвет «ползунка» при наведении */
}

/* Стилизация скролл-бара для Firefox (и поддерживающих scrollbar-color) */
.nice-select .list {
  scrollbar-width: thin;                 /* более тонкий скролл */
  scrollbar-color: #bcbcbc #f0f0f0;      /* thumb = #bcbcbc, track = #f0f0f0 */
}



.tizer-block {
  text-align: center;
  padding-bottom: 40px; 
}
.tizer-block__row {
  margin-right: -15px;
  margin-left: -15px;
}

.tizer-block__col {
  max-width: 100%;
  padding: 16px 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  max-width: 100%;
  -ms-flex-preferred-size: 0;
  -webkit-flex-basis: 0;
  flex-basis: 0;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  -webkit-flex-grow: 1;
  flex-grow: 1;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.tizer-block__banner {
  display: inline-block;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  max-width: 285px;
  height: 280px;
  margin: 8px;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  -webkit-flex-grow: 1;
  flex-grow: 1;
  -ms-flex-negative: 1;
  -webkit-flex-shrink: 1;
  flex-shrink: 1;
}
.tizer-block__banner:empty
{
  display: none;
}
@media screen and (max-width: 1280px) {
  .tizer-block__banner {
    height: 321px;
  }
}
@media screen and (max-width: 1180px) {
  .tizer-block__banner {
    height: 304px;
  }
}
@media screen and (max-width: 1134px) {
  .tizer-block__banner {
    height: 310px;
  }
}
@media screen and (max-width: 1024px) {
  .tizer-block__banner {
    height: 332px;
  }
  .tizer-block__banner:last-child {
    display: none;
  }
}
@media screen and (max-width: 850px) {
  .tizer-block__banner {
    height: 315px;
  }
}
@media screen and (max-width: 768px) {
  .tizer-block__banner {
    height: 284px;
  }
}
@media screen and (max-width: 759px) {
  .tizer-block__banner {
    min-width: 235px;
    height: 355px;
  }
  .tizer-block__banner:last-child {
    display: block;
  }
}
@media screen and (max-width: 630px) {
  .tizer-block__banner {
    height: 320px;
  }
}
@media screen and (max-width: 540px) {
  .tizer-block__banner {
    height: 294px;
  }
}
@media screen and (max-width: 534px) {
  .tizer-block__col {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .tizer-block__banner:last-child {
    display: none;
  }
  .tizer-block__banner {
    height: 340px;
    min-width: 245px;
  }
}
@media screen and (max-width: 517px) {
  .tizer-block__banner {
    height: 350px;
  }
}
@media screen and (max-width: 320px) {
  .tizer-block__col {
    padding: 16px 8px;
  }
  .tizer-block__banner {
    height: 314px;
  }
}

.email-modal {
    display: none;
}

.email-modal .carousel__button.is-close{
  display: none;
}

/* Стили для контейнера Fancybox */
.fancybox__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fancybox__content, .email-modal-inner  {
  height: 550px;
}

/* Убираем ненужные отступы у контента */
.fancybox__content {
    padding: 0 !important;
    width: 1000px;
}

.email-modal-inner {
    position: relative;
     background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
}

.email-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.email-modal-content {
    padding: 50px 70px;
    position: relative;
    z-index: 1;
}

.email-modal-title {
    font-size: 40px;
    line-height: 39px;
    font-weight: 800;
    color: rgba(59, 59, 59, 1);
    margin: 0 0 16px 0;
}

.email-modal-desc {
    font-size: 18px;
    line-height: 24px;
    color: rgba(0, 0, 0, 1);
    margin: 0 0 32px 0;
}

/* Стили для формы CF7 */
.email-form input[type="email"] {
    width: 100%;
    /*background: #F2F2F2;*/
    margin-bottom: 30px;
}


.email-form input[type="email"]::placeholder {
    color: #626262
}

.email-form .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.email-form .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

/* Скрываем оригинальный чекбокс */
.email-form .wpcf7-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}


/* Создаем кастомный круглый чекбокс с помощью псевдоэлемента */
.email-form .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 20px;
    color: #1A1A1A;
    padding-left: 30px;
    position: relative;
    cursor: pointer;
}

.email-form .wpcf7-checkbox .wpcf7-list-item-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="8" stroke="%23464646" stroke-width="4"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

/* Стиль для выбранного состояния */
.email-form .wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;;
    width: 8px;
    height: 8px;
    background-color: #464646;
    border-radius: 50%;
    transform: scale(0);
    animation: checkmark-appear 0.2s forwards;
}

@keyframes checkmark-appear {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.email-form .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.email-form .wpcf7-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.email-form .wpcf7-checkbox .wpcf7-list-item-label {
    max-width: 500px;
    font-size: 18px;
    line-height: 24px;
    color: #1A1A1A;
    letter-spacing: 0.03em;
}

.email-form .wpcf7-checkbox .wpcf7-list-item-label a {
   color: inherit;
  border-bottom: 1px #464646a3 dashed;
}

.email-form input[type="submit"] {
    font-size: 20px;
    background: #FFB800;
    border: none;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    /* color: #1A1A1A; */
    cursor: pointer;
    transition: background-color 0.3s;
}

.email-form input[type="submit"]:hover {
    background: #FFA800;
}

.modal-background-image {
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url(https://kinoklub-eldar.ru/wp-content/uploads/2025/03/modal-bg-cut-finish.webp);
    /* background-size: contain; */
    background-position: bottom;
    z-index: 0;
    border-radius: 0px;
    background-repeat: no-repeat;
}

.email-modal-content {
    padding: 40px;
    width: 62%;
    position: relative;
    z-index: 1;
}

 /* Стили для кнопки отправки в неактивном состоянии */
  .wpcf7 .btn.disabled {
      opacity: 0.6;
      cursor: not-allowed;
  }

  /* Скрываем стандартную иконку закрытия Fancybox */
  .fancybox__toolbar button {
      display: none !important;
  }

  .wpcf7 .wpcf7-not-valid {
    border: 2px solid red !important;
    background-color: #fff0f0;
    transition: background-color 0.3s ease;
  }

  /* При фокусе */
  .wpcf7 .wpcf7-not-valid:focus {
    outline: 2px solid red;
    background-color: #ffe8e8;
  }

/* Мобильная версия */
@media (max-width: 1000px) {
   
    .fancybox__content, .email-modal-inner  {
        height: 480px;
    }

    .fancybox__content {
      padding: 0 !important;
      width: 280px;
    }

    .modal-background-image {
        width: 100%;
        height: 170px;
        top: auto;
        bottom: 0;
        right: -15px;
        background-size: auto 170px;
    }

    .email-modal-content {
        padding: 20px;
        width: 100%;
    }

    .email-modal-title {
        font-size: 24px;
        line-height: 29px;
        margin-bottom: 8px;
    }

    .email-modal-desc {
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 20px;
        letter-spacing: 2%;
    }

    .email-form .wpcf7-checkbox {
       margin-bottom: 12px;
    }

    .email-form .wpcf7-checkbox .wpcf7-list-item-label {
      font-size: 10px;
      line-height: 14px;
      letter-spacing: 2%; 
    }

    .email-form input[type="email"]{ 
        height: 40px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .email-form input[type="submit"] {
        height: 35px;
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 20px;
    
}