*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

body {
    font-family: Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}



img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}



















/* ===== Header ===== */

.header {
  background: var(--color-bg-main);
  border-radius: 32px;
  box-shadow: 0 2px 43.8px 0 rgba(255, 255, 255, 0.10);
  max-width: 1400px;
  margin: 0 auto;
}

.header__inner {
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 120px;
}

/* Лого */
.header__logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #000;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__logo span {
  font-size: 12px;
  font-weight: 500;
  color: #000;
}

/* Поиск */
.header__search {
  flex: 1;
}

.header__search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: 10px;
  border: none;
  background: #f3f3f322;
  font-size: 14px;
  outline: none;
  min-width: 320px;
}

/* Иконка поиска (чисто CSS, без svg) */
.header__search {
  position: relative;
}

.header__search::before {
  content: "";
  position: absolute;
  left: 14px;

  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: .5;
}

/* Кнопка */
.header__btn {
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-bg-main);
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

/* ===== Mobile ===== */

@media (max-width: 950px) {

  .header{
    margin: 5px 20px;
  }

  .header__inner {
    flex-wrap: wrap;
      gap: 24px;
  }

  .header__search {
    order: 3;
    width: 100%;
  }

  .header__btn {
    order: 2;
    margin-left: auto;
  }

  .header__logo {
    order: 1;
  }
}

@media (max-width: 400px) {

.header__search input {
min-width: 60px;
}

.header__logo img {
  height: 34px;
  width: auto;
}

}



















/* ===== Year tags ===== */

.year-tags {
  padding: 40px 0 0 0;
}

.year-tags__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Сам тег */
.year-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 76px;
  height: 34px;
  padding: 0 12px;

  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: #f3f3f322;

  transition: background .15s ease, color .15s ease;
}

/* Hover — аккуратно, без инфоцыганщины */
.year-tag:hover {
  background: var(--color-white);
   color: var(--color-bg-main);}


     .year-tags__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .year-tags {
    padding: 24px 0 0 0;
  }

  .year-tag {
    height: 40px;
    min-width: 64px;
    font-size: 13px;
  }


}











/* ===== Events ===== */

.events {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.event-card {
  background: #f3f3f322;
  border-radius: 24px;
  padding: 24px 24px 28px;
  margin-bottom: 20px;
}

/* Метаданные (дата, город) */
.event-card__meta {
  font-size: 13px;
  color: #ffffff8c;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.event-card__dot {
  font-size: 12px;
}

/* Заголовок */
.event-card__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}

/* Превью */
.event-card__preview {
  margin-bottom: 20px;
}

.event-card__preview img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* Текстовый блок */
.event-card__content {
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}

.event-card__content p {
  margin: 0 0 12px;
}

/* Кнопка */
.event-card__actions {
  margin-top: 20px;
}

.event-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 24px;
  border-radius: 10px;

  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
 transition: background .15s ease, color .15s ease;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
  .event-card {
    padding: 20px 18px 24px;
  }

  .event-card__title {
    font-size: 22px;
  }
}






/* Видео-превью в карточке */
.event-card__preview--video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.event-card__preview--video iframe,
.event-card__preview--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}





@media (max-width: 768px){

  .event-card__actions{
    flex-direction: column;
  }

  .event-card__btn{
    width: 100%;
  }

}






.event-card__preview {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.event-card__preview img {
  width: 100%;
  height: auto; /* ключевое */
  display: block;
}








.year-tag--active {
  background: var(--color-white);
   color: var(--color-bg-main);}



.header__btn:hover {
  background: var(--color-white);
}

.event-card__btn:hover {
  background: #2b2b2b;
}









.events__found-title {
  max-width: 960px;
  margin: 0 auto 16px;
  font-size: 18px;
  font-weight: 600;
    color: var(--color-white);
}

.events__empty {
  max-width: 960px;
  margin: 20px auto 80px;
  font-size: 14px;
  color: #555;
}

.events__empty p {
  margin-bottom: 12px;
}

.events__reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}








.event-card__more-btn {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.event-card__more-btn:hover {
  text-decoration: none;
}















.event-card__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Основная кнопка (у тебя уже была, но чуть подправим под иконку) */
.event-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  padding: 0 16px 0 14px;

  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

/* Второстепенные кнопки — можно сделать посветлее */
.event-card__btn--secondary {
  background: #000;
  color: #ffffff;
}

/* Иконка + текст */
.event-card__btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.event-card__btn-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.event-card__btn-text {
  display: inline-block;
}

/* Мобильное поведение */
@media (max-width: 768px) {
  .event-card__actions {
    gap: 8px;
  }

  .event-card__btn {
    font-size: 13px;
    height: 38px;
    padding: 0 12px 0 10px;
  }
}



.btn-photo {
      background: #2992e9;
  color: #ffffff;
   transition: background .15s ease, color .15s ease;
}

.btn-photo:hover {
      background: #41a5f7;
  color: #ffffff;
}

.btn-youtube {
      background: #FF0000;
  color: #ffffff;
   transition: background .15s ease, color .15s ease;
}

.btn-youtube:hover {
      background: #FF4848;
  color: #ffffff;
}

.btn-rutube {
      background: #031140;
  color: #ffffff;
   transition: background .15s ease, color .15s ease;
}

.btn-rutube:hover {
      background: #112258;
  color: #ffffff;
}

.btn-vk {
      background: #4A74F5;
  color: #ffffff;
   transition: background .15s ease, color .15s ease;
}

.btn-vk:hover {
      background: #5D85FF;
  color: #ffffff;
}


.page--sponsor {
    margin: 0 auto;
    max-width: 960px;
    padding: 20px;
}

.page__inner h1 {
margin-bottom: 20px;
}

.page__inner p {
max-width: 500px;
}






.top-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.top-banner a {
    display: block;
    width: 100%;
    max-width: 960px;
}

.top-banner img {
    width: calc(100% - 40px);
    height: auto;
    display: block;
            border-radius: 24px;
            margin: 20px 20px 0px 20px;
}










/* Поле поиска */
.header__search input[type="search"]{
  -webkit-appearance: none;
  appearance: none;


  color: #fff;

  border-radius: 6px;

  padding: 0 40px 0 38px;
  font-size: 14px;

  /* своя лупа */
background-image: url("../../img/search.svg");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
}

/* placeholder */
.header__search input::placeholder{
  color: rgba(255,255,255,0.6);
}

/* крестик очистки (Chrome / Edge) */
.header__search input::-webkit-search-cancel-button{
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  cursor: pointer;
  filter: invert(1);
}

/* фокус */
.header__search input:focus{
  outline: none;
  border-color: rgba(255,255,255,0.6);
}