@import url("./styles.css");

body.site-v2 {
  background: #7d9fc8;
}

body.site-v2 h1,
body.site-v2 h2,
body.site-v2 h3 {
  font-family: "MV-WEEKEND", sans-serif;
  font-weight: 400;
}

body.site-v2 #main {
  background: transparent;
}

body.site-v2 .site-header__top,
body.site-v2 .site-nav {
  background: linear-gradient(105deg, #556e98 -13.2%, #4a6490 64.57%);
}

body.site-v2 .site-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

body.site-v2 .first-screen {
  background: none;
}

body.site-v2 .hero {
  background: url("../pictures/sky-bg.jpg") center top no-repeat;
  padding: 0 0 14.9rem;
  overflow: visible;
  position: relative;
  z-index: 3;
}

body.site-v2 .hero__grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 1.25rem;
}

body.site-v2 .hero__visual-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
  z-index: 1000;
}

body.site-v2 .hero__friends {
  position: absolute;
  left: 50%;
  top: calc(10.4rem + 80px);
  transform: translateX(-50%);
  animation: friends-float 6s ease-in-out infinite;
  width: min(100%, 1024px);
  height: auto;
  max-height: none;
  display: block;
  pointer-events: none;
  z-index: 9999;
}

@keyframes friends-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-30px);
  }
}

@keyframes team-bird-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-v2 .hero__friends {
    animation: none;
    transform: translateX(-50%);
  }

  body.site-v2 .team-decor--left {
    animation: none;
  }
}

body.site-v2 .hero__poster {
  position: relative;
  z-index: 1;
  padding: 0;
}

body.site-v2 .hero__poster-stack {
  transform: none;
  width: min(100%, 760px);
  padding: 2.2rem 1rem 0.35rem;
  gap: 0.35rem;
}

body.site-v2 .hero__poster-img {
  width: min(74%, 295px);
  margin-top: 0;
}

body.site-v2 .hero__poster-caption {
  color: #f2f1ed;
  text-align: center;
  text-shadow: 0 4px 4px rgba(74, 110, 170, 0.26);
  font-family: "MV-WEEKEND", sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: none;
  letter-spacing: 0.03em;
}

body.site-v2 .hero__date {
  margin: 0 auto;
  padding: 0 2.2rem;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2f1ed;
  text-align: center;
  font-family: "MV-WEEKEND", sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  background: url("../pictures/knopila.png") center calc(50% + 8px) no-repeat;
  background-size: 59%;
  min-width: 380px;
}

body.site-v2 .hero__slogan {
  margin: 0.35rem 0 0;
  color: #f2f1ed;
  text-align: center;
  font-family: "MV-WEEKEND", sans-serif;
  font-size: 27px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

body.site-v2 .hero__content {
  display: none;
}

body.site-v2 #program-note {
  background: url("../pictures/kraft-paper.jpg") center -80px no-repeat;
  margin-top: -80px;
  padding-top: calc(1rem + 80px);
  position: relative;
  z-index: 1;
}

body.site-v2 #program-note .section__title {
  color: #495B78;
  margin-top: 32px;
  margin-bottom: 0.65rem;
}

body.site-v2 .plate--participants {
  background: #efe5db;
}

body.site-v2 .plate--visitors {
  background: #e6ceb5;
}

body.site-v2 .plate__polaroids {
  max-width: min(54%, 300px);
}

@media (min-width: 901px) {
  body.site-v2 .plate--visitors .plate__polaroids {
    transform: translateY(0);
  }
}

body.site-v2 #participants .plate__title,
body.site-v2 #visitors .plate__title {
  color: #A8594F;
  font-size: 2.0625rem;
}

body.site-v2 #team .font-heading,
body.site-v2 #jury .font-heading {
  font-family: "MV-WEEKEND", sans-serif;
  font-weight: 400;
}

body.site-v2 #team .person-card__name,
body.site-v2 #jury .person-card__name {
  color: #3a4353;
  font-size: 22px;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

body.site-v2 #jury.section {
  background-image: url("../pictures/linen-bg.jpg");
  background-repeat: repeat;
  background-position: center;
  position: relative;
}

body.site-v2 #jury.section > .container {
  position: relative;
  z-index: 1;
}

body.site-v2 .contacts__block h3 {
  font-size: 1.65rem;
}

body.site-v2 .btn {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
}

body.site-v2 .btn.btn--header {
  padding: 0.5rem 1.35rem;
  border-radius: 10px;
}

body.site-v2 #about.section::before {
  background-image: url("../pictures/second-sky.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

body.site-v2 #venues.section {
  background-image: url("../pictures/linen-bg.jpg");
  background-repeat: repeat;
  background-position: center;
}

body.site-v2 .venues-unified {
  margin-top: 1.25rem;
}

body.site-v2 .venues-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1rem;
}

body.site-v2 .venues-switcher__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #495B78;
  font-family: "MV-WEEKEND", sans-serif;
  font-weight: 400;
  font-size: calc(0.95rem + 7px);
  box-shadow: 0 6px 16px rgba(44, 53, 68, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

body.site-v2 .venues-switcher__btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(44, 53, 68, 0.16);
  color: #934339;
}

body.site-v2 .venues-switcher__btn.is-active {
  background: rgba(255, 255, 255, 0.98);
  color: #934339;
  box-shadow: 0 12px 28px rgba(44, 53, 68, 0.16);
}

body.site-v2 .venues-switcher__btn:focus-visible {
  outline: 3px solid rgba(147, 67, 57, 0.65);
  outline-offset: 3px;
}

body.site-v2 .venues-gallery {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
}

body.site-v2 .venues-gallery__main-col {
  position: relative;
  flex: 1;
  min-width: 0;
}

body.site-v2 .venues-gallery__main {
  padding: 0;
  border: none;
  cursor: zoom-in;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  aspect-ratio: 15 / 8;
  overflow: hidden;
}

body.site-v2 .venues-gallery__main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

body.site-v2 .venues-gallery__main:focus-visible {
  outline: 3px solid rgba(147, 67, 57, 0.65);
  outline-offset: 3px;
}

body.site-v2 .venues-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #495B78;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44, 53, 68, 0.14);
}

body.site-v2 .venues-gallery__nav--prev {
  left: 0.5rem;
}

body.site-v2 .venues-gallery__nav--next {
  right: 0.5rem;
}

body.site-v2 .venues-gallery__nav:hover {
  background: #ffffff;
  color: #934339;
}

body.site-v2 .venues-gallery__nav:focus-visible {
  outline: 3px solid rgba(147, 67, 57, 0.65);
  outline-offset: 3px;
}

body.site-v2 .venues-gallery__thumbs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: flex-start;
  align-items: stretch;
  flex-shrink: 0;
  width: min(160px, 32vw);
}

body.site-v2 .venues-gallery__thumb {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  width: 100%;
}

body.site-v2 .venues-gallery__thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(44, 53, 68, 0.14);
}

body.site-v2 .venues-gallery__thumb.is-active {
  border-color: #934339;
  box-shadow: 0 0 0 1px rgba(147, 67, 57, 0.35);
}

body.site-v2 .venues-gallery__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 5/3;
  object-fit: cover;
  display: block;
}

body.site-v2 .venues-meta {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(73, 91, 120, 0.95);
  text-align: center;
}

body.site-v2 .venues-meta a {
  color: #934339;
  font-weight: 600;
}

body.site-v2 #contacts.section {
  background-image: url("../pictures/kraft-paper.jpg");
  background-repeat: repeat;
  background-position: center;
}

body.site-v2 #archive.section {
  background-image: url("../pictures/linen-bg.jpg");
  background-repeat: repeat;
  background-position: center;
}

body.site-v2 .archive-years-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 560px);
  margin: 0.75rem auto 1.25rem;
}

@media (min-width: 701px) {
  body.site-v2 .archive-years-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(100%, 760px);
  }
}

body.site-v2 .year-tile {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 0.6rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: #495B78;
  font-family: "MV-WEEKEND", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(44, 53, 68, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

body.site-v2 .year-tile:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(44, 53, 68, 0.16);
  color: #934339;
}

body.site-v2 .year-tile:focus-visible {
  outline: 3px solid rgba(147, 67, 57, 0.75);
  outline-offset: 3px;
}

body.site-v2 .year-tile.year-tile--active {
  background: #ffffff;
  color: #934339;
  box-shadow:
    0 6px 16px rgba(44, 53, 68, 0.12),
    0 3px 0 0 #934339 inset;
}

body.site-v2 #archive .archive-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(73, 91, 120, 0.18);
}

body.site-v2 #archive .archive-card {
  background: rgba(255, 255, 255, 0.92);
}

body.site-v2 .modal__title--news.news-modal__title {
  font-size: calc(1.2rem + 10px);
  color: #a8594f;
}

body.site-v2 #contacts .section__title {
  color: #ffffff;
  font-size: calc(clamp(1.65rem, 3vw, 2.1rem) + 4px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

@media (min-width: 1024px) {
  body.site-v2 .section__title {
    font-size: 3.1rem;
  }

  body.site-v2 #contacts .section__title {
    font-size: 3.1rem;
  }
}

body.site-v2 #contacts .contacts__block {
  box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 0.1);
}

body.site-v2 #charity.section {
  background-image: url("../pictures/honey-linen-bg.jpg");
  background-repeat: repeat;
  background-position: center;
  padding-top: 2rem;
  padding-bottom: 0;
}

body.site-v2 #charity .section__title {
  color: #f2f1ed;
  margin-bottom: 1.2rem;
}

body.site-v2 .charity__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 901px) {
  body.site-v2 .charity__grid {
    grid-template-columns: 30% 70%;
    gap: 2rem;
  }
}

body.site-v2 .charity__intro {
  display: flex;
  flex-direction: column;
  color: rgba(242, 241, 237, 0.95);
  height: 100%;
}

body.site-v2 .charity__text {
  margin: 0 0 1rem;
  font-size: 0.89rem;
  line-height: 1.6;
}

body.site-v2 .charity__angel {
  width: min(100%, 252px);
  height: auto;
  margin-top: auto;
}

@media (min-width: 901px) {
  body.site-v2 .charity__angel {
    width: 100%;
    max-width: 147px;
  }
}

body.site-v2 .charity__news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.5rem;
  align-items: start;
  padding-left: 40px;
  align-content: start;
}

body.site-v2 .news-card {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-decoration: none;
  color: rgba(242, 241, 237, 0.98);
}

body.site-v2 .news-card__img {
  width: 100px;
  max-width: 100%;
  aspect-ratio: 80 / 80;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

body.site-v2 .section-seam {
  position: relative;
  z-index: 90;
  pointer-events: none;
}

body.site-v2 .section-seam__inner {
  position: relative;
  height: 0;
}

body.site-v2 .section-seam__pugovitsa {
  position: absolute;
  right: -50px;
  top: -26px;
  width: 84px;
  height: auto;
  display: block;
}

body.site-v2 #photo-story.section {
  position: relative;
}

body.site-v2 #photo-story.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../pictures/second-sky.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
}

body.site-v2 #photo-story.section > .container {
  position: relative;
  z-index: 1;
}

body.site-v2 #charity .news-card__title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.25;
}

body.site-v2 .news-card:hover .news-card__img {
  transform: translateY(-2px);
}

body.site-v2 .news-card__img {
  transition: transform 0.22s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.site-v2 .news-card__img {
    transition: none;
  }

  body.site-v2 .news-card:hover .news-card__img {
    transform: none;
  }
}

body.site-v2 #team.section::before {
  background-image: none;
}

body.site-v2 #team.section {
  background-image: url("../pictures/caramel-linen-bg.jpg");
  background-repeat: repeat;
  background-position: center;
  position: relative;
}

body.site-v2 #team.section > .container {
  position: relative;
  z-index: 1;
}

body.site-v2 .team-decor {
  position: absolute;
  z-index: 90;
  pointer-events: none;
  display: block;
}

body.site-v2 .team-decor--left {
  left: 150px;
  top: 60px;
  width: 154px;
  height: auto;
  animation: team-bird-float 6s ease-in-out infinite;
}

body.site-v2 .section-seam--team-jury {
  position: relative;
  z-index: 90;
  pointer-events: none;
}

body.site-v2 .section-seam--team-jury .section-seam__inner {
  position: relative;
  height: 0;
}

body.site-v2 .section-seam__bird {
  position: absolute;
  right: -115px;
  top: 445px;
  width: 140px;
  height: auto;
  display: block;
}

/* ─── Мобильная вёрстка (смартфоны) ─── */
@media (max-width: 768px) {
  body.site-v2 {
    overflow-x: hidden;
  }

  body.site-v2 .container {
    width: min(100% - 1.25rem, var(--max-w));
  }

  body.site-v2 .site-header__top {
    padding: 0.65rem 0;
  }

  body.site-v2 .site-header__top-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  body.site-v2 .site-header__contacts,
  body.site-v2 .site-header__actions {
    display: none;
  }

  body.site-v2 .site-nav {
    padding: 0.45rem 0 0.35rem;
  }

  body.site-v2 .site-nav__inner {
    justify-content: center;
    gap: 0.5rem 1.25rem;
    row-gap: 0.45rem;
  }

  body.site-v2 .site-nav a {
    font-size: 0.875rem;
    padding-bottom: 0.35rem;
  }

  body.site-v2 .hero {
    padding: 0 0 10rem;
  }

  body.site-v2 .hero__poster-stack {
    padding: 1.25rem 0.75rem 0.25rem;
  }

  body.site-v2 .hero__poster-caption {
    font-size: clamp(1.2rem, 5.2vw, 1.85rem);
    padding: 0 0.25rem;
  }

  body.site-v2 .hero__date {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 5.5rem;
    padding: 0.65rem 1rem;
    font-size: calc(clamp(1.15rem, 4.5vw, 1.65rem) + 3px);
    background-position: center calc(50% + 8px);
    background-size: 59%;
  }

  body.site-v2 .hero__slogan {
    font-size: clamp(1rem, 3.8vw, 1.35rem);
    padding: 0 0.75rem;
    margin-top: 0.1rem;
  }

  body.site-v2 .hero__friends {
    top: calc(8.5rem + 40px + 90px + 40px);
    width: min(100%, 100vw);
  }

  body.site-v2 .hero__poster-img {
    width: min(88%, 220px);
  }

  body.site-v2 #program-note {
    background-image: url("../pictures/kraft-paper.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
    margin-top: -3rem;
    padding-top: 2.5rem;
  }

  body.site-v2 .section__title {
    line-height: 115%;
  }

  body.site-v2 #program-note .section__title,
  body.site-v2 #about .section__title,
  body.site-v2 #venues .section__title,
  body.site-v2 #team .section__title,
  body.site-v2 #jury .section__title,
  body.site-v2 #photo-story .section__title,
  body.site-v2 #charity .section__title,
  body.site-v2 #contacts .section__title {
    font-size: 39px;
  }

  body.site-v2 #program-note .section__title {
    margin-top: 0.5rem;
  }

  body.site-v2 .section {
    padding: 2rem 0;
  }

  body.site-v2 #charity.section {
    padding-top: 1.5rem;
    padding-bottom: 0;
  }

  body.site-v2 #team.section {
    padding: 2rem 0 2.5rem;
  }

  body.site-v2 .team-decor {
    display: none;
  }

  body.site-v2 .charity__news {
    grid-template-columns: 1fr;
    padding-left: 0;
    row-gap: 1.1rem;
  }

  body.site-v2 #charity .charity__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  body.site-v2 #charity .charity__intro {
    display: contents;
  }

  body.site-v2 #charity .charity__text {
    grid-row: 1;
  }

  body.site-v2 #charity .charity__news {
    grid-row: 2;
  }

  body.site-v2 #charity .charity__angel {
    grid-row: 3;
    width: min(50%, 126px);
    max-width: 126px;
    height: auto;
    margin-top: 0.5rem;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  body.site-v2 #charity .news-card__title {
    font-size: 0.9rem;
  }

  body.site-v2 .archive-panel {
    padding: 1.1rem 1rem;
  }

  body.site-v2 .archive-year-heading {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  body.site-v2 .archive-subhead {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  }

  body.site-v2 .contacts__grid {
    grid-template-columns: 1fr;
  }

  body.site-v2 .section-seam__pugovitsa {
    left: 50%;
    right: auto;
    top: -36px;
    width: 64px;
    transform: translateX(-50%);
  }

  body.site-v2 .section-seam__bird {
    display: none;
  }

  body.site-v2 #visitors .plate__polaroids {
    display: none;
  }

  body.site-v2 #visitors .plate__intro {
    display: none;
  }

  body.site-v2 #visitors .plate__actions--visitors {
    justify-content: center;
    width: 100%;
  }

  body.site-v2 .venues-gallery {
    flex-direction: column;
  }

  body.site-v2 .venues-gallery__thumbs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  body.site-v2 .venues-gallery__thumb {
    width: auto;
  }

  body.site-v2 .venues-gallery__thumb img {
    width: 92px;
  }

  body.site-v2 .venues-switcher__btn {
    font-size: calc(0.875rem + 7px);
    padding: 0.48rem 0.8rem;
  }

  body.site-v2 .modal__dialog.paper-edge {
    max-width: min(100%, calc(100vw - 1.5rem));
    margin: 0.5rem;
  }

  body.site-v2 .site-footer__inner {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  body.site-v2 #jury.section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  body.site-v2 .site-logo__text {
    font-size: calc(0.62rem + 2px);
  }

  body.site-v2 .site-logo__mark img {
    height: 40px;
  }

  body.site-v2 .hero {
    padding-bottom: 10rem;
  }

  body.site-v2 .hero__friends {
    top: calc(7rem + 32px + 90px + 40px);
  }

  body.site-v2 #program-note {
    margin-top: -2rem;
    padding-top: 2rem;
  }

  body.site-v2 .two-plates {
    gap: 1rem;
  }

  body.site-v2 .plate {
    padding: 1.1rem 1rem;
  }

  body.site-v2 .archive-years-grid {
    gap: 0.5rem;
    width: 100%;
  }

  body.site-v2 .year-tile {
    padding: 0.55rem 0.4rem;
    font-size: 0.95rem;
  }

  body.site-v2 #team .person-card__name,
  body.site-v2 #jury .person-card__name {
    font-size: 20px;
  }
}
