/* QA-пакет: подразделы, звёзды с двумя лучами, облака, кнопки, формы. */

:root {
  --section-title-size: 40px;
  --section-title-tracking: -0.04em;
  --sparkle-size: 34px;
  --btn-font-size: 13px;
}

.sparkle,
[class*="__star"],
.catalog-showcase__head > span[aria-hidden] {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  color: var(--color-pink);
  font-size: 0 !important;
  line-height: 0 !important;
}

.sparkle svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sparkle:empty::before,
[class*="__star"]::before,
.catalog-showcase__head > span[aria-hidden]::before {
  content: "";
  display: block;
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  background-color: currentColor;
  -webkit-mask: url("../img/sparkle.svg?v=2") center / contain no-repeat;
  mask: url("../img/sparkle.svg?v=2") center / contain no-repeat;
}

.sparkle:not(:empty)::before {
  display: none;
}

.festivals__title,
.reviews__title,
.season__title,
.final__title,
.faq__title,
.faq-ask__title,
.cat-hero__title,
.catalog-showcase__title,
.fest-slider__title,
.rev-hero__title,
.rev-form__title,
.jury-hero__title,
.partners__title,
.sponsors-hero__title,
.sponsors-intro__title,
.sponsors-content__title,
.sponsors-partners__title,
.sponsors-cta__title,
.review-cta__title,
.fest-card__title,
.modal__title,
.program__title,
.about-hero__title,
.about-intro__title,
.about-team__title,
.about-values__title,
.about-mission__title,
.teams-hero__title,
.news-hero__title,
.contacts-hero__title,
.packages__head,
.orgvznos__title {
  font-family: var(--font-display) !important;
  font-size: var(--section-title-size) !important;
  font-weight: 700 !important;
  letter-spacing: var(--section-title-tracking) !important;
  line-height: 1.08 !important;
  text-transform: uppercase;
  max-width: 18em;
}

.festivals__title,
.reviews__title,
.season__title,
.catalog-showcase__title,
.faq__title,
.partners__title,
.sponsors-hero__title,
.rev-hero__title,
.jury-hero__title,
.about-team__title,
.about-values__title,
.about-mission__title {
  color: var(--color-pink);
}

.btn,
.header__btn,
.nav__mobile-btn,
.stats__btn,
.stats__btn.btn,
.join-form__submit,
.rev-form__submit,
.faq-form button[type="submit"],
.sponsors-form button[type="submit"],
.fest-card__btn,
.catalog__more-btn,
.reviews-list__cta-btn,
.reviews-list__more-btn,
.about-team__btn,
.program__btn,
.filters__reset,
.pf-card__more,
.sf-card__more {
  font-size: var(--btn-font-size) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-inline: 28px;
  white-space: nowrap;
}

.join-form__submit,
.rev-form__submit,
.faq-form button[type="submit"],
.sponsors-form button[type="submit"] {
  min-width: 220px;
  min-height: 48px;
  height: 48px;
  box-sizing: border-box;
}

.join-form__submit:disabled,
.rev-form__submit:disabled {
  opacity: 0.88;
  min-width: 220px;
  min-height: 48px;
}

.form-status.is-success {
  color: var(--color-turquoise) !important;
}

.form-status {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.header__contact {
  font-size: 13px;
}

.header__contact-icon {
  color: #000;
}

.header__contact-icon--phone {
  color: #4bb8bb;
}

.header__socials {
  display: flex !important;
}

.header__icons {
  display: none;
  align-items: center;
  gap: 10px;
}

.header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-turquoise);
  border-radius: 50%;
  background: #eaf8fd;
}

.nav__link--calendar {
  width: auto !important;
  min-width: 220px;
  border-radius: 999px !important;
  white-space: nowrap;
  padding-inline: 22px;
}

.nav__item--calendar .sub-menu a {
  font-weight: 700;
}

.nav__link[aria-current="page"],
.nav__link.current-menu-item,
.current-menu-item > .nav__link,
.current-menu-ancestor > .nav__link:not(.nav__link--calendar) {
  background: #d9f3f7 !important;
  color: var(--color-turquoise) !important;
}

.hero .fest-card__title,
.hero .fest-card__title [data-hero-title] {
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 22px !important;
  text-transform: none !important;
  text-align: left;
  justify-content: flex-start;
  max-width: none;
}

.header__social {
  color: #060505;
  width: auto;
  height: auto;
  overflow: visible;
  line-height: 0;
}

.pf-card__img,
.sf-card__img,
.fest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .fest-card__img {
  object-fit: contain;
  object-position: center;
}

.pf-card__badge,
.sf-card__badge,
.cat-card__badge {
  top: 14px;
  left: 14px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.news-bar__item {
  font-size: 18px;
}

.festivals__cloud--center,
.festivals__cloud--extra,
.rev-hero__cloud--tc {
  display: none !important;
}

.festivals__cloud,
.rev-hero__cloud,
.jury-hero__cloud,
.partners__cloud,
.packages__cloud,
.faq .cat-hero__cloud {
  opacity: 0;
}

.festivals__clouds,
.rev-hero__clouds,
.jury-hero__clouds,
.partners__clouds,
.packages__clouds,
.faq-hero__clouds {
  overflow: hidden;
}

.festivals__clouds::before,
.festivals__clouds::after,
.rev-hero__clouds::before,
.rev-hero__clouds::after,
.jury-hero__clouds::before,
.jury-hero__clouds::after,
.partners__clouds::before,
.partners__clouds::after,
.packages__clouds::before,
.packages__clouds::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 520px;
  height: 320px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 0;
}

.festivals__clouds::before,
.rev-hero__clouds::before,
.jury-hero__clouds::before,
.partners__clouds::before,
.packages__clouds::before {
  left: -150px;
  background-image: url("../img/cloud-catalog-left.svg");
}

.festivals__clouds::after,
.rev-hero__clouds::after,
.jury-hero__clouds::after,
.partners__clouds::after,
.packages__clouds::after {
  right: -170px;
  background-image: url("../img/cloud-catalog-right.svg");
}

.advantage__cloud {
  transform: scale(0.92);
  transform-origin: center;
}

.advantage--conditions img,
.advantage:nth-child(3) .advantage__icon,
.advantage__icon--person {
  filter: hue-rotate(155deg) saturate(1.15);
}

.stat-card {
  background: #c8eef4 !important;
}

.stats__btn.btn {
  width: auto !important;
  min-width: 320px;
  padding-inline: 36px !important;
}

.footer__org {
  display: none;
}

.footer__logo-img {
  width: 260px;
  height: auto;
}

.footer__cloud {
  width: min(42vw, 520px);
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer__social {
  display: inline-flex;
  color: var(--color-turquoise);
}

.modal__title {
  font-size: 28px !important;
  gap: 12px;
}

.apply-modal__frame {
  width: 100%;
  min-height: 640px;
  border: 0;
}

.fest-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.fest-hero__btn--polozhenie,
.fest-hero__btn--managers {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

.fest-card__rich.is-collapsed {
  max-height: 280px;
  overflow: hidden;
  mask-image: linear-gradient(#000 70%, transparent);
}

.fest-card__questions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.program__switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 28px;
}

.program__switch-btn {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #bfe8ef;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.program__switch-btn.is-active {
  background: var(--color-pink);
  color: #fff;
}

.program__variant[hidden] {
  display: none !important;
}

.day-card {
  margin-bottom: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.article-layout img {
  width: 100%;
  height: auto;
  max-width: 280px;
}

.article-content h1,
.single-post .entry-title,
.news-single__title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-team__btn {
  padding-inline: 36px !important;
}

.about-team .team-card,
.team-card {
  aspect-ratio: 3 / 4;
}

.review-card__fest-date {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-primary);
}

.jury__select-wrap,
.jury__filter {
  display: flex;
  justify-content: center;
}

.jury__select {
  text-align: center;
  border-radius: 999px;
  min-width: 280px;
}

.filters__reset {
  color: #000 !important;
}

.catalog__more-btn {
  text-transform: none;
  font-weight: 600;
}

.partners__city,
.partner-card__city {
  color: #fff !important;
}

.rev-form__field--photo .rev-form__file-control {
  min-height: 120px;
}

.reviews-list__cta-btn {
  background: var(--color-turquoise);
  color: #fff;
}

body.body--festival section.packages:not(.fest-panel):not(.packages--in-tab),
body.body--festival section.orgvznos:not(.fest-panel):not(.orgvznos--in-tab) {
  display: none !important;
}

body.festival-archived .fest-tab[data-tab="packages"],
body.festival-archived .fest-tab[data-tab="orgvznos"],
body.festival-archived .fest-tab[data-tab="program"],
body.festival-archived .fest-hero__btn--managers,
body.festival-archived [data-panel="packages"],
body.festival-archived [data-panel="orgvznos"],
body.festival-archived [data-panel="program"],
body.festival-archived .packages,
body.festival-archived .orgvznos,
body.festival-archived section.program:not(.results) {
  display: none !important;
}

@media (min-width: 1200px) {
  .hero {
    min-height: 0;
    height: clamp(560px, 47.2vw, 720px);
    max-height: none;
  }

  .season__head,
  .season__tabs,
  .season__slider {
    display: flex !important;
  }

  .season__slider {
    display: block !important;
  }
}

@media (max-width: 1199px) {
  :root {
    --section-title-size: 32px;
    --sparkle-size: 26px;
  }

  .season__head,
  .season__tabs,
  .season__slider {
    display: flex !important;
  }

  .season__slider {
    display: block !important;
  }
}

@media (max-width: 767px) {
  :root {
    --section-title-size: 26px;
    --sparkle-size: 22px;
  }

  .header__contacts,
  .header__actions .header__btn {
    display: none;
  }

  .header__icons {
    display: flex;
    margin-left: auto;
  }

  .header__socials {
    display: none !important;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .footer__logo-img {
    width: 180px;
  }
}

/* ----- пакет 31.08: мобилка + оставшиеся десктоп-комменты ----- */

.advantages {
  display: none !important;
}

.reviews .advantages {
  display: none !important;
}

.season__slider:has(> .season__nav[hidden]) + .jury,
.season .jury {
  margin-top: 32px !important;
}

.season__tabs {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.season__tabs::-webkit-scrollbar {
  display: none;
}

.season-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.season__nav,
.jury .season__nav,
[data-slider="season"] .season__nav,
[data-slider="jury"] .season__nav {
  display: flex !important;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.season__nav[hidden] {
  display: flex !important;
}

.header__social--vk svg,
.header__icon--vk svg,
.header__social--tg svg,
.header__icon--tg svg {
  width: auto;
  height: 18px;
  overflow: visible;
  display: block;
}

.about-hero__image {
  background: transparent;
  height: auto;
  overflow: hidden;
}

.about-hero__photo,
.sponsors-quote__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.sponsors-quote__photo {
  background: transparent !important;
  overflow: hidden;
}

.sponsors-quote__photo:empty {
  background: #d9d9d9;
}

.final__title {
  max-width: none !important;
}

.stats,
.reviews,
.season,
.final {
  padding-block: 32px !important;
}

.footer__grid {
  padding-bottom: 12px;
}

.page--apply .apply-page {
  padding: 48px 0 80px;
}

.apply-page__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: var(--section-title-size);
  letter-spacing: var(--section-title-tracking);
  text-transform: uppercase;
  color: var(--color-pink);
}

.apply-page__frame {
  display: block;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  min-height: calc(100vh - 180px);
  height: 1400px;
  border: 0;
  background: #fff;
  border-radius: 16px;
}

.modal[data-modal="apply"] .modal__dialog {
  max-height: 90vh;
  overflow: auto;
}

.page--jury .jury > .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.jury__filter {
  display: block;
  justify-content: flex-start;
}

.jury__select-heading {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jury__select-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.jury__select-wrap {
  display: block;
}

.jury__select {
  text-align: left;
  min-width: 100%;
  border-radius: 18px;
}

.jury__grid,
.jury-empty,
.jury__more,
.jury__cta {
  width: 100%;
}

.jury__more {
  display: flex;
  justify-content: center;
}

.partners__title,
.about-intro__title,
.about-team__title,
.sponsors-intro__title,
.sponsors-content__title,
.sponsors-partners__title,
.sponsors-cta__title,
.catalog-showcase__title,
.fest-slider__title,
.orgvznos__title,
.program__title {
  text-align: center;
  margin-inline: auto;
}

.packages__head {
  font-size: 28px !important;
}

.pf-card__img,
.sf-card__img {
  object-fit: cover;
  object-position: center 30%;
}

.hero .fest-card__media img,
.hero .fest-card__img {
  object-fit: contain;
  object-position: center;
}

.catalog__more-btn {
  width: auto !important;
  min-width: 0;
  padding-inline: 22px !important;
  text-transform: uppercase;
  font-weight: 700;
}

.reviews-list__more,
.reviews-list__cta {
  display: flex;
  justify-content: center;
}

.reviews-list .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-list__more + .reviews-list__cta {
  margin-top: 0;
}

.rev-form {
  position: relative;
  padding-bottom: 24px;
}

.rev-form__submit {
  display: block;
  margin: 16px auto 0;
}

.rev-form__input,
.rev-form__select,
.rev-form__textarea,
.rev-form__file-control,
.rev-form__label {
  color: #9aa3a8 !important;
}

.rev-form__field--festival,
.rev-form__field--photo {
  min-height: 0;
}

.rev-form__field--photo .rev-form__file-control {
  min-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
}

.rev-hero__cloud--tc {
  display: block !important;
  opacity: 1;
}

.page--reviews .rev-hero__clouds::before,
.page--reviews .rev-hero__clouds::after {
  width: 420px;
}

.about-clouds svg,
.sponsors-clouds svg,
.partners__cloud,
.about-cloud,
.sponsors-cloud,
.cat-hero__cloud,
.news-hero .cat-hero__cloud,
.teams-hero .cat-hero__cloud {
  display: none !important;
}

.about-clouds,
.sponsors-clouds,
.partners__clouds,
.cat-hero__clouds,
.faq .about-clouds {
  position: relative;
  overflow: hidden;
  min-height: 1px;
}

.about-clouds::before,
.about-clouds::after,
.sponsors-clouds::before,
.sponsors-clouds::after,
.cat-hero__clouds::before,
.cat-hero__clouds::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 520px;
  height: 320px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

.about-clouds::before,
.sponsors-clouds::before,
.cat-hero__clouds::before {
  left: -150px;
  background-image: url("../img/cloud-catalog-left.svg");
}

.about-clouds::after,
.sponsors-clouds::after,
.cat-hero__clouds::after {
  right: -170px;
  background-image: url("../img/cloud-catalog-right.svg");
}

.fest-hero__cta {
  justify-content: flex-start;
}

.fest-gallery__dots,
.fest-hero__dots,
[data-gallery-dots] {
  justify-content: center;
}

.map-pin__label,
.partners-map__city,
.partner-pin__name {
  color: #fff !important;
}

.partners__more-btn {
  background: var(--color-turquoise) !important;
  color: #fff !important;
}

.archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 28px;
}

.archive__filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.archive__filter select {
  min-width: 200px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #cfe8ee;
  padding: 0 18px;
  background: #fff;
}

.review-cta__btn {
  background: var(--color-pink) !important;
  color: #fff !important;
}

.fest-slider__title,
.catalog-showcase__title {
  color: var(--color-pink) !important;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.orgvznos__title,
.program__title {
  text-align: center;
  margin-inline: auto;
}

.fest-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.sponsors-logo {
  width: 168px !important;
  height: 168px !important;
}

/* FIX 2026-09-22 (слайды 43,45-46): облако закрывает ВСЮ форму
   «Хочу стать спонсором» во всех состояниях (initial/error/success). */
.page--sponsors .sponsors-cta__cloud {
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
}

/* FIX 2026-09-22 (слайды 43,45-46): hero-облака teams не обрезаются
   снизу родительской секцией; layout не меняется. */
.teams-hero,
.teams-hero.cat-hero {
  overflow: visible !important;
}

.sponsors-partners__grid,
.sponsors-logos {
  gap: 18px !important;
}

.about-intro__title,
.about-team__title {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .final__title {
    white-space: normal;
    max-width: none !important;
  }
}

@media (max-width: 767px) {
  .about-intro__title,
  .about-team__title,
  .fest-slider__title,
  .catalog-showcase__title {
    white-space: normal;
  }

  .final__title {
    font-size: var(--section-title-size) !important;
    letter-spacing: var(--section-title-tracking) !important;
    white-space: normal;
  }
}

@media (max-width: 1023px) {
  .page--jury .jury > .container {
    display: flex;
    flex-direction: column;
  }

  .final__title {
    white-space: normal;
  }
}

/* Модалка заявки/звонка по рефу Figma: поля 65px с текстом 18px, кнопка 352×60. */
.modal--short .modal__dialog {
  max-width: 708px;
  padding: 48px 72px 40px;
}

.modal--short .join-form {
  gap: 15px;
}

.modal--short .join-form__input {
  height: 65px;
  padding-inline: 32px;
  border-radius: 33px;
  font-size: 18px;
  background: #e8e8e8;
}

.modal--short .join-form__agree {
  justify-content: center;
  margin-top: 12px;
  font-size: 15px;
}

.modal--short .join-form__submit {
  width: 352px;
  height: 60px;
  margin: 24px auto 0;
  border-radius: 33px;
  font-size: 18px;
}

@media (max-width: 767px) {
  .modal--short .modal__dialog {
    padding: 44px 24px 28px;
  }

  .modal--short .join-form__input {
    height: 56px;
    font-size: 16px;
  }

  .modal--short .join-form__submit {
    width: 100%;
  }
}

/* HOME-NEW-FEEDBACK (390px): зазор «Все жюри» → final до стандартного. */
@media (max-width: 767px) {
  .season__container {
    padding-bottom: 32px !important;
  }

  .season .jury {
    padding-bottom: 0 !important;
  }

  section.final {
    padding-top: 0 !important;
  }

  .final__container {
    padding-top: 32px !important;
  }

  .final__head {
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .final__head .final__title {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* VIDEO-DEFECTS-VERIFY (390px): карточки жюри на главной без фото — показывать плейсхолдер и имя/роль. */
.season .jury-card__face--front:has(.jury-card__placeholder) {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  background: #eef7f8;
}

.season .jury-card__face--front .jury-card__photo:has(.jury-card__placeholder) {
  width: auto;
  height: auto;
  background: transparent;
}

.season .jury-card__face--front .jury-card__placeholder {
  display: block;
  width: 96px;
  height: 96px;
  color: #9db9bb;
}

.season .jury-card__face--front .jury-card__front-copy {
  display: block;
  text-align: center;
}
