@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&display=swap');

:root {
  --accent: #07a342;
  --accent-hover: #188341;
  --text: #272727;
  --muted: #575757;
  --bg-soft: #f3f3f3;
  --bg-soft-2: #f5f5f5;
  --border-soft: rgba(0, 0, 0, 0.05);
  --shadow-soft: 4px 4px 4px rgba(9, 52, 26, 0.08);
}

* {
  font-family: 'Roboto', sans-serif;
}

.hero {
  position: relative;
  border-bottom: 1px solid var(--border-soft);
  padding: 64px 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}

.hero__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  filter: blur(0.5px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero__left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: 64px;
  line-height: 1.2;
  color: var(--accent);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__subtitle {
  margin: 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}

.hero__desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
  max-width: 520px;
}

.hero__right {
  position: relative;
  flex: 0 0 auto;
}

.hero__slider {
  width: 640px;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
  position: relative;
}

.hero__slider-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.hero__slide {
  min-width: 100%;
  height: 100%;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 29px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}

.hero__nav img {
  width: 29px;
  height: 30px;
}

.hero__nav--left {
  left: -45px;
}

.hero__nav--right {
  right: -45px;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  transition: background-color 0.15s ease;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--lg {
  padding: 12px 28px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  width: 100%;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 16px;
}

.link--underline {
  text-transform: uppercase;
  font-weight: 700;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 64px 0;
}

.section__title {
  margin: 0 0 48px;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.2;
}

.section__title--upper {
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-bottom: 0px;
}

.fest__subtitle {
  padding-bottom: 0px;;
}

.section__subtitle {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 24px;
  color: var(--accent);
}

.about {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.disciplines {
  display: flex;
  gap: 16px;
}

.discipline {
  flex: 1 1 0;
  min-height: 240px;
  height: auto;
  background: var(--bg-soft-2);
  border-radius: 4px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.discipline__inner {
  position: relative;
  width: 100%;
  min-height: 240px;
}

.discipline__face {
  width: 100%;
  min-height: 240px;
  background: var(--bg-soft-2);
  border-radius: 4px;
  box-sizing: border-box;
}

.discipline__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 20px 12px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.discipline__back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 20px 16px;
  gap: 12px;
  transition: opacity 0.3s ease;
}

.discipline:hover .discipline__back,
.discipline.is-flipped .discipline__back {
  opacity: 1;
  z-index: 3;
}

.discipline:hover .discipline__front,
.discipline.is-flipped .discipline__front {
  opacity: 0;
}

@media (min-width: 769px) {
  html:not(.no-3d-flip) .discipline {
    perspective: 800px;
    background: transparent;
    overflow: visible;
  }

  html:not(.no-3d-flip) .discipline__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    transform-origin: center;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  html:not(.no-3d-flip) .discipline__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 240px;
    border-radius: 4px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  html:not(.no-3d-flip) .discipline__front,
  html:not(.no-3d-flip) .discipline__back {
    opacity: 1;
    z-index: auto;
    transition: none;
    background: var(--bg-soft-2);
  }

  html:not(.no-3d-flip) .discipline__front {
    transform: rotateY(0deg);
  }

  html:not(.no-3d-flip) .discipline__back {
    transform: rotateY(180deg);
  }

  html:not(.no-3d-flip) .discipline:hover .discipline__inner,
  html:not(.no-3d-flip) .discipline.is-flipped .discipline__inner {
    transform: rotateY(180deg);
  }

  html:not(.no-3d-flip) .discipline:hover .discipline__front,
  html:not(.no-3d-flip) .discipline.is-flipped .discipline__front {
    opacity: 1;
  }

  html:not(.no-3d-flip) .discipline:hover .discipline__back,
  html:not(.no-3d-flip) .discipline.is-flipped .discipline__back {
    opacity: 1;
    z-index: auto;
  }
}

.discipline__back-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.discipline__back-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.discipline__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.discipline__text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.2;
}

.about__reglament {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  padding: 16px;
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background-color: var(--accent);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.about__reglament:hover,
.about__reglament:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.about__reglament,
.about__reglament .link {
  color: #fff;
}

.about__mission {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.about__mission-left {
  flex: 1 1 0;
}

.pill-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pill {
  background: var(--bg-soft-2);
  border-radius: 4px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.pill__icon {
  width: auto;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}

.pill__text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.2;
}

.about__mission-img {
  flex: 1 1 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.about__mission-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.schedule__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.schedule__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.schedule__date {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.schedule__label {
  font-size: 16px;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
}

.schedule__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--schedule-btn-bg, var(--accent));
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.schedule__btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.schedule__btn:active {
  transform: translateY(0);
}

.schedule__btn:focus-visible {
  outline: 2px solid rgba(7, 163, 66, 0.35);
  outline-offset: 2px;
}

.schedule__sep {
  width: 64px;
  height: 2px;
  background: rgba(7, 163, 66, 0.1);
  border-radius: 4px;
  align-self: center;
  flex: 0 0 auto;
}

.section--past {
  padding: 64px 0;
}

.tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 18px;
}

.tab {
  border: 1px solid var(--accent);
  border-bottom: 0;
  background: transparent;
  color: var(--accent);
  border-radius: 4px 4px 0 0;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 16px;
}

.tab--active {
  background: var(--accent);
  color: #fff;
}

.past-cards {
  display: flex;
  gap: 18px;
}

.past-card {
  flex: 1 1 0;
  border: 1px solid rgba(7, 163, 66, 0.2);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #000;
}

.past-card__left {
  display: flex;
  gap: 18px;
  align-items: center;
}

.past-card__sheets {
  width: auto;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
}

.past-card__vk {
  width: auto;
  height: 68px;
}

.past-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.2;
}

.past-card__title {
  font-size: 16px;
  font-weight: 600;
}

.past-card__sub {
  font-size: 14px;
  font-weight: 300;
}

.past-card__arrow {
  width: 20px;
  height: 20px;
}

.vk-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vk-video-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

.vk-video-modal__content {
  position: relative;
  width: 100%;
  max-width: 700px;
  --vk-modal-max-h: 80vh;
  --vk-modal-chrome-h: 170px;
  max-height: var(--vk-modal-max-h);
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vk-video-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
}

.vk-video-modal__close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.vk-video-modal__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  padding-right: 50px;
}

.vk-video-modal__body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(var(--vk-modal-max-h) - var(--vk-modal-chrome-h));
  min-height: 0;
}

.vk-video-modal__pagination {
  margin-top: 20px;
}

.vk-video-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vk-video-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vk-video-item__player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.vk-video-item__player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vk-video-item__player .vk-video-fallback-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  background: var(--accent);
  border-radius: 4px;
  font-weight: 600;
}

.vk-video-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.vk-video-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.vk-video-pagination__btn {
  width: 29px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-video-pagination__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.vk-video-pagination__btn svg {
  width: 29px;
  height: 30px;
}

.vk-video-pagination__text {
  min-width: 80px;
  font-size: 14px;
  font-weight: 300;
  color: #18181b;
  text-align: center;
}

.vk-video-modal__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vk-video-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(7, 163, 66, 0.2);
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  transition: border-color 0.2s, background 0.2s;
}

.vk-video-link:hover {
  border-color: var(--accent);
  background: rgba(7, 163, 66, 0.05);
}

.vk-video-link__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.vk-video-link__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.vk-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.vk-playlist-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(7, 163, 66, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.vk-playlist-btn:hover {
  border-color: var(--accent);
  background: rgba(7, 163, 66, 0.03);
  box-shadow: 0 4px 12px rgba(7, 163, 66, 0.15);
  transform: translateY(-1px);
}

.vk-playlist-btn__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.vk-playlist-btn__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
}

.vk-playlist-btn__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  word-break: break-word;
}

.vk-playlist-btn__arrow {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.vk-playlist-btn:hover .vk-playlist-btn__arrow {
  transform: translateX(4px);
}

.section--best {
  padding: 64px 0;
}

.robbo-talents-works {
  margin: 0;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
}

.filter-dropdown {
  position: relative;
}

.filter {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 4px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.filter:hover {
  background: var(--accent);
  color: #fff;
}

.filter__icon {
  width: 24px;
  height: 24px;
}

.filter-dropdown.is-open .filter__icon {
  transform: rotate(180deg);
}

.filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin-top: 8px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
}

.filter-dropdown.is-open .filter-menu {
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-option:hover {
  background: var(--bg-soft);
}

.filter-option input {
  margin-right: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card__media {
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img {
    transform: scale(1.1);
  }
}

.card__media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__tags {
  display: flex;
  gap: 4px;
}

.tag {
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 4px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
}

.card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pagination__btn {
  width: 29px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination__btn svg {
  width: 29px;
  height: 30px;
}

.pagination__text {
  min-width: 120px;
  font-size: 14px;
  font-weight: 300;
  color: #18181b;
  text-align: center;
  line-height: 20px;
}

.robbo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.robbo-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

.robbo-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.robbo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
}

.robbo-modal-close:hover {
  background: rgba(0,0,0,0.2);
}

.robbo-modal-body {
  padding: 40px;
  overflow-y: auto;
}

.modal-title {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  padding-right: 60px;
  line-height: 1.2;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.meta-item {
  display: flex;
  gap: 8px;
  font-size: 16px;
}

.meta-label {
  color: var(--muted);
}

.meta-value {
  font-weight: 600;
  color: var(--text);
}

.modal-video {
  margin-bottom: 30px;
}

.modal-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
}

.modal-video video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  background: #000;
  display: block;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.modal-gallery-item img {
  width: 100%;
  border-radius: 4px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.modal-description p {
  margin: 0 0 16px;
}

.modal-description p:last-child {
  margin-bottom: 0;
}

.robbo-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.robbo-loading::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.robbo-modal-body.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.robbo-modal-body.is-loading::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.section--fest {
  position: relative;
  border-bottom: 1px solid var(--border-soft);
  padding: 64px 0;
  overflow: hidden;
}

.fest__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fest__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fest {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
}

.fest__left {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fest__subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.fest__desc {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.35;
}

.fest__right {
  flex: 1 1 auto;
}

.fest__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 200px 200px;
  gap: 16px;
}

.fest__img:nth-child(1) {
  grid-column: span 3;
}

.fest__img:nth-child(2) {
  grid-column: span 2;
}

.fest__img:nth-child(3) {
  grid-column: span 2;
}

.fest__img:nth-child(4) {
  grid-column: span 3;
}

.fest__img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--bg-soft);
}

.fest__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--contacts {
  padding: 64px 0;
}

.contacts {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

.contacts__left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacts__email-label {
  font-size: 12px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.contacts__email-value {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.contacts__photo {
  flex: 1 1 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--bg-soft);
}

.contacts__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacts__form {
  flex: 1 1 0;
}

.contacts__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts__form .wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  color: #25252e;
}

.contacts__form .wpcf7-form input[type="text"],
.contacts__form .wpcf7-form input[type="email"],
.contacts__form .wpcf7-form textarea {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #e4e4ee;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.contacts__form .wpcf7-form input[type="text"]::placeholder,
.contacts__form .wpcf7-form input[type="email"]::placeholder,
.contacts__form .wpcf7-form textarea::placeholder {
  color: #b2b2c2;
}

.contacts__form .wpcf7-form textarea {
  height: 89px;
  resize: none;
}

.contacts__form .wpcf7-form input[type="submit"] {
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  width: fit-content;
}

.contacts__form .wpcf7-form input[type="submit"]:hover {
  background: #188341;
}

.contacts__form .wpcf7-form .wpcf7-response-output {
  margin: 0;
  padding: 10px 15px;
  border-radius: 4px;
}

.contacts__form p {
  padding: 0;
}


@media (max-width: 1024px) {
  .container {
    width: 95%;
    max-width: 95%;
    padding: 0;
    margin: 0 auto;
  }

  .hero__inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero__right {
    width: 100%;
  }

  .hero__slider {
    width: 100%;
    height: 350px;
  }

  .hero__slide {
    min-width: 100%;
  }

  .hero__nav--left {
    left: 10px;
  }

  .hero__nav--right {
    right: 10px;
  }

  .disciplines {
    flex-wrap: wrap;
  }

  .discipline {
    flex: 1 1 calc(50% - 8px);
    height: 200px;
  }

  .schedule {
    flex-wrap: wrap;
    justify-content: center;
  }

  .schedule__item {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .schedule__sep {
    display: none;
  }

  .fest {
    flex-direction: column;
    gap: 32px;
  }

  .fest__left {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .fest__right {
    width: 100%;
  }

  .fest__grid {
    gap: 16px;
  }

  .fest__img {
    height: 240px;
  }

  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts {
    flex-direction: column;
    gap: 32px;
  }

  .contacts__left {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .contacts__photo {
    width: 200px;
    height: 200px;
  }

  .contacts__form {
    width: 100%;
  }

  .about__mission {
    flex-wrap: wrap;
  }

  .about__mission-left {
    width: 100%;
  }

  .about__mission-img {
    flex: 1 1 calc(50% - 16px);
  }

  .past-cards {
    flex-direction: column;
  }

  .past-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    max-width: 95%;
    padding: 0;
    margin: 0 auto;
  }

  .section {
    padding: 40px 0;
  }

  .section__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 24px;
    background: var(--accent);
    color: #fff;
    padding: 12px 2.5vw;
    margin-left: -2.5vw;
    margin-right: -2.5vw;
    width: calc(100% + 5vw);
    border-radius: 0;
  }

  .section__subtitle {
    font-size: 18px;
    font-weight: 600;
  }

  .hero {
    padding: 0;
    background: transparent;
    border-bottom: none;
  }

  .hero__bg {
    display: none;
  }

  .hero__inner {
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero__left {
    order: 1;
    padding: 20px 2.5vw;
    gap: 12px;
    width: 100%;
  }

  .hero__title {
    font-size: 40px;
    font-weight: 800;
    background: var(--accent);
    color: #fff;
    padding: 12px 2.5vw;
    margin: -20px -2.5vw 0;
    line-height: 1.1;
  }

  .hero__subtitle {
    font-size: 18px;
    font-weight: 600;
  }

  .hero__desc {
    font-size: 14px;
  }

  .hero__right {
    order: 2;
    width: 100%;
    position: relative;
  }

  .hero__slider {
    width: 100%;
    height: 280px;
    border-radius: 0;
  }

  .hero__slide {
    min-width: 100%;
  }

  .hero__nav {
    top: 50%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__nav--left {
    left: 8px;
  }

  .hero__nav--right {
    right: 8px;
  }

  .disciplines {
    flex-direction: column;
    gap: 12px;
  }

  .discipline {
    flex: 1 1 100%;
    min-height: 220px;
  }

  .discipline__front {
    padding: 18px 16px;
    gap: 12px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .discipline__back {
    padding: 18px 16px;
    transition-delay: 0s;
  }

  .discipline__back-title,
  .discipline__back-desc {
    opacity: 0;
    transform: translateY(10px);
    transition-property: opacity, transform;
    transition-duration: 0.25s, 0.25s;
    transition-timing-function: ease, ease;
    transition-delay: 0s, 0s;
  }

  .discipline.is-flipped .discipline__back-title,
  .discipline.is-flipped .discipline__back-desc {
    opacity: 1;
    transform: translateY(0);
  }

  .discipline.is-flipped .discipline__back-title {
    transition-delay: 0.10s;
  }

  .discipline.is-flipped .discipline__back-desc {
    transition-delay: 0.16s;
  }

  .discipline__icon {
    width: 48px;
    height: 48px;
  }

  .discipline__text {
    font-size: 16px;
    font-weight: 600;
  }

  .schedule {
    flex-direction: column;
    gap: 0;
    position: relative;
    padding: 0;
    align-items: center;
  }

  .schedule__sep {
    display: none;
  }

  .schedule__item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
    position: relative;
    padding: 0;
  }

  .schedule__item:not(:last-child)::after {
    content: '';
    display: block;
    width: 2px;
    height: 32px;
    background: var(--accent);
    margin: 12px auto;
    opacity: 0.2;
    border-radius: 8px;
  }

  .schedule__icon {
    width: 56px;
    height: 56px;
  }

  .schedule__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .schedule__date {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
  }

  .schedule__label {
    font-size: 14px;
    color: var(--text);
    text-align: center;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fest {
    flex-direction: column;
    gap: 20px;
  }

  .fest__left {
    width: 100%;
    text-align: left;
    align-items: flex-start;
    gap: 12px;
  }

  .fest__subtitle {
    font-size: 18px;
    font-weight: 600;
  }

  .fest__desc {
    font-size: 14px;
  }

  .fest__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 8px;
  }

  .fest__img {
    height: 120px;
    grid-column: span 1;
  }

  .fest__img:nth-child(1),
  .fest__img:nth-child(2),
  .fest__img:nth-child(3),
  .fest__img:nth-child(4) {
    grid-column: span 1;
  }

  .tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tabs--disciplines {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs--disciplines::-webkit-scrollbar { display: none; }
  .tabs--disciplines .tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .tab {
    padding: 8px 16px;
    font-size: 14px;
  }

  .past-cards {
    flex-direction: column;
    gap: 12px;
  }

  .past-card {
    padding: 16px;
  }

  .past-card__vk,
  .past-card__sheets {
    width: 44px;
    height: auto;
  }

  .past-card__left {
    gap: 12px;
  }

  .past-card__title {
    font-size: 14px;
    font-weight: 600;
  }

  .past-card__sub {
    font-size: 12px;
  }

  .contacts {
    flex-direction: column;
    gap: 24px;
  }

  .contacts__left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .contacts__photo {
    width: 140px;
    height: 140px;
  }

  .contacts__email-value {
    font-size: 18px;
    font-weight: 600;
  }

  .about__mission {
    flex-direction: column;
    gap: 16px;
  }

  .about__mission-left {
    width: 100%;
  }

  .pill-row {
    flex-direction: column;
    gap: 12px;
  }

  .pill {
    width: 100%;
  }

  .pill__text {
    font-size: 14px;
  }

  .about__mission-img {
    width: 100%;
    height: 180px;
  }

  .modal__content {
    margin: 2.5vw;
    padding: 20px;
    max-height: calc(100vh - 5vw);
    width: 95vw;
  }

  .modal__title {
    font-size: 18px;
    font-weight: 600;
  }

  .robbo-modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 16px;
    padding-right: 40px;
  }

  .modal-meta {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .meta-item {
    font-size: 14px;
  }

  .modal-video {
    margin-bottom: 20px;
  }

  .modal-video iframe,
  .modal-video video {
    aspect-ratio: auto;
    height: clamp(180px, 28vh, 260px);
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .modal-description {
    font-size: 14px;
  }

  .vk-video-modal__content {
    margin: 10px;
    padding: 20px;
    --vk-modal-max-h: 80vh;
    --vk-modal-chrome-h: 120px;
    max-height: var(--vk-modal-max-h);
    width: calc(100% - 20px);
    max-width: none;
  }

  .vk-video-modal__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
  }

  .vk-video-modal__pagination {
    margin-top: 12px;
  }

  .vk-video-list {
    gap: 16px;
  }

  .vk-video-item {
    gap: 8px;
  }

  .vk-playlist-btn {
    padding: 12px 14px;
    gap: 12px;
  }

  .vk-playlist-btn__left {
    gap: 10px;
  }

  .vk-playlist-btn__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .vk-playlist-btn__title {
    font-size: 14px;
  }

  .vk-playlist-btn__arrow {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .works__filters {
    flex-direction: column;
    gap: 12px;
  }

  .filter-dropdown {
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
  }

  .pagination {
    gap: 8px;
  }

  .pagination__text {
    font-size: 12px;
  }

  .btn--lg {
    padding: 10px 20px;
    font-size: 16px;
  }

  .work-card__title {
    font-size: 16px;
    font-weight: 600;
  }

  .work-card__author,
  .work-card__discipline {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero__inner {
    display: flex;
    gap: 20px;
  }

  .hero__left {
    padding: 20px 0vw;
  }

  .hero__subtitle {
    padding-bottom: 0px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__slider {
    height: 220px;
  }

  .hero__slide img {
    border-radius: 4px;
  }

  .hero__nav {
    background: none;
  }

  .fest__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }

  .fest__img {
    height: 100px;
  }

  .fest__img:first-child {
    grid-row: auto;
  }

  .section__title {
    font-size: 20px;
    padding: 10px 2.5vw;
  }

  .discipline__icon {
    width: 40px;
    height: 40px;
  }

  .schedule__icon {
    width: 48px;
    height: 48px;
  }

  .schedule__date {
    font-size: 16px;
  }

  .schedule__label {
    font-size: 13px;
  }

  .schedule {
    align-items: center;
    gap: 8px;
  }

  .contacts__photo {
    width: 100%;
    height: 240px;
  }

  .cards-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .filter-dropdown {
    width: max-content;
  }

  .hero {
    padding: 40px 0;
  }

  .card__title {
    padding: 0px !important;
  }
}

.robbo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robbo-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.robbo-lightbox__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.robbo-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.robbo-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}

.robbo-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.robbo-lightbox__prev,
.robbo-lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}

.robbo-lightbox__prev {
  left: 20px;
}

.robbo-lightbox__next {
  right: 20px;
}

.robbo-lightbox__prev:hover,
.robbo-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.robbo-lightbox__prev svg,
.robbo-lightbox__next svg {
  width: 29px;
  height: 30px;
}

.modal-gallery-item img {
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.modal-gallery-item img:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .robbo-lightbox__prev,
  .robbo-lightbox__next {
    width: 40px;
    height: 40px;
  }
  
  .robbo-lightbox__prev {
    left: 10px;
  }
  
  .robbo-lightbox__next {
    right: 10px;
  }
  
  .robbo-lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

